/* ============================================
   LUXE STORE — Premium E-Commerce Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Orbitron:wght@400;700&family=Space+Grotesk:wght@300;400;700&display=swap');

/* ── CSS Variables ── */
:root {
    --bg-primary: #09090b; /* Deeper charcoal for a true luxury dark mode */
    --bg-secondary: #12121a;
    --bg-tertiary: #181825;
    --bg-card: rgba(26, 26, 46, 0.4);
    --bg-glass: rgba(255, 255, 255, 0.02);
    --bg-glass-hover: rgba(255, 255, 255, 0.05);

    --text-primary: #f8fafc;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-primary: #d4af37; /* Luxury Gold default fallback */
    --accent-secondary: #b8972c;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --accent-glow: rgba(212, 175, 55, 0.2);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --border-color: rgba(255, 255, 255, 0.04);
    --border-hover: rgba(255, 255, 255, 0.1);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Deeper, softer, more luxurious shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px var(--accent-glow);

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --container-max: 1440px; /* Expanded for ultra-wides */
    --header-height: 110px;
}

/* ── Light Mode Variables ── */
[data-theme="light"] {
    --bg-primary: #ffffff; /* Crisp white */
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(0, 0, 0, 0.02);
    --bg-glass-hover: rgba(0, 0, 0, 0.05);

    --text-primary: #09090b; /* Deep charcoal */
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;

    --accent-primary: #d4af37; /* Luxury Gold default fallback */
    --accent-secondary: #b8972c;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --accent-glow: rgba(212, 175, 55, 0.2);

    --border-color: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.4;
    font-size: 1.1rem;
    font-weight: 500;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-primary);
}

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

/* ── Container ── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--accent-glow);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.animate-fade-in-up:nth-child(2) {
    animation-delay: 0.1s;
}

.animate-fade-in-up:nth-child(3) {
    animation-delay: 0.2s;
}

.animate-fade-in-up:nth-child(4) {
    animation-delay: 0.3s;
}

.animate-fade-in-up:nth-child(5) {
    animation-delay: 0.4s;
}

.animate-fade-in-up:nth-child(6) {
    animation-delay: 0.5s;
}

.animate-fade-in-up:nth-child(7) {
    animation-delay: 0.6s;
}

.animate-fade-in-up:nth-child(8) {
    animation-delay: 0.7s;
}

/* ── HEADER / NAVBAR ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    min-height: var(--header-height);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.navbar-inner {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.navbar-nav a:not(.btn) {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.navbar-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.navbar-nav a:not(.btn):hover,
.navbar-nav a:not(.btn).active {
    color: var(--text-primary);
}

.navbar-nav a:not(.btn):hover::after,
.navbar-nav a:not(.btn).active::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    background: transparent;
    cursor: pointer;
}

.cart-icon:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.1);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

/* ── HERO SECTION ── */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-full);
    color: var(--accent-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease forwards;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.08);
    color: var(--accent-secondary);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(239, 68, 68, 0.3);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.3);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ── SECTION HEADERS ── */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ── PRODUCT CARDS ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px; /* Increased for premium feel */
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: block;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card-image .hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

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

.product-card:hover .product-card-image .hover-video {
    opacity: 1;
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.badge-sale {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.badge-new {
    background: var(--accent-gradient);
    color: white;
}

.badge-out {
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-secondary);
}

.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-category {
    font-size: 0.75rem;
    color: var(--accent-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a {
    color: inherit;
}

.product-card-title a:hover {
    color: var(--accent-secondary);
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.price-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

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

.product-card-actions {
    display: flex;
    gap: 0;
    margin-top: auto;
}

.product-card-actions .btn {
    flex: 1;
    border-radius: 0;
    padding: 12px;
}

/* ── CATEGORY CARDS ── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all var(--transition-base);
}

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

.category-card-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-tertiary);
}

.category-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: all var(--transition-base);
}

.category-card:hover .category-card-bg img {
    transform: scale(1.1);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 80%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.category-card span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ── SHOP PAGE ── */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding-top: calc(var(--header-height) + 40px);
}

.shop-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: start;
    height: fit-content;
}

.filter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.filter-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 4px;
}

.filter-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.filter-list a:hover,
.filter-list a.active {
    background: rgba(124, 58, 237, 0.08);
    color: var(--accent-secondary);
}

.filter-count {
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.shop-header h1 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
}

.shop-sort select {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition-fast);
}

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

/* ── PRODUCT DETAIL ── */
.product-detail {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 80px;
    overflow: hidden;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    max-width: 100%;
}

.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.product-main-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.product-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.product-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: var(--bg-tertiary);
    transition: border-color var(--transition-fast);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-item.active,
.thumbnail-item:hover {
    border-color: var(--accent-primary);
}

.product-videos {
    margin-top: 32px;
}

.product-videos h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.videos-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.product-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Product Info */
.product-info {
    padding: 8px 0;
}

.product-info .product-category {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.product-info h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.product-price-large {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-price-large .price-current {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-price-large .price-original {
    font-size: 1.15rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-discount-badge {
    display: inline-flex;
    padding: 3px 10px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

/* Stock Status */
.product-stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
}

.product-stock-status.in-stock {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.product-stock-status.out-of-stock {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Purchase Form */
.product-purchase-form {
    margin-bottom: 24px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
}

.quantity-selector button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quantity-selector button:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.quantity-selector button:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quantity-selector button:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.quantity-selector input {
    width: 60px;
    height: 44px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

.add-to-cart-section {
    display: flex;
    gap: 12px;
}

.btn-add-cart {
    flex: 1;
    min-width: 0;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 4px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-fast);
}

.trust-badge:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
}

.trust-badge svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.trust-badge span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
    line-height: 1.3;
}

/* ── PRODUCT DETAILS TABS ── */
.product-details-section {
    margin-top: 56px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.details-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 32px;
    overflow-x: auto;
    scrollbar-width: none;
}

.details-tabs::-webkit-scrollbar {
    display: none;
}

.details-tab {
    padding: 12px 28px;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.details-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background var(--transition-fast);
}

.details-tab:hover {
    color: var(--text-primary);
}

.details-tab.active {
    color: var(--accent-primary);
}

.details-tab.active::after {
    background: var(--accent-gradient);
}

.details-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.details-tab-content.active {
    display: block;
}

/* Description Content */
.product-description-content {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-description-content br+br {
    display: block;
    margin-top: 8px;
    content: '';
}

/* Specifications */
.specifications-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

.spec-item:nth-child(odd) {
    border-right: 1px solid var(--border-color);
}

.spec-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    flex-shrink: 0;
}

.spec-value {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
    word-break: break-word;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.review-card:hover {
    border-color: var(--border-hover);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.review-author strong {
    font-size: 0.95rem;
    display: block;
}

.review-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.review-stars {
    color: #f59e0b;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.92rem;
    font-style: italic;
}

/* Tab Empty State */
.tab-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.tab-empty-state .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.tab-empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tab-empty-state p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Related Products Section */
.related-products-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-products-section .section-header {
    margin-bottom: 28px;
}

.related-grid {
    grid-template-columns: repeat(4, 1fr);
}


/* ── CART PAGE ── */
.cart-page {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 80px;
    min-height: 80vh;
}

.cart-page h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 32px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.cart-item:hover {
    border-color: var(--border-hover);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-tertiary);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-info .cart-item-price {
    color: var(--accent-secondary);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.cart-item-quantity input {
    width: 50px;
    height: 36px;
    text-align: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 600;
    outline: none;
}

.cart-item-total {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 80px;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.cart-item-remove:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.cart-summary h2 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.cart-summary-row span:first-child {
    color: var(--text-secondary);
}

.cart-summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.cart-summary .btn {
    margin-top: 20px;
}

.free-shipping-note {
    font-size: 0.8rem;
    color: var(--success);
    margin-top: 12px;
    text-align: center;
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
}

.cart-empty h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.cart-empty p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ── CHECKOUT PAGE ── */
.checkout-page {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 80px;
}

.checkout-page h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 32px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

/* ── FORMS ── */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(10px);
}

.form-card h2 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

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

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(16, 185, 129, 0.06);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.payment-method-card .payment-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.payment-method-card .payment-info h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.payment-method-card .payment-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ── ORDER CONFIRMATION ── */
.confirmation-page {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    text-align: center;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
}

.confirmation-page h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 12px;
}

.confirmation-page .order-number {
    color: var(--accent-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 32px;
}

.order-detail-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

/* ── ACCOUNT / ORDERS ── */
.account-page {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 80px;
}

.account-page h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 32px;
}

/* ── TABLES ── */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background: var(--bg-tertiary);
    padding: 14px 20px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

tbody td {
    padding: 14px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--bg-glass-hover);
}

/* ── BADGES ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.badge-info {
    background: rgba(59, 130, 246, 0.12);
    color: var(--info);
}

.badge-primary {
    background: rgba(124, 58, 237, 0.12);
    color: var(--accent-secondary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

.badge-secondary {
    background: rgba(160, 160, 184, 0.12);
    color: var(--text-secondary);
}

/* ── PAGINATION ── */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.pagination li a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
    background: rgba(124, 58, 237, 0.08);
}

.pagination li.active span {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.pagination li.disabled span {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ── ALERTS ── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

/* ── FOOTER ── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ── SEARCH BAR ── */
.search-bar {
    position: relative;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-bar input:focus {
    border-color: var(--accent-primary);
}

.search-bar svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 16px;
    height: 16px;
}

/* ── AUTH PAGES ── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(20px);
}

.auth-card h1 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent-secondary);
    font-weight: 600;
}

/* ── BREADCRUMB ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    list-style: none;
    flex-wrap: wrap;
    word-break: break-word;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--accent-secondary);
}

.breadcrumb .separator {
    color: var(--text-muted);
}

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 20px;
}

/* ── IMAGE PLACEHOLDER ── */
.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    color: var(--text-muted);
    font-size: 2rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 12px;
    }

    .filter-card {
        min-width: 200px;
        margin-bottom: 0;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-gallery {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }

    .product-main-image {
        padding-bottom: 80%;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Product reviews grid fix for tablet */
    .reviews-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-primary);
        z-index: 1001;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-right: 1px solid var(--border-color);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .navbar-nav.active {
        transform: translateX(0);
    }

    .navbar-nav a:not(.btn) {
        font-size: 1.1rem;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        display: block;
    }

    .sidebar-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .desktop-auth {
        display: none;
    }

    .mobile-auth-links {
        display: flex !important;
    }

    .mobile-toggle {
        display: flex;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }

    .cart-item-quantity,
    .cart-item-total {
        grid-column: 2;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-links a {
        font-size: 0.95rem;
    }

    .thumbnail-item {
        width: 65px;
        height: 65px;
    }

    .section {
        padding: 50px 0;
    }

    /* ── Product Detail Mobile Fixes ── */
    .product-detail {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 60px;
    }

    .product-detail-grid {
        gap: 24px;
    }

    .product-gallery {
        max-width: 100%;
    }

    .product-main-image {
        padding-bottom: 90%;
    }

    .product-info h1 {
        font-size: 1.4rem;
    }

    .product-price-large .price-current {
        font-size: 1.6rem;
    }

    .product-price-large .price-original {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.9rem;
        margin-bottom: 24px;
        line-height: 1.7;
    }

    .product-meta {
        padding: 16px;
        margin-bottom: 24px;
    }

    .product-meta-item {
        font-size: 0.85rem;
    }

    .quantity-selector {
        margin-bottom: 16px;
    }

    .quantity-selector button {
        width: 40px;
        height: 40px;
    }

    .quantity-selector input {
        width: 50px;
        height: 40px;
    }

    .add-to-cart-section .btn {
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .cod-badge {
        font-size: 0.8rem;
        padding: 10px 14px;
    }

    /* Reviews section mobile */
    .product-reviews-section {
        margin-top: 32px !important;
        padding-top: 24px !important;
    }

    .product-reviews-section h2 {
        font-size: 1.3rem !important;
        margin-bottom: 16px !important;
    }

    .reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .review-card {
        padding: 16px !important;
    }

    /* Related products section mobile */
    .product-detail .section {
        padding-top: 40px !important;
    }

    .product-detail .section-header h2 {
        font-size: 1.3rem;
    }

    /* Product videos mobile */
    .product-videos h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

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

    .product-card-title {
        font-size: 0.85rem;
    }

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

    /* ── Product Detail Extra-Small Fixes ── */
    .product-detail {
        padding-top: calc(var(--header-height) + 12px);
        padding-bottom: 40px;
    }

    .product-detail-grid {
        gap: 20px;
    }

    .product-main-image {
        padding-bottom: 100%;
        border-radius: var(--radius-md);
    }

    .product-thumbnails {
        gap: 8px;
        margin-top: 10px;
    }

    .thumbnail-item {
        width: 56px;
        height: 56px;
    }

    .product-info .product-category {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .product-info h1 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .product-price-large {
        margin-bottom: 16px;
        gap: 8px;
    }

    .product-price-large .price-current {
        font-size: 1.4rem;
    }

    .product-price-large .price-original {
        font-size: 0.9rem;
    }

    .product-price-large .price-discount {
        font-size: 0.7rem;
    }

    .product-description {
        font-size: 0.85rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .product-meta {
        padding: 14px;
        margin-bottom: 20px;
        gap: 10px;
    }

    .product-meta-item {
        font-size: 0.8rem;
    }

    .quantity-selector button {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .quantity-selector input {
        width: 48px;
        height: 38px;
        font-size: 0.9rem;
    }

    .add-to-cart-section {
        flex-direction: column;
    }

    .add-to-cart-section .btn {
        width: 100%;
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .cod-badge {
        font-size: 0.75rem;
        padding: 10px 12px;
        gap: 6px;
    }

    .cod-badge svg {
        width: 16px;
        height: 16px;
    }

    .breadcrumb {
        font-size: 0.75rem;
        gap: 4px;
        padding: 10px 0;
    }

    /* Reviews extra-small */
    .product-reviews-section {
        margin-top: 24px !important;
        padding-top: 20px !important;
    }

    .product-reviews-section h2 {
        font-size: 1.15rem !important;
    }

    .review-card {
        padding: 14px !important;
    }

    .review-card strong {
        font-size: 0.95rem !important;
    }

    .review-card p {
        font-size: 0.85rem !important;
    }

    /* Related products extra-small */
    .product-detail .section {
        padding-top: 30px !important;
    }

    .product-detail .section-header {
        margin-bottom: 20px;
    }

    .product-detail .section-header h2 {
        font-size: 1.15rem;
    }

    /* No-reviews empty state */
    .product-reviews-section .empty-review-card {
        padding: 24px !important;
    }
}

/* ── QUICK CHECKOUT SIDEBAR ── */
.sidebar-checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.sidebar-checkout-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-checkout-wrapper {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    max-width: 100%;
    bottom: 0;
    background: var(--bg-card);
    z-index: 10001;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    transition: right var(--transition-base);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-checkout-wrapper.active {
    right: 0;
}

.sidebar-checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 2;
}

.sidebar-checkout-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.close-sidebar-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

.close-sidebar-btn:hover {
    color: var(--accent-primary);
}

.sidebar-checkout-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.sidebar-cart-items {
    padding: 20px 24px;
}

.sidebar-cart-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-cart-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.sidebar-cart-item-img {
    width: 60px;
    height: 60px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sidebar-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.sidebar-cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.sidebar-cart-item-qty {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar-cart-item-price {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.sidebar-cart-totals {
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.sidebar-cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sidebar-cart-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.sidebar-shipping-form {
    padding: 20px 24px;
}

.sidebar-checkout-footer {
    background: var(--bg-secondary);
    z-index: 2;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .sidebar-checkout-wrapper {
        width: 100%;
        right: -100%;
    }
}

/* ============================================================
   FUTURISTIC CYBER-LUXE PRODUCT PAGE DESIGN SYSTEM (RESPONSIVE)
   ============================================================ */

/* Container & Background Effects */
.cyber-product-wrapper {
    position: relative;
    padding: 32px 0 60px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(0, 128, 96, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 40%);
}

/* Cyber Breadcrumb */
.cyber-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 28px;
    max-width: 100%;
}

.cyber-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.cyber-breadcrumb .separator {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.cyber-breadcrumb .current {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

/* Product Main Grid Layout — Prevent Grid Expansion */
.product-cyber-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

/* CRITICAL: Enforce Grid Items do NOT expand beyond 100% width */
.product-cyber-grid>* {
    min-width: 0;
    max-width: 100%;
}

/* ── FUTURISTIC MEDIA GALLERY STAGE ── */
.cyber-gallery {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.cyber-media-stage-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 128, 96, 0.08);
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.cyber-media-stage-wrapper:hover {
    border-color: rgba(0, 128, 96, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 128, 96, 0.15);
}

/* Corner Bracket Accents */
.cyber-media-stage-wrapper::before,
.cyber-media-stage-wrapper::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    z-index: 5;
}

.cyber-media-stage-wrapper::before {
    top: 12px;
    left: 12px;
    border-top: 2px solid var(--accent-primary);
    border-left: 2px solid var(--accent-primary);
}

.cyber-media-stage-wrapper::after {
    bottom: 12px;
    right: 12px;
    border-bottom: 2px solid var(--accent-primary);
    border-right: 2px solid var(--accent-primary);
}

/* Main Viewport Container — Capped Height & Aspect Ratio for perfect responsiveness */
.cyber-main-viewport {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 480px;
    max-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(30, 30, 50, 0.8) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
    cursor: zoom-in;
    padding: 16px;
}

.cyber-main-viewport img,
.cyber-main-viewport video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    display: block;
    margin: 0 auto;
}

/* Lens Zoom effect on hover */
.cyber-main-viewport:hover img {
    transform: scale(1.06);
}

/* Cyber Badge Overlays */
.media-type-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 4;
}

.media-type-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
    animation: pulse-glow 2s infinite;
}

.cyber-zoom-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all var(--transition-fast);
    z-index: 4;
}

.cyber-zoom-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 128, 96, 0.5);
}

/* Unified Media Thumbnails Matrix */
.cyber-thumb-matrix {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 2px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
    width: 100%;
    max-width: 100%;
}

.cyber-thumb-matrix::-webkit-scrollbar {
    height: 6px;
}

.cyber-thumb-matrix::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}

.cyber-thumb-item {
    position: relative;
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cyber-thumb-item img,
.cyber-thumb-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.cyber-thumb-item:hover img {
    transform: scale(1.1);
}

.cyber-thumb-item.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 16px rgba(0, 128, 96, 0.4);
}

.cyber-thumb-item.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-primary);
    border-radius: calc(var(--radius-md) - 2px);
    pointer-events: none;
}

/* Video badge indicator on thumbnail */
.video-thumb-play {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: background var(--transition-fast);
}

.cyber-thumb-item:hover .video-thumb-play {
    background: rgba(0, 128, 96, 0.6);
}

/* ── LIGHTBOX MODAL ── */
.cyber-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(5, 5, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cyber-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.lightbox-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 128, 96, 0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-nav:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 128, 96, 0.6);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ── PRODUCT INFO CONSOLE ── */
.cyber-info-console {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.cyber-info-console::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 128, 96, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cyber-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 128, 96, 0.1);
    border: 1px solid rgba(0, 128, 96, 0.25);
    border-radius: var(--radius-full);
    color: var(--accent-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.cyber-product-title {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 18px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    word-break: break-word;
}

/* Price Section */
.cyber-price-panel {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cyber-price-current {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #10b981 0%, #008060 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.cyber-price-original {
    font-size: 1.15rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.cyber-discount-pill {
    margin-left: auto;
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

/* Cyber Stock Progress Meter */
.cyber-stock-meter {
    margin-bottom: 28px;
    padding: 14px 18px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
}

.cyber-stock-meter.out-of-stock {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.stock-meter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.stock-meter-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
}

.cyber-stock-meter.out-of-stock .stock-meter-status {
    color: var(--danger);
}

.stock-meter-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.stock-meter-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #008060);
    border-radius: 10px;
    transition: width 0.6s ease;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Quantity & Add to Cart Controls */
.cyber-actions-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.cyber-qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cyber-qty-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.cyber-qty-box {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cyber-qty-btn {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.cyber-qty-btn:hover {
    background: var(--accent-primary);
    color: white;
}

.cyber-qty-input {
    width: 56px;
    height: 44px;
    background: none;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    outline: none;
}

.cyber-cta-buttons {
    display: flex;
    gap: 14px;
    width: 100%;
}

.btn-cyber-primary {
    flex: 1;
    padding: 16px 28px;
    background: linear-gradient(135deg, #008060 0%, #005640 100%);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 128, 96, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-cyber-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s ease;
}

.btn-cyber-primary:hover::before {
    transform: rotate(45deg) translateY(100%);
}

.btn-cyber-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 128, 96, 0.5);
    border-color: #10b981;
}

/* Cyber Trust Badges Matrix */
.cyber-trust-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.cyber-trust-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 14px 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.cyber-trust-card:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(0, 128, 96, 0.3);
    transform: translateY(-2px);
}

.cyber-trust-card svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.cyber-trust-card span {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.25;
}

/* ── FUTURISTIC TABS & SPECIFICATIONS STATION ── */
.cyber-tabs-station {
    margin-top: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.cyber-tabs-nav {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 32px;
    overflow-x: auto;
    scrollbar-width: none;
}

.cyber-tabs-nav::-webkit-scrollbar {
    display: none;
}

.cyber-tab-btn {
    padding: 14px 28px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.cyber-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    border-radius: 3px 3px 0 0;
    transition: all var(--transition-fast);
}

.cyber-tab-btn:hover {
    color: var(--text-primary);
}

.cyber-tab-btn.active {
    color: var(--accent-primary);
}

.cyber-tab-btn.active::after {
    background: linear-gradient(90deg, #10b981, #008060);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.cyber-tab-content {
    display: none;
    animation: cyberFadeIn 0.35s ease forwards;
}

.cyber-tab-content.active {
    display: block;
}

@keyframes cyberFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specifications Grid */
.cyber-spec-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.cyber-spec-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.cyber-spec-card:hover {
    border-color: rgba(0, 128, 96, 0.3);
}

.cyber-spec-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.cyber-spec-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Reviews Stream */
.cyber-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cyber-review-card {
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
}

.cyber-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.cyber-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cyber-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #008060, #004d39);
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0, 128, 96, 0.4);
}

.cyber-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* ── RESPONSIVE MEDIA BREAKPOINTS ── */
@media (max-width: 1024px) {
    .product-cyber-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cyber-gallery {
        position: relative;
        top: 0;
    }

    .cyber-main-viewport {
        height: 420px;
    }

    .cyber-spec-matrix {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cyber-main-viewport {
        height: 360px;
    }

    .cyber-info-console,
    .cyber-tabs-station {
        padding: 22px 16px;
        border-radius: var(--radius-lg);
    }

    .cyber-product-title {
        font-size: 1.5rem;
    }

    .cyber-price-current {
        font-size: 1.7rem;
    }

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

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .cyber-main-viewport {
        height: 300px;
    }

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

    .cyber-thumb-item {
        width: 66px;
        height: 66px;
    }
}

/* ============================================================
   NAVBAR CART BADGE & AUTH LIGHT/DARK STYLES
   ============================================================ */
.nav-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    padding: 6px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-icon-link:hover {
    color: var(--accent-primary);
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    line-height: 1;
    z-index: 2;
}

.cart-badge-bottom {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.cart-icon-bg {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}