/* =========================================
   VELVET BOUTIQUE - ESTILO RETAIL
   ========================================= */

:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #f9f9f9;
    --border: #e5e5e5;
    --accent: #d4af37;
    /* Dorado sutil */
}

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

body {
    font-family: 'Jost', sans-serif;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TOP BAR --- */
.top-bar {
    background: var(--black);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 500;
}

/* --- NAVBAR --- */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
}

.cart-trigger {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--black);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- HERO --- */
.hero {
    height: 75vh;
    background: url('https://images.unsplash.com/photo-1469334031218-e382a71b716b?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.collection-tag {
    letter-spacing: 4px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 2px;
}

.btn-shop {
    background: white;
    color: var(--black);
    padding: 15px 40px;
    font-weight: 500;
    letter-spacing: 2px;
    transition: 0.3s;
}

.btn-shop:hover {
    background: var(--black);
    color: white;
}

/* --- CATEGORÍAS --- */
.categories {
    padding: 40px 0;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cat-item {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
}

.cat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.cat-item:hover::after {
    background: rgba(0, 0, 0, 0.4);
}

.cat-item h3 {
    position: relative;
    z-index: 2;
}

/* --- TIENDA --- */
.shop-section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 400;
}

.tabs button {
    background: none;
    border: none;
    margin-left: 20px;
    font-family: 'Jost';
    font-size: 1rem;
    color: #999;
    cursor: pointer;
}

.tabs button.active {
    color: var(--black);
    text-decoration: underline;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.product-card {
    cursor: pointer;
}

.p-img {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.p-img img {
    width: 100%;
    transition: 0.5s;
}

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

.btn-quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 15px;
    font-family: 'Jost';
    font-weight: 600;
    letter-spacing: 1px;
    transform: translateY(100%);
    transition: 0.3s;
    cursor: pointer;
}

.product-card:hover .btn-quick-view {
    transform: translateY(0);
}

.p-info h3 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.p-info .price {
    font-weight: 600;
}

/* --- CARRITO SIDEBAR --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    display: none;
}

.cart-overlay.open {
    display: block;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 1000;
    transform: translateX(100%);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    transform: translateX(0);
}

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

.close-cart {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}

.ci-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.ci-info small {
    display: block;
    color: #777;
    margin-bottom: 5px;
}

.btn-remove {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--gray);
}

.cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.cart-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 15px;
    border-top: 1px dashed #ccc;
    padding-top: 15px;
}

.btn-checkout {
    width: 100%;
    background: var(--black);
    color: white;
    padding: 15px;
    border: none;
    font-family: 'Jost';
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    letter-spacing: 1px;
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    position: relative;
    padding: 40px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.modal-img img {
    width: 100%;
}

.m-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 10px 0;
}

.m-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.variant-group {
    margin-bottom: 20px;
}

.variant-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.variant-options button {
    background: white;
    border: 1px solid #ddd;
    padding: 10px 20px;
    margin-right: 5px;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Jost';
}

.variant-options button:hover {
    border-color: var(--black);
}

.variant-options button.selected {
    border-color: var(--black);
    background: var(--black);
    color: white;
}

.btn-add-cart {
    width: 100%;
    background: var(--black);
    color: white;
    padding: 15px;
    border: none;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    letter-spacing: 1px;
}

/* --- FOOTER --- */
.footer {
    background: var(--gray);
    padding: 60px 0 20px 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.f-col h4 {
    margin-bottom: 20px;
    font-size: 1rem;
}

.f-col a {
    display: block;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.9rem;
}

.copy {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .cat-grid {
        grid-template-columns: 1fr;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}