:root {
    --color-bg: #faf9f7;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-muted: #6b6b6b;
    --color-accent: #8b7355;
    --color-accent-dark: #6d5a44;
    --color-border: #e8e4df;
    --color-whatsapp: #25d366;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Outfit", system-ui, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

.container {
    width: min(1120px, 92%);
    margin-inline: auto;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
}

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

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

/* Header */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--color-accent);
}

.cart-link {
    position: relative;
}

.cart-badge {
    background: var(--color-accent);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    margin-left: 0.25rem;
}

/* Hero */
.hero {
    padding: 4rem 0 5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0 0 1rem;
}

.hero-text {
    color: var(--color-muted);
    max-width: 480px;
    margin: 0 auto 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: white;
}

.btn-whatsapp:hover {
    filter: brightness(1.05);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section-alt {
    background: var(--color-surface);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page-header {
    padding: 2.5rem 0 1rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0;
}

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

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
}

.product-card img {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}

.product-card h3 {
    font-size: 1.1rem;
    margin: 0.75rem 1rem 0.25rem;
    font-family: var(--font-display);
}

.product-card .price {
    margin: 0 1rem 1rem;
    color: var(--color-accent);
    font-weight: 400;
}

.product-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
}

.product-placeholder--large {
    min-height: 400px;
    border-radius: var(--radius);
}

.product-placeholder--small {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
}

.promo-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #c45c4a;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    z-index: 1;
}

.price-old {
    text-decoration: line-through;
    color: var(--color-muted);
    font-size: 0.9em;
    margin-right: 0.5rem;
}

/* Collections */
.collections-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.collections-carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 70vh;
    position: relative;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.collection-slide {
    min-width: 100%;
    height: 70vh;
    position: relative;
    flex: 0 0 100%;

    scroll-snap-align: start;
}

.collection-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay elegante */
.collection-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 20px;

    background: rgba(0,0,0,0.25);
    color: white;
}

.collection-overlay h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin: 0;
}

.collection-overlay p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 600px;
}

/* Flechas */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;

    width: 46px;
    height: 46px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.85);
    cursor: pointer;

    font-size: 1.5rem;
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* 📱 MOBILE */
@media (max-width: 768px) {

    .collections-carousel,
    .collection-slide {
        height: 42vh;
    }

    .collection-overlay {
        padding: 16px;
    }

    .collection-overlay h2 {
        font-size: 1.8rem;
    }

    .collection-overlay p {
        font-size: 0.95rem;
        max-width: 90%;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

}

/* Catalog layout */
.catalog-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
}

.filters ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filters li {
    margin-bottom: 0.5rem;
}

.filters a {
    color: var(--color-muted);
}

.filters a.active,
.filters a:hover {
    color: var(--color-accent);
    font-weight: 400;
}

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
}

.gallery-main img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.thumb-btn {
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    background: none;
    overflow: hidden;
}

.thumb-btn img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.thumb-btn:hover {
    border-color: var(--color-accent);
}

.product-code {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0;
}

.product-info h1 {
    font-size: 2.25rem;
    margin: 0.5rem 0 1rem;
}

.price--large {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.product-description {
    margin: 1.5rem 0;
    color: var(--color-muted);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.add-to-cart-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.add-to-cart-form input[type="number"] {
    width: 4rem;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

/* Cart */
.cart-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto 1fr auto;
    gap: 1rem;
    align-items: center;
    background: var(--color-surface);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .cart-row {
        grid-template-columns: 1fr;
    }
}

.cart-product {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-product img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius);
}

.cart-qty-form input {
    width: 4rem;
    padding: 0.4rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.cart-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    text-align: right;
}

.cart-subtotal {
    font-size: 1.25rem;
}

.muted {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--color-muted);
}

/* Messages */
.messages {
    padding-top: 1rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
}

/* Footer */
.site-footer {
    margin-top: 4rem;
    padding: 2rem 0 1rem;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-inner h3 {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
}

.footer-copy {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 2rem 0 0;
}
