:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --accent-color: #ff3333;
    --border-color: #333333;
    --card-bg: #111111;
    --hover-bg: #1a1a1a;
    --nav-bg: rgba(0, 0, 0, 0.95);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

/* Light Mode */
[data-theme="light"] {
    --bg-color: #f5f5f5;
    --text-color: #1a1a1a;
    --text-muted: #666666;
    --accent-color: #e02020;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --hover-bg: #f0f0f0;
    --nav-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .announcement-bar {
    /* Background and color managed via inline styles from admin settings */
}

[data-theme="light"] .dropdown-menu {
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

[data-theme="light"] .footer {
    background-color: #ffffff;
    color: #1a1a1a;
    border-top: 1px solid var(--border-color);
}

[data-theme="light"] .footer a {
    color: #555555;
}

[data-theme="light"] .footer a:hover {
    color: #1a1a1a;
}

[data-theme="light"] .footer .footer-heading {
    color: #1a1a1a;
}

[data-theme="light"] .footer .footer-text {
    color: #666666;
}

[data-theme="light"] .footer .social-link {
    background: #f0f0f0;
    color: #1a1a1a;
}

[data-theme="light"] .footer .social-link:hover {
    background: #1a1a1a;
    color: #ffffff;
}

[data-theme="light"] .footer .newsletter-input {
    color: #1a1a1a;
}

[data-theme="light"] .footer .newsletter-btn {
    color: #1a1a1a;
}

[data-theme="light"] .footer .newsletter-input-wrap {
    border-bottom-color: #cccccc;
}

[data-theme="light"] .footer-bottom {
    border-color: #e0e0e0;
    color: #888888;
}

[data-theme="light"] .flash-message {
    color: #1a1a1a;
}

/* Homepage section classes */
.categories-banner {
    background: #000;
}

.why-choose-section {
    background: #111;
}

[data-theme="light"] .categories-banner {
    background: var(--card-bg);
}

[data-theme="light"] .why-choose-section {
    background: var(--hover-bg);
}

[data-theme="light"] .product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

[data-theme="light"] .product-image-wrap {
    background: transparent;
}

[data-theme="light"] .btn-outline {
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .btn-outline:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

[data-theme="light"] .btn {
    background: #1a1a1a;
    color: #ffffff;
}

[data-theme="light"] .btn:hover {
    background: #333333;
}

[data-theme="light"] .search-overlay {
    background: rgba(255,255,255,0.98);
}

[data-theme="light"] .back-to-top {
    background: #1a1a1a;
    color: #ffffff;
}

/* Theme toggle button */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--accent-color);
    transform: rotate(20deg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img, svg {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Announcement Bar */
.announcement-bar {
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: center;
}
.announcement-bar .highlight {
    color: var(--accent-color);
}
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    will-change: transform;
}
.marquee-content p {
    display: inline-block;
    padding-right: 50px;
    margin: 0;
    line-height: 1.5;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .announcement-bar {
        font-size: 13px;
        padding: 10px 0;
        min-height: 40px;
    }
    .marquee-content {
        animation: marquee 20s linear infinite;
    }
    .marquee-content p {
        padding-right: 30px;
        line-height: 1.4;
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-img {
    max-height: 40px;
    max-width: 180px;
    object-fit: contain;
}

/* Dark theme (default): show dark logo, hide light logo */
.logo-img-light {
    display: none;
}
.logo-img-dark {
    display: block;
}

/* Light theme: show light logo, hide dark logo */
[data-theme="light"] .logo-img-dark {
    display: none;
}
[data-theme="light"] .logo-img-light {
    display: block;
}

/* Nav */
.main-nav .nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    min-width: 200px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: var(--hover-bg);
    color: var(--accent-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--text-muted);
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-color);
    color: #fff;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Mobile Menu Button - hidden on desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 5px;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-form {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-color);
    font-size: 32px;
    padding: 15px 0;
    font-family: var(--font-heading);
}

.search-input:focus {
    outline: none;
    border-color: var(--text-color);
}

.search-submit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
}

/* Flash Messages */
.flash-message {
    padding: 15px 0;
    text-align: center;
    position: relative;
}
.flash-success { background: #1a472a; color: #4ae387; }
.flash-error { background: #4a1a1a; color: #ff6b6b; }
.flash-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #111;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    color: #e0e0e0;
}

/* Light mode hero - needs dark overlay to keep text readable */
[data-theme="light"] .hero {
    background: #1a1a1a;
}

[data-theme="light"] .hero .hero-title,
[data-theme="light"] .hero .hero-subtitle {
    color: #ffffff;
}

[data-theme="light"] .hero .hero-subtitle {
    color: #cccccc;
}

[data-theme="light"] .hero .btn {
    background: #ffffff;
    color: #1a1a1a;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--text-color);
    color: var(--bg-color);
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: 2px solid var(--text-color);
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--text-color);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-outline:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Section Common */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    text-transform: uppercase;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #dc2626;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}

.product-image-wrap {
    display: block;
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: transparent;
    overflow: hidden;
}

/* Horizontal Scroll */
.horizontal-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.horizontal-scroll-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    padding-bottom: 20px;
}

.horizontal-scroll-track::-webkit-scrollbar {
    display: none;
}

.horizontal-product-card {
    flex: 0 0 280px; /* Fixed width */
    scroll-snap-align: start;
    position: relative;
    transition: var(--transition);
}

.horizontal-product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
}

.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 14px;
    margin-right: 10px;
    font-weight: 400;
}

/* ═══ PRODUCT DETAIL PAGE (PDP) ═══ */
.pdp-container {
    padding: 40px 20px;
}

.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.pdp-main-image {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pdp-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-thumb {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    padding: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumb.active-thumb {
    border-color: var(--accent-color);
}

.gallery-thumb img {
    width: 100%;
    height: 60px;
    object-fit: contain;
}

.pdp-brand {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.pdp-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.pdp-price {
    font-family: var(--font-heading);
    font-size: 26px;
    margin-bottom: 30px;
}

.pdp-price-sale {
    color: var(--accent-color);
    margin-right: 12px;
}

.pdp-price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 18px;
}

.pdp-sizes {
    margin-bottom: 25px;
}

.pdp-sizes-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pdp-sizes-header span {
    font-weight: 600;
    font-size: 15px;
}

.pdp-sizes-header a {
    color: var(--text-muted);
    text-decoration: underline;
    font-size: 13px;
}

.pdp-sizes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-btn {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
}

.size-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.size-btn.size-selected {
    background: var(--text-color);
    border-color: var(--text-color);
    color: var(--bg-color);
}

.pdp-actions {
    margin-bottom: 35px;
}

.pdp-cart-form {
    display: flex;
    gap: 12px;
}

.pdp-qty {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.pdp-qty button {
    width: 40px;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 16px;
}

.pdp-qty input {
    width: 40px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-color);
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
}

.pdp-qty input::-webkit-inner-spin-button,
.pdp-qty input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pdp-add-btn {
    flex: 1;
    padding: 14px 30px;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.pdp-add-btn:hover {
    opacity: 0.85;
}

.pdp-description h3 {
    font-size: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.pdp-desc-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 14px;
}

.pdp-features {
    margin-top: 20px;
    color: var(--text-muted);
    list-style: none;
    padding: 0;
}

.pdp-features li {
    margin-bottom: 10px;
    font-size: 14px;
}

.pdp-features li i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* ═══ CATEGORY GRID ═══ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ═══ CHECKOUT PAGE ═══ */
.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.checkout-heading {
    font-size: 18px;
    margin-bottom: 20px;
}

.checkout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.checkout-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 30px;
}

.checkout-field {
    margin-bottom: 15px;
}

.checkout-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.checkout-field input,
.checkout-field textarea {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
}

.checkout-field textarea {
    min-height: 80px;
    resize: vertical;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
    outline: none;
    border-color: var(--text-color);
}

.checkout-payment-options {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.checkout-payment-option {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.checkout-payment-option:last-child {
    border-bottom: none;
}

.checkout-payment-option.selected,
.checkout-payment-option:hover {
    background: var(--hover-bg);
}

.checkout-payment-option input[type="radio"] {
    margin-right: 15px;
    flex-shrink: 0;
}

.payment-title {
    font-weight: 600;
    font-size: 14px;
}

.payment-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.checkout-login-notice {
    background: rgba(255,193,7,0.1);
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-login-notice i {
    color: #ffc107;
    font-size: 20px;
    flex-shrink: 0;
}

.checkout-login-notice a {
    color: var(--accent-color);
    font-weight: 600;
}

.checkout-submit-btn {
    width: 100%;
    font-size: 16px;
    padding: 16px;
}

/* Order Summary */
.checkout-summary {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.checkout-items {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.checkout-item:last-child {
    margin-bottom: 0;
}

.checkout-item-left {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.checkout-item-img {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.checkout-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-item-qty {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--text-color);
    color: var(--bg-color);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
}

.checkout-item-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.checkout-item-size {
    font-size: 12px;
    color: var(--text-muted);
}

.checkout-item-price {
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    margin-left: 10px;
}

.checkout-totals {
    margin-bottom: 15px;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.checkout-grand-total {
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
}

/* ═══ CART PAGE ═══ */
.cart-empty {
    text-align: center;
    padding: 50px 0;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cart-empty i {
    font-size: 60px;
    color: var(--border-color);
    margin-bottom: 20px;
    display: block;
}

.cart-empty h3 {
    margin-bottom: 20px;
}

.cart-page-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.cart-table-header {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
}

.cart-th-product { flex: 2; }
.cart-th-qty { width: 100px; text-align: center; }
.cart-th-total { width: 120px; text-align: right; }
.cart-th-action { width: 40px; text-align: right; }

.cart-item-row {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-product {
    flex: 2;
    display: flex;
    gap: 15px;
    align-items: center;
    min-width: 0;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-details {
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.cart-item-size {
    color: var(--text-muted);
    font-size: 14px;
}

.cart-item-unit-price {
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 5px;
}

.cart-item-qty {
    width: 100px;
    text-align: center;
}

.cart-item-qty input {
    width: 60px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
}

.cart-item-total {
    width: 120px;
    text-align: right;
    font-weight: 600;
}

.cart-item-remove {
    width: 40px;
    text-align: right;
}

.cart-item-remove a {
    color: var(--text-muted);
    transition: var(--transition);
}

.cart-item-remove a:hover {
    color: var(--accent-color);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.cart-action-btn {
    padding: 12px 25px;
    font-size: 14px;
}

.cart-checkout-btn {
    width: 100%;
    text-align: center;
    display: block;
    margin-top: 25px;
}

.cart-payment-icons {
    text-align: center;
    margin-top: 20px;
}

.cart-payment-icons img {
    max-width: 100%;
    opacity: 0.7;
}

/* ═══ BRAND GRID ═══ */
.brand-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.brand-grid-item {
    text-align: center;
    width: 120px;
    display: block;
    text-decoration: none;
}

.brand-circle {
    width: 110px;
    height: 110px;
    aspect-ratio: 1;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 18px;
}

.brand-grid-item:hover .brand-circle {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}

.brand-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.brand-fallback-text {
    color: var(--text-color);
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
}

.brand-name {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
}

/* ═══ SIDE CART ═══ */
.side-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--card-bg);
    z-index: 4001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
}

.side-cart.active {
    right: 0;
}

.side-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.side-cart-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.side-cart-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 22px;
    cursor: pointer;
}

.side-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
}

.side-cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

.side-cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.side-cart-item-img {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.side-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.side-cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.side-cart-item-size {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.side-cart-item-price {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.side-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.side-cart-item-qty button {
    width: 26px;
    height: 26px;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-cart-item-qty span {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.side-cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    align-self: flex-start;
    padding: 5px;
}

.side-cart-item-remove:hover {
    color: var(--accent-color);
}

.side-cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.side-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 15px;
}

.side-cart-checkout {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    text-decoration: none;
}

.side-cart-checkout:hover {
    opacity: 0.85;
}

.side-cart-viewcart {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 10px;
    transition: var(--transition);
    text-decoration: none;
}

.side-cart-viewcart:hover {
    border-color: var(--text-color);
}

/* Footer */
.footer {
    background: #000;
    padding: 80px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-heading {
    font-size: 18px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--text-color);
    padding-left: 5px;
}

.newsletter-input-wrap {
    position: relative;
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 10px 0;
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0 10px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Mobile Drawer Menu */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    z-index: 3000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    padding: 20px;
}

.mobile-drawer.active {
    left: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.mobile-drawer-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
}

.mobile-drawer-nav {
    list-style: none;
}

.mobile-drawer-nav li {
    margin-bottom: 15px;
}

.mobile-drawer-nav a {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
    
    .main-nav {
        display: none;
    }
    
    /* Show hamburger on mobile */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 3-column layout: hamburger | logo | icons */
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        height: 60px;
    }
    
    /* Hamburger sits in first column, left-aligned */
    .mobile-menu-btn {
        justify-self: start;
    }
    
    /* Logo sits in center column */
    .logo {
        justify-self: center;
        gap: 0;
    }
    
    /* Hide logo text on mobile, show only icon */
    .logo .logo-text {
        display: none;
    }
    
    .logo .logo-icon svg {
        width: 32px;
        height: 32px;
    }
    
    /* Actions sit in last column, right-aligned */
    .header-actions {
        justify-self: end;
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .horizontal-product-card {
        flex: 0 0 160px; /* Reduced width for smaller mobile thumbnails */
    }
    
    .hero {
        height: auto;
        min-height: unset;
        aspect-ratio: 16/9;
        background: #000;
        padding: 20px 10px;
    }
    
    .hero-video {
        object-fit: cover;
        min-width: 0;
        min-height: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .hero-content .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    /* 2-column grid for products */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    /* Horizontal scroll for brand grid on mobile */
    .brand-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 10px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        /* Hide scrollbar */
        scrollbar-width: none;
    }
    
    .brand-grid::-webkit-scrollbar {
        display: none;
    }
    
    .brand-grid-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
        width: 100px; /* Slightly larger width for mobile */
    }
    
    .brand-circle {
        width: 100px;
        height: 100px;
        padding: 12px; /* Less padding means the logo scales up inside the circle */
    }
    
    .brand-fallback-text {
        font-size: 13px;
    }
    
    .brand-name {
        font-size: 13px; /* Increased font size for legibility */
    }

    /* 2-column category grid on mobile — both visible, no scroll */
    .category-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .category-card {
        height: 220px !important;
        border-radius: 6px !important;
    }

    .category-card h3 {
        font-size: 18px !important;
        margin-bottom: 6px !important;
    }

    .category-card .btn-outline {
        padding: 6px 14px !important;
        font-size: 11px !important;
    }

    .category-card > div:last-child {
        bottom: 15px !important;
        left: 12px !important;
    }

    /* ── PDP mobile layout ── */
    .pdp-container {
        padding: 20px 15px;
    }

    .pdp-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .pdp-main-image {
        padding: 20px;
        margin-bottom: 12px;
    }

    .pdp-thumbnails {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .gallery-thumb {
        padding: 5px;
    }

    .gallery-thumb img {
        height: 45px;
    }

    .pdp-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .pdp-price {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .pdp-price-old {
        font-size: 16px;
    }

    .pdp-cart-form {
        flex-direction: column;
        gap: 10px;
    }

    .pdp-qty {
        width: 130px;
    }

    .pdp-add-btn {
        width: 100%;
        padding: 16px;
        font-size: 15px;
    }

    /* ── Checkout mobile layout ── */
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .checkout-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .checkout-row-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .checkout-field input,
    .checkout-field textarea {
        padding: 14px 12px;
        font-size: 16px; /* prevents iOS zoom */
    }

    .checkout-heading {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .checkout-payment-option {
        padding: 14px;
    }

    .checkout-summary {
        position: static;
        padding: 20px;
    }

    .checkout-item-name {
        max-width: 140px;
        font-size: 12px;
    }

    .checkout-grand-total {
        font-size: 18px;
    }

    .checkout-submit-btn {
        font-size: 15px;
        padding: 16px;
    }

    /* ── Cart mobile layout ── */
    .cart-page-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cart-table-header {
        display: none;
    }

    .cart-item-row {
        flex-wrap: wrap;
        gap: 12px;
        padding: 18px 0;
    }

    .cart-item-product {
        flex: 1 1 100%;
        gap: 12px;
    }

    .cart-item-img {
        width: 65px;
        height: 65px;
        border-radius: 6px;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .cart-item-qty {
        width: auto;
        text-align: left;
    }

    .cart-item-qty input {
        width: 55px;
        padding: 8px 4px;
        font-size: 16px; /* prevent iOS zoom */
    }

    .cart-item-total {
        width: auto;
        flex: 1;
        text-align: right;
        font-size: 15px;
    }

    .cart-item-remove {
        width: auto;
    }

    .cart-actions {
        flex-direction: column;
    }

    .cart-action-btn {
        width: 100%;
        text-align: center;
        padding: 14px;
    }
}
