/**
 * VARIANT 3: "MISTY BLUE" DESIGN SYSTEM
 * Flat solid color palette (NO gradients anywhere).
 * Typography: Manrope (headings) & Inter (body).
 * Style: Pill buttons (999px radius), 18px rounded cards, soft low-contrast shadows.
 * Modern, app-like compact aesthetic.
 */

:root {
    --v3-bg: #F3F5F8;
    --v3-surface: #FFFFFF;
    --v3-border: #DDE3EB;
    --v3-primary: #5B7C99;
    --v3-primary-hover: #4A6882;
    --v3-secondary: #E4ECF4;
    --v3-accent: #E2B25B;
    --v3-text: #263340;
    --v3-muted: #6B7A89;
    --v3-footer-bg: #E4ECF4;
    --v3-footer-text: #263340;
    --v3-success: #5E9C7B;
    --v3-danger: #C0625C;
    --v3-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --v3-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.08);
    --v3-radius-card: 18px;
    --v3-radius-pill: 999px;
    --v3-radius-sm: 8px;
    --v3-font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --v3-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.v3-misty-blue {
    background-color: var(--v3-bg);
    color: var(--v3-text);
    font-family: var(--v3-font-body);
    font-size: 0.95rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--v3-font-heading);
    color: var(--v3-text);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Animated underline on links */
.v3-hover-underline {
    position: relative;
    display: inline-block;
}
.v3-hover-underline::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--v3-primary);
    transition: width 0.25s ease;
}
.v3-hover-underline:hover::after {
    width: 100%;
}

/* ========================================================
   BUTTONS (Pill 999px, Press Effect, Subtle Ripple)
   ======================================================== */
.v3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: var(--v3-font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--v3-radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    user-select: none;
}
.v3-btn:active {
    transform: scale(0.97);
}
.v3-btn-primary {
    background-color: var(--v3-primary);
    color: #FFFFFF;
}
.v3-btn-primary:hover {
    background-color: var(--v3-primary-hover);
    color: #FFFFFF;
}
.v3-btn-secondary {
    background-color: var(--v3-secondary);
    color: var(--v3-primary);
}
.v3-btn-secondary:hover {
    background-color: #D3E1EE;
}
.v3-btn-outline {
    background-color: transparent;
    border-color: var(--v3-primary);
    color: var(--v3-primary);
}
.v3-btn-outline:hover {
    background-color: var(--v3-secondary);
    color: var(--v3-primary-hover);
}
.v3-btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
}
.v3-btn-block {
    width: 100%;
}

/* ========================================================
   TAGS & BADGES
   ======================================================== */
.v3-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--v3-radius-pill);
    background-color: var(--v3-secondary);
    color: var(--v3-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.v3-pill-badge-accent {
    background-color: var(--v3-accent);
    color: #1A1A1A;
}

/* Toast Notifications */
.v3-toast-notification {
    margin: 12px auto;
    max-width: 1200px;
    padding: 12px 20px;
    border-radius: var(--v3-radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.v3-toast-success {
    background-color: #E8F5EE;
    color: var(--v3-success);
    border: 1px solid #C4E5D4;
}
.v3-toast-danger {
    background-color: #FDEDED;
    color: var(--v3-danger);
    border: 1px solid #F6C8C6;
}

/* ========================================================
   HEADER & CATEGORY SUB-NAV (Variant 3)
   Large Centered Search Bar, Sticky with hide-on-scroll subnav
   ======================================================== */
.v3-header-sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--v3-surface);
    border-bottom: 1px solid var(--v3-border);
    transition: transform 0.3s ease;
}

.v3-header-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.v3-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--v3-font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--v3-text);
    flex-shrink: 0;
}
.v3-header-logo span {
    color: var(--v3-primary);
}

.v3-search-bar-center {
    flex: 1;
    max-width: 620px;
    position: relative;
}
.v3-search-form {
    display: flex;
    align-items: center;
    background-color: var(--v3-bg);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-pill);
    padding: 4px 6px 4px 16px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.v3-search-form:focus-within {
    border-color: var(--v3-primary);
    background-color: var(--v3-surface);
}
.v3-search-form input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: var(--v3-font-body);
    font-size: 0.9rem;
    color: var(--v3-text);
}
.v3-search-form button {
    border: none;
    background-color: var(--v3-primary);
    color: #FFFFFF;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}
.v3-search-form button:hover {
    background-color: var(--v3-primary-hover);
}

.v3-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.v3-action-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--v3-text);
    padding: 6px 12px;
    border-radius: var(--v3-radius-pill);
    transition: background-color 0.2s ease;
}
.v3-action-item:hover {
    background-color: var(--v3-secondary);
}
.v3-cart-pill {
    background-color: var(--v3-secondary);
    color: var(--v3-primary);
    position: relative;
}
.v3-cart-pill .v3-badge-count {
    background-color: var(--v3-primary);
    color: #FFFFFF;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: var(--v3-radius-pill);
    margin-left: 4px;
}

/* Thin horizontal category nav row */
.v3-category-row {
    background-color: #FAFBFC;
    border-top: 1px solid var(--v3-border);
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}
.v3-category-row.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
    border-top: none;
}
.v3-category-nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    overflow-x: auto;
    white-space: nowrap;
}
.v3-cat-link {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--v3-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}
.v3-cat-link:hover, .v3-cat-link.active {
    color: var(--v3-primary);
}

/* Mobile Toggle */
.v3-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--v3-text);
    cursor: pointer;
    padding: 4px;
    align-items: center;
    justify-content: center;
}

/* Mobile Navigation Drawer & Backdrop */
.v3-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.45);
    z-index: 1999;
}
.v3-mobile-backdrop.active {
    display: block;
}
.v3-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 85vw;
    background-color: var(--v3-surface);
    border-right: 1px solid var(--v3-border);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px 20px;
}
.v3-mobile-drawer.active {
    transform: translateX(0);
}
.v3-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.v3-drawer-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: var(--v3-text);
    cursor: pointer;
    padding: 4px;
}
.v3-drawer-search {
    margin-bottom: 20px;
}
.v3-drawer-nav {
    flex: 1;
}
.v3-drawer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.v3-drawer-list a {
    display: block;
    padding: 6px 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--v3-text);
    border-radius: var(--v3-radius-sm);
    transition: background-color 0.2s ease, color 0.2s ease;
}
.v3-drawer-list a:hover {
    background-color: var(--v3-secondary);
    color: var(--v3-primary);
}
.v3-drawer-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--v3-border);
}

/* ========================================================
   ANIMATION CLASSES (Scale-in Stagger & Fade)
   ======================================================== */
.v3-scale-in {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.v3-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.v3-fade-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.v3-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .v3-scale-in, .v3-fade-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ========================================================
   HOME PAGE (Variant 3)
   Split hero 50/50, brand pills strip, carousel with snap,
   2 side promo cards, 2x2 why-choose-us, 2-col masonry quotes,
   rounded pale-blue newsletter
   ======================================================== */
.v3-home-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 30px 24px 60px 24px;
}

/* 1. Split Hero 50/50 */
.v3-split-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px 0 60px 0;
}
.v3-hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.v3-hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--v3-text);
}
.v3-hero-subtitle {
    font-size: 1.1rem;
    color: var(--v3-muted);
    max-width: 480px;
}
.v3-hero-search-cta {
    display: flex;
    gap: 12px;
    max-width: 460px;
}
.v3-hero-search-cta input {
    flex: 1;
    padding: 12px 20px;
    border-radius: var(--v3-radius-pill);
    border: 1px solid var(--v3-border);
    outline: none;
    font-family: var(--v3-font-body);
    font-size: 0.95rem;
    background-color: var(--v3-surface);
}
.v3-hero-search-cta input:focus {
    border-color: var(--v3-primary);
}

.v3-hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--v3-border);
}
.v3-stat-item {
    display: flex;
    flex-direction: column;
}
.v3-stat-number {
    font-family: var(--v3-font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--v3-primary);
}
.v3-stat-label {
    font-size: 0.8rem;
    color: var(--v3-muted);
    font-weight: 600;
}

.v3-hero-right {
    position: relative;
}
.v3-hero-card-main {
    background-color: var(--v3-secondary);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-card);
    overflow: hidden;
    box-shadow: var(--v3-shadow);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 420px;
}
.v3-hero-card-main img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain !important;
}
.v3-hero-chip {
    position: absolute;
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-pill);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--v3-shadow);
}
.v3-chip-1 {
    top: 24px;
    left: 24px;
}
.v3-chip-2 {
    bottom: 24px;
    right: 24px;
}
.v3-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--v3-success);
}

/* 2. Brand / Category Pills Strip */
.v3-pills-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;
    padding: 20px 0 40px 0;
    white-space: nowrap;
}
.v3-category-pill {
    padding: 10px 22px;
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-pill);
    font-family: var(--v3-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--v3-text);
    transition: all 0.2s ease;
}
.v3-category-pill:hover {
    background-color: var(--v3-primary);
    color: #FFFFFF;
    border-color: var(--v3-primary);
    box-shadow: var(--v3-shadow);
}

/* 3. Horizontal Scroll Product Carousel with Snap */
.v3-carousel-section {
    padding: 40px 0;
}
.v3-section-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.v3-section-title-bar h2 {
    font-size: 1.85rem;
    font-weight: 800;
}
.v3-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
}
.v3-carousel-track::-webkit-scrollbar {
    height: 6px;
}
.v3-carousel-track::-webkit-scrollbar-track {
    background: var(--v3-secondary);
    border-radius: var(--v3-radius-pill);
}
.v3-carousel-track::-webkit-scrollbar-thumb {
    background: var(--v3-primary);
    border-radius: var(--v3-radius-pill);
}

.v3-product-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-card);
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--v3-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.v3-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--v3-shadow-hover);
}
.v3-card-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #F8F9FA;
    aspect-ratio: 1 / 1;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.v3-card-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain !important;
    transition: transform 0.3s ease;
}
.v3-product-card:hover .v3-card-thumb img {
    transform: scale(1.04);
}
.v3-card-badge-top {
    position: absolute;
    top: 8px;
    left: 8px;
}
.v3-card-cat {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--v3-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.v3-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
    flex-grow: 1;
}
.v3-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--v3-border);
}
.v3-card-price-current {
    font-family: var(--v3-font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--v3-text);
}
.v3-card-price-old {
    font-size: 0.8rem;
    color: var(--v3-muted);
    text-decoration: line-through;
    margin-left: 4px;
}
.v3-card-cart-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: var(--v3-secondary);
    color: var(--v3-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
.v3-card-cart-btn:hover {
    background-color: var(--v3-primary);
    color: #FFFFFF;
}
.v3-card-cart-btn:active {
    transform: scale(0.92);
}

/* 4. Side-by-Side Promo Cards */
.v3-promo-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 30px 0;
}
.v3-promo-card {
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-card);
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    box-shadow: var(--v3-shadow);
}
.v3-promo-card-alt {
    background-color: var(--v3-secondary);
    border-color: #D3E1EE;
}
.v3-promo-card h3 {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 8px 0 12px 0;
}
.v3-promo-card p {
    color: var(--v3-muted);
    font-size: 0.95rem;
    max-width: 400px;
    margin-bottom: 20px;
}

/* 5. "Why choose us" - 4 compact icon rows (2x2 grid) */
.v3-why-section {
    padding: 40px 0;
}
.v3-why-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.v3-why-item {
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-card);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--v3-shadow);
}
.v3-why-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--v3-secondary);
    color: var(--v3-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.v3-why-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.v3-why-item p {
    font-size: 0.85rem;
    color: var(--v3-muted);
    line-height: 1.5;
}

/* 6. Testimonials - 2-Column Staggered (Masonry) Layout */
.v3-testimonials-section {
    padding: 40px 0;
}
.v3-testimonials-masonry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.v3-testimonial-card {
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-card);
    padding: 28px;
    box-shadow: var(--v3-shadow);
    margin-bottom: 24px;
}
.v3-testimonial-stars {
    color: var(--v3-accent);
    font-size: 1rem;
    margin-bottom: 12px;
}
.v3-testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--v3-text);
    margin-bottom: 16px;
}
.v3-testimonial-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.v3-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--v3-secondary);
    color: var(--v3-primary);
    font-family: var(--v3-font-heading);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v3-author-name {
    font-weight: 700;
    font-size: 0.875rem;
}
.v3-author-sub {
    font-size: 0.75rem;
    color: var(--v3-muted);
}

/* 7. Newsletter Inline Inside Rounded Pale-Blue Panel */
.v3-newsletter-panel {
    background-color: var(--v3-secondary);
    border: 1px solid #D3E1EE;
    border-radius: var(--v3-radius-card);
    padding: 48px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.v3-newsletter-left {
    max-width: 500px;
}
.v3-newsletter-left h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.v3-newsletter-left p {
    color: var(--v3-muted);
    font-size: 0.95rem;
}
.v3-newsletter-form-inline {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 440px;
}
.v3-newsletter-form-inline input {
    flex: 1;
    padding: 12px 20px;
    border-radius: var(--v3-radius-pill);
    border: 1px solid var(--v3-border);
    outline: none;
    font-family: var(--v3-font-body);
    font-size: 0.9rem;
    background-color: var(--v3-surface);
}
.v3-newsletter-form-inline input:focus {
    border-color: var(--v3-primary);
}

/* ========================================================
   SHOP PAGE (Variant 3)
   Floating "Filters" slide-over drawer, 4-col compact grid,
   hover second image
   ======================================================== */
.v3-shop-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 30px 24px 60px 24px;
}
.v3-shop-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.v3-shop-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Slide-Over Drawer for Filters */
.v3-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.v3-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}
.v3-filter-drawer {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    height: 100%;
    background-color: var(--v3-surface);
    z-index: 210;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.v3-filter-drawer.active {
    right: 0;
}
.v3-drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--v3-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.v3-drawer-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--v3-muted);
}
.v3-drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* ========================================================
   SINGLE PRODUCT PAGE (Variant 3)
   Vertical thumbnail strip on LEFT of main image,
   Details on right, Frequently viewed strip, Reviews summary block
   ======================================================== */
.v3-product-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 30px 24px 60px 24px;
}
.v3-product-top-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}
.v3-gallery-layout-vertical {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.v3-thumbs-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
    flex-shrink: 0;
}
.v3-thumb-btn {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: var(--v3-radius-sm);
    overflow: hidden;
    cursor: pointer;
    background-color: var(--v3-surface);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v3-thumb-btn img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain !important;
}
.v3-thumb-btn.active, .v3-thumb-btn:hover {
    border-color: var(--v3-primary);
}
.v3-main-image-wrap {
    flex: 1;
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-card);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.v3-main-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain !important;
}

.v3-product-details-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.v3-product-title {
    font-size: 2.25rem;
    font-weight: 800;
}
.v3-price-badge-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.v3-price-large {
    font-family: var(--v3-font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--v3-text);
}

.v3-reviews-summary-block {
    background-color: var(--v3-secondary);
    border-radius: var(--v3-radius-card);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.v3-review-score {
    font-family: var(--v3-font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--v3-primary);
}

/* ========================================================
   CART PAGE (Variant 3)
   Table-less compact list + Floating summary card with
   free-shipping progress bar (flat color)
   ======================================================== */
.v3-cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px 60px 24px;
}
.v3-cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}
.v3-cart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.v3-cart-item-card {
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-card);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--v3-shadow);
}
.v3-cart-item-img {
    width: 76px;
    height: 76px;
    border-radius: var(--v3-radius-sm);
    overflow: hidden;
    background-color: #F8F9FA;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}
.v3-cart-item-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain !important;
}
.v3-cart-item-details {
    flex: 1;
}
.v3-cart-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.v3-cart-item-price {
    font-size: 0.85rem;
    color: var(--v3-muted);
}
.v3-cart-summary-card {
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-card);
    padding: 24px;
    box-shadow: var(--v3-shadow);
    position: sticky;
    top: 90px;
}
.v3-shipping-progress {
    margin-bottom: 20px;
}
.v3-progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: var(--v3-secondary);
    border-radius: var(--v3-radius-pill);
    overflow: hidden;
    margin-top: 6px;
}
.v3-progress-bar-fill {
    height: 100%;
    background-color: var(--v3-primary);
    border-radius: var(--v3-radius-pill);
    transition: width 0.4s ease;
}

/* ========================================================
   ABOUT PAGE (Variant 3)
   Stats band at top (count-up), 3 alternating rows, pill values
   ======================================================== */
.v3-about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px 60px 24px;
}
.v3-about-stats-band {
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-card);
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
    box-shadow: var(--v3-shadow);
    margin-bottom: 60px;
}
.v3-about-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}
.v3-about-row-reverse {
    direction: rtl;
}
.v3-about-row-reverse > * {
    direction: ltr;
}
.v3-about-img {
    border-radius: var(--v3-radius-card);
    overflow: hidden;
    box-shadow: var(--v3-shadow);
}
.v3-values-pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.v3-value-pill {
    padding: 8px 18px;
    background-color: var(--v3-secondary);
    border-radius: var(--v3-radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--v3-primary);
}

/* ========================================================
   CONTACT PAGE (Variant 3)
   Form on left (wide), right narrow with stacked cards + FAQ
   ======================================================== */
.v3-contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px 60px 24px;
}
.v3-contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}
.v3-contact-form-card {
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-card);
    padding: 36px;
    box-shadow: var(--v3-shadow);
}
.v3-info-stacked-card {
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-card);
    padding: 24px;
    box-shadow: var(--v3-shadow);
    margin-bottom: 16px;
}

/* ========================================================
   FAQ PAGE (Variant 3)
   Card-style tabs (Sizing / Shipping / Returns) with fade
   ======================================================== */
.v3-faq-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 24px 60px 24px;
}
.v3-faq-tabs-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
}
.v3-faq-tab-btn {
    padding: 10px 24px;
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-pill);
    font-family: var(--v3-font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--v3-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}
.v3-faq-tab-btn.active, .v3-faq-tab-btn:hover {
    background-color: var(--v3-primary);
    color: #FFFFFF;
    border-color: var(--v3-primary);
}
.v3-faq-card-item {
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-card);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--v3-shadow);
}
.v3-faq-trigger {
    width: 100%;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    font-family: var(--v3-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--v3-text);
    cursor: pointer;
    text-align: left;
}
.v3-faq-body {
    display: none;
    padding: 0 24px 20px 24px;
    color: var(--v3-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}
.v3-faq-card-item.open .v3-faq-body {
    display: block;
}

/* ========================================================
   BLOG PAGE (Variant 3)
   List view (image left small, text right) with right sidebar
   ======================================================== */
.v3-blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px 60px 24px;
}
.v3-blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}
.v3-blog-list-item {
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-card);
    padding: 20px;
    display: flex;
    gap: 20px;
    box-shadow: var(--v3-shadow);
    margin-bottom: 20px;
}
.v3-blog-list-thumb {
    width: 200px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.v3-blog-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================================
   LEGAL PAGES (Variant 3)
   Single column with top horizontal tab bar linking policies
   ======================================================== */
.v3-legal-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 30px 24px 60px 24px;
}
.v3-legal-tabs-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--v3-border);
    padding-bottom: 12px;
}
.v3-legal-tab-link {
    padding: 8px 18px;
    border-radius: var(--v3-radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--v3-muted);
}
.v3-legal-tab-link.active {
    background-color: var(--v3-secondary);
    color: var(--v3-primary);
}
.v3-legal-card {
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-card);
    padding: 40px;
    box-shadow: var(--v3-shadow);
}

/* ========================================================
   AUTH PAGES (Variant 3)
   Compact card with toggle switch between Login and Signup
   ======================================================== */
.v3-auth-container {
    max-width: 480px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
}
.v3-auth-card {
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-card);
    padding: 36px;
    box-shadow: var(--v3-shadow);
}
.v3-auth-switch {
    display: flex;
    background-color: var(--v3-secondary);
    border-radius: var(--v3-radius-pill);
    padding: 4px;
    margin-bottom: 28px;
}
.v3-switch-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: var(--v3-radius-pill);
    font-family: var(--v3-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--v3-muted);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}
.v3-switch-btn.active {
    background-color: var(--v3-surface);
    color: var(--v3-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ========================================================
   MY ACCOUNT (Variant 3)
   Dashboard cards in a 3-column grid
   ======================================================== */
.v3-account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px 60px 24px;
}
.v3-dashboard-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.v3-dashboard-card {
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-card);
    padding: 28px;
    box-shadow: var(--v3-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ========================================================
   FOOTER (Variant 3)
   Light background #E4ECF4, dark text #263340
   1 row of links + newsletter pill input + social icons
   ======================================================== */
.v3-footer {
    background-color: var(--v3-footer-bg);
    color: var(--v3-footer-text);
    border-top: 1px solid var(--v3-border);
    padding: 48px 24px 32px 24px;
    margin-top: 40px;
}
.v3-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.v3-footer-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #D3E1EE;
}
.v3-footer-links-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.v3-footer-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--v3-text);
}
.v3-footer-link:hover {
    color: var(--v3-primary);
}
.v3-footer-newsletter-pill {
    display: flex;
    gap: 8px;
    background-color: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-pill);
    padding: 4px 6px 4px 16px;
}
.v3-footer-newsletter-pill input {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--v3-font-body);
    font-size: 0.85rem;
    color: var(--v3-text);
}
.v3-footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--v3-muted);
}

/* ========================================================
   RESPONSIVE DESIGN (Breakpoints down to 375px)
   ======================================================== */
@media (max-width: 1024px) {
    .v3-shop-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
    .v3-product-top-grid, .v3-cart-grid, .v3-contact-grid, .v3-blog-layout {
        grid-template-columns: 1fr;
    }
    .v3-split-hero {
        grid-template-columns: 1fr;
    }
    .v3-dashboard-grid-3col {
        grid-template-columns: 1fr;
    }
    .v3-about-stats-band {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
    .v3-header-main {
        padding: 10px 16px;
        gap: 12px;
    }
    .v3-header-logo {
        font-size: 1.15rem;
    }
    .v3-search-bar-center {
        display: none;
    }
    .v3-mobile-menu-btn {
        display: inline-flex;
    }
    .v3-header-actions {
        gap: 8px;
    }
    .v3-action-item {
        padding: 6px 10px;
    }
    .v3-action-item span:not(.v3-badge-count) {
        display: none;
    }

    /* Category row on mobile */
    .v3-category-nav-inner {
        justify-content: flex-start;
        padding: 8px 16px;
        gap: 18px;
        -webkit-overflow-scrolling: touch;
    }
    .v3-cat-link {
        font-size: 0.8rem;
    }

    /* Hero section */
    .v3-split-hero {
        padding: 20px 0 30px 0;
        gap: 24px;
    }
    .v3-hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    .v3-hero-subtitle {
        font-size: 0.95rem;
    }
    .v3-hero-search-cta {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 8px;
    }
    .v3-hero-search-cta input {
        background: var(--v3-surface);
        border: 1px solid var(--v3-border);
        border-radius: var(--v3-radius-pill);
        padding: 12px 16px;
        width: 100%;
    }
    .v3-hero-search-cta button {
        width: 100%;
        border-radius: var(--v3-radius-pill);
    }
    .v3-hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
    .v3-hero-card-main {
        min-height: 260px;
        padding: 16px;
    }
    .v3-hero-card-main img {
        max-height: 240px;
    }

    /* Containers */
    .v3-home-container, .v3-about-container, .v3-contact-container, .v3-product-container, .v3-cart-container {
        padding: 20px 16px 40px 16px;
    }

    /* Grids & Cards */
    .v3-promo-cards-grid, .v3-why-grid-2x2, .v3-testimonials-masonry, .v3-about-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .v3-newsletter-panel {
        flex-direction: column;
        padding: 30px 20px;
    }
    .v3-pills-strip {
        justify-content: flex-start;
        padding: 14px 0 24px 0;
        -webkit-overflow-scrolling: touch;
    }
    .v3-category-pill {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Product Page */
    .v3-gallery-layout-vertical {
        flex-direction: column-reverse;
        gap: 12px;
    }
    .v3-thumbs-vertical {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 6px;
    }
    .v3-thumb-btn {
        width: 55px;
        height: 55px;
        flex-shrink: 0;
    }
    .v3-main-image-wrap {
        aspect-ratio: auto;
        height: 280px;
        padding: 14px;
    }
    .v3-product-title {
        font-size: 1.65rem;
    }

    /* About & Footer */
    .v3-about-stats-band {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
    }
    .v3-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .v3-footer-bottom-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .v3-shop-grid-4col {
        grid-template-columns: 1fr;
    }
    .v3-product-card {
        flex: 0 0 240px;
    }
    .v3-card-thumb {
        padding: 8px;
    }
}

