/* ==========================================================
   OCHEIRO - Estilos del frontend
   Estética: lujo minimalista. Negro carbón + dorado + crema
   ========================================================== */

:root {
    --c-bg:        #ffffff;
    --c-bg-alt:    #faf7f2;          /* crema cálido */
    --c-ink:       #15110d;          /* negro tinta */
    --c-ink-soft:  #4a443c;
    --c-muted:     #8a8278;
    --c-line:      #e9e3d8;
    --c-gold:      #b08d57;          /* dorado champagne */
    --c-gold-dark: #8c6f43;
    --c-accent:    #1a1410;
    --c-success:   #2f7a4e;
    --c-danger:    #b3311e;
    --c-warning:   #b88008;

    --radius:      4px;
    --radius-lg:   8px;
    --shadow-sm:   0 1px 2px rgba(20,17,13,.06);
    --shadow-md:   0 6px 24px rgba(20,17,13,.08);
    --shadow-lg:   0 20px 60px rgba(20,17,13,.12);

    --f-serif:    "Cormorant Garamond","Playfair Display",Georgia,"Times New Roman",serif;
    --f-sans:     "Inter","Helvetica Neue",Arial,sans-serif;
    --f-mono:     ui-monospace,"SFMono-Regular",Consolas,monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--f-sans);
    color: var(--c-ink);
    background: var(--c-bg);
    line-height: 1.55;
    font-size: 15.5px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--c-ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-gold-dark); }

h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 500; letter-spacing: .005em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }
.eyebrow {
    font-family: var(--f-sans);
    font-size: 11px;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--c-gold-dark);
    font-weight: 600;
    margin-bottom: .8rem;
    display: inline-block;
}

/* ----- Topbar ----- */
.topbar {
    background: var(--c-ink);
    color: #d8d2c5;
    font-size: 12px;
    letter-spacing: .15em;
    text-transform: uppercase;
    text-align: center;
    padding: 9px 16px;
}
.topbar a { color: #efe7d4; }

/* ----- Header ----- */
.header {
    position: sticky; top: 0; z-index: 100;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    backdrop-filter: blur(6px);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 24px;
    gap: 24px;
}
.brand {
    grid-column: 2;
    text-align: center;
    font-family: var(--f-serif);
    font-size: 26px;
    letter-spacing: .35em;
    text-transform: uppercase;
    font-weight: 500;
}
.brand .dot { color: var(--c-gold); }
.nav-main {
    display: flex; gap: 28px; align-items: center;
}
.nav-main a {
    font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}
.header-actions {
    display: flex; gap: 18px; justify-content: flex-end; align-items: center;
}
.header-actions a {
    font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 6px;
}
.cart-badge {
    display: inline-block; min-width: 18px; height: 18px; line-height: 18px;
    text-align: center; background: var(--c-gold); color: #fff;
    border-radius: 50%; font-size: 11px; padding: 0 5px;
}
.menu-toggle { display: none; background: none; border: 0; font-size: 20px; cursor: pointer; }

/* ----- Hero ----- */
.hero {
    background: linear-gradient(135deg, #15110d 0%, #2a221a 100%);
    color: #efe7d4;
    padding: clamp(80px, 12vw, 160px) 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(176,141,87,.15), transparent 60%);
    pointer-events: none;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400; max-width: 18ch; margin: 0 auto .8rem;
}
.hero p {
    color: #c9c1b3; max-width: 520px; margin: 0 auto 2rem;
    font-size: 17px;
}
.hero .eyebrow { color: var(--c-gold); }

/* ----- Botones ----- */
.btn {
    display: inline-block; padding: 14px 32px;
    font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
    border: 1px solid var(--c-ink); background: var(--c-ink); color: #fff;
    cursor: pointer; transition: all .2s; border-radius: var(--radius);
    text-decoration: none;
}
.btn:hover { background: var(--c-gold-dark); border-color: var(--c-gold-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--c-ink); }
.btn-outline:hover { background: var(--c-ink); color: #fff; }
.btn-gold { background: var(--c-gold); border-color: var(--c-gold); }
.btn-gold:hover { background: var(--c-gold-dark); }
.btn-light { background: #fff; color: var(--c-ink); border-color: #fff; }
.btn-light:hover { background: var(--c-gold); color: #fff; border-color: var(--c-gold); }
.btn-sm { padding: 9px 18px; font-size: 11px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; }

/* ----- Container ----- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { margin: 0 0 .3em; }
.section-title p { color: var(--c-muted); max-width: 540px; margin: 0 auto; }

/* ----- Grid productos ----- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 36px 24px;
}
.product-card {
    text-align: center;
    transition: transform .25s;
    position: relative;
}
.product-card:hover { transform: translateY(-4px); }
.product-card .pc-img-wrap {
    aspect-ratio: 4/5;
    background: var(--c-bg-alt);
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
}
.product-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease;
}
.product-card:hover img { transform: scale(1.05); }
.product-card .pc-tags {
    position: absolute; top: 12px; left: 12px;
    display: flex; flex-direction: column; gap: 6px;
    z-index: 2;
}
.tag {
    font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
    background: var(--c-ink); color: #fff; padding: 5px 9px; font-weight: 600;
}
.tag-gold { background: var(--c-gold); }
.tag-sale { background: var(--c-danger); }
.product-card .pc-marca {
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--c-muted); margin-bottom: 4px;
}
.product-card .pc-nombre {
    font-family: var(--f-serif); font-size: 19px; margin-bottom: 6px;
    color: var(--c-ink);
}
.product-card .pc-precio {
    font-size: 15px; color: var(--c-ink); font-weight: 500;
}
.product-card .pc-precio del { color: var(--c-muted); margin-right: 8px; font-weight: 400; }
.product-card .pc-precio .precio-oferta { color: var(--c-danger); }
.product-card .stars { color: var(--c-gold); letter-spacing: 2px; font-size: 13px; }

/* ----- Page header ----- */
.page-header {
    background: var(--c-bg-alt);
    padding: 60px 24px 50px;
    text-align: center;
    border-bottom: 1px solid var(--c-line);
}
.breadcrumb {
    font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
    color: var(--c-muted); margin-bottom: 12px;
}
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-ink); }

/* ----- Producto detalle ----- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 60px 0; }
.product-gallery .main-img { aspect-ratio: 4/5; background: var(--c-bg-alt); margin-bottom: 14px; overflow: hidden; }
.product-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.product-thumbs img { aspect-ratio: 1; object-fit: cover; cursor: pointer; opacity: .8; }
.product-thumbs img:hover, .product-thumbs img.active { opacity: 1; outline: 2px solid var(--c-gold); }

.product-info .precio-grande { font-family: var(--f-serif); font-size: 32px; margin: 18px 0; }
.product-info .precio-grande del { color: var(--c-muted); margin-right: 14px; font-size: 22px; font-weight: 400; }
.product-info .precio-grande .oferta { color: var(--c-danger); }
.notas { display: grid; gap: 14px; margin: 20px 0; }
.nota-piramide { padding: 14px 18px; background: var(--c-bg-alt); border-left: 3px solid var(--c-gold); }
.nota-piramide strong {
    font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--c-gold-dark); display: block; margin-bottom: 4px;
}
.qty-cart { display: flex; gap: 12px; margin: 26px 0; align-items: stretch; }
.qty-input {
    width: 80px; padding: 12px; border: 1px solid var(--c-line); text-align: center; font-size: 15px; font-family: inherit;
}

/* ----- Tabs ----- */
.tabs { border-top: 1px solid var(--c-line); margin-top: 40px; padding-top: 30px; }
.tab-nav { display: flex; gap: 30px; margin-bottom: 24px; flex-wrap: wrap; }
.tab-nav button {
    background: none; border: 0; padding: 8px 0;
    font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
    color: var(--c-muted); cursor: pointer; border-bottom: 2px solid transparent; font-family: inherit;
}
.tab-nav button.active { color: var(--c-ink); border-color: var(--c-gold); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ----- Reviews ----- */
.review {
    border-bottom: 1px solid var(--c-line);
    padding: 22px 0;
}
.review-head {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
    margin-bottom: 8px;
}
.review-head strong { font-size: 14px; }
.review-head .stars { color: var(--c-gold); }
.review-head time { color: var(--c-muted); font-size: 12px; }
.review p { margin: 6px 0 0; color: var(--c-ink-soft); }
.review-respuesta {
    margin-top: 14px; padding: 12px 16px; background: var(--c-bg-alt);
    font-size: 14px; border-left: 3px solid var(--c-gold);
}

/* ----- Forms ----- */
.form-row { margin-bottom: 18px; }
.form-row label {
    display: block; font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
    margin-bottom: 7px; color: var(--c-ink-soft); font-weight: 600;
}
.input, .select, .textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--c-line); background: #fff;
    font-size: 15px; font-family: inherit; color: var(--c-ink);
    border-radius: var(--radius); transition: border-color .2s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-gold); }
.textarea { resize: vertical; min-height: 110px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--c-ink-soft); }
.form-check input { margin-top: 3px; }
.help-text { font-size: 12px; color: var(--c-muted); margin-top: 6px; }

/* Auth boxes */
.auth-box {
    max-width: 460px; margin: 80px auto;
    background: #fff; padding: 50px 44px; border: 1px solid var(--c-line); box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
}
.auth-box h1 { text-align: center; font-size: 28px; margin-bottom: 8px; }
.auth-box .sub { text-align: center; color: var(--c-muted); margin-bottom: 30px; }
.auth-box .alt-link { text-align: center; margin-top: 20px; font-size: 14px; color: var(--c-muted); }

/* Alerts */
.alert {
    padding: 14px 18px; margin-bottom: 20px;
    border-radius: var(--radius); border: 1px solid;
    font-size: 14px;
}
.alert-success { background: #eef7f1; border-color: #c4e2cf; color: var(--c-success); }
.alert-error   { background: #fbeae6; border-color: #ecbcae; color: var(--c-danger); }
.alert-warning { background: #fdf3df; border-color: #ecd690; color: #7a5605; }
.alert-info    { background: #eef0f6; border-color: #cdd2e1; color: #314062; }

/* Tabla simple */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
    padding: 12px 14px; text-align: left;
    border-bottom: 1px solid var(--c-line); vertical-align: middle;
}
.table th {
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--c-ink-soft); font-weight: 600; background: var(--c-bg-alt);
}

/* Cart resumen */
.cart-summary {
    background: var(--c-bg-alt); padding: 30px;
    border-radius: var(--radius-lg);
}
.cart-summary .row { display: flex; justify-content: space-between; padding: 8px 0; }
.cart-summary .row.total { border-top: 1px solid var(--c-line); margin-top: 12px; padding-top: 18px; font-size: 17px; font-weight: 600; font-family: var(--f-serif); }

/* ----- Filtros ----- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: flex-start; }
.filters { position: sticky; top: 90px; }
.filters h4 {
    font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--c-ink); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--c-line); font-family: var(--f-sans); font-weight: 600;
}
.filter-section { margin-bottom: 26px; }
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list li { padding: 5px 0; font-size: 14px; }
.filter-list li a { color: var(--c-ink-soft); display: inline-block; }
.filter-list li a:hover, .filter-list li a.active { color: var(--c-gold-dark); font-weight: 600; }
.filters ul { list-style: none; margin: 0; padding: 0; }
.filter-checks { display: flex; flex-direction: column; gap: 7px; }
.filter-checks label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c-ink-soft); cursor: pointer; }
.filter-checks input[type="checkbox"] { accent-color: var(--c-gold-dark); width: 15px; height: 15px; }
.filter-checks label:hover span { color: var(--c-gold-dark); }
.btn-block { display: block; width: 100%; text-align: center; }

.results-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.results-count { color: var(--c-muted); font-size: 14px; }
.results-count strong { color: var(--c-ink); font-size: 16px; }
.orden-form { display: inline-flex; }
.orden-form .select { width: auto; min-width: 200px; }

.chips-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--c-line); }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; background: var(--c-bg-alt); border: 1px solid var(--c-line);
    border-radius: 999px; font-size: 12px; color: var(--c-ink-soft);
    text-decoration: none; transition: all .18s;
}
.chip:hover { background: #ede4d6; border-color: var(--c-gold); color: var(--c-ink); }
.chip span { font-weight: 600; opacity: .6; font-size: 14px; }
.chip-clear { background: transparent; border-color: var(--c-line); }
.chip-clear:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

.product-card .pc-meta { font-size: 12px; color: var(--c-muted); margin: 4px 0 6px; letter-spacing: .04em; }

.pagination {
    display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
    margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--c-line);
}
.pagination a, .pagination span {
    min-width: 40px; height: 40px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--c-line); color: var(--c-ink-soft);
    text-decoration: none; font-size: 14px; border-radius: var(--radius);
    transition: all .15s;
}
.pagination a:hover { border-color: var(--c-gold); color: var(--c-gold-dark); }
.pagination .active { background: var(--c-ink); color: #fff; border-color: var(--c-ink); font-weight: 600; }
.pagination .pag-sep { border: 0; min-width: 24px; }

/* ----- Footer ----- */
.footer {
    background: var(--c-ink); color: #c9c1b3;
    padding: 70px 24px 30px; margin-top: 80px;
    font-size: 14px;
}
.footer-grid {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
}
.footer h5 {
    font-family: var(--f-sans); font-size: 12px; letter-spacing: .25em;
    text-transform: uppercase; color: #fff; margin: 0 0 18px; font-weight: 600;
}
.footer a { color: #c9c1b3; }
.footer a:hover { color: var(--c-gold); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; }
.footer .brand-large { font-family: var(--f-serif); font-size: 28px; letter-spacing: .35em; color: #fff; margin-bottom: 14px; }
.footer-bottom {
    max-width: 1280px; margin: 50px auto 0;
    border-top: 1px solid #2c2620;
    padding-top: 24px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    color: #8a8278; font-size: 12px;
}
.newsletter-form { display: flex; gap: 0; margin-top: 14px; }
.newsletter-form input {
    flex: 1; padding: 12px 14px; border: 1px solid #3a3128; background: #2a2620; color: #fff;
    border-right: 0;
}
.newsletter-form button {
    padding: 12px 18px; background: var(--c-gold); color: #fff; border: 0; cursor: pointer;
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
}
.newsletter-form button:hover { background: var(--c-gold-dark); }

/* Cookie banner */
.cookie-banner {
    position: fixed; bottom: 16px; left: 16px; right: 16px;
    background: #fff; border: 1px solid var(--c-line); padding: 18px 24px;
    box-shadow: var(--shadow-lg); border-radius: var(--radius-lg);
    z-index: 999; max-width: 720px; margin: 0 auto;
    display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.cookie-banner p { margin: 0; flex: 1; min-width: 220px; font-size: 14px; }

/* Responsive */
@media (max-width: 900px) {
    .header-inner { grid-template-columns: auto 1fr auto; }
    .nav-main {
        position: fixed; left: 0; right: 0; top: 60px;
        background: #fff; flex-direction: column; gap: 0;
        padding: 20px; border-bottom: 1px solid var(--c-line);
        transform: translateY(-120%); transition: transform .25s;
        max-height: calc(100vh - 60px); overflow: auto;
    }
    .nav-main.open { transform: translateY(0); }
    .nav-main a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--c-line); }
    .menu-toggle { display: block; }
    .product-detail { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .shop-layout { grid-template-columns: 1fr; gap: 30px; }
    .filters { position: static; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .results-bar { flex-direction: column; align-items: flex-start; }
    .orden-form .select { width: 100%; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .header-actions a span { display: none; }
    .auth-box { margin: 30px 16px; padding: 32px 22px; }
}
