/* URBAN STYLE CO. DESIGN SYSTEM */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-primary: #fcfbf7;
    --bg-secondary: #f4f2eb;
    --bg-card: #ffffff;
    --primary: #111111; /* Sleek Onyx Black */
    --primary-hover: #333333;
    --accent: #b45309; /* Luxury Amber Gold */
    --accent-hover: #92400e;
    --text-main: #1a1a1a;
    --text-muted: #78716c;
    --border: rgba(17, 17, 17, 0.08);
    --font-title: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: rgba(252, 251, 247, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    text-transform: lowercase;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

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

.cart-icon-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    position: relative;
    padding: 5px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content h1 span {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.btn-shop {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: 1px solid var(--primary);
}

.btn-shop:hover {
    background: transparent;
    color: var(--primary);
}

.hero-image-box {
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 380px;
    height: 480px;
    object-fit: cover;
    border: 1px solid var(--border);
    box-shadow: 20px 20px 0 var(--bg-primary), 20px 20px 1px var(--border);
}

/* Catalog / Collection Section */
.collection-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.clothes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.clothing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.clothing-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.clothing-img-box {
    height: 320px;
    background: #eaeaea;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.clothing-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.clothing-card:hover .clothing-img {
    transform: scale(1.05);
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.clothing-card:hover .quick-view-overlay {
    opacity: 1;
}

.btn-quick-view {
    background: #fff;
    color: var(--primary);
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.btn-quick-view:hover {
    background: var(--primary);
    color: #fff;
}

.clothing-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.clothing-title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 6px;
    font-weight: 600;
}

.clothing-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.clothing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.clothing-price {
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-add-bag {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-bag:hover {
    background: var(--primary);
    color: #fff;
}

/* Slide-out Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 35px rgba(0,0,0,0.08);
    z-index: 150;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

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

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

.cart-drawer-header h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-close-drawer {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

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

.cart-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.cart-item-img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--border);
}

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

.cart-item-title {
    font-family: var(--font-title);
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.cart-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: underline;
    cursor: pointer;
}

.cart-item-remove:hover {
    color: var(--accent);
}

.cart-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}

.cart-drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.btn-checkout {
    display: block;
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: var(--accent);
}

/* Dynamic product detail popup modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    max-width: 750px;
    width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
}

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

.modal-img-box {
    height: 480px;
    background: #f0f0f0;
}

.modal-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-box {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.modal-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary);
    line-height: 1.2;
}

.modal-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 15px;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Selectors size / color */
.selector-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.size-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.size-btn {
    border: 1px solid var(--border);
    background: transparent;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.size-btn.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.color-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
}

.color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.color-dot.selected {
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--accent);
}

.btn-add-to-bag-modal {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-to-bag-modal:hover {
    background: var(--accent);
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image-box {
        order: -1;
        margin-bottom: 30px;
    }
    .modal-content {
        grid-template-columns: 1fr;
        max-width: 90%;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-img-box {
        height: 250px;
    }
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 10px;
    }
}
