/*
Theme Name: Ventuari Coffee
Theme URI: https://ventuaricoffee.cl
Author: Ventuari Coffee
Description: Identidad visual de Ventuari Coffee integrada con WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ventuari-coffee
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --white: #ffffff;
  --paper: #f7f5f1;
  --sand: #eee9e0;
  --sand-dark: #ded5c7;
  --ink: #252622;
  --muted: #73736c;
  --coffee: #6c4939;
  --coffee-dark: #513529;
  --forest: #315246;
  --line: #e4e0d9;
  --accent: #b87552;
  --shadow: 0 18px 45px rgba(45, 38, 31, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: 15px; line-height: 1.5; }
body.cart-open { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1120px, 100%); margin: 0 auto; padding-right: 28px; padding-left: 28px; }
.section { padding-top: 92px; padding-bottom: 92px; }
.overline { margin: 0 0 13px; color: var(--coffee); font-size: 10px; font-weight: 700; letter-spacing: .18em; line-height: 1.4; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 400; }
h1 em, h2 em { color: var(--coffee); font-family: "DM Serif Display", Georgia, serif; font-style: italic; }

/* Announcement and navigation */
.announcement-bar { background: var(--ink); color: rgba(255, 255, 255, .86); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.announcement-inner { display: flex; justify-content: space-between; gap: 20px; min-height: 31px; align-items: center; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); }
.site-header-main { display: flex; align-items: center; justify-content: space-between; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: 44px; border: 1px solid var(--sand-dark); border-radius: 50%; object-fit: cover; background: var(--paper); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy b { font-family: "DM Serif Display", Georgia, serif; font-size: 25px; font-weight: 400; letter-spacing: -.03em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .19em; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-action { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; text-decoration: none; }
.header-action > span:first-child { color: var(--coffee); font-size: 22px; line-height: 1; transform: rotate(-20deg); }
.header-action:hover { color: var(--coffee); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0 8px 12px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; }
.cart-count { min-width: 21px; height: 21px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--coffee); color: var(--white); font-size: 10px; }
.main-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.main-nav-inner { display: flex; align-items: center; justify-content: center; gap: 31px; min-height: 47px; }
.main-nav a { position: relative; padding: 15px 0 13px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.main-nav a::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--coffee); content: ""; opacity: 0; transform: scaleX(0); transition: .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { opacity: 1; transform: scaleX(1); }
.origins-dropdown { position: relative; }
.main-nav .origins-dropdown > summary { display: inline-flex; align-items: center; gap: 5px; position: relative; padding: 15px 0 13px; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: .09em; list-style: none; text-transform: uppercase; }
.main-nav .origins-dropdown > summary::-webkit-details-marker { display: none; }
.main-nav .origins-dropdown > summary::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--coffee); content: ""; opacity: 0; transform: scaleX(0); transition: .2s ease; }
.main-nav .origins-dropdown[open] > summary, .main-nav .origins-dropdown > summary:hover { color: var(--ink); }
.main-nav .origins-dropdown[open] > summary::after, .main-nav .origins-dropdown > summary:hover::after { opacity: 1; transform: scaleX(1); }
.nav-chevron { color: var(--coffee); font-size: 13px; line-height: 1; transform: translateY(-1px); transition: transform .2s ease; }
.origins-dropdown[open] .nav-chevron { transform: rotate(180deg) translateY(1px); }
.origins-dropdown-panel { position: absolute; top: calc(100% + 1px); left: 0; z-index: 30; display: grid; width: 220px; padding: 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, .98); box-shadow: 0 16px 30px rgba(39, 36, 31, .13); }
.main-nav .origins-dropdown-panel a { display: block; padding: 9px 10px; color: var(--ink); font-size: 10px; letter-spacing: .04em; line-height: 1.3; text-transform: none; }
.main-nav .origins-dropdown-panel a::after { display: none; }
.main-nav .origins-dropdown-panel a:hover { color: var(--coffee); background: var(--sand); }

/* Buttons and links */
.store-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 45px; padding: 12px 20px; border: 1px solid transparent; border-radius: 0; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.store-button:hover { transform: translateY(-2px); }
.store-button-dark { background: var(--coffee-dark); color: var(--white); }
.store-button-dark:hover { background: var(--coffee); }
.store-button-light { border-color: rgba(255, 255, 255, .5); background: transparent; color: var(--white); }
.store-button-light:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.store-button-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.store-button-outline:hover { background: var(--ink); color: var(--white); }
.store-button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.collection-link { display: inline-flex; align-items: center; gap: 9px; color: var(--coffee); font-size: 11px; font-weight: 700; text-decoration: none; }
.collection-link span { font-size: 18px; line-height: 0; transition: transform .2s ease; }
.collection-link:hover span { transform: translateX(4px); }

/* Home */
.home-hero { padding: 26px 0 0; background: var(--white); }
.hero-banner { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 535px; overflow: hidden; background: var(--sand); }
.hero-banner-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 60px clamp(30px, 6vw, 86px); }
.hero-banner-copy h1 { margin: 0; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: clamp(42px, 5vw, 72px); font-weight: 400; letter-spacing: -.065em; line-height: .96; }
.hero-banner-copy h1 em { color: var(--coffee); }
.hero-banner-copy > p:not(.overline) { max-width: 370px; margin: 24px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.hero-banner-media { min-height: 535px; overflow: hidden; background: var(--sand); }
.hero-photo-media { display: flex; height: 535px; align-items: center; justify-content: center; }
.hero-photo { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; filter: saturate(.96) contrast(.98); }
.home-intro { padding: 108px 0 95px; text-align: center; }
.narrow-content { max-width: 710px; }
.home-intro h2 { margin: 0; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: clamp(33px, 4.5vw, 54px); letter-spacing: -.055em; line-height: 1.05; }
.home-intro h2 em { color: var(--coffee); }
.home-intro > .wrap > p:last-child { max-width: 545px; margin: 23px auto 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.collection-section { padding: 78px 0 96px; background: var(--paper); }
.collection-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 35px; }
.collection-heading h2 { margin: 0; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.06em; line-height: 1; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; }
.label-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 26px; }
.label-grid .card { flex: 0 0 calc((100% - 52px) / 3); }
.card { position: relative; display: flex; min-width: 0; flex-direction: column; background: transparent; scroll-margin-top: 150px; }
.card-label-only .product-packshot { height: 360px; background: transparent; }
.card-label-only .product-image-link { align-items: center; }
.card-label-only .product-label { width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(8px 12px 10px rgba(70, 58, 45, .12)); }
.card-label-only:hover .product-label { filter: drop-shadow(11px 16px 13px rgba(70, 58, 45, .2)); }
.card-top { position: absolute; top: 13px; right: 13px; left: 13px; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 5px 8px; border-radius: 0; color: var(--white); font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.origin-tag { padding-top: 5px; color: var(--ink); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.product-packshot { display: grid; height: 322px; place-items: end center; overflow: hidden; background: var(--sand); }
.product-image-link { display: flex; width: 100%; height: 100%; align-items: end; align-self: stretch; justify-content: center; text-decoration: none; }
.product-label { display: block; width: 84%; height: 94%; object-fit: contain; object-position: center; filter: drop-shadow(10px 14px 11px rgba(70, 58, 45, .16)); transition: transform .25s ease, filter .25s ease; }
.card:hover .product-label { filter: drop-shadow(12px 18px 14px rgba(70, 58, 45, .22)); transform: translateY(-4px); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 16px 0 0; }
.product-region { margin: 0; color: var(--coffee); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.card-body h3 { margin: 0; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .015em; line-height: 1.25; text-transform: uppercase; }
.product-title-link { text-decoration: none; }
.product-title-link:hover { color: var(--coffee); }
.product-description { min-height: 32px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.meta { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.meta .dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; }
.notes { min-height: 0; padding: 0; background: transparent; color: var(--muted); font-size: 10px; line-height: 1.35; }
.notes-label { display: inline; margin-right: 4px; color: var(--coffee); font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.product-origin-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 1px; color: var(--coffee); font-size: 9px; font-weight: 700; text-decoration: none; }
.product-origin-link span { font-size: 14px; line-height: 0; transition: transform .2s ease; }
.product-origin-link:hover span { transform: translateX(3px); }
.size-picker { display: flex; gap: 5px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.size-pill { flex: 1; padding: 7px 3px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--muted); cursor: pointer; font-size: 9px; font-weight: 700; transition: .2s ease; }
.size-pill:hover { border-color: var(--coffee); color: var(--coffee); }
.size-pill.sel { border-color: var(--coffee-dark); background: var(--coffee-dark); color: var(--white); }
.purchase-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: auto; padding-top: 4px; }
.price { color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.add { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 35px; padding: 8px 11px; border: 0; border-radius: 0; background: var(--coffee-dark); color: var(--white); cursor: pointer; font-size: 9px; font-weight: 700; transition: .2s ease; }
.add:hover { background: var(--coffee); transform: translateY(-1px); }
.add span { font-size: 13px; line-height: 0; }

/* Editorial feature sections */
.feature-banner { padding: 96px 0; background: var(--white); }
.feature-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 82px; }
.feature-media { overflow: hidden; background: var(--sand); }
.feature-media img { display: block; width: 100%; height: 470px; object-fit: cover; }
.feature-copy h2, .story-grid h2 { margin: 0; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: clamp(38px, 5vw, 64px); letter-spacing: -.065em; line-height: .97; }
.feature-copy h2 em, .story-grid h2 em { color: var(--coffee); }
.feature-copy > p:not(.overline) { max-width: 410px; margin: 25px 0 28px; color: var(--muted); line-height: 1.8; }
.category-section { padding: 88px 0 102px; background: var(--paper); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.category-card { position: relative; display: flex; min-height: 280px; flex-direction: column; justify-content: space-between; padding: 23px; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .2s ease; }
.category-card:hover { transform: translateY(-4px); }
.category-card span { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.category-card strong { font-size: clamp(24px, 3vw, 36px); font-weight: 400; letter-spacing: -.06em; line-height: .98; }
.category-card strong b { color: var(--coffee); font-size: 20px; font-weight: 400; }
.category-card-light { background: #e8e1d6; }
.category-card-warm { background: #d7b9a5; }
.category-card-green { background: #c5d2c5; }
.story-section { padding: 92px 0; background: var(--white); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.story-grid > div:last-child { max-width: 390px; padding-top: 38px; }
.story-grid > div:last-child p { margin-bottom: 25px; color: var(--muted); line-height: 1.8; }

/* History page */
.history-hero { padding: 78px 0 86px; background: var(--sand); }
.history-hero-inner { max-width: 1020px; }
.history-hero h1 { max-width: 850px; margin: 0; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: clamp(52px, 7vw, 88px); letter-spacing: -.075em; line-height: .91; }
.history-hero h1 em { color: var(--coffee); }
.history-hero-inner > p:last-child { max-width: 480px; margin: 30px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.history-content { background: var(--white); }
.history-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 90px; }
.history-article { max-width: 720px; }
.history-article p { margin-bottom: 22px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.history-article p strong { color: var(--ink); }
.history-lead { color: var(--ink) !important; font-family: "DM Serif Display", Georgia, serif; font-size: 26px !important; line-height: 1.35 !important; }
.history-article blockquote { margin: 38px 0; padding: 25px 0 25px 22px; border-left: 2px solid var(--coffee); color: var(--coffee); font-family: "DM Serif Display", Georgia, serif; font-size: 32px; font-style: italic; line-height: 1.2; }
.history-article h2 { margin: 70px 0 24px; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: clamp(32px, 4vw, 49px); letter-spacing: -.065em; line-height: .98; }
.history-article h2 em { color: var(--coffee); }
.history-closing { margin-top: 62px; padding: 31px 0 4px; border-top: 1px solid var(--line); }
.history-closing p:last-child { margin-top: 34px; color: var(--coffee); font-family: "DM Serif Display", Georgia, serif; font-size: 25px; line-height: 1.35; }
.history-aside { position: sticky; top: 145px; }
.founder-card { margin: 0 0 28px; background: var(--paper); }
.founder-card img { display: block; width: 100%; aspect-ratio: .80; object-fit: cover; object-position: center top; }
.founder-card figcaption { padding: 18px; }
.founder-card .overline { margin-bottom: 8px; font-size: 8px; }
.founder-card strong { display: block; color: var(--ink); font-family: "DM Serif Display", Georgia, serif; font-size: 24px; font-weight: 400; line-height: 1.05; }
.founder-card p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.history-aside-card { padding: 22px 0; border-top: 1px solid var(--line); }
.history-aside-card strong { display: block; margin: 4px 0 8px; color: var(--ink); font-family: "DM Serif Display", Georgia, serif; font-size: 36px; font-weight: 400; line-height: 1; }
.history-aside-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.history-aside .store-button { width: 100%; margin-top: 20px; }

/* Collection page */
.collection-hero { padding: 65px 0 72px; background: var(--sand); }
.collection-hero-inner { display: grid; grid-template-columns: 1fr .7fr; align-items: end; gap: 70px; }
.collection-hero h1 { margin: 0; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: clamp(56px, 7vw, 86px); letter-spacing: -.07em; line-height: .9; }
.collection-hero h1 em { color: var(--coffee); }
.collection-hero-inner > p { max-width: 315px; margin: 0 0 5px; color: var(--muted); line-height: 1.8; }
.collection-page { background: var(--white); }
.catalog-toolbar { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.search-control { display: flex; align-items: center; gap: 9px; width: min(100%, 490px); padding: 0 12px; border: 1px solid var(--line); border-radius: 0; background: var(--white); }
.search-icon { color: var(--coffee); font-size: 21px; line-height: 1; transform: rotate(-20deg); }
.search-control input { width: 100%; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-control input::placeholder { color: #aaa69f; }
.select-control { display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--muted); font-size: 10px; font-weight: 700; }
.select-control select { min-width: 145px; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 700; }
.catalog-meta { display: flex; justify-content: space-between; gap: 15px; padding: 22px 0 26px; color: var(--muted); font-size: 10px; }
.catalog-meta span:first-child { color: var(--ink); font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.collection-page .product-packshot { height: auto; aspect-ratio: 1 / 1; }
.collection-page .product-image-link { align-items: center; }
.collection-page .product-label { width: 94%; height: 90%; transform: translateY(-5px); }
.shop-assurance { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.shop-assurance > span:not(:first-child) { padding: 5px 8px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.shop-assurance a { margin-left: auto; color: var(--coffee); font-weight: 700; text-decoration: none; }
.shop-assurance a span { font-size: 15px; }
.empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 5px; padding: 65px 20px; border: 1px dashed var(--sand-dark); background: var(--paper); text-align: center; }
.empty-state strong { color: var(--ink); font-family: "DM Serif Display", Georgia, serif; font-size: 28px; font-weight: 400; }
.empty-state span { color: var(--muted); font-size: 12px; }

/* Product detail */
.detail-page { padding: 40px 0 78px; background: var(--white); }
.product-detail { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); align-items: start; gap: clamp(45px, 7vw, 105px); }
.detail-visual { display: flex; flex-direction: column; gap: 18px; }
.detail-image-frame { display: grid; height: 540px; place-items: center; overflow: hidden; background: var(--sand); }
.detail-label { display: block; width: min(78%, 460px); height: 92%; object-fit: contain; object-position: center; filter: drop-shadow(16px 22px 17px rgba(70, 58, 45, .2)); }
.detail-back { align-self: flex-start; }
.detail-copy { padding: 29px 0 0; }
.detail-copy .product-region { margin-bottom: 11px; }
.detail-copy h1 { max-width: 560px; margin: 0; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: clamp(43px, 6vw, 75px); letter-spacing: -.07em; line-height: .94; }
.detail-copy h1.product-main-title-descafeinado { display: flex; max-width: none; align-items: baseline; gap: 8px; flex-wrap: nowrap; font-size: clamp(31px, 3.1vw, 42px); letter-spacing: -.065em; line-height: 1; white-space: nowrap; }
.product-main-title-descafeinado .product-title-prefix { font-size: 1em; }
.product-main-title-descafeinado .product-title-origin { font-size: .43em; letter-spacing: -.025em; }
.detail-intro { max-width: 540px; margin: 25px 0 32px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.detail-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-facts div { padding: 14px 0; }
.detail-facts div:nth-child(odd) { padding-right: 18px; border-right: 1px solid var(--line); }
.detail-facts div:nth-child(even) { padding-left: 18px; }
.detail-facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
.detail-facts dt { margin-bottom: 4px; color: var(--coffee); font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.detail-facts dd { margin: 0; color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1.35; text-transform: uppercase; }
.detail-story { max-width: 520px; margin-bottom: 30px; }
.detail-story p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.detail-purchase { max-width: 540px; padding-top: 25px; border-top: 1px solid var(--line); }
.detail-price-line { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 21px; }
.detail-price-line .overline { margin: 0; }
.detail-price-line strong { color: var(--ink); font-size: 28px; letter-spacing: -.04em; }
.choice-block { min-width: 0; margin: 0 0 17px; padding: 0; border: 0; }
.choice-block legend { margin-bottom: 8px; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.choice-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.choice-button { min-height: 47px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; text-align: left; transition: .2s ease; }
.choice-button:hover { border-color: var(--coffee); color: var(--coffee); }
.choice-button.selected { border-color: var(--coffee-dark); background: var(--coffee-dark); color: var(--white); }
.choice-button span { display: block; margin-top: 2px; color: inherit; font-size: 10px; font-weight: 400; opacity: .82; }
.detail-quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 25px 0 15px; color: var(--ink); font-size: 11px; font-weight: 700; }
.detail-quantity { display: flex; align-items: center; border: 1px solid var(--line); }
.detail-quantity button { display: grid; width: 34px; height: 36px; place-items: center; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 18px; line-height: 1; }
.detail-quantity button:hover { color: var(--coffee); }
.detail-quantity input { width: 38px; height: 36px; padding: 0; border: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); outline: 0; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 700; text-align: center; }
.detail-quantity input::-webkit-inner-spin-button, .detail-quantity input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.detail-add { width: 100%; }
.detail-status { min-height: 19px; margin: 10px 0 0; color: var(--forest); font-size: 11px; font-weight: 700; }
.detail-payment-note { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.related-section { padding: 78px 0 96px; background: var(--paper); }
.related-grid { grid-template-columns: repeat(3, 1fr); }
.related-section .related.products > h2 { display: none; }
.related-section .related.products > ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.related-section .related.products > ul.products::before, .related-section .related.products > ul.products::after { display: none; }
.related-section .related.products > ul.products > .product { float: none !important; width: auto !important; margin: 0 !important; }
.related-section .related.products .product-packshot { height: 245px; }
.related-section .related.products .product-label { width: 72%; height: 90%; }
.related-section .related.products .card-body { gap: 7px; padding-top: 12px; }
.related-section .related.products .card-body h3 { font-size: 13px; }
.related-section .related.products .product-description,
.related-section .related.products .meta,
.related-section .related.products .product-origin-link,
.related-section .related.products .purchase-row { display: none; }
.colombia-descafeinado-card .product-title-link { font-size: 11px; letter-spacing: .01em; line-height: 1.15; }

/* Footer */
.site-footer { padding: 64px 0 20px; background: var(--ink); color: rgba(255, 255, 255, .7); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 55px; padding-bottom: 60px; }
.footer-brand { display: inline-flex; flex-direction: column; color: var(--white); font-family: "DM Serif Display", Georgia, serif; font-size: 31px; line-height: .95; text-decoration: none; }
.footer-brand span { margin-top: 8px; color: var(--sand-dark); font-family: "DM Sans", Arial, sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .2em; }
.footer-grid p { margin: 16px 0 0; font-size: 11px; line-height: 1.8; }
.footer-links, .footer-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-links > span, .footer-cta > span { margin-bottom: 5px; color: var(--sand-dark); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-links a, .footer-cta a:not(.store-button) { color: rgba(255, 255, 255, .7); font-size: 11px; text-decoration: none; }
.footer-links a:hover, .footer-cta a:hover { color: var(--white); }
.footer-cta .store-button { margin-top: 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .45); font-size: 10px; }
.compact-footer { margin-top: 0; }

/* WhatsApp and cart */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 18; display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 0; background: #42865d; box-shadow: 0 8px 20px rgba(35, 90, 55, .2); color: var(--white); font-size: 10px; font-weight: 700; text-decoration: none; transition: .2s ease; }
.wa-float:hover { background: #306f4a; transform: translateY(-2px); }
.wa-icon { display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; font-size: 12px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 39; background: rgba(24, 24, 21, .35); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; z-index: 40; display: flex; width: min(420px, 94vw); height: 100%; flex-direction: column; border-left: 1px solid var(--line); background: var(--white); box-shadow: -15px 0 50px rgba(30, 30, 24, .16); transform: translateX(105%); transition: transform .3s ease; }
.drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 25px 19px; border-bottom: 1px solid var(--line); }
.drawer-header > div { display: flex; flex-direction: column; gap: 3px; }
.drawer-header .overline { margin-bottom: 0; font-size: 9px; }
.drawer-header b { color: var(--ink); font-family: "DM Serif Display", Georgia, serif; font-size: 29px; font-weight: 400; line-height: 1; }
.icon-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 24px; line-height: 1; }
.items { display: flex; flex: 1; flex-direction: column; gap: 10px; overflow: auto; padding: 20px 25px; }
.items > p { color: var(--muted); font-size: 12px; }
.cart-item { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 0; }
.cart-item img { width: 55px; height: 55px; flex: 0 0 auto; object-fit: cover; background: var(--sand); }
.cart-item-info { min-width: 0; }
.cart-item-info b { display: block; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-info small { color: var(--muted); font-size: 10px; }
.cart-item-price { margin-left: auto; color: var(--ink); font-size: 11px; white-space: nowrap; }
.qty { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.qty b { min-width: 15px; color: var(--ink); text-align: center; font-size: 11px; }
.qty button { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); cursor: pointer; font-size: 16px; line-height: 1; }
.qty button:hover { border-color: var(--coffee); color: var(--coffee); }
.drawer-footer { padding: 20px 25px 25px; border-top: 1px solid var(--line); background: var(--paper); }
.total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; color: var(--muted); font-size: 13px; }
.total strong { color: var(--ink); font-size: 22px; }
.payment-hint { margin: -3px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.checkout-button, .drawer-whatsapp { width: 100%; }
.drawer-whatsapp { margin-top: 8px; }
body.cart-drawer-open { overflow: hidden; }

/* Checkout and shipping estimate */
body.checkout-open { overflow: hidden; }
.checkout-modal-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(24, 24, 21, .5); opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.checkout-modal-backdrop.open { opacity: 1; pointer-events: auto; visibility: visible; }
.checkout-modal { width: min(680px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow-y: auto; background: var(--white); box-shadow: 0 24px 70px rgba(30, 30, 24, .25); transform: translateY(12px); transition: transform .25s ease; }
.checkout-modal-backdrop.open .checkout-modal { transform: translateY(0); }
.checkout-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 28px 21px; border-bottom: 1px solid var(--line); }
.checkout-modal-header .overline { margin-bottom: 7px; }
.checkout-modal-header h2 { margin: 0; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.06em; line-height: .98; }
.checkout-modal-body { padding: 24px 28px 29px; }
.checkout-intro { max-width: 520px; margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.checkout-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.checkout-form label { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.checkout-form .checkout-full { grid-column: 1 / -1; }
.checkout-form input, .checkout-form select { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; outline: 0; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 400; }
.checkout-form input::placeholder { color: #aaa69f; }
.checkout-form input:focus, .checkout-form select:focus { border-color: var(--coffee); }
.checkout-error { min-height: 18px; margin: 13px 0 0; color: #a94b3d; font-size: 10px; }
.checkout-quote-button { width: 100%; margin-top: 2px; }
.checkout-result { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.checkout-result-header { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.checkout-result-header .overline { margin: 0; }
.checkout-result-header strong { color: var(--forest); font-size: 10px; font-weight: 700; text-align: right; }
.checkout-costs { border: 1px solid var(--line); }
.checkout-costs > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 13px; color: var(--muted); font-size: 11px; }
.checkout-costs > div + div { border-top: 1px solid var(--line); }
.checkout-costs strong { color: var(--ink); font-size: 12px; }
.checkout-costs .checkout-total-line { background: var(--paper); color: var(--ink); font-weight: 700; }
.checkout-costs .checkout-total-line strong { font-size: 18px; }
.checkout-result-note { margin: 13px 0 17px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.checkout-result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checkout-result-actions .store-button { width: 100%; min-height: 43px; padding-right: 10px; padding-left: 10px; font-size: 10px; }
.checkout-result-actions .store-button:disabled { border-color: var(--line); background: var(--paper); color: var(--muted); opacity: 1; }
.payment-status-page { display: grid; min-height: calc(100vh - 100px); place-items: center; padding: 70px 20px; background: var(--paper); }
.payment-status-card { width: min(620px, 100%); padding: clamp(30px, 7vw, 70px); border: 1px solid var(--line); background: var(--white); box-shadow: 0 20px 60px rgba(30, 30, 24, .08); }
.payment-status-card h1 { max-width: 450px; margin: 10px 0 18px; color: var(--ink); font-family: "DM Serif Display", Georgia, serif; font-size: clamp(40px, 7vw, 67px); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.payment-status-card > p:not(.overline) { max-width: 470px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.payment-status-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 30px; }
.payment-status-actions .store-button { width: 100%; text-align: center; }

@media (max-width: 1080px) {
  .cards, .grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { gap: 45px; }
}

@media (max-width: 820px) {
  .wrap { padding-right: 22px; padding-left: 22px; }
  .main-nav-inner { justify-content: center; gap: 0 14px; overflow: visible; flex-wrap: wrap; }
  .main-nav a, .main-nav .origins-dropdown { flex: 0 0 auto; white-space: nowrap; }
  .hero-banner { grid-template-columns: 1fr 1fr; }
  .hero-banner-copy { padding: 42px 35px; }
  .hero-banner-copy h1 { font-size: clamp(38px, 6vw, 58px); }
  .feature-grid, .story-grid, .collection-hero-inner { grid-template-columns: 1fr; gap: 35px; }
  .product-detail { grid-template-columns: 1fr; gap: 48px; }
  .detail-image-frame { height: 540px; }
  .detail-copy { padding-top: 0; }
  .detail-copy h1.product-main-title-descafeinado { flex-wrap: wrap; white-space: normal; }
  .label-grid { gap: 30px 18px; }
  .label-grid .card { flex-basis: calc((100% - 18px) / 2); }
  .history-layout { grid-template-columns: 1fr; gap: 42px; }
  .history-aside { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .founder-card { grid-column: 1 / -1; display: grid; grid-template-columns: .65fr 1fr; margin-bottom: 0; }
  .founder-card img { height: 245px; aspect-ratio: auto; }
  .history-aside .store-button { grid-column: 1 / -1; width: fit-content; }
  .story-grid > div:last-child { padding-top: 0; }
  .collection-hero-inner > p { margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-cta { grid-column: 1 / -1; }
  .related-section .related.products > ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .wrap { padding-right: 17px; padding-left: 17px; }
  .announcement-inner { min-height: 28px; font-size: 8px; }
  .announcement-inner span:last-child { display: none; }
  .site-header-main { min-height: 70px; }
  .brand img { width: 39px; height: 39px; }
  .brand-copy b { font-size: 21px; }
  .brand-copy small { font-size: 7px; }
  .header-actions { gap: 10px; }
  .action-label { display: none; }
  .header-action > span:first-child { font-size: 24px; }
  .cart-btn { padding-left: 10px; }
  .cart-btn > span:first-child { display: none; }
  .main-nav-inner { gap: 0 12px; min-height: 43px; }
  .main-nav a { padding-top: 13px; padding-bottom: 11px; font-size: 9px; }
  .main-nav .origins-dropdown > summary { padding-top: 13px; padding-bottom: 11px; font-size: 9px; }
  .origins-dropdown-panel { left: 0; transform: none; }
  .home-hero { padding-top: 15px; }
  .hero-banner { display: flex; flex-direction: column-reverse; }
  .hero-banner-media { min-height: 320px; height: 320px; }
  .hero-banner-copy { padding: 39px 25px 44px; }
  .hero-banner-copy h1 { font-size: 49px; }
  .hero-banner-copy > p:not(.overline) { margin: 19px 0 24px; font-size: 13px; }
  .home-intro { padding: 75px 0 68px; }
  .home-intro h2 { font-size: 35px; }
  .collection-section, .category-section { padding: 65px 0 75px; }
  .collection-heading { display: block; margin-bottom: 28px; }
  .collection-heading h2 { font-size: 33px; }
  .collection-heading .collection-link { margin-top: 17px; }
  .cards, .grid, .category-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 13px; }
  .label-grid { gap: 30px 13px; }
  .label-grid .card { flex-basis: calc((100% - 13px) / 2); }
  .product-packshot { height: 245px; }
  .product-label { width: 89%; }
  .card-body { padding-top: 12px; }
  .card-body h3 { font-size: 12px; }
  .meta, .notes { font-size: 9px; }
  .size-picker { display: block; }
  .size-pill { width: 100%; margin-bottom: 4px; }
  .purchase-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .add { width: 100%; }
  .feature-banner, .story-section { padding: 70px 0; }
  .history-hero { padding: 51px 0 58px; }
  .history-hero h1 { font-size: 58px; }
  .history-content { padding-top: 68px; padding-bottom: 68px; }
  .history-article p { font-size: 14px; line-height: 1.8; }
  .history-lead { font-size: 23px !important; }
  .history-article blockquote { margin: 30px 0; font-size: 28px; }
  .history-article h2 { margin-top: 53px; font-size: 42px; }
  .history-aside { display: block; }
  .founder-card { display: block; margin-bottom: 25px; }
  .founder-card img { height: auto; aspect-ratio: .80; }
  .history-aside-card { padding: 18px 0; }
  .history-aside .store-button { width: 100%; }
  .feature-media img { height: 330px; }
  .feature-copy h2, .story-grid h2 { font-size: 44px; }
  .category-card { min-height: 190px; padding: 17px; }
  .category-card strong { font-size: 25px; }
  .collection-hero { padding: 49px 0 55px; }
  .collection-hero h1 { font-size: 61px; }
  .catalog-toolbar { display: block; }
  .search-control { width: 100%; }
  .select-control { justify-content: space-between; margin-top: 9px; }
  .select-control select { flex: 1; text-align: right; }
  .catalog-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .shop-assurance a { width: 100%; margin: 7px 0 0; }
  .detail-page { padding: 48px 0 70px; }
  .detail-image-frame { height: 430px; }
  .detail-label { width: 89%; }
  .detail-copy h1 { font-size: 53px; }
  .detail-copy h1.product-main-title-descafeinado { gap: 5px; font-size: 31px; }
  .detail-intro { margin-top: 20px; font-size: 13px; }
  .detail-facts dd { font-size: 10px; }
  .related-section { padding: 62px 0 75px; }
  .related-section .related.products > ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 13px; }
  .related-section .related.products .product-packshot { height: 210px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 45px; }
  .footer-cta { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .checkout-modal-backdrop { align-items: flex-end; padding: 0; }
  .checkout-modal { width: 100%; max-height: 94vh; }
  .checkout-modal-header, .checkout-modal-body { padding-right: 20px; padding-left: 20px; }
  .checkout-form-grid, .checkout-result-actions { grid-template-columns: 1fr; }
  .checkout-form .checkout-full { grid-column: auto; }
  .payment-status-actions { grid-template-columns: 1fr; }
  .wa-float { right: 13px; bottom: 13px; }
}

@media (max-width: 390px) {
  .cards, .grid { grid-template-columns: 1fr; }
  .label-grid .card { flex-basis: 100%; }
  .product-packshot { height: 320px; }
  .related-section .related.products > ul.products { grid-template-columns: 1fr; }
  .hero-banner-copy h1 { font-size: 45px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* WordPress and WooCommerce integration */
.woocommerce .woocommerce-breadcrumb { display: none; }
.woocommerce .site-main, .woocommerce-page .site-main { min-height: 40vh; }
.woocommerce .price, .woocommerce .price ins { color: var(--ink); font-size: inherit; font-weight: 700; text-decoration: none; }
.woocommerce .price del { color: var(--muted); font-weight: 400; opacity: .75; }
.woocommerce .grid .product { margin: 0; width: auto; }
.woocommerce .grid .product-category { display: none; }
.woocommerce .woocommerce-pagination { margin-top: 42px; text-align: center; }
.woocommerce .woocommerce-pagination ul { display: inline-flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.woocommerce .woocommerce-pagination a, .woocommerce .woocommerce-pagination span { display: grid; min-width: 35px; height: 35px; place-items: center; border: 1px solid var(--line); color: var(--ink); font-size: 11px; text-decoration: none; }
.woocommerce .woocommerce-pagination .current, .woocommerce .woocommerce-pagination a:hover { border-color: var(--coffee-dark); background: var(--coffee-dark); color: var(--white); }
.woocommerce .quantity .qty { width: 58px; min-height: 40px; border: 1px solid var(--line); border-radius: 0; text-align: center; }
.woocommerce div.product form.cart { display: flex; align-items: center; gap: 10px; margin: 0; }
.woocommerce div.product form.cart .button, .woocommerce .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { min-height: 43px; padding: 12px 20px; border: 1px solid var(--coffee-dark); border-radius: 0; background: var(--coffee-dark); color: var(--white); font-size: 11px; font-weight: 700; }
.woocommerce div.product form.cart .button:hover, .woocommerce .button:hover, .woocommerce a.button:hover { background: var(--coffee); color: var(--white); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--coffee); background: var(--paper); color: var(--ink); }
.woocommerce form .form-row label { color: var(--ink); font-size: 11px; font-weight: 700; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 43px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--white); }
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: 0; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--line); }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-checkout #payment { border-radius: 0; background: var(--paper); }
.woocommerce-checkout #payment div.payment_box { background: var(--sand); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--sand); }
.woocommerce-checkout .section { padding-top: 28px; }
.woocommerce-checkout .content-page { min-height: 0; }
.content-page { min-height: 45vh; }
.content-page h1 { margin-bottom: 24px; font-size: clamp(38px, 5vw, 68px); }
.woocommerce-cart .section { padding-top: 28px; }
.woocommerce-cart .content-page { min-height: 0; }
.cart-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.cart-policy-links { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 18px; }
.cart-policy-link { display: block; width: fit-content; color: var(--coffee); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.cart-policy-link-terms { margin-left: 0; }
.cart-policy-link:hover { color: var(--ink); }
.clear-cart-button { padding: 10px 16px; border: 1px solid #9b5b4e; background: transparent; color: #9b5b4e; cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.clear-cart-button:hover { background: #9b5b4e; color: var(--white); }
