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

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --bg-primary: #050505;
    --bg-secondary: #0c0c0c;
    --bg-tertiary: #131313;
    --bg-card: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: #9a9a9f;
    --text-muted: #5a5a5f;
    --accent: #ff5e00;
    --accent-rgb: 255, 94, 0;
    --accent-glow: rgba(255, 94, 0, 0.18);
    --accent-soft: rgba(255, 94, 0, 0.08);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.2);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.18s ease;
    --mobile-nav-height: 64px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

/* ============================================================
   GLOBAL RESET
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    letter-spacing: -0.01em;
    -webkit-overflow-scrolling: touch;
    /* Bottom padding for mobile nav bar */
    padding-bottom: 0;
}

body.has-mobile-nav {
    padding-bottom: calc(var(--mobile-nav-height) + var(--safe-bottom));
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    touch-action: manipulation;
}

button {
    touch-action: manipulation;
    cursor: pointer;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   HEADER & NAVBAR
   ============================================================ */
.navbar {
    background: rgba(5, 5, 5, 0.85) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    /* iOS safe area top */
    padding-top: calc(18px + var(--safe-top));
}

.navbar.scrolled {
    padding: 10px 0;
    padding-top: calc(10px + var(--safe-top));
    background: rgba(5, 5, 5, 0.97) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 900;
    color: var(--text-primary) !important;
    letter-spacing: 3px;
    position: relative;
    transition: var(--transition-fast);
}

.navbar-brand:hover {
    opacity: 0.85;
}

.navbar-brand span {
    color: var(--accent);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-left: 24px;
    position: relative;
    padding: 8px 0 !important;
    transition: var(--transition-smooth);
    min-height: 44px;
    display: flex !important;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Navbar Toggler */
.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.2) !important;
    padding: 8px 10px !important;
    border-radius: 4px !important;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.navbar-toggler:hover {
    border-color: var(--accent) !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    border-color: var(--accent) !important;
}

.navbar-toggler-icon {
    filter: invert(1);
    width: 20px;
    height: 20px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    /* Use dvh (dynamic viewport height) for mobile browsers */
    height: 90dvh;
    height: 90vh; /* fallback */
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* fixed breaks on iOS */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 5, 5, 0.2) 0%,
        rgba(5, 5, 5, 0.5) 50%,
        rgba(5, 5, 5, 0.97) 100%
    );
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 0 clamp(16px, 5vw, 40px);
}

.hero-content h1 {
    font-size: clamp(2.4rem, 10vw, 5.5rem);
    font-weight: 900;
    letter-spacing: clamp(2px, 1vw, 6px);
    margin-bottom: 16px;
    line-height: 1;
    text-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    animation: heroFadeIn 1s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.hero-content p {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-weight: 300;
    letter-spacing: clamp(0.5px, 0.5vw, 1.5px);
    animation: heroFadeIn 1s 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.hero-content .d-flex {
    animation: heroFadeIn 1s 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) both;
    flex-wrap: wrap;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: var(--transition-smooth);
    overflow: hidden;
    z-index: 1;
    min-height: 44px;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

/* Ripple effect for mobile touch */
.btn-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.btn-premium:active::after {
    transform: scale(2);
    opacity: 0;
    transition: 0s;
}

.btn-premium-solid {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
}

.btn-premium-solid::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-premium-solid:hover {
    color: var(--bg-primary);
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.45);
}

.btn-premium-solid:hover::before { left: 0; }

.btn-premium-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.25);
}

.btn-premium-outline:hover {
    color: var(--bg-primary);
    background-color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-premium-accent {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-premium-accent:hover {
    color: var(--bg-primary);
    background-color: var(--accent);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.35);
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.category-card {
    height: 420px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(5,5,5,0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(18px, 4vw, 30px);
    transition: var(--transition-smooth);
}

.category-card:hover img { transform: scale(1.07); }
.category-card:hover .category-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 25%, rgba(5,5,5,0.96) 100%);
}

.category-card h3 {
    font-size: clamp(18px, 3vw, 24px);
    margin-bottom: 6px;
    color: var(--text-primary);
}

.category-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 12px 40px rgba(var(--accent-rgb), 0.08), 0 0 0 1px rgba(var(--accent-rgb), 0.08);
    transform: translateY(-4px);
}

.product-card:active {
    transform: translateY(-2px);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 85%; /* Ultra-Compact Aspect Ratio for reduced length */
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-img-wrapper img { transform: scale(1.05); }

.product-card .card-body {
    padding: 10px 12px 12px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card h5 {
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: auto;
}

.product-card .price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.product-card .stock-tag {
    font-size: 10.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card .stock-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #22c55e;
    flex-shrink: 0;
}

.product-card .stock-low::before { background-color: #ef4444; }

/* Quick action overlay on hover */
.product-card .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    background: rgba(5, 5, 5, 0.75);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
    border-radius: 0;
}

.product-card:hover .wishlist-btn { opacity: 1; }
.product-card .wishlist-btn:hover { border-color: #ff3b5c; color: #ff3b5c; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section-title {
    font-size: clamp(22px, 5vw, 34px);
    font-weight: 800;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title span { color: var(--accent); }

.section-subtitle {
    color: var(--text-secondary);
    font-size: clamp(13px, 2vw, 15px);
    max-width: 580px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

/* ============================================================
   HIGHLIGHT / FEATURE BOXES
   ============================================================ */
.highlight-box {
    border: 1px solid var(--border-color);
    padding: clamp(24px, 4vw, 40px);
    text-align: center;
    height: 100%;
    transition: var(--transition-smooth);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(var(--accent-rgb), 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.highlight-box:hover {
    border-color: rgba(var(--accent-rgb), 0.35);
    transform: translateY(-3px);
}

.highlight-box:hover::before { opacity: 1; }

.highlight-box .bi {
    color: var(--accent) !important;
}

.highlight-box h3 {
    font-size: clamp(14px, 2.5vw, 18px);
    margin: 18px 0 10px 0;
    color: var(--text-primary);
}

.highlight-box p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-control {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 0;
    padding: 13px 18px;
    font-size: 14px;
    transition: var(--transition-smooth);
    min-height: 48px; /* touch-friendly */
}

.form-control:focus {
    background-color: var(--bg-tertiary);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #0a0a0a 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: clamp(60px, 10vw, 110px) 0;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter h2 {
    font-size: clamp(22px, 6vw, 40px);
    font-weight: 900;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.detail-main-img {
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: clamp(240px, 40vw, 400px);
    background-color: var(--bg-secondary);
}

.detail-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.thumb-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumb-card {
    border: 1px solid var(--border-color);
    height: 90px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-secondary);
    transition: var(--transition-smooth);
}

.thumb-card:hover,
.thumb-card.active { border-color: var(--accent); }

.thumb-card img { width: 100%; height: 100%; object-fit: contain; }

.product-info-title {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
}

.product-info-price {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-heading);
    margin-bottom: 25px;
}

.product-info-price del {
    font-size: clamp(14px, 3vw, 20px);
    color: var(--text-muted);
    margin-left: 12px;
    font-weight: 400;
}

/* Size / Color Selectors */
.selector-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.btn-check:checked + .btn-size-selector {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.btn-size-selector {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 0;
    min-width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
    touch-action: manipulation;
}

.btn-size-selector:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.color-option {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    margin-right: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition-smooth);
}

.btn-check:checked + .color-option-label .color-option {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent);
}

/* Accordion */
.accordion-item {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.accordion-button {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px 0 !important;
    box-shadow: none !important;
    min-height: 44px;
}

.accordion-button:not(.collapsed) { color: var(--accent) !important; }
.accordion-button::after { filter: invert(1); }

.accordion-body {
    padding: 0 0 20px 0 !important;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-table th {
    background-color: var(--bg-secondary) !important;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 14px 16px !important;
    white-space: nowrap;
}

.cart-table td {
    background-color: transparent !important;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color) !important;
    padding: 20px 16px !important;
    vertical-align: middle;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
    line-height: 1.3;
}

.cart-item-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* Mobile Cart Card */
.cart-mobile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: var(--transition-fast);
}

.cart-mobile-card:active {
    border-color: var(--accent);
}

.cart-mobile-card img {
    width: 80px;
    height: 96px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.cart-mobile-info {
    flex: 1;
    min-width: 0;
}

.cart-mobile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 8px;
    flex-wrap: wrap;
}

/* Qty Control */
.qty-control {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.qty-control button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    touch-action: manipulation;
}

.qty-control button:hover { background-color: var(--bg-tertiary); color: var(--accent); }
.qty-control button:active { background-color: var(--accent); color: #000; }

.qty-control input {
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 48px;
    height: 42px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

/* Order Summary */
.summary-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--border-color);
    padding: clamp(20px, 4vw, 30px);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-row.total {
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
    margin-top: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-wrapper {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--border-color);
    padding: clamp(20px, 5vw, 40px);
}

.form-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: clamp(50px, 8vw, 80px) 0 clamp(24px, 4vw, 30px) 0;
}

footer h3 {
    color: var(--text-primary);
    font-size: clamp(20px, 4vw, 24px);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

footer h5 {
    color: var(--text-primary);
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

footer ul li { margin-bottom: 12px; font-size: 14px; }
footer ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}

footer ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.hover-accent:hover { color: var(--accent) !important; }
.hover-white:hover { color: #fff !important; padding-left: 4px; }
footer a { transition: var(--transition-smooth); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-container { min-height: 100vh; }

.auth-sidebar {
    background-size: cover;
    background-position: center;
    position: relative;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(var(--accent-rgb), 0.25) 100%);
}

.auth-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(30px, 5vw, 60px) clamp(20px, 5vw, 40px);
}

.auth-form-card { max-width: 420px; width: 100%; }

.auth-form-card h2 {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-form-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
}

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
.admin-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: clamp(20px, 3vw, 30px);
    transition: var(--transition-smooth);
}

.admin-card:hover { border-color: var(--accent); }
.admin-card h3 { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.admin-card .metric { font-size: 32px; font-weight: 700; color: var(--text-primary); font-family: var(--font-heading); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) both; }

/* ============================================================
   PAYMENT METHOD CARDS
   ============================================================ */
.payment-option-card {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 18px 22px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    min-height: 60px;
}

.payment-option-card:hover { border-color: rgba(255,255,255,0.2); }
.payment-option-card.selected {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.04);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.08);
}

.payment-radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--accent);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5);
    transition: var(--transition-smooth);
}

.payment-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border: 1px solid var(--border-color);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
}

.razorpay-highlight {
    background: rgba(var(--accent-rgb), 0.03);
    border: 1px solid rgba(var(--accent-rgb), 0.12);
}

/* ============================================================
   ORDER STATUS TRACKER
   ============================================================ */
.order-status-tracker {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
}

.order-status-tracker::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.tracker-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    transition: var(--transition-smooth);
}

.tracker-dot.done {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--accent) !important; }

/* ============================================================
   TOAST / ALERT
   ============================================================ */
.toast-container {
    position: fixed;
    top: 90px;
    right: 16px;
    z-index: 9999;
    padding-right: var(--safe-right);
}

.sg-toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    padding: 14px 18px;
    min-width: 260px;
    max-width: calc(100vw - 32px);
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from { transform: translateX(120px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   BADGES
   ============================================================ */
.badge { font-family: var(--font-heading); letter-spacing: 0.5px; }

/* ============================================================
   TABLE
   ============================================================ */
.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-color);
    --bs-table-color: var(--text-primary);
}

.table > :not(caption) > * > * { background-color: transparent; }

/* ============================================================
   FORM SELECT
   ============================================================ */
.form-select {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 0;
    font-size: 14px;
    transition: var(--transition-smooth);
    min-height: 48px;
}

.form-select:focus {
    background-color: var(--bg-tertiary);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.form-select option { background-color: var(--bg-secondary); color: var(--text-primary); }

/* ============================================================
   INPUT GROUP
   ============================================================ */
.input-group .form-control,
.input-group .btn { border-radius: 0 !important; }

/* ============================================================
   DROPDOWNS
   ============================================================ */
.dropdown-menu-dark {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dropdown-item {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition-fast);
    padding: 10px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

/* ============================================================
   ABOUT PAGE - STATS
   ============================================================ */
.stat-counter {
    font-size: clamp(36px, 8vw, 56px);
    font-weight: 900;
    font-family: var(--font-heading);
    line-height: 1;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-info-card {
    border: 1px solid var(--border-color);
    padding: clamp(18px, 3vw, 28px);
    transition: var(--transition-smooth);
    background: var(--bg-secondary);
}

.contact-info-card:hover { border-color: var(--accent); box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.06); }

.contact-icon-wrap {
    width: 52px;
    height: 52px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 22px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.contact-info-card:hover .contact-icon-wrap {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner-border { color: var(--bg-primary); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   MODAL SCROLLBAR
   ============================================================ */
.modal-body::-webkit-scrollbar { width: 3px; }
.modal-body::-webkit-scrollbar-track { background: var(--bg-secondary); }
.modal-body::-webkit-scrollbar-thumb { background: var(--bg-tertiary); }

/* ============================================================
   COUPON INPUT
   ============================================================ */
#couponInput::placeholder {
    letter-spacing: 2px;
    font-size: 12px;
    font-family: var(--font-heading);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 1px; }
.text-accent { color: var(--accent) !important; }
.glow-accent { box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.25); }

.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-tertiary { background-color: var(--bg-tertiary) !important; }

.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }

.filter-link-active { color: var(--accent) !important; padding-left: 8px; }

/* ============================================================
   ADMIN CHART PLACEHOLDER
   ============================================================ */
.chart-placeholder {
    background: var(--bg-tertiary);
    border: 1px dashed var(--border-color);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================================
   MODAL OVERRIDES
   ============================================================ */
.modal-content { border-radius: 0 !important; }
.modal-backdrop { --bs-backdrop-bg: #000; --bs-backdrop-opacity: 0.85; }

/* ============================================================
   MOBILE BOTTOM NAVIGATION BAR
   ============================================================ */
.mobile-bottom-nav {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    padding-bottom: var(--safe-bottom);
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border-color);
    z-index: 1050;
    display: none;
    align-items: stretch;
    justify-content: space-around;
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    gap: 4px;
    min-height: 44px;
    transition: color 0.2s ease;
    position: relative;
    padding: 8px 4px;
    padding-bottom: calc(8px + var(--safe-bottom) / 2);
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav-item i {
    font-size: 20px;
    line-height: 1;
}

.mobile-bottom-nav-item span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.8px;
}

.mobile-bottom-nav-item.active,
.mobile-bottom-nav-item:hover {
    color: var(--accent);
}

.mobile-bottom-nav-item.active i {
    filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.6));
}

/* Cart badge on bottom nav */
.mobile-bottom-nav-item .nav-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 18px);
    background: var(--accent);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-family: var(--font-heading);
}

/* Active indicator dot */
.mobile-bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 2px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .navbar, footer, .btn, .toast-container, .mobile-bottom-nav { display: none !important; }
    body { background: white !important; color: black !important; padding-bottom: 0 !important; }
    .checkout-wrapper { border: 1px solid #ccc !important; }
}

/* ============================================================
   RESPONSIVE — TABLET (991px and below)
   ============================================================ */
@media (max-width: 991px) {

    /* Show mobile bottom nav */
    .mobile-bottom-nav {
        display: flex !important;
    }

    body.has-mobile-nav {
        padding-bottom: calc(var(--mobile-nav-height) + var(--safe-bottom));
    }

    /* Collapsed navbar */
    .navbar-collapse {
        background: rgba(5, 5, 5, 0.98);
        border-top: 1px solid var(--border-color);
        padding: 12px 8px 16px 8px;
        margin-top: 12px;
        border-radius: 0;
    }

    .nav-link {
        margin-left: 0;
        padding: 12px 8px !important;
        font-size: 14px;
        border-bottom: 1px solid var(--border-color);
        min-height: 48px;
    }

    .nav-link:last-child { border-bottom: none; }
    .nav-link::after { display: none; }

    .checkout-wrapper { padding: 24px 20px; }

    .summary-card.sticky-top {
        position: relative !important;
        top: 0 !important;
    }

    /* Admin panel responsive container */
    .admin-main-content {
        padding: 1.25rem !important;
    }
    
    .admin-card {
        padding: 1.25rem;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (768px and below)
   ============================================================ */
@media (max-width: 768px) {

    /* Hero */
    .hero {
        height: 85dvh;
        height: 85vh;
    }

    /* Category cards */
    .category-card { height: 260px; }

    /* Footer centering */
    footer { text-align: center; }
    footer .d-flex.gap-3 { justify-content: center; }

    /* Cart: desktop table hidden, mobile cards shown */
    .cart-desktop-table { display: none !important; }
    .cart-mobile-list { display: block !important; }

    /* Order tracker */
    .order-status-tracker {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 0;
    }

    .order-status-tracker::before { display: none; }

    /* Product detail thumbnails: horizontal scroll on mobile */
    .thumb-grid {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .thumb-grid::-webkit-scrollbar { display: none; }

    .thumb-card {
        min-width: 72px;
        width: 72px;
        height: 72px;
        flex-shrink: 0;
    }
}

/* ============================================================
   RESPONSIVE — SMALL PHONES (576px and below)
   ============================================================ */
@media (max-width: 576px) {

    /* Hero */
    .hero {
        height: 80dvh;
        height: 80vh;
    }

    .hero-content .d-flex {
        flex-direction: column;
        align-items: center;
    }

    .hero-content .d-flex .btn-premium {
        width: 100%;
        max-width: 280px;
    }

    /* Highlight boxes: full width stacking */
    .highlight-box { padding: 24px 20px; }

    /* Newsletter */
    .newsletter { padding: 50px 0; }
    .newsletter h2 { font-size: 22px; }

    /* Product detail */
    .detail-main-img { height: 250px; }

    /* Checkout & summary */
    .checkout-wrapper { padding: 18px 16px; }
    .summary-card { padding: 18px 16px; }

    /* Stat counters */
    .stat-counter { font-size: 36px; }

    /* Payment */
    .payment-icon-badge { display: none; }
    .payment-option-card { padding: 14px 16px; }

    /* Section spacing */
    .section-subtitle { margin-bottom: 32px; }

    /* Toast */
    .toast-container { top: 75px; right: 12px; left: 12px; }
    .sg-toast { min-width: 0; width: 100%; }

    /* Category card */
    .category-card { height: 220px; }
    .category-overlay { padding: 16px; }

    /* Cart mobile footer layout */
    .cart-mobile-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   RESPONSIVE — VERY SMALL PHONES (375px and below)
   ============================================================ */
@media (max-width: 375px) {

    .navbar-brand { font-size: 18px; letter-spacing: 2px; }

    .btn-premium { padding: 12px 20px; font-size: 12px; }

    .product-card .card-body { padding: 12px; }

    .qty-control button { width: 36px; height: 38px; }
    .qty-control input { width: 40px; height: 38px; font-size: 13px; }
}

/* ============================================================
   ENHANCED MOBILE STYLING (ATTRACTIVE & TOUCH-OPTIMIZED)
   ============================================================ */
@media (max-width: 991.98px) {
    /* Mobile Header Glassmorphism */
    .navbar {
        background: rgba(5, 5, 5, 0.94) !important;
        backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .navbar-collapse {
        background: rgba(12, 12, 12, 0.98);
        backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 16px;
        margin-top: 12px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
    }

    .navbar-nav .nav-link {
        padding: 10px 14px !important;
        font-size: 14px;
        border-radius: 8px;
        transition: var(--transition-fast);
    }

    .navbar-nav .nav-link:active,
    .navbar-nav .nav-link.active {
        background: rgba(255, 94, 0, 0.12);
        color: var(--accent) !important;
    }

    /* Mobile Bottom Navigation Bar Elevation */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--mobile-nav-height);
        background: rgba(10, 10, 10, 0.94);
        backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: space-around;
        z-index: 1050;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.7);
        padding-bottom: var(--safe-bottom);
    }

    .mobile-bottom-nav-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 11px;
        font-weight: 500;
        width: 25%;
        height: 100%;
        transition: transform 0.15s ease, color 0.15s ease;
    }

    .mobile-bottom-nav-item i {
        font-size: 20px;
        margin-bottom: 2px;
        transition: transform 0.2s ease;
    }

    .mobile-bottom-nav-item:active {
        transform: scale(0.92);
    }

    .mobile-bottom-nav-item.active {
        color: var(--accent);
    }

    .mobile-bottom-nav-item.active i {
        transform: translateY(-2px);
    }

    .mobile-bottom-nav-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 30%;
        right: 30%;
        height: 3px;
        background: var(--accent);
        border-radius: 0 0 4px 4px;
        box-shadow: 0 2px 8px rgba(255, 94, 0, 0.6);
    }

    .mobile-bottom-nav-item .nav-badge {
        position: absolute;
        top: 8px;
        right: calc(50% - 18px);
        background: var(--accent);
        color: #000;
        font-weight: 700;
        font-size: 10px;
        width: 17px;
        height: 17px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 10px rgba(255, 94, 0, 0.5);
    }

    /* Tactile Mobile Touch Feedback for Buttons */
    .btn, .btn-premium, .admin-card, .product-card {
        touch-action: manipulation;
    }

    .btn:active, .btn-premium:active {
        transform: scale(0.97);
    }

    /* Sleek Product Card Grid for Mobile */
    .product-card {
        border-radius: 10px;
        overflow: hidden;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .product-card:active {
        border-color: rgba(255, 94, 0, 0.4);
        box-shadow: 0 4px 16px rgba(255, 94, 0, 0.15);
    }

    .product-card .card-img-wrapper {
        aspect-ratio: 4/5;
        overflow: hidden;
        position: relative;
    }

    .product-card .card-img-wrapper img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    /* Admin Cards Mobile Styling */
    .admin-card {
        padding: 18px 16px;
        border-radius: 10px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
    }
}

@media (max-width: 575.98px) {
    /* Fluid Mobile Typography */
    .display-4, .hero-title {
        font-size: 2rem !important;
        letter-spacing: 1px !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }

    /* Compact 2-column Product Grid Gaps */
    .row.g-3 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }

    /* Touch-optimized Admin Tables */
    .table-responsive {
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }

    /* Mobile Auth Form Container */
    .auth-form-card {
        padding: 24px 20px !important;
        border-radius: 12px;
    }
}


/* ============================================================
   iOS-SPECIFIC FIXES
   ============================================================ */

/* Fix 100vh on iOS Safari — use dvh when available */
@supports (height: 100dvh) {
    .hero { height: 90dvh; }
    .auth-container { min-height: 100dvh; }
}

/* Prevent iOS font inflation */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Fix for iOS input zoom (font-size must be >= 16px on inputs) */
@media (max-width: 991px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important; /* Prevents iOS auto-zoom on focus */
    }
}

/* iOS safe area for bottom nav */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    }
}

/* ============================================================
   DARK MODE MEDIA QUERY (respect system preference)
   ============================================================ */
@media (prefers-color-scheme: dark) {
    /* Already dark — no additional overrides needed */
}

/* ============================================================
   REDUCED MOTION (accessibility)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}