/*
Theme Name: Unty Premium
Description: Премиальная тема магазина unty.kz: тёплый люкс.
Template: twentytwentyfive
Version: 1.0.0
Text Domain: unty-premium
*/

@font-face { font-family: "Unty Serif"; src: url("../twentytwentyfive/assets/fonts/vollkorn/Vollkorn-VariableFont_wght.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Unty Sans"; src: url("../twentytwentyfive/assets/fonts/manrope/Manrope-VariableFont_wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

body {
  --cream: #f5efe5;
  --sand: #e9dfcf;
  --line: #d3c5b1;
  --ink: #2a1a14;
  --soft: #6a574b;
  --wine: #641b1b;
  --wine-deep: #461212;
  --serif: "Unty Serif", Georgia, serif;
  --sans: "Unty Sans", "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --wp--preset--color--base: var(--cream);
  --wp--preset--color--contrast: var(--ink);
  --wp--style--global--wide-size: 1400px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
}
body :is(h1, h2, h3) { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; text-wrap: balance; }
body a { color: inherit; }
body :is(a, button, summary, select, input):focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

/* Template parts sit flush, without the default block gap */
.wp-site-blocks > header.wp-block-template-part { position: relative; z-index: 30; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.home .wp-site-blocks > main { margin: 0; padding: 0; }

/* Header */
.u-topbar { background: var(--wine-deep); color: #f3e6d6; text-align: center; font-size: 13px; line-height: 1.4; padding: 8px 16px; }
.u-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 18px var(--gutter); border-bottom: 1px solid var(--line); background: var(--cream); }
.u-header a { text-decoration: none; }
.u-nav, .u-tools { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); font-size: 15px; }
.u-tools { justify-content: flex-end; }
.u-nav a:hover, .u-tools__text:hover { color: var(--wine); }
.u-logo img { display: block; width: 204px; height: auto; mix-blend-mode: multiply; }
.u-icon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px; }
.u-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.u-count { position: absolute; top: 2px; right: 0; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--wine); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.u-count[hidden] { display: none; }
.u-burger { display: none; }

/* Buttons and links */
.u-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border: 1px solid var(--wine); background: var(--wine); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.u-btn:hover { background: var(--wine-deep); }
.u-btn--line { background: transparent; color: var(--wine); }
.u-btn--line:hover { background: var(--wine); color: #fff; }
.u-btn--cream { background: var(--cream); border-color: var(--cream); color: var(--wine-deep); }
.u-btn--cream:hover { background: #fff; }
.u-link { font-size: 15px; font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 1px; white-space: nowrap; }
.u-link:hover { color: var(--wine); }
.u-link--light, .u-link--light:hover { color: #f3e6d6; }
.u-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.u-hero { display: grid; grid-template-columns: 1.02fr 1fr; min-height: min(720px, 82vh); }
.u-hero__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 96px) var(--gutter); }
.u-hero h1 { margin: 0; max-width: 11ch; font-size: clamp(44px, 6.3vw, 100px); line-height: .98; }
.u-hero p { max-width: 36ch; margin: 28px 0 34px; color: var(--soft); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; }
.u-hero__art { position: relative; display: grid; place-items: center; background: #dccbb3; overflow: hidden; text-decoration: none; }
.u-hero__art img { width: min(88%, 700px); height: auto; mix-blend-mode: multiply; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.u-hero__art:hover img { transform: scale(1.025); }
.u-hero__tag { position: absolute; left: 28px; bottom: 24px; display: grid; gap: 2px; font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.u-hero__tag b { font-family: var(--sans); font-size: 15px; font-weight: 600; }

/* Sections */
.u-section { padding: clamp(56px, 7.5vw, 116px) var(--gutter) 0; }
.u-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 44px); }
.u-head h2, .u-delivery h2, .u-story h2, .u-help h2 { margin: 0; font-size: clamp(32px, 3.7vw, 56px); line-height: 1.06; }
.u-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.7vw, 28px); }
.u-card { display: block; text-decoration: none; }
.u-card__img { display: block; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.u-card__img img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 7%; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.u-card:hover img { transform: scale(1.035); }
.u-card__name { display: block; margin-top: 16px; font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.u-card__price { display: block; margin-top: 5px; font-size: 15px; font-variant-numeric: tabular-nums; }
.u-card__price del { margin-right: 6px; color: var(--soft); }
.u-card__price ins { text-decoration: none; color: var(--wine); font-weight: 600; }

/* Categories */
.u-cats { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: repeat(2, clamp(220px, 25vw, 380px)); gap: clamp(12px, 1.4vw, 22px); }
.u-cat { position: relative; background: var(--sand); overflow: hidden; text-decoration: none; }
.u-cat--tall { grid-row: 1 / 3; background: #dccbb3; }
.u-cat--wide { grid-column: 2 / 4; background: #e1d5c2; }
.u-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 24px 24px 64px; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.u-cat:hover img { transform: scale(1.03); }
.u-cat span { position: absolute; left: 24px; bottom: 18px; font-family: var(--serif); font-size: clamp(21px, 1.8vw, 28px); line-height: 1.2; }

/* Story */
.u-story { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(56px, 7.5vw, 116px); background: var(--wine-deep); color: #f8eee2; }
.u-story > img { display: block; width: 100%; height: 100%; min-height: 420px; max-height: 720px; object-fit: cover; }
.u-story__copy { align-self: center; padding: clamp(40px, 6vw, 100px); }
.u-story p { max-width: 46ch; margin: 22px 0 0; color: #e6d3c3; font-size: 17px; line-height: 1.65; }
.u-story .u-link { display: inline-block; margin-top: 30px; }

/* Delivery */
.u-delivery { padding-bottom: clamp(56px, 7.5vw, 116px); }
.u-delivery dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(26px, 3vw, 44px) 0 30px; border-block: 1px solid var(--line); }
.u-delivery dl > div { padding: 28px 28px 28px 0; }
.u-delivery dl > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.u-delivery dt { font-family: var(--serif); font-size: 25px; line-height: 1.3; }
.u-delivery dd { margin: 6px 0 0; color: var(--soft); font-size: 16px; line-height: 1.5; }

/* Help + footer */
.u-help { display: grid; justify-items: center; gap: 18px; padding: clamp(52px, 6vw, 92px) var(--gutter); background: var(--wine); color: #fff; text-align: center; }
.u-help p { margin: 0 0 10px; color: #f3ddd0; font-size: 17px; line-height: 1.5; }
.u-footer { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 40px; padding: clamp(44px, 5vw, 76px) var(--gutter) 96px; background: #21140f; color: #d9c8b7; font-size: 15px; line-height: 1.5; }
.u-footer a { display: block; width: fit-content; padding: 5px 0; text-decoration: none; }
.u-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.u-footer b { display: block; margin-bottom: 10px; color: #fff; font-weight: 600; }
.u-footer strong { color: #fff; font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.2; }
.u-footer p { max-width: 30ch; margin: 12px 0 0; }
.u-footer .u-footer__phone { color: #fff; font-size: 19px; }
.u-footer small { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid #4a372d; font-size: 13px; }

/* Catalogue, product, cart and checkout (WooCommerce blocks) */
body:not(.home) .wp-site-blocks > main, .woocommerce-shop .wp-site-blocks > main { margin-top: 0 !important; padding-block: clamp(28px, 4vw, 60px) clamp(64px, 7vw, 110px); }
.wp-block-query-title, body:not(.home) main h1.wp-block-post-title { font-size: clamp(38px, 4.6vw, 68px); line-height: 1.05; }
.woocommerce-result-count, .wc-block-breadcrumbs { color: var(--soft); font-size: 15px !important; }
.woocommerce-ordering select, .variations select, .cart input.qty { min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: #fffaf2; color: var(--ink); font: 400 16px/1.2 var(--sans); }
.wc-block-product-template { row-gap: 48px !important; }
.wc-block-product .wc-block-components-product-image { aspect-ratio: 4 / 5; margin-bottom: 16px !important; background: var(--sand); overflow: hidden; }
.wc-block-product .wc-block-components-product-image > a { display: block; height: 100%; }
.wc-block-product .wc-block-components-product-image img { width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: contain !important; padding: 7%; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.035); }
.wc-block-product .wp-block-post-title { margin: 0 !important; text-align: left; font-size: 21px !important; line-height: 1.25; }
.wc-block-product .wp-block-post-title a { text-decoration: none; }
.wc-block-product .wc-block-components-product-price { margin: 5px 0 0 !important; text-align: left; font-size: 15px !important; font-variant-numeric: tabular-nums; }
.wc-block-components-product-price del { color: var(--soft); }
.wc-block-components-product-price ins { color: var(--wine); text-decoration: none; font-weight: 600; }
.wc-block-product .wc-block-components-product-button { align-items: flex-start !important; margin: 12px 0 0 !important; }
.wc-block-product .wc-block-components-product-button__button { min-height: 44px; padding: 0 !important; border: 0; border-radius: 0; background: transparent !important; color: var(--wine) !important; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.wc-block-components-product-sale-badge { padding: 5px 10px !important; border: 0 !important; border-radius: 0 !important; background: var(--wine) !important; color: #fff !important; font-size: 12px !important; font-weight: 600 !important; text-transform: none !important; }
.woocommerce-product-gallery__image, .flex-control-thumbs li { background: var(--sand); }
.woocommerce-product-gallery__image img, .flex-control-thumbs img { mix-blend-mode: multiply; }
.single-product .wc-block-components-product-price { margin-block: 12px !important; font-size: 25px !important; }
.single-product .wp-block-post-excerpt { color: var(--soft); font-size: 16px; line-height: 1.65; }
.single-product table:not(.variations) { border-collapse: collapse; width: 100%; }
.single-product table:not(.variations) td { padding: 12px 12px 12px 0; border: 0; border-bottom: 1px solid var(--line); }
body .single_add_to_cart_button, body .wc-block-components-button:not(.is-link):not(.wc-block-components-notice-banner__dismiss), body .woocommerce-button, body form .button { min-height: 50px; padding: 0 28px !important; border-radius: 0 !important; background: var(--wine) !important; color: #fff !important; font-family: var(--sans); font-weight: 600; }
body .single_add_to_cart_button:hover, body .wc-block-components-button:not(.is-link):not(.wc-block-components-notice-banner__dismiss):hover { background: var(--wine-deep) !important; }

/* Padded images must keep their padding inside the frame */
.u-card__img img, .u-cat img, .wc-block-product .wc-block-components-product-image img { box-sizing: border-box; max-width: 100%; }
body :is(h1, h2, h3), .u-card__name, .u-hero__tag { font-variant-numeric: lining-nums; }
.u-cat img { height: calc(100% - 64px); padding: 22px 22px 0; }
.u-cat--wide img { inset: 0 0 0 auto; width: 58%; height: 100%; padding: 0; object-fit: cover; mix-blend-mode: normal; }
body:not(.home) .wp-site-blocks main { margin-top: 0 !important; padding-top: clamp(28px, 4vw, 60px) !important; padding-bottom: clamp(64px, 7vw, 110px) !important; }
.single-product .wp-block-post-excerpt__excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.single-product :is(.wp-block-woocommerce-product-meta, .product_meta) { display: none; }
.single-product .variations :is(th, td) { padding-top: 0 !important; vertical-align: top !important; }
.single-product .variations th.label { padding-right: 18px; font-size: 16px; line-height: 46px !important; }
.single-product .variations th.label label { line-height: inherit; }
.single-product .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px !important; }
.single-product .flex-control-thumbs li { float: none !important; width: auto !important; }
.single-product .woocommerce-Tabs-panel, .single-product .woocommerce-Tabs-panel td { font-size: 17px; line-height: 1.65; }
.single-product .woocommerce-Tabs-panel p { max-width: 72ch; }
.single-product .woocommerce-Tabs-panel table { max-width: 820px; }

@media (max-width: 900px) {
  .u-header { grid-template-columns: 1fr auto 1fr; gap: 10px; padding-block: 12px; }
  .u-nav, .u-tools__text, .u-icon--account { display: none; }
  .u-logo img { width: 164px; }
  .u-burger { display: block; }
  .u-burger summary { display: grid; align-content: center; gap: 7px; width: 44px; height: 44px; margin-left: -8px; padding: 0 9px; list-style: none; cursor: pointer; }
  .u-burger summary::-webkit-details-marker { display: none; }
  .u-burger summary span { height: 1.5px; background: var(--ink); transition: transform .2s; }
  .u-burger[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
  .u-burger[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .u-drawer { position: absolute; inset: 100% 0 auto; display: grid; max-height: 80vh; overflow: auto; padding: 14px var(--gutter) 28px; border-bottom: 1px solid var(--line); background: var(--cream); }
  .u-drawer a { padding: 10px 0; font-family: var(--serif); font-size: 24px; line-height: 1.25; }
  .u-drawer .u-drawer__minor { font-family: var(--sans); font-size: 16px; }
  .u-hero { grid-template-columns: 1fr; min-height: 0; }
  .u-hero__copy { padding-block: 40px 36px; }
  .u-hero p { margin: 18px 0 24px; }
  .u-hero__art { place-items: start center; padding: 12px 0 84px; }
  .u-hero__tag { left: 16px; bottom: 14px; }
  .u-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .u-cats { grid-template-columns: 1fr 1fr; grid-template-rows: 88vw 50vw 50vw; }
  .u-cat--tall { grid-row: auto; grid-column: 1 / 3; }
  .u-cat--wide { grid-column: 1 / 3; }
  .u-cat img { height: calc(100% - 56px); padding: 14px 14px 0; }
  .u-cat--wide img { height: 100%; padding: 0; }
  .u-cat span { left: 16px; bottom: 14px; }
  .u-story { grid-template-columns: 1fr; }
  .u-story > img { min-height: 0; aspect-ratio: 1 / 1; }
  .u-story__copy { padding: 44px var(--gutter) 52px; }
  .u-footer { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .u-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .u-topbar { font-size: 12px; }
  .u-actions .u-btn { flex: 1 1 100%; }
  .u-head { flex-direction: column; gap: 12px; }
  .u-card__name, .wc-block-product .wp-block-post-title { font-size: 18px !important; }
  .u-delivery dl { grid-template-columns: 1fr; }
  .u-delivery dl > div, .u-delivery dl > div + div { padding: 18px 0; border-left: 0; }
  .u-delivery dl > div + div { border-top: 1px solid var(--line); }
  .wc-block-product-template { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 32px 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body *, body *::before, body *::after { transition: none !important; }
}
