/* Reset & Base Styles */
:root {
    --primary: #0a0a0a;
    --secondary: #141414;
    --accent: #ff3366;
    --accent-light: #ff6699;
    --text: #ffffff;
    --text-muted: #b0b0b0;
    --border: #2a2a2a;
    --success: #00cc88;
    --warning: #ffaa00;
    --danger: #ff4444;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --radius-sm: 6px;
    --transition: all 0.3s ease;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Urbanist', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 2rem;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loading-progress {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(200%); }
}

/* Top Bar */
.top-bar {
    background: var(--secondary);
    padding: 10px 0;
    font-size: 0.875rem;
    position: relative;
    z-index: 10;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: var(--transition);
}

.top-bar-links a:hover {
    color: var(--accent);
}

/* Header */
.header {
    background: var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text);
}

.logo-accent {
    color: var(--accent);
}

/* Navigation */
.nav-desktop {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--primary);
    color: var(--accent);
}

/* Search */
.search-container {
    position: relative;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
}

.search-box {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    gap: 10px;
    z-index: 101;
}

.search-box.active {
    display: flex;
}

.search-box input {
    background: none;
    border: none;
    color: var(--text);
    width: 200px;
    padding: 8px;
    outline: none;
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    position: relative;
    padding: 8px;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    z-index: 102;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: var(--secondary);
    z-index: 1001;
    transition: left 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-nav-link.active {
    background: var(--primary);
    color: var(--accent);
}

.mobile-nav-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: var(--text);
    padding: 12px;
    cursor: pointer;
    text-align: left;
}

.mobile-nav-dropdown-content {
    padding-left: 20px;
    display: none;
}

.mobile-nav-dropdown-content.active {
    display: block;
}

.mobile-nav-dropdown-content a {
    display: block;
    padding: 8px 0;
    color: var(--text-muted);
    text-decoration: none;
}

.mobile-nav-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mobile-social a {
    color: var(--text);
    font-size: 1.25rem;
}

/* Hero Section */
.hero {
    height: 600px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content {
    flex: 1;
    padding: 0 60px;
    z-index: 2;
}

.slide-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--accent);
}

.slide-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.slide-image {
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 0 100px;
}

.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 3;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    border: 2px solid var(--border);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-block {
    width: 100%;
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Brands */
.brands-section {
    background: var(--secondary);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.brand-card {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border);
}

.brand-logo {
    margin-bottom: 20px;
}

.brand-icon {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
}

/* Products */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.products-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--secondary);
    border: 2px solid var(--border);
    color: var(--text);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--secondary);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 20px;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.price-new {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
}

.products-footer {
    text-align: center;
    margin-top: 50px;
}

/* Featured */
.featured-section {
    background: var(--secondary);
}

.featured-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.featured-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.featured-content {
    padding: 20px;
}

.featured-category {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.featured-description {
    color: var(--text-muted);
    margin: 20px 0;
}

.featured-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.price-discount {
    background: var(--success);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.featured-sizes {
    margin: 30px 0;
}

.sizes {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.size-btn {
    background: var(--primary);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
}

.size-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.featured-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.featured-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.detail {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.detail i {
    color: var(--accent);
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: var(--secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
}

/* Newsletter */
.newsletter-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 30px auto;
}

.newsletter-form input {
    flex: 1;
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    color: var(--text);
}

.newsletter-note {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 15px;
}

/* Footer */
.footer {
    background: var(--secondary);
    padding: 60px 0 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: var(--text);
    font-size: 1.25rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Sidebars */
.cart-sidebar,
.wishlist-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--secondary);
    z-index: 1002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active,
.wishlist-sidebar.active {
    right: 0;
}

.cart-header,
.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-close,
.wishlist-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-body,
.wishlist-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty,
.wishlist-empty {
    text-align: center;
    padding: 40px 20px;
}

.cart-empty i,
.wishlist-empty i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cart-overlay,
.wishlist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}

.cart-overlay.active,
.wishlist-overlay.active {
    display: block;
}

/* Modals */
.quickview-modal,
.user-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1003;
    display: none;
    align-items: center;
    justify-content: center;
}

.quickview-modal.active,
.user-modal.active {
    display: flex;
}

.quickview-content {
    background: var(--secondary);
    border-radius: var(--radius);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.quickview-overlay,
.user-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.user-content {
    background: var(--secondary);
    border-radius: var(--radius);
    width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.user-body {
    padding: 20px;
}

.user-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.back-to-top.visible {
    display: flex;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.toast {
    background: var(--secondary);
    border-left: 4px solid var(--accent);
    color: var(--text);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
}

/* Main Content */
main {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Ensure all content is visible */
section, .container, .hero, .brands-section, .products-section, .featured-section, .about-section, .newsletter-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix for any hidden content */
.slide {
    position: absolute;
}

.slide.active {
    position: relative;
}