/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Product Page */
.product-layout {
    display: flex;
    gap: 50px;
}
.product-gallery {
    flex: 1;
}
.product-info {
    flex: 1;
}
.thumbnail-list {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.thumbnail-list .thumb {
    flex: 1;
    border-radius: var(--btn-radius);
    cursor: pointer;
    border: 2px solid transparent;
}
.thumbnail-list .thumb.active {
    border-color: var(--primary-color);
}
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-dark);
    opacity: 0.7;
    margin-bottom: 15px;
}
.product-title {
    font-size: 2.5rem;
    margin-bottom: 5px;
}
.sku {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 20px;
}
.price-block {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.short-desc {
    margin-bottom: 30px;
    opacity: 0.8;
}
.variant-group {
    margin-bottom: 20px;
}
.variant-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}
.variant-btn {
    padding: 8px 15px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: var(--btn-radius);
    cursor: pointer;
    margin-right: 5px;
    color: var(--text-dark);
}
.mode-men .variant-btn {
    border: 1px solid rgba(255,255,255,0.2);
}
.variant-btn.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
}
.color-dot {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    cursor: pointer;
    border: 2px solid transparent;
}
.color-dot.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}
.actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}
.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: var(--btn-radius);
    overflow: hidden;
}
.mode-men .qty-selector {
    border: 1px solid rgba(255,255,255,0.2);
}
.qty-selector button {
    background: transparent;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-dark);
}
.qty-selector input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-weight: 600;
}
.add-to-cart-btn {
    flex: 1;
    padding: 15px;
    font-size: 1.1rem;
}
.wishlist-btn {
    padding: 14px 20px;
    border: 1px solid rgba(0,0,0,0.2);
    background: transparent;
    color: var(--text-dark);
}
.mode-men .wishlist-btn {
    border: 1px solid rgba(255,255,255,0.2);
}
.delivery-info {
    padding: 20px;
    background-color: rgba(0,0,0,0.02);
    border-radius: var(--btn-radius);
    margin-bottom: 30px;
}
.mode-men .delivery-info {
    background-color: rgba(255,255,255,0.02);
}
.delivery-info p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.delivery-info p:last-child {
    margin-bottom: 0;
}
.product-tabs {
    margin-top: 40px;
}
.tab-headers {
    display: flex;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.mode-men .tab-headers {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-dark);
    opacity: 0.6;
    position: relative;
}
.tab-btn.active {
    opacity: 1;
    color: var(--primary-color);
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}
.tab-content {
    display: none;
    font-size: 0.95rem;
    opacity: 0.8;
}
.tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .product-layout {
        flex-direction: column;
    }
    .category-layout {
        flex-direction: column;
    }
    .filters-sidebar {
        width: 100% !important;
    }
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
}
.mode-men .top-bar {
    color: var(--text-light);
}

/* Header */
.site-header {
    background-color: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.theme-switcher {
    display: flex;
    gap: 10px;
}
.theme-switcher a {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: var(--btn-radius);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.theme-switcher a.active {
    background-color: var(--primary-color);
    color: #fff;
}
.theme-switcher a:not(.active):hover {
    background-color: var(--primary-color);
    color: #fff;
    opacity: 0.8;
}

.logo-img {
    height: 60px !important;
    width: auto !important;
    max-height: 60px !important;
    display: block;
    object-fit: contain;
}

/* Right side wrapper: theme switcher + icons */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}
.header-actions a {
    font-size: 1.2rem;
    position: relative;
}
.header-actions .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Main Nav */
.main-nav {
    border-top: 1px solid rgba(0,0,0,0.05);
}
.mode-men .main-nav {
    border-top: 1px solid rgba(255,255,255,0.05);
}
.nav-list {
    display: flex;
    justify-content: center;
    gap: 30px;
}
.nav-list a {
    display: block;
    padding: 15px 0;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.nav-list a:hover {
    color: var(--primary-color);
}
.nav-list a.highlight {
    color: var(--primary-color);
}
.nav-list a.sale {
    color: #e74c3c;
    font-weight: 700;
}

/* Hero Section */
.hero-banner {
    height: 70vh;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.hero-content {
    max-width: 600px;
    z-index: 2;
}
.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.cat-card {
    text-align: center;
    display: block;
    border-radius: var(--btn-radius);
    overflow: hidden;
    background-color: var(--bg-card);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.cat-card:hover {
    transform: translateY(-5px);
}
.cat-img {
    height: 250px;
    width: 100%;
}
.cat-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background-color: var(--bg-card);
    padding: 60px 0 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-col {
    flex: 1;
    min-width: 200px;
}
.footer-col h2, .footer-col h3 {
    margin-bottom: 20px;
}
.footer-col.about p {
    margin-bottom: 20px;
    opacity: 0.8;
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.footer-col.links ul li {
    margin-bottom: 10px;
}
.footer-col.links a:hover {
    color: var(--primary-color);
}
.newsletter-form {
    display: flex;
    margin-top: 15px;
}
.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--btn-radius) 0 0 var(--btn-radius);
    outline: none;
    background-color: var(--bg-main);
    color: var(--text-dark);
}
.newsletter-form button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 var(--btn-radius) var(--btn-radius) 0;
    cursor: pointer;
    font-weight: 600;
}

.footer-bottom {
    background-color: var(--bg-main);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Mobile Nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    justify-content: space-around;
    padding: 10px 0;
}
.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.7;
    position: relative;
}
.mobile-bottom-nav .nav-item.active {
    color: var(--primary-color);
    opacity: 1;
}
.mobile-bottom-nav .nav-item i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 0;
    }
    .logo-img {
        height: 45px;
    }
    .header-right {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: flex-end;
    }
    .theme-switcher {
        gap: 6px;
    }
    .theme-switcher a {
        font-size: 0.72rem;
        padding: 5px 10px;
    }
    .main-nav {
        display: none;
    }
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 60px;
    }
}
