@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');
:root {
    --ink: #342b2e;
    --wine: #722f42;
    --cream: #f6f2ed;
    --line: #e9e0dc;
    --muted: #887a7c;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fffdfa; font: 15px/1.6 'DM Sans', Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
img { max-width: 100%; }
h1, h2 { margin: 0 0 18px; line-height: 1.16; font-family: 'Playfair Display', Georgia, serif; font-weight: 500; }
h1 { font-size: clamp(34px, 4vw, 54px); }
h2 { font-size: 32px; }
h3, h4 { margin: 12px 0; }
p { color: #796e70; }
small { display: block; color: var(--muted); }
.announcement { background: var(--wine); color: white; text-align: center; font-size: 12px; padding: 9px; letter-spacing: .6px; }
.announcement span { margin-left: 30px; }
.site-header { min-height: 96px; padding: 20px 5%; display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; min-width: 228px; font-family: Georgia, serif; font-size: 26px; }
.brand>span { font-size: 32px; background: var(--wine); color: white; width: 46px; height: 46px; text-align: center; border-radius: 50%; }
.brand small { font: 8px 'DM Sans', sans-serif; letter-spacing: 2px; }
nav { display: flex; flex: 1; justify-content: center; gap: 27px; font-size: 13px; }
nav a:hover { color: var(--wine); }
.header-tools { display: flex; gap: 23px; font-size: 19px; }
.bag { position: relative; }
.bag b { position: absolute; top: -8px; right: -10px; background: var(--wine); color: white; border-radius: 50%; width: 18px; height: 18px; text-align: center; font-size: 10px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; background: #eee6dd; min-height: 570px; }
.hero-copy { padding: 85px 12% 35px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.eyebrow { font-size: 10px; color: var(--wine); font-weight: 700; letter-spacing: 2.2px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(42px, 5vw, 73px); max-width: 470px; }
.hero p { max-width: 390px; margin-bottom: 30px; }
.hero-foot { display: flex; justify-content: space-between; width: 100%; gap: 20px; margin-top: 64px; font-size: 10px; color: #796e70; }
.hero-image { position: relative; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; }
.hero-tag { position: absolute; bottom: 35px; right: 30px; color: white; font: italic 37px/1.1 Georgia, serif; text-shadow: 0 1px 8px #555; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--wine); color: white; border: 1px solid var(--wine); padding: 13px 22px; border-radius: 5px; font-size: 13px; font-weight: 600; transition: .2s; }
.btn:hover { opacity: .86; transform: translateY(-1px); }
.btn.outline { background: transparent; color: var(--wine); }
.btn.light { background: white; color: var(--wine); border-color: white; }
.btn.small { padding: 7px 11px; font-size: 11px; }
.btn.full { width: 100%; margin-top: 12px; }
.btn.whatsapp { background: #218d63; border-color: #218d63; }
.benefits { display: flex; justify-content: space-around; gap: 20px; padding: 28px 4%; border-bottom: 1px solid var(--line); font-size: 12px; }
.benefits i { margin-right: 12px; font-size: 18px; color: var(--wine); }
.section { padding: 58px 5%; max-width: 1600px; margin: auto; }
.section-title { text-align: center; margin-bottom: 35px; }
.section-head, .row-between { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-head { margin-bottom: 30px; }
.section-head h1, .section-head h2 { margin-bottom: 0; }
.section-head>a { font-size: 12px; color: var(--wine); }
.category-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 20px; }
.category-grid a { position: relative; height: 215px; overflow: hidden; border-radius: 90px 90px 4px 4px; }
.category-grid img { width: 100%; height: 100%; object-fit: cover; }
.category-grid span { position: absolute; bottom: 0; padding: 14px; width: 100%; text-align: center; background: rgba(255,253,250,.93); font-size: 13px; }
.category-grid i { margin-left: 9px; font-size: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px 23px; }
.product-card { min-width: 0; }
.product-photo { position: relative; display: block; background: var(--cream); border-radius: 5px; overflow: hidden; aspect-ratio: 3/4; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-photo:hover img { transform: scale(1.04); }
.label { position: absolute; top: 14px; left: 14px; padding: 4px 9px; background: #fffdf8; border-radius: 3px; font-size: 10px; color: var(--wine); }
.product-info { padding: 15px 0; }
.product-info small { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.product-info h3 { font-size: 14px; font-weight: 500; margin: 6px 0 10px; }
.product-info b { font-size: 14px; color: var(--wine); }
del { color: #ab9d9f; font-size: 12px; margin-left: 6px; }
.stars { font-size: 11px; letter-spacing: 1px; color: #ba8b46; margin-top: 9px; }
.stars span { color: #a69797; letter-spacing: 0; font-size: 9px; }
.promo-band { margin: 10px 5% 70px; padding: 60px 20px; text-align: center; background: #eee2dc; border-radius: 6px; }
.promo-band h2 { font-size: 42px; }
footer { background: #f0e9e4; padding: 55px 5%; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; font-size: 12px; }
footer a { display: block; margin: 10px 0; color: #796e70; }
footer h2 { font-size: 30px; }
.floating-wa { position: fixed; bottom: 24px; right: 24px; width: 52px; height: 52px; display: grid; place-items: center; background: #218d63; color: white; border-radius: 50%; font-size: 27px; z-index: 20; box-shadow: 0 5px 20px #0002; }
.page-intro { padding: 55px 20px; text-align: center; background: var(--cream); }
.filters { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.filters input { flex: 1; }
.filters select { max-width: 240px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid #ded5d2; border-radius: 5px; background: white; color: var(--ink); min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid #b27a8b66; }
select:disabled { background: #f5f2ef; }
label { display: block; font-size: 12px; font-weight: 600; margin: 14px 0; }
label input, label select, label textarea { display: block; margin-top: 7px; font-weight: 400; }
.check { display: flex; gap: 10px; align-items: center; }
.check input { width: auto; margin: 0; }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 35px; }
.pagination a { padding: 8px 15px; border: 1px solid var(--line); }
.pagination a.active { background: var(--wine); color: white; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.detail-image { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 7px; }
.price-large { font-size: 25px; color: var(--wine); }
.panel { background: white; border: 1px solid var(--line); padding: 27px; border-radius: 9px; margin-bottom: 24px; box-shadow: 0 2px 12px #38212603; }
.panel h2 { font-size: 24px; }
.text-link { display: block; margin: 20px 0; color: var(--wine); }
.empty { text-align: center; padding: 90px 20px; }
.empty .btn { margin-top: 25px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { background: #f8f4f0; color: #8f7e81; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .6px; }
th, td { padding: 15px 12px; border-bottom: 1px solid var(--line); }
.mini-product { display: flex; align-items: center; gap: 13px; min-width: 170px; }
.mini-product img { width: 47px; height: 59px; object-fit: cover; border-radius: 4px; }
.qty { width: 75px; }
.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.auth { max-width: 490px; margin: 55px auto; padding: 35px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.auth h1 { font-size: 33px; }
.badge { display: inline-block; border-radius: 30px; background: #f4e8ed; color: var(--wine); padding: 5px 10px; font-size: 10px; }
.flash { padding: 14px; margin: 15px 5%; border-radius: 5px; background: #e9f6ed; }
.flash.error { background: #fde9e8; }
.narrow { max-width: 950px; }
.timeline { border-left: 2px solid #dbc2ca; margin-left: 7px; padding: 15px 0 0 24px; }
.timeline>div { position: relative; margin-bottom: 26px; }
.timeline>div:before { content: ''; position: absolute; top: 5px; left: -32px; background: var(--wine); border: 4px solid #f3e7ec; border-radius: 50%; width: 12px; height: 12px; }
.timeline h4 { margin: 4px 0; }
.timeline p { margin: 5px 0; }
.tracking-box { padding: 20px; background: var(--cream); border-radius: 8px; margin: 20px 0; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details.panel { padding: 25px; }
summary { color: var(--wine); font-weight: 600; }
.admin-layout { display: grid; grid-template-columns: 235px 1fr; background: #f7f5f3; }
.sidebar { padding: 35px 18px; border-right: 1px solid var(--line); background: white; }
.sidebar .eyebrow { font-size: 8px; }
.sidebar h3 { font-size: 15px; margin-bottom: 27px; }
.sidebar a { display: flex; align-items: center; gap: 11px; padding: 12px 14px; font-size: 12px; margin-bottom: 5px; border-radius: 5px; }
.sidebar a.active { background: var(--wine); color: white; }
.sidebar i { width: 18px; }
.admin-content { padding: 38px; min-width: 0; }
.admin-content h1 { font: 600 30px 'DM Sans',sans-serif; }
.admin-content .section-head>span { font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 28px; }
.stats-grid>div { padding: 25px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.stats-grid h2 { font: 700 25px 'DM Sans',sans-serif; margin: 14px 0; }
.stats-grid span { color: #8e8386; font-size: 10px; }
.variant-form { display: grid; grid-template-columns: 1fr 1fr 80px 1.4fr 55px; gap: 10px; }
.inline { display: inline-block; }
.chart-row { display: flex; align-items: center; gap: 15px; margin: 25px 0; font-size: 10px; }
.chart-row>div { flex: 1; height: 20px; background: #f5eaef; border-radius: 4px; overflow: hidden; }
.chart-row b { display: block; height: 100%; background: var(--wine); }
hr { border: 0; border-top: 1px solid var(--line); }
@media(max-width: 1050px) {
    nav { gap: 14px; flex-wrap: wrap; }
    .brand { min-width: 180px; font-size: 23px; }
    .category-grid { grid-template-columns: repeat(3,1fr); }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .checkout-grid { grid-template-columns: 1fr; }
    .admin-content { padding: 25px; }
    .product-grid { grid-template-columns: repeat(3,1fr); }
}
@media(max-width: 700px) {
    .announcement span { display: none; }
    .site-header { flex-wrap: wrap; gap: 20px; padding: 18px 5%; }
    .brand { flex: 1; }
    nav { order: 3; flex-basis: 100%; justify-content: flex-start; font-size: 11px; }
    .header-tools { gap: 17px; }
    .hero { grid-template-columns: 1fr; }
    .hero-copy { padding: 50px 8% 25px; }
    .hero h1 { font-size: 49px; }
    .hero-foot { margin-top: 35px; }
    .hero-image { height: 370px; }
    .benefits { flex-wrap: wrap; gap: 17px; font-size: 10px; }
    .benefits span { width: 44%; }
    .benefits i { margin-right: 5px; }
    .section { padding: 35px 5%; }
    .category-grid { gap: 12px; }
    .category-grid a { height: 170px; }
    .category-grid span { font-size: 10px; padding: 9px; }
    .category-grid i { display: none; }
    .product-grid { grid-template-columns: repeat(2,1fr); gap: 20px 12px; }
    .product-info h3 { font-size: 12px; }
    .product-info b { font-size: 12px; }
    .product-info del { font-size: 9px; }
    .section-head { align-items: flex-start; flex-wrap: wrap; }
    .section-head h2 { font-size: 27px; }
    .filters { flex-wrap: wrap; }
    .filters input, .filters select { flex-basis: 100%; max-width: none; }
    .product-detail { grid-template-columns: 1fr; gap: 30px; }
    .panel { padding: 20px; }
    .form-grid { grid-template-columns: 1fr; }
    footer { grid-template-columns: 1fr 1fr; gap: 30px; }
    .admin-layout { display: block; }
    .sidebar { display: flex; overflow-x: auto; gap: 8px; padding: 15px; }
    .sidebar>h3, .sidebar>.eyebrow { display: none; }
    .sidebar a { white-space: nowrap; }
    .admin-content { padding: 24px 14px; }
    .stats-grid { gap: 10px; }
    .stats-grid>div { padding: 18px; }
    .stats-grid h2 { font-size: 21px; }
    .variant-form { grid-template-columns: 1fr 1fr; }
    .row-between { flex-wrap: wrap; }
}
/* Keep category captions anchored to the card and table controls compact. */
.category-grid span { left: 0; }
.dt-container .dt-length label,
.dt-container .dt-search label { display: inline; margin: 0; font-weight: 400; }
.dt-container .dt-length select { width: auto; display: inline-block; margin: 0 7px; }
.dt-container .dt-search input { width: 180px; display: inline-block; margin: 0 0 0 10px; }
.help-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.help-card { display:flex; flex-direction:column; gap:13px; padding:25px; border:1px solid var(--line); background:white; border-radius:10px; }
.help-card>i { font-size:24px; color:var(--wine); }
.help-card>span { font-size:11px; color:var(--muted); }
.info-layout { display:grid; grid-template-columns:220px 1fr; gap:35px; }
.help-sidebar { display:flex; flex-direction:column; gap:5px; align-self:start; position:sticky; top:20px; }
.help-sidebar a { padding:12px 15px; border-radius:5px; font-size:12px; }
.help-sidebar a.active { background:var(--wine); color:white; }
.gallery-thumbs { display:flex; gap:12px; overflow-x:auto; margin:15px 0; }
.gallery-thumbs button { padding:0; background:white; border:1px solid var(--line); border-radius:5px; flex-shrink:0; }
.gallery-thumbs img { width:80px; height:95px; object-fit:cover; }
.spec-list { display:grid; grid-template-columns:110px 1fr; gap:12px; font-size:13px; }
.spec-list dt { font-weight:600; }
.spec-list dd { margin:0; color:var(--muted); }
.footer-help-links { display:grid; grid-template-columns:repeat(3,1fr); }
@media(max-width:700px) { .help-grid {grid-template-columns:repeat(2,1fr);} .info-layout {grid-template-columns:1fr;} .help-sidebar {position:static; flex-direction:row; flex-wrap:wrap;} .help-card {padding:18px;} .footer-help-links {grid-template-columns:1fr 1fr;} }
@media print {
    .site-header, .announcement, footer, .floating-wa, form, .flash,
    [data-print-order], .tracking-box, .help-sidebar { display:none !important; }
    .section { padding:10px; }
    .panel { box-shadow:none; break-inside:avoid; }
    body { background:white; }
}

/* Every menu is visible directly, including on small screens. */
.site-header { flex-wrap: wrap; }
.site-header .brand { flex: 1; }
.site-header .header-tools { margin-left: auto; }
.site-header .main-nav {
    order: 3;
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.main-nav a { display: inline-block; padding: 7px 0; line-height: 1.5; }
.main-nav a[aria-current="page"] { color: var(--wine); font-weight: 600; }
@media (max-width: 700px) {
    .site-header .main-nav { justify-content: flex-start; gap: 6px 18px; font-size: 12px; }
}
