:root {
    color-scheme: dark;
    /* Colors */
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-header: rgba(10, 10, 10, 0.95);

    --accent-gold: #D4AF37;
    --accent-gold-hover: #F2C94C;

    --text-primary: #F0F0F0;
    --text-secondary: #A0A0A0;

    --border-subtle: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    /* margin: 0; */
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid var(--accent-gold);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-gold);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-header);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.logo span {
    color: var(--accent-gold);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.mobile-main-nav {
    display: none;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

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

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Categories */
.categories {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--bg-card);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.category-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Catalog Controls */
.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
}

.sort-select {
    padding: 12px 15px;
    background: #1a1a1a;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

select option {
    background-color: #1a1a1a;
    color: var(--text-primary);
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

@media (max-width: 576px) {
    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }
}

/* Products */
.products {
    padding: 80px 0;
    background-color: #0F0F0F;
    /* Slightly lighter than bg-dark */
}

.product-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    gap: 20px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 10px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

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

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed to contain to show full items */
    transition: transform 0.6s ease;
    padding: 20px;
}

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

.product-info {
    padding: 25px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.product-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.old-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.product-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart-btn {
    background-color: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border-color: var(--accent-gold);
}

/* Footer */
footer {
    background-color: #050505;
    padding: 80px 0 20px;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: block;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-heading {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

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

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

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--accent-gold);
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background-color: var(--bg-card);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-subtle);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
}

.close-cart {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: var(--accent-gold);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #000;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

.qty-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.cart-item-qty {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.remove-item {
    margin-left: auto;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 0.9rem;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-subtle);
    background-color: var(--bg-header);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    text-align: center;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 50px;
}

@media (max-width: 500px) {
    .cart-sidebar {
        width: 100%;
    }
}

/* Filter Sidebar (Menu) */
.filter-toggle-btn {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.filter-toggle-btn:hover {
    color: var(--accent-gold);
}

.filter-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: var(--bg-card);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-subtle);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.filter-sidebar.active {
    transform: translateX(0);
}

.filter-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
}

.close-filter {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.close-filter:hover {
    color: var(--accent-gold);
}

.filter-menu-list {
    padding: 20px;
}

.filter-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.filter-item:hover,
.filter-item.active {
    color: var(--accent-gold);
    padding-left: 10px;
}

/* Sale Badge */
.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4d4d;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 2px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
    /* Separate from other icons */
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.lang-btn {
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

.lang-btn.active {
    color: var(--accent-gold);
    font-weight: 700;
}

.lang-divider {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Language Switching Animation */
/* Translatable elements transition */
[data-i18n],
.product-grid,
.footer-text,
.hero-title,
.hero-text,
.btn,
.section-title,
.nav-links a {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

/* State when switching */
body.lang-switching [data-i18n],
body.lang-switching .product-grid {
    opacity: 0;
    transform: translateY(5px);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s;
    font-family: var(--font-body);
}

.form-input:focus {
    border-color: var(--accent-gold);
}

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

/* Order History Enhancements */
.order-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-left: 10px;
}

.order-status.processing {
    background: rgba(255, 235, 59, 0.2);
    color: #fff176;
}

.order-status.shipped {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
}

.order-status.delivered {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.order-status.canceled {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #000;
}

.order-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 15px;
}

.order-item-name {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.order-item-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.repeat-order-btn {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 5px 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.repeat-order-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

/* Support Widget */
.support-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.support-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-btn:hover {
    transform: scale(1.1);
}

.support-btn.hidden {
    transform: scale(0);
    opacity: 0;
}

/* Scroll Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 90px;
    /* Above support-btn (20px + 60px + 10px margin) */
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    z-index: 1000;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-top-btn:hover {
    transform: scale(1.1);
}

.support-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.3s ease;
}

.support-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.support-header {
    background: var(--bg-header);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

.support-header h4 {
    margin: 0;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

.support-body {
    padding: 20px;
}

.support-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.support-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.support-submit {
    width: 100%;
    padding: 10px;
    background: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.support-submit:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Media Queries (Mobile Responsiveness)
   ========================================================================== */

/* Tablets and small desktops */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }

    .nav-menu {
        display: none;
        /* Hide main nav on mobile */
    }

    .mobile-main-nav {
        display: block !important;
    }

    .filter-toggle-btn {
        display: block !important;
        /* Always show burger icon */
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .logo {
        font-size: 1.4rem;
    }

    .lang-switcher {
        font-size: 0.8rem;
        gap: 5px;
        margin-right: 10px;
    }

    .hero {
        padding-top: 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .hero-text {
        font-size: 1rem;
    }

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

    .filter-sidebar,
    .cart-sidebar {
        width: 100%;
        /* Full width on small screens */
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .header-actions {
        gap: 12px;
    }

    .lang-switcher {
        display: none;
        /* Optionally hide on very small screens or move to menu */
    }

    /* If we hide lang switcher, let's make sure it's in the sidebar (we will add it there in HTML) */

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

/* Utility to show lang switcher back if hidden */
.mobile-lang-visible {
    display: flex !important;
    justify-content: center;
    padding: 20px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

/* Checkout Page */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}

.checkout-form-container {
    background: var(--bg-card);
    padding: 30px;
    border: 1px solid var(--border-subtle);
}

.order-summary {
    background: var(--bg-card);
    padding: 30px;
    border: 1px solid var(--border-subtle);
    position: sticky;
    top: 100px;
}

@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
        order: -1;
    }
}

/* Extra Mobile Spacing Fixes */
@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--bg-card);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.product-modal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

.product-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    overflow-y: auto;
}

.product-modal-left {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.product-modal-left img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.product-modal-right {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

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

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
}

.tab-content {
    display: none;
}

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

.specs-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.specs-list li span:first-child {
    color: var(--text-secondary);
}

.specs-list li span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    z-index: 3;
}

.star-rating i.active {
    color: var(--accent-gold);
}

.review-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.review-stars {
    color: var(--accent-gold);
    font-size: 0.8rem;
}

.review-user {
    font-weight: 600;
    font-size: 0.9rem;
}

.review-comment {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 5px;
}

/* Star Badge on Cards */
.star-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1a1a1a 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.testimonial-quote {
    color: var(--accent-gold);
    font-size: 2rem;
    position: absolute;
    top: 20px;
    right: 30px;
    opacity: 0.2;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.testimonial-info h4 {
    margin: 0;
    font-size: 0.95rem;
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Recommended Products */
.recommended-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.rec-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.rec-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.rec-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.rec-item-title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Added for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rec-item-price {
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: bold;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(212, 175, 55, 0.05) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
}

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

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

.product-card.is-loading .product-image {
    background: var(--bg-card);
    aspect-ratio: 1/1;
}

/* Scroll to Top */
.scroll-top-btn {
    position: fixed;
    /* bottom: 30px; */
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    background: #fff;
}

/* Cart Quantity Refinement */
.qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 20px;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.qty-btn:hover {
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .product-modal {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translate(0, 0) scale(1);
    }

    .product-modal.active {
        transform: translate(0, 0) scale(1);
    }

    .product-modal-content {
        grid-template-columns: 1fr;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .product-modal-right {
        padding: 20px;
    }

    .close-modal {
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.5);
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: white;
    }

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

@media (max-width: 576px) {
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}