/*
Theme Name: DAF & DREAM
Theme URI: https://dafanddreamco.com/
Author: DAF & DREAM
Description: Editorial WooCommerce storefront for DAF & DREAM.
Version: 1.0.1
Text Domain: daf-dream
*/

:root {
  --ink: #111111;
  --charcoal: #363236;
  --paper: #ffffff;
  --soft: #f7f3f1;
  --muted: #6b6467;
  --line: #ded8d5;
  --accent: #9a5065;
  --accent-dark: #713648;
  --max: 1440px;
  --page: clamp(18px, 4vw, 64px);
  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.drawer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: fixed; top: 12px; left: 12px; z-index: 9999; width: auto; height: auto; padding: 12px 18px; clip: auto; background: #fff; }
.site-shell { width: min(var(--max), 100%); margin-inline: auto; padding-inline: var(--page); }

.announcement {
  min-height: 36px; display: flex; align-items: center; justify-content: center;
  padding: 6px 18px; color: #fff; background: var(--ink); font-size: 12px;
  font-weight: 600; letter-spacing: .08em; text-align: center; text-transform: uppercase;
}
.site-header { position: relative; z-index: 100; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); }
.header-main { min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand-logo img { width: 58px; height: 58px; object-fit: contain; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.icon-button, .menu-toggle {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); background: transparent; border: 0; border-radius: 0; cursor: pointer;
}
.icon-button svg, .menu-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.cart-count { min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; margin-left: -5px; color: #fff; background: var(--accent-dark); border-radius: 50%; font-size: 10px; font-weight: 700; }
.menu-toggle { justify-self: start; }
.desktop-nav { border-top: 1px solid #efebea; }
.desktop-nav ul { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 48px); min-height: 50px; margin: 0; padding: 0; list-style: none; }
.desktop-nav a { display: flex; align-items: center; min-height: 48px; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.nav-mega { position: static; }
.mega-panel { position: absolute; top: 100%; left: 0; right: 0; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.nav-mega:hover .mega-panel, .nav-mega:focus-within .mega-panel, .nav-mega.is-open .mega-panel { visibility: visible; opacity: 1; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; padding-block: 42px; }
.mega-title { margin: 0 0 18px; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.mega-links { display: grid; gap: 7px; }
.mega-links a { min-height: 34px; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.mega-note { padding: 28px; background: var(--soft); }
.mega-note strong { display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 21px; }

.search-layer { position: fixed; inset: 0; z-index: 1000; display: none; background: rgba(17,17,17,.48); }
.search-layer.is-open { display: block; }
.search-panel { min-height: 180px; padding: 34px var(--page); background: #fff; }
.search-row { width: min(900px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.search-row label { grid-column: 1 / -1; font-family: var(--serif); font-size: 28px; }
.search-row input { min-height: 52px; padding: 0 16px; border: 1px solid var(--ink); }
.search-row button { min-width: 120px; min-height: 52px; color: #fff; background: var(--ink); border: 1px solid var(--ink); cursor: pointer; }
.search-close { position: absolute; top: 18px; right: var(--page); }

.mobile-drawer { position: fixed; inset: 0; z-index: 1100; visibility: hidden; pointer-events: none; }
.mobile-drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-scrim { position: absolute; inset: 0; opacity: 0; background: rgba(0,0,0,.55); transition: opacity .2s ease; }
.mobile-drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel { position: relative; width: min(420px, 92vw); height: 100%; overflow-y: auto; transform: translateX(-100%); transition: transform .24s ease; background: #fff; }
.mobile-drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.drawer-head img { width: 52px; height: 52px; object-fit: contain; }
.drawer-nav { padding: 18px 20px 40px; }
.drawer-nav a, .drawer-nav summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.drawer-nav details div { padding: 8px 0 8px 18px; }
.drawer-nav details div a { min-height: 42px; border: 0; font-weight: 500; letter-spacing: 0; text-transform: none; }

.hero { position: relative; min-height: min(78vh, 820px); display: grid; place-items: end start; overflow: hidden; background: #d9d2cf; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.58), rgba(0,0,0,.08) 62%, transparent); }
.hero-content { position: relative; z-index: 1; width: min(650px, 100%); min-width: 0; max-width: 100%; padding: clamp(46px, 9vw, 120px) var(--page); color: #fff; }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }
.hero h1 { margin: 0; font-size: clamp(48px, 7vw, 100px); letter-spacing: -.035em; }
.hero p { max-width: 540px; margin: 22px 0 30px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; }
.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 26px;
  color: #fff !important; background: var(--ink) !important; border: 1px solid var(--ink) !important;
  border-radius: 0 !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease; cursor: pointer;
}
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { color: #fff !important; background: var(--accent-dark) !important; border-color: var(--accent-dark) !important; }
.button.light { color: var(--ink) !important; background: #fff !important; border-color: #fff !important; }

.home-section { padding-block: clamp(64px, 8vw, 120px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.section-head h2 { margin: 0; font-size: clamp(34px, 4vw, 58px); }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.editorial-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(18px, 3vw, 48px); align-items: stretch; }
.editorial-card { position: relative; min-height: 620px; overflow: hidden; background: #ddd; }
.editorial-card.small { min-height: 620px; }
.editorial-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.editorial-card:hover img { transform: scale(1.025); }
.editorial-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 28px 28px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.editorial-copy h3 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 54px); }
.editorial-copy p { margin: 0 0 16px; }
.story-band { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); }
.story-band img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.story-copy { align-self: center; padding: clamp(42px, 8vw, 110px); }
.story-copy h2 { margin: 0 0 22px; font-size: clamp(38px, 5vw, 68px); }
.story-copy p { max-width: 620px; color: var(--charcoal); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.benefit { padding: 44px var(--page); background: #fff; text-align: center; }
.benefit svg { width: 30px; height: 30px; margin: 0 auto 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.benefit h3 { margin: 0 0 8px; font-size: 22px; }
.benefit p { max-width: 360px; margin: 0 auto; color: var(--muted); font-size: 14px; }

.site-main { min-height: 50vh; }
.page-hero { padding: clamp(68px, 10vw, 140px) var(--page) 48px; text-align: center; background: var(--soft); }
.page-hero h1 { margin: 0; font-size: clamp(44px, 6vw, 78px); }
.page-content { width: min(880px, calc(100% - 2 * var(--page))); margin: 0 auto; padding-block: clamp(50px, 7vw, 100px); }
.page-content.wide { width: min(var(--max), calc(100% - 2 * var(--page))); }
.page-content h2 { margin: 2.2em 0 .7em; font-size: clamp(28px, 3vw, 42px); }
.page-content h3 { margin: 1.8em 0 .6em; font-size: 24px; }
.page-content p, .page-content li { color: var(--charcoal); }
.page-content a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.policy-note { padding: 22px; background: var(--soft); border-left: 4px solid var(--accent); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 90px); }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 6px; font-weight: 600; }
.form-field input, .form-field textarea, .form-field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #898183; background: #fff; }
.form-field textarea { min-height: 150px; resize: vertical; }

.woocommerce .woocommerce-breadcrumb { margin: 26px 0 32px; color: var(--muted); font-size: 12px; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 28px; }
.woocommerce .woocommerce-ordering select { min-height: 44px; padding: 0 38px 0 12px; border: 1px solid var(--line); background: #fff; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px) clamp(12px, 2vw, 30px); margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product a img { width: 100%; aspect-ratio: 3/4; margin: 0 0 16px !important; object-fit: cover; background: var(--soft); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 50px; padding: 0 !important; font-family: var(--sans); font-size: 14px !important; font-weight: 600; line-height: 1.45; }
.woocommerce ul.products li.product .price { color: var(--ink) !important; font-size: 14px !important; font-variant-numeric: tabular-nums; }
.woocommerce span.onsale { min-width: 54px; min-height: 28px; padding: 5px 9px; top: 12px !important; left: 12px !important; color: #fff; background: var(--accent-dark); border-radius: 0; line-height: 18px; }
.woocommerce div.product { padding-bottom: 80px; }
.woocommerce div.product div.images img { background: var(--soft); }
.woocommerce div.product .product_title { font-size: clamp(34px, 4vw, 56px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 22px; }
.woocommerce div.product form.cart .variations select { min-height: 48px; min-width: 220px; padding: 0 38px 0 12px; border: 1px solid #898183; background: #fff; }
.woocommerce .quantity .qty { min-height: 48px; border: 1px solid #898183; }
.product_meta { color: var(--muted); font-size: 12px; }
.woocommerce-tabs { margin-top: 60px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 0; background: transparent; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--accent-dark); background: var(--soft); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 48px; padding: 10px 12px; border: 1px solid #898183; background: #fff; }

.newsletter { padding: 70px var(--page); color: #fff; background: var(--accent-dark); text-align: center; }
.newsletter h2 { margin: 0 0 12px; font-size: clamp(34px, 4vw, 52px); }
.newsletter p { max-width: 620px; margin: 0 auto 26px; }
.newsletter-form { width: min(620px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter-form input { min-height: 50px; padding: 0 14px; border: 1px solid #fff; background: #fff; }
.newsletter-form button { min-height: 50px; padding: 0 24px; color: var(--ink); background: #fff; border: 1px solid #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.site-footer { color: #fff; background: #151315; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 50px; padding-block: 72px; }
.footer-brand > img { width: 76px; height: 76px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 380px; color: #c9c2c5; font-size: 14px; }
.social-links { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.social-link {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; border: 1px solid #625b60; transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.social-link:hover { color: #151315; background: #fff; border-color: #fff; }
.social-link svg { width: 21px; height: 21px; fill: currentColor; stroke: none; }
.social-link[href*="instagram"] svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-link[href*="instagram"] .social-dot { fill: currentColor; stroke: none; }
.footer-column h2 { margin: 0 0 18px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column a { min-height: 34px; display: inline-flex; align-items: center; color: #d8d1d4; font-size: 14px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; border-top: 1px solid #393439; color: #aaa2a6; font-size: 12px; }

@media (min-width: 961px) { .menu-toggle { visibility: hidden; } }
@media (max-width: 1100px) {
  .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .header-main { min-height: 70px; grid-template-columns: 44px 1fr auto; gap: 8px; }
  .brand-logo { justify-self: center; }
  .brand-logo img { width: 50px; height: 50px; }
  .desktop-nav { display: none; }
  .header-actions .account-link { display: none; }
  .hero { min-height: 680px; }
  .editorial-grid, .story-band { grid-template-columns: 1fr; }
  .editorial-card, .editorial-card.small { min-height: 78vw; }
  .story-band img { min-height: 70vw; }
  .benefit-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .announcement { min-height: 42px; width: 100%; min-width: 0; padding-inline: 12px; font-size: 10px; line-height: 1.35; letter-spacing: .055em; white-space: normal; overflow-wrap: anywhere; }
  .hero { min-height: 640px; place-items: end start; }
  .hero-media { object-position: 62% center; }
  .hero::after { background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.06) 72%); }
  .hero-content { padding-bottom: 54px; }
  .hero h1 { max-width: 340px; font-size: clamp(42px, 12vw, 52px); overflow-wrap: normal; }
  .hero .eyebrow { max-width: 330px; font-size: 10px; line-height: 1.45; }
  .hero p { max-width: 340px; }
  .section-head { align-items: start; flex-direction: column; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 60px; font-size: 13px !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { align-items: start; flex-direction: column; }
  .newsletter-form { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }
  .search-row label { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
