/* ============================================
   Custom Tab Addons v4.0 — Frontend Styles
   ============================================ */

/* ============ SHARED ============ */
.cta-wrapper,
.cta-cc-wrapper,
.cta-sg-wrapper {
    font-family: inherit;
    text-align: center;
    padding: 20px 0 40px;
}

.cta-section-title,
.cta-sg-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.2;
}

.cta-divider {
    width: 48px;
    height: 2px;
    background: #c8963e;
    margin: 0 auto 16px;
    border-radius: 2px;
}

.cta-section-desc,
.cta-sg-section-desc {
    font-size: 15px;
    color: #555;
    max-width: 820px;
    margin: 0 auto 32px;
    line-height: 1.65;
}

/* ============ TAB WIDGET (unchanged from v3) ============ */
.cta-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}
.cta-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border: 1.5px solid #d1d1d1;
    border-radius: 50px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.12s;
    outline: none;
    line-height: 1;
}
.cta-tab-btn:hover:not(.active) { border-color: #888; background: #f5f5f5; }
.cta-tab-btn:active { transform: scale(0.97); }
.cta-tab-btn.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.cta-color-dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,0.12); flex-shrink: 0; }
.cta-tab-date { font-weight: 400; opacity: 0.7; font-size: 0.92em; }

.cta-products-area { position: relative; min-height: 80px; }
.cta-loader { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 10; background: rgba(255,255,255,0.85); border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.cta-loader-spinner { width: 22px; height: 22px; border: 3px solid #e0e0e0; border-top-color: #1a1a1a; border-radius: 50%; animation: ctaSpin 0.7s linear infinite; flex-shrink: 0; }
@keyframes ctaSpin { to { transform: rotate(360deg); } }
.cta-loader-text { font-size: 14px; color: #555; }
.cta-products-container { transition: opacity 0.2s ease; }

.cta-products-grid { display: grid; gap: 20px; text-align: left; margin-bottom: 28px; animation: ctaFadeIn 0.28s ease; }
@keyframes ctaFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.cta-cols-2 { grid-template-columns: repeat(2, 1fr); }
.cta-cols-3 { grid-template-columns: repeat(3, 1fr); }
.cta-cols-4 { grid-template-columns: repeat(4, 1fr); }
.cta-cols-5 { grid-template-columns: repeat(5, 1fr); }

.cta-product-card { background: #fff; border-radius: 12px; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; position: relative; }
.cta-product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.10); }
.cta-product-card > a { text-decoration: none; color: inherit; display: block; }
.cta-sale-badge { position: absolute; top: 10px; left: 10px; background: #e53935; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; z-index: 2; line-height: 1.6; }
.cta-product-image-wrap { width: 100%; overflow: hidden; background: #f5f5f5; aspect-ratio: 1/1; }
.cta-product-image { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; transition: transform 0.3s ease; display: block; }
.cta-product-card:hover .cta-product-image { transform: scale(1.05); }
.cta-product-info { padding: 12px 2px 6px; }
.cta-product-name { font-size: 14px; font-weight: 600; color: #1a1a1a; margin: 0 0 7px; line-height: 1.35; }
.cta-product-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.cta-stars { color: #f5a623; font-size: 13px; letter-spacing: -1px; line-height: 1; }
.cta-stars .star-rating { display: inline-block; color: #f5a623; font-size: 13px; float: none; overflow: hidden; }
.cta-rating-num { font-size: 13px; font-weight: 600; color: #333; }
.cta-reviews { font-size: 12px; color: #999; }
.cta-price-badge { display: inline-block; background: #e8f5e9; color: #2e7d32; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 6px; margin-bottom: 7px; line-height: 1.5; }
.cta-price-badge del { color: #999; font-weight: 400; font-size: 12px; text-decoration: line-through; margin-right: 4px; }
.cta-price-badge ins { text-decoration: none; color: #2e7d32; font-weight: 700; }
.cta-delivery-text { font-size: 12px; color: #888; margin: 4px 0 0; line-height: 1.4; }
.cta-delivery-today { color: #e53935; font-weight: 600; }
.cta-card-footer { padding: 0 2px 8px; display: flex; flex-direction: column; gap: 6px; }
.cta-add-to-cart-btn { display: block; text-align: center; background: #1a1a1a; color: #fff !important; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 7px; text-decoration: none !important; transition: background 0.2s ease; }
.cta-add-to-cart-btn:hover { background: #333; }
.cta-whatsapp-btn { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; background: #25d366; color: #fff !important; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 7px; text-decoration: none !important; transition: background 0.2s ease; }
.cta-whatsapp-btn:hover { background: #1ebe5d; }
.cta-no-products { padding: 50px 20px; text-align: center; color: #999; background: #fafafa; border-radius: 10px; border: 1px dashed #ddd; }
.cta-no-products p { margin: 0; font-size: 15px; }
.cta-explore-wrap { text-align: center; margin-top: 8px; }
.cta-explore-btn { display: inline-block; background: #1a1a1a; color: #fff !important; font-size: 15px; font-weight: 600; padding: 14px 52px; border-radius: 8px; text-decoration: none !important; transition: background 0.2s ease, transform 0.15s ease; letter-spacing: 0.3px; }
.cta-explore-btn:hover { background: #333; transform: translateY(-1px); }


/* ============================================================
   CATEGORY CARDS WIDGET
   ============================================================ */

.cta-cc-title {
    font-size: 28px;
    font-weight: 700;
    color: #c8963e;
    margin: 0 0 10px;
    font-style: italic;
    letter-spacing: -0.3px;
}

.cta-cc-desc {
    font-size: 15px;
    color: #666;
    margin: 0 0 28px;
}

/* Grid layout */
.cta-cc-grid {
    display: grid;
    gap: 20px;
    text-align: left;
}
.cta-cc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.cta-cc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.cta-cc-cols-4 { grid-template-columns: repeat(4, 1fr); }
.cta-cc-cols-5 { grid-template-columns: repeat(5, 1fr); }
.cta-cc-cols-6 { grid-template-columns: repeat(6, 1fr); }
.cta-cc-cols-7 { grid-template-columns: repeat(7, 1fr); }
.cta-cc-cols-8 { grid-template-columns: repeat(8, 1fr); }
.cta-cc-cols-9 { grid-template-columns: repeat(9, 1fr); }
.cta-cc-cols-10 { grid-template-columns: repeat(10, 1fr); }

/* Base card */
.cta-cc-card {
    text-decoration: none !important;
    display: block;
    color: inherit;
}

/* Image wrap */
.cta-cc-img-wrap {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    width: 100%;
    aspect-ratio: 1/1;
}

.cta-cc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.cta-cc-card:hover .cta-cc-img {
    transform: scale(1.06);
}

.cta-cc-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border-radius: 16px;
    background: #f5ede0;
}

/* Badge on image */
.cta-cc-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #c8963e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    z-index: 2;
    line-height: 1.6;
}

/* Label below image */
.cta-cc-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin: 10px 0 0;
    line-height: 1.35;
    padding: 0 2px;
    transition: color 0.2s;
}

.cta-cc-card:hover .cta-cc-label {
    color: #c8963e;
}

/* STYLE VARIANTS */

/* Elevated */
.cta-cc-style-elevated .cta-cc-card {
    background: #fff;
    border-radius: 18px;
    padding: 10px 10px 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cta-cc-style-elevated .cta-cc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.cta-cc-style-elevated .cta-cc-img {
    border-radius: 12px;
}
.cta-cc-style-elevated .cta-cc-img-wrap {
    border-radius: 12px;
}

/* Minimal */
.cta-cc-style-minimal .cta-cc-card {
    transition: transform 0.2s ease;
}
.cta-cc-style-minimal .cta-cc-card:hover {
    transform: translateY(-3px);
}

/* Bordered */
.cta-cc-style-bordered .cta-cc-card {
    border: 2px solid #eeeeee;
    border-radius: 16px;
    padding: 8px 8px 12px;
    transition: border-color 0.22s ease, transform 0.22s ease;
}
.cta-cc-style-bordered .cta-cc-card:hover {
    border-color: #c8963e;
    transform: translateY(-3px);
}

/* Overlay — text inside image */
.cta-cc-style-overlay .cta-cc-img-wrap {
    border-radius: 16px;
}
.cta-cc-style-overlay .cta-cc-label {
    display: none;
}
.cta-cc-style-overlay .cta-cc-img-wrap::after {
    content: attr(data-label);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 10px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border-radius: 0 0 16px 16px;
    line-height: 1.3;
}

/* ── NEW STYLE 1: Glassmorphism ─────────────────────────────
   Image fills the card; label shows as a frosted-glass strip
   at the bottom — gives a modern, blurry-glass look.
────────────────────────────────────────────────────────── */
.cta-cc-style-glassmorphism .cta-cc-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.cta-cc-style-glassmorphism .cta-cc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.18);
}
.cta-cc-style-glassmorphism .cta-cc-img-wrap {
    border-radius: 20px;
}
.cta-cc-style-glassmorphism .cta-cc-img {
    border-radius: 20px;
}
.cta-cc-style-glassmorphism .cta-cc-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px 10px 12px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
    border-radius: 0 0 20px 20px;
}
.cta-cc-style-glassmorphism .cta-cc-card:hover .cta-cc-label {
    color: #fff;
}

/* ── NEW STYLE 2: Pill ──────────────────────────────────────
   Image is a tall rounded-pill / stadium shape.
   Label sits below in a compact pill-shaped tag.
   Great for portrait-style category imagery.
────────────────────────────────────────────────────────── */
.cta-cc-style-pill .cta-cc-card {
    text-align: center;
    transition: transform 0.22s ease;
}
.cta-cc-style-pill .cta-cc-card:hover {
    transform: translateY(-4px);
}
.cta-cc-style-pill .cta-cc-img-wrap {
    border-radius: 999px;
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: box-shadow 0.22s ease;
}
.cta-cc-style-pill .cta-cc-card:hover .cta-cc-img-wrap {
    box-shadow: 0 12px 30px rgba(0,0,0,0.20);
}
.cta-cc-style-pill .cta-cc-img {
    border-radius: 999px;
}
.cta-cc-style-pill .cta-cc-label {
    display: inline-block;
    margin: 10px auto 0;
    padding: 4px 14px;
    background: #f5ede0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #c8963e;
    letter-spacing: 0.3px;
}
.cta-cc-style-pill .cta-cc-card:hover .cta-cc-label {
    background: #c8963e;
    color: #fff;
}

/* ── NEW STYLE 3: Neon Glow ─────────────────────────────────
   Dark card background with a coloured glowing border on
   hover — stands out against dark-themed sections.
────────────────────────────────────────────────────────── */
.cta-cc-style-neon .cta-cc-card {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 10px 10px 14px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}
.cta-cc-style-neon .cta-cc-card:hover {
    border-color: #c8963e;
    box-shadow: 0 0 18px rgba(200, 150, 62, 0.55), 0 0 40px rgba(200, 150, 62, 0.20);
    transform: translateY(-4px);
}
.cta-cc-style-neon .cta-cc-img {
    border-radius: 10px;
}
.cta-cc-style-neon .cta-cc-img-wrap {
    border-radius: 10px;
}
.cta-cc-style-neon .cta-cc-label {
    color: #e8e8e8;
    font-size: 13px;
}
.cta-cc-style-neon .cta-cc-card:hover .cta-cc-label {
    color: #c8963e;
}

/* Animation on load */
.cta-cc-card {
    animation: ctaCcFadeIn 0.4s ease both;
}
@keyframes ctaCcFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cta-cc-card:nth-child(2) { animation-delay: 0.06s; }
.cta-cc-card:nth-child(3) { animation-delay: 0.12s; }
.cta-cc-card:nth-child(4) { animation-delay: 0.18s; }
.cta-cc-card:nth-child(5) { animation-delay: 0.24s; }
.cta-cc-card:nth-child(6) { animation-delay: 0.30s; }
.cta-cc-card:nth-child(7) { animation-delay: 0.36s; }
.cta-cc-card:nth-child(8) { animation-delay: 0.42s; }
.cta-cc-card:nth-child(9) { animation-delay: 0.48s; }
.cta-cc-card:nth-child(10) { animation-delay: 0.54s; }


/* ============================================================
   PRODUCT SALES GRID WIDGET
   ============================================================ */

.cta-sg-products-area {
    position: relative;
    min-height: 80px;
}

.cta-sg-products-container {
    transition: opacity 0.2s ease;
}

/* Grid */
.cta-sg-grid {
    display: grid;
    gap: 20px;
    text-align: left;
    margin-bottom: 28px;
    animation: ctaFadeIn 0.28s ease;
}
.cta-sg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.cta-sg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.cta-sg-cols-4 { grid-template-columns: repeat(4, 1fr); }
.cta-sg-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* Card */
.cta-sg-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.cta-sg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

/* Image */
.cta-sg-img-link {
    display: block;
    text-decoration: none;
}
.cta-sg-img-wrap {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    width: 100%;
    aspect-ratio: 1/1;
}
.cta-sg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
    transition: transform 0.3s ease;
    display: block;
}
.cta-sg-card:hover .cta-sg-img {
    transform: scale(1.05);
}

/* Discount badge */
.cta-sg-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 3;
    letter-spacing: 0.3px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(229,57,53,0.35);
}

/* Countdown Timer Bar */
.cta-sg-timer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.72);
    color: #fff;
    font-size: 11px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    backdrop-filter: blur(2px);
}
.cta-sg-timer-label {
    font-size: 10px;
    opacity: 0.85;
    white-space: nowrap;
}
.cta-sg-countdown {
    font-size: 13px;
    font-weight: 800;
    color: #ffcc00;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
    min-width: 58px;
    text-align: right;
}

/* Info section */
.cta-sg-info {
    padding: 12px 12px 4px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.cta-sg-name-link {
    text-decoration: none;
    color: inherit;
}
.cta-sg-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.35;
    transition: color 0.2s;
}
.cta-sg-name-link:hover .cta-sg-name {
    color: #c8963e;
}

/* Rating */
.cta-sg-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.cta-sg-stars .star-rating,
.cta-sg-stars {
    color: #f5a623;
    font-size: 12px;
    float: none;
    display: inline-block;
    overflow: hidden;
    letter-spacing: -1px;
}
.cta-sg-rating-num {
    font-size: 12px;
    font-weight: 700;
    color: #444;
}
.cta-sg-reviews {
    font-size: 11px;
    color: #aaa;
}

/* Price row */
.cta-sg-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.cta-sg-sale-price {
    font-size: 18px;
    font-weight: 800;
    color: #c8963e;
    line-height: 1;
}
.cta-sg-reg-price {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
    font-weight: 400;
}

/* Social proof row */
.cta-sg-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.cta-sg-sold {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #888;
    font-weight: 500;
}
.cta-sg-sold svg {
    flex-shrink: 0;
}
.cta-sg-stock {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}
.cta-sg-stock-low {
    color: #e53935 !important;
    font-weight: 700;
    animation: ctaStockPulse 2s ease-in-out infinite;
}
@keyframes ctaStockPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

/* Delivery */
.cta-sg-delivery {
    font-size: 11px;
    color: #999;
    margin: 4px 0 8px;
    line-height: 1.4;
}
.cta-sg-delivery strong {
    color: #e53935;
}

/* Buttons */
.cta-sg-footer {
    margin-top: auto;
    padding: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cta-sg-btn-buy {
    display: block;
    text-align: center;
    background: #1a1a1a;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}
.cta-sg-btn-buy:hover { background: #333; }

.cta-sg-btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    background: #25d366;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}
.cta-sg-btn-wa:hover { background: #1ebe5d; }

.cta-sg-explore-btn {
    display: inline-block;
    background: #1a1a1a;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 52px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.15s ease;
}
.cta-sg-explore-btn:hover {
    background: #333;
    transform: translateY(-1px);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .cta-cols-5  { grid-template-columns: repeat(3, 1fr); }
    .cta-cols-4  { grid-template-columns: repeat(3, 1fr); }
    .cta-cc-cols-10 { grid-template-columns: repeat(6, 1fr); }
    .cta-cc-cols-9  { grid-template-columns: repeat(6, 1fr); }
    .cta-cc-cols-8  { grid-template-columns: repeat(5, 1fr); }
    .cta-cc-cols-7  { grid-template-columns: repeat(5, 1fr); }
    .cta-cc-cols-6  { grid-template-columns: repeat(4, 1fr); }
    .cta-cc-cols-5  { grid-template-columns: repeat(3, 1fr); }
    .cta-sg-cols-5 { grid-template-columns: repeat(3, 1fr); }
    .cta-sg-cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .cta-section-title,
    .cta-sg-section-title,
    .cta-cc-title { font-size: 22px; }

    .cta-cols-5, .cta-cols-4, .cta-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .cta-tab-btn { padding: 9px 16px; font-size: 13px; }

    .cta-cc-cols-10,
    .cta-cc-cols-9,
    .cta-cc-cols-8,
    .cta-cc-cols-7,
    .cta-cc-cols-6,
    .cta-cc-cols-5,
    .cta-cc-cols-4,
    .cta-cc-cols-3 { grid-template-columns: repeat(3, 1fr); }

    .cta-sg-cols-5,
    .cta-sg-cols-4,
    .cta-sg-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .cta-cc-cols-10,
    .cta-cc-cols-9,
    .cta-cc-cols-8,
    .cta-cc-cols-7,
    .cta-cc-cols-6,
    .cta-cc-cols-5,
    .cta-cc-cols-4,
    .cta-cc-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .cta-cc-label { font-size: 12px; }

    .cta-sg-sale-price { font-size: 16px; }
}

@media (max-width: 480px) {
    .cta-cols-5, .cta-cols-4, .cta-cols-3, .cta-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .cta-products-grid { gap: 12px; }
    .cta-product-name { font-size: 13px; }
    .cta-sg-grid { gap: 12px; }
    .cta-sg-name { font-size: 13px; }
    .cta-cc-cols-10,
    .cta-cc-cols-9,
    .cta-cc-cols-8,
    .cta-cc-cols-7,
    .cta-cc-cols-6,
    .cta-cc-cols-5,
    .cta-cc-cols-4,
    .cta-cc-cols-3,
    .cta-cc-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
/* ═══════════════════════════════════════════════════════════════
   Product Tabs Pro — Frontend Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Wrapper ──────────────────────────────────────────────────── */
.ptp-tabs-wrapper {
    border: none;
    border-radius: 0;
    overflow: visible;
    font-family: inherit;
    margin: 24px 0;
    box-shadow: none;
    background: #faf4ef;
}

/* ── Countdown Bar ────────────────────────────────────────────── */
.ptp-countdown-bar {
    background: #c0394b;
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ptp-timer {
    background: rgba(255,255,255,.2);
    border-radius: 4px;
    padding: 2px 8px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

/* ── Stock Bar ────────────────────────────────────────────────── */
.ptp-stock-bar {
    background: #ff6b35;
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
}

/* ── Tab Navigation ───────────────────────────────────────────── */
.ptp-tabs-nav {
    display: flex;
    background: transparent;
    border-bottom: 1px solid #c8b8ae;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ptp-tabs-nav::-webkit-scrollbar { display: none; }

.ptp-tab-btn {
    position: relative;
    flex: 1;
    min-width: 120px;
    padding: 16px 24px;
    background: transparent !important;
    border: none;
    border-radius: 0 !important;
    cursor: pointer;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 14px;
    font-weight: 400;
    color: #9e8c83;
    letter-spacing: 0.01em;
    transition: color .2s ease;
    white-space: nowrap;
    text-align: center;
    outline: none;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

/* Active bottom border only — no width animation, full tab width */
.ptp-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
}
.ptp-tab-btn.active {
    color: #3d2a26;
    font-weight: 400;
}
.ptp-tab-btn.active::after {
    background: #c0697a;
}
.ptp-tab-btn:hover:not(.active) {
    color: #3d2a26;
    background: transparent !important;
}
.ptp-tab-btn:focus {
    outline: none;
    box-shadow: none;
}

/* ── Content Panels ───────────────────────────────────────────── */
.ptp-panel {
    display: none;
    padding: 28px 32px;
    background: #faf4ef;
    animation: ptpFadeIn .3s ease;
    color: #3d2e28;
    line-height: 1.75;
    font-family: 'Georgia', 'Times New Roman', serif;
}
.ptp-panel.ptp-panel-active {
    display: block;
}
@keyframes ptpFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ptp-tab-content p { margin: 0 0 12px; }
.ptp-tab-content strong { color: #111; }

/* ── Highlight Boxes ──────────────────────────────────────────── */
.ptp-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 20px;
}
.ptp-highlight-box {
    background: #fff8f9;
    border: 1px solid #f0c0c8;
    border-left: 3px solid #c0394b;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #c0394b;
    transition: transform .2s ease, box-shadow .2s ease;
}
.ptp-highlight-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192,57,75,.12);
}

/* ── Sales Badge (in delivery tab) ───────────────────────────── */
.ptp-sales-badge {
    background: linear-gradient(135deg, #c0394b, #e05c2e);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 16px;
    letter-spacing: .3px;
}

/* ── Trust Badges ─────────────────────────────────────────────── */
.ptp-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 22px;
    background: #f8fdf9;
    border-top: 1px solid #e0ece3;
}
.ptp-trust-badge {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #b2dfdb;
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Pulse animation ──────────────────────────────────────────── */
@keyframes ptpPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .82; }
}
.ptp-pulse {
    animation: ptpPulse 2s ease-in-out infinite;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ptp-panel { padding: 18px 16px; }
    .ptp-tab-btn { padding: 12px 14px; font-size: 13px; }
    .ptp-highlights-grid { grid-template-columns: 1fr 1fr; }
    .ptp-trust-badges { padding: 12px 16px; }
}
