/* ==========================================
   DESIGN TOKENS & RESET
=========================================== */
:root {
    --primary: #292eea;
    --primary-dark: #1e22b0;
    --primary-light: #6366f1;
    --secondary: #ec4899;
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --white: #ffffff;
    --bg-page: #f8fafc;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 25px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --radius: 1rem;
    --radius-sm: 0.5rem;
    --radius-pill: 9999px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FontAwesome Icon Protection */
.fa, .fas, .fa-solid, .far, .fa-regular, .fab, .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    display: inline-block;
}

.fa-solid, .fas {
    font-weight: 900 !important;
}

.fa-regular, .far {
    font-weight: 400 !important;
}

.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

/* Container */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ==========================================
   MOBILE BACKDROP OVERLAY
=========================================== */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ==========================================
   HEADER & NAVBAR
=========================================== */
.header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
}

/* Logo */
.logo {
    font-size: 1.45rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
}

.logo span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.navbar-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.25s ease;
    display: inline-block;
    flex-shrink: 0;
}

.navbar-logo-sm {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    display: inline-block;
    flex-shrink: 0;
}

.logo:hover .navbar-logo {
    transform: scale(1.08);
}

/* Desktop Search */
.search-bar {
    flex: 1;
    max-width: 440px;
    display: flex;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(41, 46, 234, 0.15);
}

.search-bar input {
    flex: 1;
    padding: 0.65rem 1.25rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    outline: none;
    color: var(--dark);
    font-family: inherit;
}

.search-bar button {
    padding: 0.65rem 1.25rem;
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.search-bar button:hover {
    background: var(--primary-dark);
}

/* Desktop Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
    padding: 0.4rem 0.2rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a i {
    font-size: 1rem;
}

/* Cart Icon with Badge */
.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-count {
    background: var(--secondary);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-left: 2px;
}

/* Mobile Controls Row */
.mobile-controls {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.mobile-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--dark);
    text-decoration: none;
    font-size: 1.1rem;
}

.mobile-cart-btn .cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--light-gray);
    color: var(--dark);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-toggle:active {
    background: var(--border-color);
}

/* Mobile Drawer Header - Hidden completely on Desktop */
.mobile-nav-header {
    display: none !important;
}

.mobile-nav-close {
    display: none !important;
}

/* Mobile Search Sub-bar */
.mobile-search-bar {
    display: none;
    width: 100%;
    padding: 0 1rem 0.75rem 1rem;
    background: #ffffff;
}

.mobile-search-bar form {
    display: flex;
    background: var(--light-gray);
    border-radius: var(--radius-pill);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.mobile-search-bar input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
}

.mobile-search-bar button {
    padding: 0.6rem 1rem;
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
}

/* ==========================================
   HERO SECTION
=========================================== */
.hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1e1b4b 100%);
    border-radius: var(--radius);
    padding: 3.5rem 2.5rem;
    margin-bottom: 2.5rem;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 1.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: white;
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   SECTION TITLES
=========================================== */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ==========================================
   PRODUCT GRID & CARDS
=========================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--danger);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
}

.badge.new {
    background: var(--success);
}

.badge.discount {
    background: var(--warning);
    color: #1e293b;
}

.product-image-wrap {
    width: 100%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 0.75rem;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

.product-info {
    padding: 1rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-brand {
    color: var(--gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.4rem;
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.stars {
    color: #fbbf24;
    font-size: 0.8rem;
}

.reviews {
    color: var(--gray);
    font-size: 0.75rem;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.original-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.85rem;
}

.discount-percent {
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-add {
    width: 100%;
    padding: 0.7rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add:hover {
    background: var(--primary-dark);
}

.btn-add:active {
    transform: scale(0.98);
}

/* ==========================================
   SHOP LAYOUT & BRAND CHIPS
=========================================== */
.shop-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Desktop Sidebar Filters */
.filters {
    width: 260px;
    background: white;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 90px;
}

.filters h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h4 {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

.filter-group a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #475569;
    text-decoration: none;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.filter-group a:hover {
    background: var(--light-gray);
    color: var(--primary);
}

.filter-group a.active {
    background: #e0e7ff;
    color: var(--primary);
    font-weight: 600;
}

.sort-select {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 0.9rem;
    background: white;
    outline: none;
}

.sort-select:focus {
    border-color: var(--primary);
}

.products-area {
    flex: 1;
    min-width: 0;
}

/* Mobile Brand Chips Row (Swipeable on phones) */
.mobile-brand-chips {
    display: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    gap: 0.5rem;
}

.mobile-brand-chips::-webkit-scrollbar {
    display: none;
}

.brand-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    color: #334155;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.brand-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==========================================
   PRODUCT DETAIL PAGE
=========================================== */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.breadcrumb-nav a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: #cbd5e1;
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: var(--dark);
    font-weight: 600;
}

.product-detail-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3.5vw, 2.5rem);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.15fr;
    gap: 3.5rem;
    align-items: start;
}

/* Gallery Container */
.product-gallery-wrap {
    position: sticky;
    top: 90px;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: calc(var(--radius) - 2px);
    background: radial-gradient(circle at center, #ffffff 40%, #f1f5f9 100%);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1.5rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.main-image-container:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.product-detail-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.2, 0, 0.2, 1);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
}

.main-image-container:hover .product-detail-image {
    transform: scale(1.06);
}

/* Image Badges */
.badge-discount-float {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-authentic-float {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: #0f766e;
    border: 1px solid #ccfbf1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Gallery Thumbnails */
.gallery-thumbs-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: contain;
    padding: 6px;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
}

.gallery-thumb:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.gallery-thumb.active {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(41, 46, 234, 0.18);
}

/* Product Info Headings */
.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #eef2ff;
    color: var(--primary);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0.6rem 0 0.75rem;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.rating-stock-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.rating-cluster {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-cluster .stars {
    color: #f59e0b;
    display: inline-flex;
    gap: 2px;
}

.rating-cluster .score {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.9rem;
}

.rating-cluster .count {
    color: var(--gray);
    font-size: 0.85rem;
}

/* Stock Badges */
.stock-pill-in {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: #dcfce7;
    color: #15803d;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

.stock-pill-low {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: #fef9c3;
    color: #a16207;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

.stock-pill-out {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Price Box */
.price-display-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.price-display-box .current-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.price-display-box .original-price {
    font-size: 1.25rem;
    text-decoration: line-through;
    color: var(--gray);
    font-weight: 500;
}

.price-display-box .save-pill {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.825rem;
    font-weight: 700;
}

/* Selector Groups */
.selector-group {
    margin-bottom: 1.35rem;
}

.selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.selector-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
}

.selector-current-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* Color Swatches Grid */
.color-swatches-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.color-swatch-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-pill);
    background: #ffffff;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.2s ease;
    user-select: none;
}

.color-swatch-chip:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.color-swatch-chip.active {
    border-color: var(--primary);
    background: #eef2ff;
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(41, 46, 234, 0.15);
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* Storage Options Grid */
.storage-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.storage-chip {
    padding: 0.65rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    transition: all 0.2s ease;
    user-select: none;
    text-align: center;
    min-width: 80px;
}

.storage-chip:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.storage-chip.active {
    border-color: var(--primary);
    background: #eef2ff;
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(41, 46, 234, 0.15);
}

/* Quantity Stepper */
.quantity-stepper-wrap {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.stepper-btn {
    width: 42px;
    height: 42px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--dark);
    transition: background 0.15s ease, color 0.15s ease;
}

.stepper-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.quantity-stepper-input {
    width: 55px;
    height: 42px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    outline: none;
    background: transparent;
    font-family: inherit;
}

/* Actions Bar */
.product-actions-bar {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.75rem;
}

.btn-add-cart-lg {
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 14px rgba(41, 46, 234, 0.25);
}

.btn-add-cart-lg:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 46, 234, 0.35);
}

.btn-buy-now-lg {
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
}

.btn-buy-now-lg:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}

.btn-action-icon {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--gray);
    font-size: 1.15rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-action-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eef2ff;
}

/* Trust Badges Grid */
.trust-badges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.trust-badge-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

.trust-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eef2ff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.trust-badge-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}

.trust-badge-desc {
    font-size: 0.75rem;
    color: var(--gray);
    line-height: 1.3;
}

/* Tabbed Information Section */
.product-tabs-container {
    margin-top: 3rem;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.tabs-nav-bar {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-nav-btn {
    padding: 1.1rem 1.75rem;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-nav-btn:hover {
    color: var(--dark);
}

.tab-nav-btn.active {
    color: var(--primary);
    background: #ffffff;
}

.tab-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.tab-pane-content {
    padding: clamp(1.25rem, 3vw, 2.25rem);
    display: none;
}

.tab-pane-content.active {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
}

.specs-table td.spec-name {
    font-weight: 700;
    color: var(--dark);
    width: 32%;
    background: #f8fafc;
}

.specs-table td.spec-val {
    color: #475569;
}

/* ==========================================
   TOAST NOTIFICATION
=========================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--dark);
    color: white;
    padding: 0.85rem 1.4rem;
    border-radius: 10px;
    z-index: 1200;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes toastSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================
   FOOTER
=========================================== */
.footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 3.5rem 1.5rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.2s, transform 0.2s;
}

.footer-section a:hover {
    color: white;
    transform: translateX(4px);
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: white;
    transition: all 0.2s;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    outline: none;
    font-size: 0.85rem;
    font-family: inherit;
}

.newsletter-form button {
    padding: 0.6rem 1.25rem;
    background: var(--primary);
    border: none;
    color: white;
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.payment-methods i {
    font-size: 1.8rem;
    color: #64748b;
}

.store-location {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.85rem;
}

.store-hours {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: #64748b;
}

.footer-bottom {
    max-width: 1320px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS (MOBILE & TABLET)
=========================================== */
@media (max-width: 992px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .hero {
        padding: 2.75rem 1.75rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .shop-layout {
        flex-direction: column;
    }

    .filters {
        display: none; /* Replaced by swipeable mobile brand chips on phones/tablets */
    }

    .mobile-brand-chips {
        display: flex;
    }
}

@media (max-width: 768px) {
    /* Navbar on Mobile */
    .nav-container {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .search-bar {
        display: none; /* Hidden on header bar, accessible via mobile-search-bar below */
    }

    .mobile-search-bar {
        display: block;
    }

    .mobile-controls {
        display: flex;
    }

    /* Header & Drawer Stacking Order */
    body.nav-open {
        overflow: hidden;
    }

    body.nav-open .header {
        z-index: 1050;
    }

    /* Off-canvas Slide-down Mobile Menu */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: #ffffff;
        box-shadow: -6px 0 30px rgba(0, 0, 0, 0.2);
        padding: 1.5rem 1.25rem;
        z-index: 1060;
        visibility: hidden;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        gap: 0.35rem;
        align-items: stretch;
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .nav-links a {
        padding: 0.85rem 1rem;
        border-radius: 10px;
        font-size: 0.95rem;
        font-weight: 600;
        border-bottom: 1px solid var(--light-gray);
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .nav-links a.cart-icon {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links a:hover {
        background: var(--light-gray);
    }

    .mobile-nav-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
        border-bottom: 2px solid var(--light-gray);
    }

    .mobile-nav-close {
        background: var(--light-gray);
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 1.1rem;
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: var(--dark);
        transition: background 0.2s ease, color 0.2s ease;
    }

    .mobile-nav-close:hover {
        background: #e2e8f0;
        color: var(--danger);
    }

    /* Hero */
    .hero {
        padding: 2rem 1.25rem;
        margin-bottom: 1.75rem;
        border-radius: 12px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .section-title {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }

    /* 2-Column Product Grid on Mobile Phones */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .product-card {
        border-radius: 10px;
    }

    .product-image {
        height: 160px;
        padding: 0.5rem;
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-brand {
        font-size: 0.7rem;
    }

    .product-name {
        font-size: 0.85rem;
        min-height: 2.4em;
        margin-bottom: 0.25rem;
    }

    .rating {
        display: none; /* Keep mobile card clean */
    }

    .current-price {
        font-size: 1.1rem;
    }

    .original-price {
        font-size: 0.75rem;
    }

    .btn-add {
        padding: 0.55rem;
        font-size: 0.8rem;
    }

    /* Product Detail on Mobile */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery-wrap {
        position: static;
    }

    .main-image-container {
        height: 360px;
    }

    .product-title {
        font-size: 1.6rem !important;
    }

    .product-actions-bar {
        grid-template-columns: 1fr;
    }

    .btn-action-icon {
        width: 100%;
        height: 44px;
    }

    .trust-badges-grid {
        grid-template-columns: 1fr;
    }

    /* Toast Notification on Mobile */
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        text-align: center;
        justify-content: center;
    }

    /* Footer on Mobile */
    .footer {
        padding: 2.5rem 1rem 1.25rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Extra Small Phones (iPhone SE, Galaxy A, etc. <= 400px) */
@media (max-width: 400px) {
    .product-grid {
        gap: 0.5rem;
    }

    .product-image {
        height: 140px;
    }

    .product-info {
        padding: 0.6rem;
    }

    .current-price {
        font-size: 1rem;
    }

    .btn-add {
        font-size: 0.75rem;
        padding: 0.45rem;
    }
}