/* ==========================================================================
   PRODUCT V4 - HIGH-CONVERTING ECOMMERCE DESIGN SYSTEM
   Optimized for Bosnian & Serbian direct-response / COD eCommerce
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --v4-primary: #059669;
    --v4-primary-dark: #047857;
    --v4-primary-light: #10b981;
    --v4-primary-soft: #ecfdf5;
    --v4-primary-border: #a7f3d0;
    --v4-accent: #f97316;
    --v4-accent-dark: #ea580c;
    --v4-accent-soft: #fff7ed;
    --v4-red: #ef4444;
    --v4-red-soft: #fef2f2;
    --v4-gold: #f59e0b;
    --v4-gold-soft: #fef3c7;
    --v4-dark: #0f172a;
    --v4-dark-surface: #1e293b;
    --v4-text-main: #1e293b;
    --v4-text-muted: #64748b;
    --v4-text-light: #94a3b8;
    --v4-bg-body: #f8fafc;
    --v4-bg-card: #ffffff;
    --v4-bg-subtle: #f1f5f9;
    --v4-border: #e2e8f0;
    --v4-border-light: #f1f5f9;
    --v4-radius-sm: 8px;
    --v4-radius-md: 14px;
    --v4-radius-lg: 20px;
    --v4-radius-xl: 28px;
    --v4-radius-full: 9999px;
    --v4-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --v4-shadow-md: 0 4px 14px -2px rgba(15,23,42,0.08), 0 2px 6px -1px rgba(15,23,42,0.04);
    --v4-shadow-lg: 0 12px 32px -4px rgba(15,23,42,0.1), 0 4px 12px -2px rgba(15,23,42,0.05);
    --v4-shadow-xl: 0 20px 45px -8px rgba(15,23,42,0.12), 0 8px 20px -4px rgba(15,23,42,0.06);
    --v4-shadow-glow: 0 10px 25px -3px rgba(5,150,105,0.25);
    --v4-transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
.v4-body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--v4-bg-body);
    color: var(--v4-text-main);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.v4-body *,
.v4-body *::before,
.v4-body *::after {
    box-sizing: border-box;
}

.v4-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==========================================================================
   1. ANNOUNCEMENT BAR & HEADER
   ========================================================================== */
.v4-top-bar {
    background: linear-gradient(90deg, #047857 0%, #059669 50%, #0d9488 100%);
    color: #ffffff;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(4,120,87,0.25);
}

.v4-top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    letter-spacing: 0.01em;
}

.v4-top-badge {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: var(--v4-radius-full);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.v4-header {
    background: linear-gradient(110deg, #092014 0%, #113824 55%, #0b2618 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: var(--v4-transition);
}

.v4-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}

.v4-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.v4-logo img {
    height: 38px;
    max-width: 175px;
    object-fit: contain;
    display: block;
}

.v4-header-badges {
    display: flex;
    align-items: center;
    gap: 14px;
}

.v4-header-guarantee {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #d1fae5;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: var(--v4-radius-full);
}

.v4-header-guarantee span.dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

.v4-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 7px 16px;
    border-radius: var(--v4-radius-full);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: var(--v4-transition);
}

.v4-header-phone img {
    filter: brightness(0) invert(1);
}

.v4-header-phone:hover {
    background: #059669;
    border-color: #10b981;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

/* ==========================================================================
   2. HERO GRID & PRODUCT SHOWCASE
   ========================================================================== */
.v4-hero-section {
    padding: 24px 0 36px;
}

.v4-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    gap: 36px;
    align-items: start;
}

/* Gallery */
.v4-gallery-wrapper {
    position: sticky;
    top: 80px;
}

.v4-gallery-card {
    background: #ffffff;
    border-radius: var(--v4-radius-xl);
    border: 1px solid var(--v4-border);
    padding: 12px;
    box-shadow: var(--v4-shadow-md);
    position: relative;
}

.v4-gallery-badge-top {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: var(--v4-radius-full);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: var(--v4-shadow-sm);
}

.v4-gallery-badge-top .discount-val {
    background: var(--v4-accent);
    padding: 2px 7px;
    border-radius: var(--v4-radius-full);
    color: #ffffff;
}

.v4-carousel-container {
    border-radius: var(--v4-radius-lg);
    overflow: hidden;
    background: #f1f5f9;
    aspect-ratio: 1/1;
    position: relative;
}

.v4-carousel-container .carousel,
.v4-carousel-container .carousel-inner,
.v4-carousel-container .carousel-item {
    height: 100%;
}

.v4-carousel-container img,
.v4-carousel-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Custom Gallery Controls */
.v4-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 50%;
    color: var(--v4-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    box-shadow: var(--v4-shadow-md);
    transition: var(--v4-transition);
    border: none;
}

.v4-gallery-nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
    color: var(--v4-primary);
}

.v4-gallery-prev { left: 14px; }
.v4-gallery-next { right: 14px; }

/* Thumbnails */
.v4-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.v4-thumb-btn {
    aspect-ratio: 1/1;
    border-radius: var(--v4-radius-md);
    border: 2px solid transparent;
    padding: 0;
    overflow: hidden;
    background: #f1f5f9;
    cursor: pointer;
    transition: var(--v4-transition);
    opacity: 0.7;
}

.v4-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.v4-thumb-btn.active,
.v4-thumb-btn:hover {
    border-color: var(--v4-primary);
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(5,150,105,0.15);
    transform: translateY(-2px);
}

/* Gallery Social Proof strip */
.v4-gallery-social {
    margin-top: 14px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: var(--v4-radius-md);
    border: 1px solid var(--v4-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.v4-avatar-stack {
    display: flex;
    align-items: center;
}

.v4-avatar-stack img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -8px;
    object-fit: cover;
}

.v4-avatar-stack img:first-child {
    margin-left: 0;
}

.v4-gallery-social-text {
    font-size: 12px;
    color: var(--v4-text-muted);
}

.v4-gallery-social-text strong {
    color: var(--v4-dark);
}

/* ==========================================================================
   3. HERO RIGHT - CONVERSION CONTROLS & OFFER
   ========================================================================== */
.v4-details-card {
    background: #ffffff;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius-xl);
    padding: 28px;
    box-shadow: var(--v4-shadow-md);
}

/* Live Viewers & Stock Urgency */
.v4-urgency-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.v4-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 4px 12px;
    border-radius: var(--v4-radius-full);
    font-size: 12px;
    font-weight: 700;
}

.v4-live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.v4-live-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.4);
    animation: v4-pulse 2s infinite;
}

@keyframes v4-pulse {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.v4-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 4px 10px;
    border-radius: var(--v4-radius-full);
    font-size: 11px;
    font-weight: 750;
}

/* Title & Ratings */
.v4-product-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--v4-dark);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.v4-ratings-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.v4-stars-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--v4-gold);
    font-size: 16px;
}

.v4-rating-score {
    font-size: 14px;
    font-weight: 800;
    color: var(--v4-dark);
}

.v4-rating-count {
    color: var(--v4-text-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

/* Short Description */
.v4-short-desc {
    color: var(--v4-text-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Feature bullets */
.v4-feature-bullets {
    background: var(--v4-bg-subtle);
    border-radius: var(--v4-radius-md);
    padding: 14px 16px;
    margin-bottom: 20px;
}

.v4-feature-bullets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.v4-feature-bullets li {
    font-size: 14px;
    font-weight: 600;
    color: var(--v4-text-main);
    line-height: 1.55;
    margin-bottom: 10px;
}

.v4-feature-bullets li:last-child {
    margin-bottom: 0;
}

/* Gift Banner Alert */
.v4-gift-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px dashed #f59e0b;
    border-radius: var(--v4-radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.v4-gift-banner-icon {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.v4-gift-banner-text strong {
    color: #b45309;
    display: block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.v4-gift-banner-text span {
    font-size: 12px;
    color: #78350f;
    font-weight: 600;
}

/* ==========================================================================
   4. BUNDLE QUANTITY SELECTOR (CRO CORE)
   ========================================================================== */
.v4-bundle-section {
    margin-bottom: 20px;
}

.v4-bundle-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.v4-bundle-title strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--v4-dark);
}

.v4-bundle-title span {
    font-size: 12px;
    color: var(--v4-primary);
    font-weight: 700;
}

.v4-bundle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.v4-bundle-card {
    background: #ffffff;
    border: 2px solid var(--v4-border);
    border-radius: var(--v4-radius-md);
    padding: 14px 10px 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: var(--v4-transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.v4-bundle-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.v4-bundle-card.active {
    border-color: var(--v4-primary);
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(5,150,105,0.12), var(--v4-shadow-md);
    transform: translateY(-2px);
}

.v4-bundle-ribbon {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--v4-primary);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: var(--v4-radius-full);
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(5,150,105,0.3);
}

.v4-bundle-ribbon.popular {
    background: linear-gradient(90deg, #f97316, #ea580c);
}

.v4-bundle-ribbon.save {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
}

.v4-bundle-qty-label {
    font-size: 16px;
    font-weight: 900;
    color: var(--v4-dark);
    margin-bottom: 2px;
}

.v4-bundle-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--v4-primary-dark);
}

.v4-bundle-unit {
    font-size: 11px;
    color: var(--v4-text-muted);
    font-weight: 500;
}

.v4-bundle-badge {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: var(--v4-radius-full);
    margin-top: 6px;
}

.v4-bundle-card.active .v4-bundle-badge {
    background: #fef3c7;
    color: #92400e;
}

/* Variation Swatches (Colors / Sizes) */
.v4-variation-wrapper {
    margin-bottom: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--v4-border);
}

.v4-variation-group {
    background: var(--v4-bg-subtle);
    border-radius: var(--v4-radius-md);
    padding: 12px 14px;
    margin-bottom: 10px;
}

.v4-variation-group h6 {
    font-size: 13px;
    font-weight: 750;
    color: var(--v4-dark);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v4-variation-group h6 span {
    color: var(--v4-primary-dark);
    font-weight: 800;
}

.v4-swatches-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.v4-swatch-label {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px #cbd5e1;
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: var(--v4-transition);
}

.v4-swatch-input {
    display: none;
}

.v4-swatch-input:checked + .v4-swatch-label {
    box-shadow: 0 0 0 2.5px var(--v4-primary), var(--v4-shadow-md);
    transform: scale(1.1);
}

.v4-swatch-label.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.v4-swatch-label.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -2px;
    right: -2px;
    height: 2px;
    background: #ef4444;
    transform: rotate(45deg);
}

/* Price Box */
.v4-price-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius-lg);
    padding: 18px 20px;
    margin-bottom: 20px;
}

.v4-price-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
}

.v4-old-price-label {
    font-size: 13px;
    color: var(--v4-text-muted);
}

.v4-old-price-label del {
    font-weight: 700;
}

.v4-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.v4-current-price {
    font-size: 34px;
    font-weight: 900;
    color: var(--v4-primary-dark);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.v4-discount-tag {
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: var(--v4-radius-full);
    box-shadow: 0 2px 8px rgba(249,115,22,0.3);
}

.v4-delivery-calc {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--v4-text-main);
}

.v4-delivery-calc span.icon {
    font-size: 16px;
}

/* Primary Action CTA Button */
.v4-cta-button {
    width: 100%;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: var(--v4-radius-lg);
    color: #ffffff;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 10px 24px -2px rgba(5,150,105,0.35);
    transition: var(--v4-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    animation: v4-pulse-attention 6s ease-in-out infinite;
}

.v4-cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255,255,255,0.25);
    transform: rotate(30deg);
    animation: v4-shimmer 3.5s infinite;
}

@keyframes v4-shimmer {
    0% { left: -60%; }
    20% { left: 140%; }
    100% { left: 140%; }
}

@keyframes v4-pulse-attention {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 24px -2px rgba(5,150,105,0.35);
    }
    6% {
        transform: scale(1.028);
        box-shadow: 0 14px 28px rgba(5,150,105,0.48), 0 0 0 4px rgba(16,185,129,0.22);
    }
    12% {
        transform: scale(0.988);
        box-shadow: 0 8px 18px rgba(5,150,105,0.3);
    }
    18% {
        transform: scale(1.018);
        box-shadow: 0 12px 24px rgba(5,150,105,0.4), 0 0 0 3px rgba(16,185,129,0.16);
    }
    24% {
        transform: scale(1);
        box-shadow: 0 10px 24px -2px rgba(5,150,105,0.35);
    }
}

.v4-cta-button:hover {
    background: linear-gradient(180deg, #059669 0%, #047857 100%);
    box-shadow: 0 14px 30px -2px rgba(5,150,105,0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.v4-cta-button small {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 2px;
}

.v4-cta-button.disabled {
    background: #94a3b8 !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
}

/* Timer under button */
.v4-timer-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #c2410c;
}

.v4-timer-box {
    background: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 2px 7px;
    border-radius: var(--v4-radius-sm);
    font-variant-numeric: tabular-nums;
    color: #ea580c;
}

/* Trust Micro-Grid */
.v4-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--v4-border);
}

.v4-trust-item {
    text-align: center;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--v4-text-muted);
}

.v4-trust-item img {
    height: 24px;
    width: auto;
    margin: 0 auto 4px;
    display: block;
}

/* ==========================================================================
   5. BENEFIT STRIP / USP SECTION
   ========================================================================== */
.v4-benefit-section {
    padding: 20px 0;
    background: #ffffff;
    border-top: 1px solid var(--v4-border);
    border-bottom: 1px solid var(--v4-border);
    margin: 20px 0 40px;
}

.v4-benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.v4-benefit-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
}

.v4-benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--v4-radius-md);
    background: #ecfdf5;
    color: var(--v4-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.v4-benefit-text strong {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--v4-dark);
}

.v4-benefit-text span {
    font-size: 11.5px;
    color: var(--v4-text-muted);
}

/* ==========================================================================
   6. PRODUCT DESCRIPTION & STORY SECTION
   ========================================================================== */
.v4-story-section {
    padding: 30px 0 40px;
}

.v4-section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 32px;
}

.v4-section-pill {
    display: inline-block;
    background: #ecfdf5;
    color: var(--v4-primary-dark);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: var(--v4-radius-full);
    margin-bottom: 8px;
}

.v4-section-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--v4-dark);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.v4-section-subtitle {
    color: var(--v4-text-muted);
    font-size: 15px;
    margin: 0;
}

.v4-rich-content {
    background: #ffffff;
    border-radius: var(--v4-radius-xl);
    border: 1px solid var(--v4-border);
    padding: 36px;
    box-shadow: var(--v4-shadow-sm);
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--v4-text-main);
}

.v4-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--v4-radius-md);
    margin: 18px auto;
    display: block;
    box-shadow: var(--v4-shadow-sm);
}

.v4-rich-content .row {
    --bs-gutter-x: 24px;
    align-items: center;
}

/* Free Gift Section */
.v4-gift-showcase {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    border: 2px solid #fde68a;
    border-radius: var(--v4-radius-xl);
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    box-shadow: var(--v4-shadow-sm);
}

.v4-gift-showcase h3 {
    font-size: 22px;
    font-weight: 900;
    color: #b45309;
    margin: 0 0 10px;
}

.v4-gift-showcase img {
    max-width: 320px;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--v4-radius-lg);
    box-shadow: var(--v4-shadow-md);
    margin: 16px auto;
}

/* ==========================================================================
   7. PHOTO REVIEWS & TESTIMONIALS SECTION
   ========================================================================== */
.v4-reviews-section {
    padding: 40px 0 50px;
    background: #f1f5f9;
    border-top: 1px solid var(--v4-border);
    border-bottom: 1px solid var(--v4-border);
}

.v4-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.v4-review-card {
    background: #ffffff;
    border-radius: var(--v4-radius-lg);
    border: 1px solid var(--v4-border);
    overflow: hidden;
    box-shadow: var(--v4-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--v4-transition);
}

.v4-review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--v4-shadow-md);
}

.v4-review-img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #e2e8f0;
    cursor: zoom-in;
    position: relative;
}

.v4-review-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--v4-transition);
}

.v4-review-img-wrap:hover img {
    transform: scale(1.04);
}

.v4-review-badge-verified {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 10px;
    font-weight: 750;
    padding: 2px 8px;
    border-radius: var(--v4-radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.v4-review-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.v4-review-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
}

.v4-review-author {
    font-weight: 800;
    font-size: 14px;
    color: var(--v4-dark);
}

.v4-review-city {
    font-size: 11.5px;
    color: var(--v4-text-muted);
}

.v4-review-stars {
    color: var(--v4-gold);
    font-size: 13px;
    margin-bottom: 8px;
}

.v4-review-quote {
    font-size: 13.5px;
    color: var(--v4-text-main);
    line-height: 1.5;
    background: var(--v4-bg-subtle);
    padding: 10px 12px;
    border-radius: var(--v4-radius-sm);
    margin: 0;
}

/* Carousel Testimonials */
.v4-testimonial-carousel {
    background: #ffffff;
    border-radius: var(--v4-radius-lg);
    border: 1px solid var(--v4-border);
    padding: 24px;
    margin-top: 24px;
    text-align: center;
    box-shadow: var(--v4-shadow-sm);
}

.v4-testimonial-text {
    font-size: 16px;
    font-style: italic;
    font-weight: 600;
    color: var(--v4-dark);
    max-width: 680px;
    margin: 0 auto 12px;
}

.v4-testimonial-author {
    font-size: 13px;
    font-weight: 800;
    color: var(--v4-primary-dark);
}

/* ==========================================================================
   8. STREAMLINED COD CHECKOUT FORM (THE CONVERSION ENGINE)
   ========================================================================== */
.v4-checkout-section {
    padding: 40px 0 60px;
    scroll-margin-top: 80px;
}

.v4-checkout-container {
    max-width: 860px;
    margin: 0 auto;
}

.v4-checkout-card {
    background: #ffffff;
    border-radius: var(--v4-radius-xl);
    border: 1px solid var(--v4-border);
    padding: 36px;
    box-shadow: var(--v4-shadow-xl);
}

.v4-checkout-header {
    text-align: center;
    margin-bottom: 30px;
}

.v4-checkout-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
}

.v4-step-num {
    width: 32px;
    height: 32px;
    background: var(--v4-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(5,150,105,0.3);
}

.v4-step-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--v4-dark);
    letter-spacing: -0.01em;
}

.v4-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.v4-form-group {
    margin-bottom: 4px;
}

.v4-form-group.full-width {
    grid-column: span 2;
}

.v4-form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 750;
    color: var(--v4-dark);
    margin-bottom: 6px;
}

.v4-form-label span.req {
    color: var(--v4-red);
}

.v4-input {
    width: 100%;
    height: 48px;
    background: #f8fafc;
    border: 1.5px solid var(--v4-border);
    border-radius: var(--v4-radius-md);
    padding: 0 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--v4-dark);
    outline: none;
    transition: var(--v4-transition);
}

.v4-input:focus {
    background: #ffffff;
    border-color: var(--v4-primary);
    box-shadow: 0 0 0 4px rgba(5,150,105,0.12);
}

.v4-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.v4-input-hint {
    font-size: 11.5px;
    color: var(--v4-text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Autocomplete styling */
.autocomplete-container {
    position: relative;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius-md);
    box-shadow: var(--v4-shadow-lg);
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.autocomplete-suggestion {
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--v4-text-main);
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.highlighted {
    background: #ecfdf5;
    color: var(--v4-primary-dark);
}

/* Form validation feedback */
.invalid-feedback {
    display: none;
    font-size: 11px;
    font-weight: 700;
    color: var(--v4-red);
    margin-top: 4px;
}

.was-validated .v4-input:invalid {
    border-color: var(--v4-red);
    background: #fef2f2;
}

.was-validated .v4-input:invalid ~ .invalid-feedback {
    display: block;
}

/* Quantity selector inside form */
.v4-form-qty-select {
    display: none; /* hidden sync element */
}

/* ==========================================================================
   9. UPSELL & CROSS-SELL ADD-ONS
   ========================================================================== */
.v4-upsell-section {
    margin: 28px 0;
    padding: 20px;
    background: #f8fafc;
    border: 1.5px solid var(--v4-border);
    border-radius: var(--v4-radius-lg);
}

.v4-upsell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.v4-upsell-header strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--v4-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Surprise Gift Card */
.v4-surprise-card {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    border: 2px solid #fde68a;
    border-radius: var(--v4-radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    position: relative;
    transition: var(--v4-transition);
}

.v4-surprise-card.upsellBoxSelected {
    border-color: var(--v4-primary);
    background: #ecfdf5;
}

.v4-surprise-img {
    width: 65px;
    height: 65px;
    border-radius: var(--v4-radius-sm);
    object-fit: contain;
    background: #ffffff;
    padding: 4px;
}

.v4-surprise-info {
    flex-grow: 1;
}

.v4-surprise-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--v4-dark);
    margin-bottom: 2px;
}

.v4-surprise-desc {
    font-size: 11.5px;
    color: var(--v4-text-muted);
    margin-bottom: 4px;
}

.v4-surprise-prices del {
    font-size: 12px;
    color: var(--v4-red);
    margin-right: 6px;
}

.v4-surprise-prices b {
    font-size: 14px;
    color: var(--v4-primary-dark);
}

/* Upsell Card */
.v4-addon-card {
    background: #ffffff;
    border: 1.5px solid var(--v4-border);
    border-radius: var(--v4-radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    transition: var(--v4-transition);
    position: relative;
}

.v4-addon-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.v4-addon-card.upsellBoxSelected {
    border-color: var(--v4-primary);
    background: #f0fdf4;
}

.v4-addon-img {
    width: 60px;
    height: 60px;
    border-radius: var(--v4-radius-sm);
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
}

.v4-addon-info {
    flex-grow: 1;
    min-width: 0;
}

.v4-addon-name {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--v4-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v4-addon-prices del {
    font-size: 11.5px;
    color: var(--v4-text-muted);
    margin-right: 6px;
}

.v4-addon-prices b {
    font-size: 13.5px;
    color: var(--v4-primary-dark);
}

.v4-addon-more-link {
    font-size: 11.5px;
    color: var(--v4-primary);
    font-weight: 750;
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
    margin-top: 2px;
}

.v4-addon-btn {
    height: 38px;
    padding: 0 16px;
    background: #ffffff;
    color: var(--v4-primary-dark);
    border: 1.5px solid var(--v4-primary);
    border-radius: var(--v4-radius-full);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--v4-transition);
    flex-shrink: 0;
}

.v4-addon-btn:hover,
.v4-addon-btn.selected {
    background: var(--v4-primary);
    color: #ffffff;
    border-color: var(--v4-primary);
}

.v4-show-more-upsells {
    width: 100%;
    background: transparent;
    border: 1px dashed var(--v4-border);
    color: var(--v4-text-muted);
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px;
    border-radius: var(--v4-radius-md);
    cursor: pointer;
    margin-top: 6px;
    transition: var(--v4-transition);
}

.v4-show-more-upsells:hover {
    background: #ffffff;
    color: var(--v4-primary);
    border-color: var(--v4-primary);
}

/* ==========================================================================
   10. ORDER SUMMARY & FINAL SUBMIT
   ========================================================================== */
.v4-summary-card {
    background: #f8fafc;
    border: 1.5px solid var(--v4-border);
    border-radius: var(--v4-radius-lg);
    padding: 20px;
    margin: 24px 0 20px;
}

.v4-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--v4-text-muted);
    margin-bottom: 8px;
}

.v4-summary-row.total {
    border-top: 2px dashed #cbd5e1;
    margin-top: 12px;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 900;
    color: var(--v4-dark);
}

.v4-summary-row.total .final-amount {
    font-size: 24px;
    color: var(--v4-primary-dark);
}

.v4-shipping-free {
    color: var(--v4-primary);
    font-weight: 800;
}

.v4-payment-notice {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--v4-radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #047857;
    margin-bottom: 20px;
}

.v4-payment-notice span.icon {
    font-size: 20px;
}

/* Final Submit Button */
.v4-submit-button {
    width: 100%;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: var(--v4-radius-lg);
    color: #ffffff;
    padding: 18px 24px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 12px 28px -2px rgba(5,150,105,0.4);
    transition: var(--v4-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    animation: v4-pulse-attention 6s ease-in-out infinite;
}

.v4-submit-button:hover {
    background: linear-gradient(180deg, #059669 0%, #047857 100%);
    box-shadow: 0 16px 36px -2px rgba(5,150,105,0.5);
    transform: translateY(-2px);
}

.v4-submit-button:disabled {
    background: #94a3b8 !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
}

.v4-spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: v4-spin 0.7s linear infinite;
}

@keyframes v4-spin {
    to { transform: rotate(360deg); }
}

.v4-security-note {
    text-align: center;
    font-size: 12px;
    color: var(--v4-text-muted);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ==========================================================================
   11. FAQ ACCORDION SECTION
   ========================================================================== */
.v4-faq-section {
    padding: 30px 0 50px;
}

.v4-faq-container {
    max-width: 860px;
    margin: 0 auto;
}

/* FAQ Overrides for legacy storeFAQ HTML */
.v4-faq-container .faq-toggle,
.v4-faq-container .toggle {
    background: #ffffff;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    transition: var(--v4-transition);
}

.v4-faq-container .togglet {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 750;
    color: var(--v4-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v4-faq-container .togglec {
    padding: 0 18px 16px;
    font-size: 14px;
    color: var(--v4-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   12. STICKY BOTTOM BAR (MOBILE CRO OPTIMIZED)
   ========================================================================== */
.v4-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--v4-border);
    padding: 10px 16px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transform: translateY(120%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.v4-sticky-bottom.visible {
    transform: translateY(0);
}

.v4-sticky-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.v4-sticky-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--v4-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--v4-border);
}

.v4-sticky-prices {
    display: flex;
    flex-direction: column;
}

.v4-sticky-old-price {
    font-size: 11px;
    color: var(--v4-text-muted);
    text-decoration: line-through;
}

.v4-sticky-current-price {
    font-size: 17px;
    font-weight: 900;
    color: var(--v4-primary-dark);
    line-height: 1.1;
}

.v4-sticky-btn {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: var(--v4-radius-full);
    color: #ffffff;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(5,150,105,0.3);
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--v4-transition);
    animation: v4-sticky-pulse 6s ease-in-out infinite;
}

@keyframes v4-sticky-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(5,150,105,0.3);
    }
    6% {
        transform: scale(1.05);
        box-shadow: 0 6px 18px rgba(5,150,105,0.5), 0 0 0 4px rgba(16,185,129,0.22);
    }
    12% {
        transform: scale(0.98);
        box-shadow: 0 3px 10px rgba(5,150,105,0.25);
    }
    18% {
        transform: scale(1.03);
        box-shadow: 0 5px 15px rgba(5,150,105,0.4), 0 0 0 3px rgba(16,185,129,0.16);
    }
    24% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(5,150,105,0.3);
    }
}

.v4-sticky-btn:hover {
    background: #047857;
    transform: scale(1.03);
}

/* ==========================================================================
   13. MODALS (UPSELL & PHOTO LIGHTBOX)
   ========================================================================== */
.v4-modal-content {
    border-radius: var(--v4-radius-xl);
    border: none;
    box-shadow: var(--v4-shadow-xl);
    overflow: hidden;
}

.v4-modal-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--v4-border);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v4-modal-header h5 {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    color: var(--v4-dark);
}

.v4-modal-close {
    background: #ffffff;
    border: 1px solid var(--v4-border);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    color: var(--v4-text-muted);
}

/* ==========================================================================
   14. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
    .v4-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .v4-gallery-wrapper {
        position: static;
    }

    .v4-benefit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .v4-product-title {
        font-size: 22px;
    }

    .v4-details-card {
        padding: 20px 16px;
    }

    .v4-form-grid {
        grid-template-columns: 1fr;
    }

    .v4-form-group.full-width {
        grid-column: span 1;
    }

    .v4-checkout-card {
        padding: 24px 16px;
    }

    .v4-header-guarantee {
        display: none;
    }

    .v4-benefit-grid {
        grid-template-columns: 1fr;
    }

    .v4-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .v4-bundle-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .v4-bundle-card {
        flex-direction: row;
        align-items: center;
        padding: 14px 16px;
        text-align: left;
    }

    .v4-bundle-ribbon {
        top: -9px;
        left: 20px;
        transform: none;
    }

    .v4-trust-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .v4-reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .v4-current-price {
        font-size: 28px;
    }

    .v4-cta-button {
        font-size: 16px;
        padding: 14px 18px;
    }
}
