/* Global Variables */
:root {
    --bg-dark: #0f0f0f;
    --bg-card: #181818;
    --bg-input: #222222;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;

    /* Brand Colors */
    --primary: #e6007e;
    /* Fucsia vibrante */
    --primary-hover: #c4006b;
    --accent-red: #ff3333;

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

    /* UI Utilities */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-highlight: 0 0 20px rgba(230, 0, 126, 0.15);

    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
}

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

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9em 2em;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 0, 126, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 126, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: black;
    border-color: white;
}

.btn-block {
    width: 100%;
}

/* Header */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background: rgba(15, 15, 15, 0.85);
    /* Fallback */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s ease, background 0.3s ease;
}

#navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(15, 15, 15, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
}

/* Desktop Menu */
.main-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    color: #ddd;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

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

.badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--bg-dark);
}

/* Search Bar (Simple Expansion) */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field {
    width: 0;
    opacity: 0;
    border: none;
    background: transparent;
    border-bottom: 1px solid var(--text-muted);
    color: white;
    padding: 5px;
    outline: none;
    transition: width 0.3s ease, opacity 0.3s ease;
    /* font-size: 0.9rem; */
}

.search-wrapper:hover .search-field,
.search-field:focus {
    width: 150px;
    opacity: 1;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
}

.mobile-nav-overlay {
    position: fixed;
    top: 70px;
    /* Below header */
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

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

.mobile-link {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1469334031218-e382a71b716b?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center top;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 650px;
    margin-top: 50px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title span {
    color: var(--primary);
    font-style: italic;
    font-weight: 400;
}

.hero-text {
    font-size: 1.25rem;
    color: #ddd;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Trust Bar */
.trust-bar {
    background: #000;
    padding: 2rem 0;
    border-bottom: 1px solid var(--bg-card);
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ccc;
}

.trust-item i {
    color: var(--primary);
    font-size: 1.4rem;
}

.trust-item div {
    display: flex;
    flex-direction: column;
}

.trust-item strong {
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-item small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Shop Section */
.shop-section {
    padding: 5rem 0;
}

.shop-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    /* Sidebar | Grid */
    gap: 3rem;
    align-items: start;
}

/* Shop Toolbar */
.shop-toolbar {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px 10px 35px;
    /* space for icon */
    border-radius: 4px;
    color: white;
    outline: none;
}

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

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

.toolbar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-filter-btn {
    display: none;
    /* Hidden on desktop */
    background: var(--bg-card);
    color: white;
    border: 1px solid #333;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

#sort-select {
    background: var(--bg-card);
    border: 1px solid #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--bg-card);
    /* Optional card bg for sidebar or transparent */
    padding: 0;
}

.filter-group {
    margin-bottom: 2rem;
    border-bottom: 1px solid #222;
    padding-bottom: 1.5rem;
}

.filter-group:last-child {
    border: none;
}

.filter-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.checkbox-list label {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    font-size: 0.95rem;
}

.checkbox-list label:hover {
    color: var(--primary);
}

.checkbox-list input {
    margin-right: 8px;
    accent-color: var(--primary);
}

.size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-option input {
    display: none;
}

.size-option span {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid #333;
    background: #111;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.size-option input:checked+span {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Price range */
input[type=range] {
    width: 100%;
    accent-color: var(--primary);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    /* Whole card click */
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.05);
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
    /* Slow zoom */
}

/* Badge */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    color: #000;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

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

.badge-sale {
    background: var(--accent-red);
    color: white;
}

/* Overlay actions for desktop */
.product-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transition: bottom 0.3s ease;
}

.product-card:hover .product-overlay {
    bottom: 0;
}

/* Product content */
.product-info {
    padding: 1.2rem;
}

.product-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.product-title {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-heading);
}

.product-price {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

/* Lookbook */
.lookbook {
    padding: 5rem 0;
    background: #000;
}

.grid-lookbook {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 1.5rem;
    margin-top: 3rem;
}

.look-item {
    position: relative;
    overflow: hidden;
}

.look-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.look-item:hover img {
    transform: scale(1.05);
    opacity: 0.7;
}

.look-1 {
    grid-row: 1 / span 2;
}

/* Tall item */

.look-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    pointer-events: none;
}

.look-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.look-text p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* About & FAQ (Simplifed for cleaner code) */
.about {
    padding: 6rem 0;
    background: #111;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.accordion-item {
    border-bottom: 1px solid #222;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    color: white;
    text-align: left;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted);
    padding-right: 2rem;
}

.accordion-body p {
    padding-bottom: 1.5rem;
}

/* Footer */
footer {
    background: black;
    padding: 5rem 0 2rem;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    letter-spacing: 1px;
    color: white;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #888;
}

.footer-col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.2rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 900px;
    border-radius: 4px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.modal-details {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-drawer {
    position: absolute;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-overlay.open .cart-drawer {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.cart-item img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

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

.cart-item-title {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

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

.cart-footer {
    padding: 1.5rem;
    background: #111;
    border-top: 1px solid #333;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: white;
    color: black;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 4000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.toast.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .shop-container {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        display: none;
        /* Hidden by default, toggled */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 2500;
        padding: 2rem;
        overflow-y: auto;
    }

    .filters-sidebar.active {
        display: block;
    }

    .filters-sidebar .filter-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 2rem;
    }

    .grid-lookbook {
        display: flex;
        flex-direction: column;
    }

    .look-item {
        height: 300px;
    }

    .modal-content {
        grid-template-columns: 1fr;
        border-radius: 0;
        height: 100%;
        max-width: 100%;
    }

    .modal-img {
        height: 300px;
    }

    .mobile-filter-btn {
        display: inline-block;
    }

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        display: none;
    }

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

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

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

    .cart-drawer {
        width: 100%;
    }
}