/* KEYON — WordPress + WooCommerce layer on top of main.css (always loaded).
   Styles WooCommerce's own markup (single product, cart, checkout, account,
   notices, widgets) with the same tokens as the storefront. */

/* ---------- WordPress basics ---------- */
.skip:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 400; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; }
.is-entering .curtain i { transform: scaleY(1); }
.garment-ph { display: block; }
.logo__img { height: 30px; width: auto; }
.lang a { padding: 5px 9px; border-radius: 999px; letter-spacing: .06em; transition: background .3s, color .3s; }
.lang a.is-on { background: var(--ink); color: var(--paper); }
.lang--dark { display: inline-flex; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.lang--dark a.is-on { background: var(--band-fg); color: var(--band); }
.footer__sub { color: rgba(247,243,237,.6); max-width: 34ch; margin: 0; }
.hscroll__season { font-size: 12px; opacity: .6; }
.news__copy { display: flex; flex-direction: column; gap: 16px; }
.toolbar__end { display: flex; gap: 8px; align-items: center; }
.tags--static { position: static; }
.tags--static:empty { display: none; }
.tags--static .tag { background: var(--sand); }
.tags--static .tag--dark { background: var(--ink); }
.admin-bar .header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .header { top: env(safe-area-inset-top, 0px); } }

/* Logo: KEYON collapses to KYN (home page animates it; other pages start short). Hover shows the full name. */
.logo span { transform: none !important; }
.logo span::after { content: none !important; }
.logo span.drop { display: inline-block; overflow: hidden; max-width: 1.3em; vertical-align: top; transition: max-width .9s var(--ease-io), opacity .5s ease, transform .9s var(--ease-io); }
.logo.is-short span.drop { max-width: 0; opacity: 0; transform: scaleX(.2) !important; }
.logo.is-short:hover span.drop, .logo.is-short:focus-visible span.drop { max-width: 1.3em; opacity: 1; transform: none !important; }
.logo.no-anim span.drop { transition: none; }

.mmenu .theme-toggle { color: var(--band-fg); }
.mmenu__foot { gap: 12px; }
.mmenu__foot > div { display: flex; align-items: center; gap: 8px; }

/* ---------- header layout ---------- */
.header__start { display: flex; align-items: center; gap: 4px; min-width: 0; }
.theme-toggle--start { display: none; }
.count-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 10px/18px var(--f-mono); text-align: center; transform: scale(0); transition: transform .4s var(--ease); }
.count-badge.has { transform: scale(1); }
.count-badge.bump { animation: bump .6s var(--ease); }
@media (max-width: 900px) {
  .header__in { grid-template-columns: 1fr auto 1fr !important; }
  .header__in .logo { justify-self: center !important; }
  .theme-toggle--start { display: inline-grid; }
  .theme-toggle--end, .tools__account { display: none; }
  .tools { gap: 2px; }
}
@media (max-width: 380px) { .header .icon-btn { width: 36px; height: 36px; } .logo { font-size: 22px; } }

/* ---------- wishlist ---------- */
:root { --heart: #B5483A; }
:root[data-theme="dark"] { --heart: #E58A76; }
.wish { position: relative; display: inline-grid; place-items: center; color: var(--ink); transition: transform .4s var(--ease), background .3s, color .3s; }
.wish svg { width: 18px; height: 18px; transition: fill .25s, stroke .25s; }
.wish.is-on svg { fill: var(--heart); stroke: var(--heart); }
.wish.pop svg { animation: heartpop .6s var(--ease); }
.wish.pop::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; box-shadow: 0 -16px 0 var(--heart), 14px -8px 0 var(--heart), 14px 8px 0 var(--heart), 0 16px 0 var(--heart), -14px 8px 0 var(--heart), -14px -8px 0 var(--heart); animation: burst .55s ease-out forwards; pointer-events: none; }
.wish:not(.is-on).pop::after { display: none; }
@keyframes heartpop { 0% { transform: scale(1); } 30% { transform: scale(.7); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes burst { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.4); } }
.wish--card { position: absolute; top: 10px; right: 10px; z-index: 4; width: 40px; height: 40px; border-radius: 50%; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wish--card:hover { transform: scale(1.08); }
.wish--pdp { display: inline-flex; gap: 10px; align-items: center; justify-content: center; height: 52px; padding: 0 22px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 15px; width: 100%; }
.wish--pdp:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.wish--pdp.is-on { box-shadow: inset 0 0 0 1.5px var(--heart); }
.wish-item .line-item__img { display: block; }
.wish-item .line-item__img img, .wish-item .line-item__img .garment { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.wish-item h4 a { font-weight: 600; }
.wish-item .price { display: block; margin: 4px 0 10px; font-size: 14px; }
.wish-item__actions .btn--sm, .btn--sm { height: 38px; padding: 0 16px; font-size: 13px; }
.wish-item .added_to_cart { display: none; }
.wish-empty { padding: 60px 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.wish-empty svg { width: 40px; height: 40px; color: var(--heart); }
.wish-empty p { margin: 0; }
.wish-page .line-item { max-width: 720px; }
.mmenu__extra { display: flex; gap: 20px; margin-top: 28px; }
.mmenu__extra a, .mmenu__extra button { display: inline-flex; align-items: center; gap: 8px; font: 500 14px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--band-fg); opacity: .85; }
.mmenu__extra svg { width: 18px; height: 18px; }

/* photos inside the illustrated layouts */
.card__media .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .6s var(--ease); }
.card__media .photo.alt { opacity: 0; }
.card__frame:hover .card__media .photo.alt { opacity: 1; }
.card__frame:hover .card__media .photo.main:not(:only-of-type) { opacity: 0; }
.card__frame:hover .card__media .photo.main { transform: scale(1.04); }
.hero__main .photo, .hero__float .photo { width: 100%; height: 100%; object-fit: contain; }
.hero__float .photo { object-fit: cover; border-radius: 10px; }
.cat .photo { position: absolute; right: 0; bottom: 0; width: 60%; height: 100%; object-fit: cover; }
.coll__art .photo { width: 100%; height: 100%; object-fit: cover; }

/* ---------- prices ---------- */
.price { font-family: var(--f-mono); }
.price del { color: var(--taupe); margin-right: 6px; opacity: 1; }
.price ins { text-decoration: none; background: none; }
.price .woocommerce-Price-currencySymbol { margin-right: 1px; }
.price .screen-reader-text, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- quick add (simple product button) ---------- */
.quick__one { display: inline-flex; height: 36px; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; }
.quick__one.loading { opacity: .6; }
.quick .added_to_cart { display: none; }
.js-quick[disabled] { opacity: .35; text-decoration: line-through; pointer-events: none; }

/* ---------- shop ---------- */
.shop--full { grid-template-columns: 1fr; }
.shop--full .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.woocommerce-result-count { margin: 0; font-family: var(--f-mono); font-size: 13px; color: var(--taupe); }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select, .orderby { height: 40px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1px var(--line); padding: 0 36px 0 16px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%231D1B18' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; -webkit-appearance: none; font-size: 14px; }
.term-description, .page-description { max-width: 60ch; color: var(--ink-2); }
.woocommerce-pagination { margin-top: 56px; }
.woocommerce-pagination ul, .pagination .nav-links { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; flex-wrap: wrap; }
.woocommerce-pagination a, .woocommerce-pagination span, .pagination .page-numbers { min-width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--f-mono); font-size: 14px; padding: 0 12px; }
.woocommerce-pagination .current, .pagination .current { background: var(--ink); color: var(--paper); box-shadow: none; }
.filters .widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.filters .widget ul li a { display: inline-flex; height: 34px; align-items: center; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.filters .widget ul li.chosen a, .filters .widget ul li.current-cat a { background: var(--ink); color: var(--paper); }
.filters .price_slider_amount .button { height: 36px; padding: 0 14px; font-size: 13px; }
.filters .ui-slider { position: relative; height: 3px; background: var(--line); margin: 14px 6px 18px; }
.filters .ui-slider-range { position: absolute; height: 100%; background: var(--ink); }
.filters .ui-slider-handle { position: absolute; top: -7px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--ink); }

/* ---------- buttons (WooCommerce markup) ---------- */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .wc-block-components-button:not(.is-link), .wp-element-button, .woocommerce-mini-cart__buttons a {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--paper); font: 600 15px/1 var(--f-body); letter-spacing: .01em; cursor: pointer; transition: background .3s, color .3s, transform .4s var(--ease); text-decoration: none;
}
.woocommerce .button:hover, .woocommerce-mini-cart__buttons a:hover, .wc-block-components-button:not(.is-link):hover { background: var(--ink-2); color: var(--paper); }
.woocommerce .button.alt, .single_add_to_cart_button { background: var(--ink); }
.woocommerce .button.loading { opacity: .6; pointer-events: none; }
.woocommerce .button:disabled, .woocommerce .button.disabled { opacity: .4; cursor: not-allowed; }
.woocommerce-mini-cart__buttons a:not(.checkout) { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.woocommerce-mini-cart__buttons a:not(.checkout):hover { background: var(--ink); color: var(--paper); }

/* ---------- forms (checkout, account, contact plugins) ---------- */
.woocommerce form .form-row { margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.woocommerce form .form-row label, .entry label { font-size: 13px; color: var(--taupe); }
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select, .entry input[type="text"], .entry input[type="email"], .entry input[type="tel"], .entry input[type="password"], .entry textarea, .entry select, .select2-container .select2-selection--single {
  min-height: 52px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--white); padding: 12px 16px; font-size: 15px; width: 100%; outline: none; transition: box-shadow .3s;
}
.woocommerce input.input-text:focus, .woocommerce textarea:focus, .entry input:focus, .entry textarea:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 28px; padding: 0; }
.select2-container .select2-selection--single .select2-selection__arrow { top: 13px; right: 10px; }
.woocommerce form .form-row .required { color: var(--err); text-decoration: none; }
.woocommerce-invalid input.input-text { box-shadow: inset 0 0 0 1.5px var(--err) !important; }

/* ---------- notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  list-style: none; margin: 0 0 24px; padding: 16px 20px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 15px;
}
.woocommerce-error { box-shadow: inset 0 0 0 1.5px var(--err); }
.woocommerce-message .button, .woocommerce-info .button { height: 40px; padding: 0 18px; font-size: 13px; order: 2; }

/* ---------- single product ---------- */
.wc-main { padding-block: 24px 96px; }
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; margin-top: 20px; }
.single-product div.product > .woocommerce-product-gallery { grid-column: 1; grid-row: 1; position: relative; border-radius: 18px; overflow: hidden; background: var(--card-bg); width: 100% !important; float: none; margin: 0; }
.single-product div.product > .summary { grid-column: 2; grid-row: 1; float: none; width: auto; margin: 0; }
.single-product div.product > .summary, .single-product div.product > .woocommerce-tabs, .single-product div.product > .related, .single-product div.product > .upsells { min-width: 0; }
.single-product div.product > .woocommerce-tabs, .single-product div.product > .related, .single-product div.product > .upsells { grid-column: 1 / -1; }
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; height: auto; display: block; }
.woocommerce-product-gallery__trigger { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-size: 0; }
.woocommerce-product-gallery__trigger::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--ink); border-radius: 50%; }
.flex-control-thumbs { list-style: none; margin: 0; padding: 10px; display: flex; gap: 10px; background: var(--paper); }
.flex-control-thumbs li { width: 72px; cursor: pointer; }
.flex-control-thumbs img { border-radius: 10px; opacity: .6; transition: opacity .3s; }
.flex-control-thumbs img.flex-active, .flex-control-thumbs img:hover { opacity: 1; }
.keyon-illustration { aspect-ratio: 4 / 5; position: relative; }
.keyon-illustration .garment { position: absolute; inset: 5% 7% 2%; width: 86%; height: 93%; }
.woocommerce-product-gallery__image--placeholder img { opacity: .4; }

.summary { display: flex; flex-direction: column; gap: 20px; }
.summary .product_title { font-family: var(--f-display); font-stretch: 112%; font-weight: 750; text-transform: uppercase; font-size: clamp(34px, 4vw, 60px); line-height: .95; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
.summary > .price { font-size: 22px; margin: 0; }
.summary .woocommerce-product-details__short-description { color: var(--ink-2); font-size: 16px; }
.summary .woocommerce-product-details__short-description p { margin: 0 0 8px; }
.summary .stock { margin: 0; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.summary .stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.summary .stock.out-of-stock::before { background: var(--err); }
.summary .product_meta { font: 500 12px var(--f-mono); letter-spacing: .04em; color: var(--taupe); display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 16px; }
.summary .product_meta a { text-decoration: underline; text-underline-offset: 3px; }

table.variations { border-collapse: collapse; width: 100%; margin: 0 0 8px; }
table.variations tr { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
table.variations th, table.variations td { padding: 0; text-align: left; }
table.variations th label { font-size: 14px; font-weight: 600; }
.kswatches-select { position: absolute !important; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.kswatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.kswatches button { height: 48px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); font: 500 14px var(--f-mono); transition: background .25s, color .25s, box-shadow .25s; }
.kswatches button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.kswatches button.is-on { background: var(--ink); color: var(--paper); }
.kswatches button:disabled { color: var(--stone); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(29,27,24,.05) 6px 7px); cursor: not-allowed; }
.kswatches--color { display: flex; flex-wrap: wrap; gap: 12px; }
.kswatches--color button { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); position: relative; }
.kswatches--color button.is-on { background-clip: padding-box; }
.kswatches--color button.is-on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink); }
.kswatches--color button:disabled { opacity: .35; }
.reset_variations { font-size: 13px; color: var(--taupe); text-decoration: underline; text-underline-offset: 3px; }
.single_variation_wrap .woocommerce-variation-price { margin-bottom: 10px; font-size: 18px; }
form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
form.variations_form { display: block; }
.woocommerce-variation-add-to-cart { display: flex; gap: 10px; flex-wrap: wrap; }
.quantity { display: inline-flex; }
.quantity .qty { width: 84px; height: 52px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1px var(--line); text-align: center; font-family: var(--f-mono); background: transparent; }
form.cart .single_add_to_cart_button { flex: 1; min-width: 200px; }

.woocommerce-tabs { margin-top: 32px; border-top: 1px solid var(--line); }
.woocommerce-tabs ul.tabs { box-shadow: none; border-radius: 0; width: auto; list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; padding-top: 24px; }
.woocommerce-tabs ul.tabs li a { display: inline-flex; height: 38px; align-items: center; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; }
.woocommerce-tabs ul.tabs li.active a { background: var(--ink); color: var(--paper); box-shadow: none; }
.woocommerce-Tabs-panel { padding: 24px 0; max-width: 70ch; color: var(--ink-2); }
.woocommerce-Tabs-panel h2 { font-family: var(--f-display); font-stretch: 100%; font-size: 22px; margin: 0 0 12px; }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.woocommerce-product-attributes td p { margin: 0; }
.related > h2, .upsells > h2, .cross-sells > h2 { font-family: var(--f-display); font-stretch: 112%; font-weight: 750; text-transform: uppercase; font-size: clamp(28px, 4vw, 56px); margin: 56px 0 28px; letter-spacing: -.015em; }
.star-rating { position: relative; display: inline-block; overflow: hidden; width: 5.4em; height: 1.1em; line-height: 1; font-size: 14px; letter-spacing: .08em; color: var(--ink); }
.star-rating::before { content: "★★★★★"; opacity: .2; }
.star-rating span { position: absolute; inset: 0 auto 0 0; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "★★★★★"; position: absolute; top: 0; left: 0; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 7px); float: left; }
.woocommerce form .form-row-last { float: right; }
.woocommerce form .form-row-wide, .woocommerce form .clear { clear: both; }
.woocommerce-store-notice { position: fixed; bottom: 0; left: 0; right: 0; z-index: 66; margin: 0; padding: 12px 16px; background: var(--band); color: var(--band-fg); font-size: 14px; text-align: center; }
.woocommerce-store-notice a { color: inherit; text-decoration: underline; }

/* ---------- bag drawer (mini cart) ---------- */
.drawer .drawer__body { display: flex; flex-direction: column; }
.drawer .widget_shopping_cart_content { display: flex; flex-direction: column; min-height: 100%; }
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 14px; padding: 16px 28px 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.woocommerce-mini-cart-item a:not(.remove) { display: contents; font-weight: 600; }
.woocommerce-mini-cart-item img, .woocommerce-mini-cart-item .garment { grid-row: span 3; width: 76px; height: 95px; object-fit: cover; border-radius: 10px; background: var(--card-bg); }
.woocommerce-mini-cart-item .garment { padding: 4px; }
.woocommerce-mini-cart-item .remove { position: absolute; top: 14px; right: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--taupe); font-size: 18px; line-height: 1; }
.woocommerce-mini-cart-item .remove:hover { background: var(--sand); color: var(--ink); }
.woocommerce-mini-cart-item .variation { margin: 0; display: flex; gap: 4px 8px; flex-wrap: wrap; color: var(--taupe); font-size: 13px; }
.woocommerce-mini-cart-item .variation dt, .woocommerce-mini-cart-item .variation dd { margin: 0; }
.woocommerce-mini-cart-item .variation dd p { margin: 0; }
.woocommerce-mini-cart-item .quantity { font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: auto 0 0; padding: 20px 0 12px; font-size: 17px; font-weight: 600; border-top: 1px solid var(--line); }
.woocommerce-mini-cart__total .amount { font-family: var(--f-mono); }
.woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 20px; }
.woocommerce-mini-cart__empty-message { padding: 60px 0; font-size: 18px; font-weight: 600; }

/* ---------- pages, cart, checkout, account ---------- */
.page-body { padding-bottom: 120px; }
.page-body--text .entry { max-width: 72ch; font-size: 17px; color: var(--ink-2); }
.page-body--text .entry h2, .page-body--text .entry h3 { font-family: var(--f-display); font-stretch: 100%; color: var(--ink); line-height: 1.1; margin: 1.8em 0 .5em; }
.page-body--text .entry a { text-decoration: underline; text-underline-offset: 3px; }
.entry > *:first-child { margin-top: 0; }
.entry img { border-radius: 14px; height: auto; }

.wc-block-cart, .wc-block-checkout { font-family: var(--f-body); }
.wc-block-components-sidebar-layout .wc-block-components-sidebar { background: var(--white); border-radius: 18px; padding: 24px !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select .wc-blocks-components-select__select { border-radius: 12px !important; border-color: var(--line) !important; background: var(--white) !important; }
.wc-block-components-title, .wc-block-components-checkout-step__title { font-family: var(--f-display) !important; font-stretch: 112%; text-transform: uppercase; font-weight: 750 !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value, .wc-block-formatted-money-amount { font-family: var(--f-mono); }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-radius: 12px !important; }
.wc-block-cart-item__image img { border-radius: 10px; background: var(--sand); }

/* classic cart / checkout shortcodes */
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 18px; overflow: hidden; font-size: 15px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.woocommerce table.shop_table th { font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); }
.woocommerce table.shop_table img { width: 64px; border-radius: 10px; }
.woocommerce .cart-collaterals, .woocommerce-checkout-review-order { margin-top: 32px; }
.woocommerce #payment { background: var(--white); border-radius: 18px; padding: 20px; }
.woocommerce #payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.woocommerce #payment ul.payment_methods li { padding: 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.woocommerce #payment .payment_box { font-size: 14px; color: var(--ink-2); padding-top: 10px; }
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.woocommerce form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.woocommerce form.checkout .col2-set { grid-template-columns: 1fr; }
.woocommerce form.checkout #order_review_heading, .woocommerce form.checkout #order_review { grid-column: 2; }
.woocommerce form.checkout .col2-set { grid-column: 1; grid-row: 1 / span 3; }

.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 500; transition: background .3s; }
.woocommerce-MyAccount-navigation a:hover { background: var(--sand); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: var(--paper); }
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-account .u-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.woocommerce-account .u-column1, .woocommerce-account .u-column2 { background: var(--white); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.woocommerce-account h2 { font-family: var(--f-display); font-stretch: 112%; text-transform: uppercase; font-size: 22px; margin: 0 0 16px; }
mark.order-status { background: var(--sand); padding: 3px 8px; border-radius: 999px; font: 600 11px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }

/* blog list */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 120px; }
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card__img img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.post-card p { margin: 0; color: var(--ink-2); }
.pagination { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  .shop--full .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .single-product div.product { grid-template-columns: 1fr; }
  .single-product div.product > .woocommerce-product-gallery, .single-product div.product > .summary { grid-column: 1; grid-row: auto; }
  .woocommerce form.checkout, .woocommerce-checkout .col2-set, .woocommerce-account .woocommerce, .woocommerce-account .u-columns { grid-template-columns: 1fr; }
  .woocommerce form.checkout #order_review_heading, .woocommerce form.checkout #order_review, .woocommerce form.checkout .col2-set { grid-column: auto; grid-row: auto; }
  .posts { grid-template-columns: 1fr 1fr; }
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tr td { display: flex; justify-content: space-between; gap: 12px; }
  .woocommerce table.shop_table_responsive tr td::before { content: attr(data-title); font: 500 11px var(--f-mono); text-transform: uppercase; color: var(--taupe); }
}
@media (max-width: 560px) {
  .shop--full .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { grid-template-columns: 1fr; }
  .woocommerce-mini-cart__buttons { grid-template-columns: 1fr; }
}
