/*
Theme Name: Avetec
Template: twentytwentyfive
Description: Shop theme for shop.avetecdesigns.com, matching avetecdesigns.com (2026-10-28 restyle): quiet near-white
  pages, one navy ink, cranberry only where something can be clicked; Newsreader for headlines, Figtree for text.
Version: 1.0
Text Domain: avetec
*/

/* Header: one hairline, the badge on the left, two words and the cart on the right */
.av-top { border-bottom: 1px solid var(--wp--preset--color--accent-6); padding-block: 1.1rem; }
.av-top .wp-block-site-title { font-family: var(--wp--preset--font-family--newsreader); font-size: 1.35rem;
  font-weight: 500; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.av-top .wp-block-site-title a { text-decoration: none; }
.av-top .wp-block-site-logo { flex-shrink: 0; }
.av-top .wp-block-site-logo img { width: 2.25rem; height: 2.25rem; }
.av-nav { gap: 1.75rem; font-weight: 500; }
.av-nav .wp-block-navigation a { text-decoration: none; }

/* Footer: mist band */
.av-foot { background: var(--wp--preset--color--accent-2); margin-top: 6rem; padding-block: 3rem;
  font-size: 0.95rem; color: var(--wp--preset--color--accent-4); }
.av-foot .av-mark { font-family: var(--wp--preset--font-family--newsreader); font-size: 1.35rem;
  color: var(--wp--preset--color--contrast); margin-bottom: 0.4rem; }
.av-foot p { margin-block: 0.2rem; }
.av-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.av-links a { color: var(--wp--preset--color--accent-4); }

/* Shop: soft corners on photos, prices in ink */
.wc-block-components-product-image img, .wp-block-woocommerce-product-image img,
.woocommerce-product-gallery img, .wc-block-grid__product-image img { border-radius: 14px; }
.wp-block-woocommerce-product-price, .wc-block-components-product-price { color: var(--wp--preset--color--contrast); }
.wp-block-post-title a { text-decoration: none; }
/* Cart and checkout totals: "Delivery" and its amount only, not the list of chosen rates under it (user 2026-10-31) */
.wc-block-components-totals-shipping__via { display: none; }

/* Policy pages read like the site's documents */
.wp-block-post-content h2 { margin-top: 2.4rem; font-size: 1.6rem; }
.wp-block-post-content .updated { color: var(--wp--preset--color--accent-4); font-size: 0.95rem; }

@media (max-width: 480px) {
  .av-top .wp-block-site-title { font-size: 1.15rem; }
  .av-nav { gap: 1.1rem; }
  /* one text link fits next to the name and the icons: Shop, since the badge leads to the homepage (2026-11-17) */
  .av-nav .av-nav-ideas { display: none; }
}
@media (max-width: 380px) {
  .av-badge { gap: 0.5rem; }
  .av-nav { gap: 0.6rem; }
}

/* Shop front: a short introduction and the categories as quiet pills */
.av-shop-intro { margin-block: 2.5rem 1.5rem; }
.av-shop-intro h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0 0 0.75rem; }
.av-shop-intro p { max-width: 38rem; color: var(--wp--preset--color--accent-4); margin: 0 0 1.5rem; }
.av-cats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.av-cats a { display: inline-block; padding: 0.45rem 1rem; border: 1px solid var(--wp--preset--color--accent-6);
  border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.av-cats a:hover { border-color: var(--wp--preset--color--accent-1); }

/* Order lookup (/track-order/): order number and email stack on phones instead of two cramped halves */
@media (max-width: 600px) {
  .woocommerce form.woocommerce-form-track-order .form-row-first,
  .woocommerce form.woocommerce-form-track-order .form-row-last { float: none; width: 100%; }
}

/* Homepage (home.php, user 2026-11-17): words and a small gallery wall, the collections as tall photos, the pieces
   set as one sentence of large type, gifts under $15 on a rail, the collection of the month, what every order gets */
.av-home { --av-pad: var(--wp--style--root--padding-left, 16px); --av-slate: var(--wp--preset--color--accent-4);
  --av-line: var(--wp--preset--color--accent-6); --av-mist: var(--wp--preset--color--accent-2);
  --av-link: var(--wp--preset--color--accent-1); --av-serif: var(--wp--preset--font-family--newsreader); }
.av-home, .av-home * { box-sizing: border-box; }   /* the theme leaves divs content-box: padding would widen them */
.av-home .av-wrap { max-width: calc(1216px + 2 * var(--av-pad)); margin-inline: auto; padding-inline: var(--av-pad); }
.av-home img { display: block; max-width: 100%; height: auto; }
.av-home h2 { font: 400 clamp(1.9rem, 3.4vw, 2.75rem)/1.1 var(--av-serif); letter-spacing: -0.015em; margin: 0 0 2rem; }
.av-home .av-acts { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.av-home .av-btn { display: inline-block; background: var(--av-link); color: #fff; text-decoration: none;
  font-weight: 600; padding: 0.85rem 1.5rem; border-radius: 2px; }
.av-home .av-btn:hover { background: var(--wp--preset--color--accent-3); }
.av-home .av-text-link { color: var(--av-link); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }

.av-hero { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.av-hero .av-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.av-hero h1 { font: 400 clamp(2.6rem, 5.6vw, 4.9rem)/1.02 var(--av-serif); letter-spacing: -0.025em; margin: 0 0 1.5rem; }
.av-hero p { font-size: 1.125rem; color: var(--av-slate); max-width: 30ch; margin: 0 0 2rem; }
.av-wall { position: relative; aspect-ratio: 7 / 6; margin: 0; }
.av-wall img { position: absolute; object-fit: cover; }
.av-wall .av-big { inset: 0 18% 0 0; width: 82%; height: 100%; }
.av-wall .av-small { right: 0; bottom: 8%; width: 36%; height: auto; aspect-ratio: 1;
  border: 10px solid var(--wp--preset--color--base); }
.av-wall figcaption { position: absolute; left: 0; bottom: -2rem; font-size: 0.85rem; color: var(--av-slate); }
.av-wall figcaption a { color: var(--wp--preset--color--contrast); }

.av-worlds { padding-block: clamp(3rem, 7vw, 6rem); }
.av-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.av-strip a { text-decoration: none; display: block; }
.av-strip .av-frame { overflow: hidden; background: var(--av-mist); }
.av-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.6s ease; }
.av-strip a:hover img { transform: scale(1.04); }
.av-strip h3 { font: 500 1.25rem/1.25 var(--av-serif); margin: 0.9rem 0 0.15rem; }
.av-strip p { margin: 0; color: var(--av-slate); font-size: 0.9rem; }

.av-pieces { background: var(--av-mist); padding-block: clamp(3.5rem, 8vw, 7rem); }
.av-index { font: 400 clamp(2.2rem, 6vw, 5.2rem)/1.08 var(--av-serif); letter-spacing: -0.03em; margin: 0; }
.av-index a { text-decoration: none; position: relative; white-space: nowrap; }
.av-index a:hover, .av-index a:focus-visible { color: var(--av-link); }
.av-index sup { font: 500 0.9rem/1 var(--wp--preset--font-family--figtree); letter-spacing: 0; color: var(--av-slate);
  margin-left: 0.2em; vertical-align: super; }
.av-index .av-sep { color: var(--av-slate); font-style: italic; font-size: 0.7em; }
.av-index img { position: absolute; left: 50%; bottom: 100%; width: 180px; aspect-ratio: 1; object-fit: cover;
  transform: translate(-50%, -8px) rotate(-2deg); opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 2;
  box-shadow: 0 12px 30px rgba(20, 35, 61, 0.18); }
@media (hover: hover) { .av-index a:hover img { opacity: 1; } }

.av-gifts { padding-block: clamp(3rem, 7vw, 6rem) 0; }
.av-gifts .av-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.av-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 0.75rem) / 6); gap: 0.75rem;
  overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 0 0 0.75rem; }
.av-rail li { scroll-snap-align: start; }
.av-rail a { text-decoration: none; display: block; }
.av-rail img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.av-rail b { display: block; font-weight: 500; font-size: 0.95rem; margin-top: 0.5rem; line-height: 1.35; }
.av-rail span { color: var(--av-slate); font-size: 0.9rem; }
.av-rail a:hover b { color: var(--av-link); }

.av-feature { padding-block: clamp(3.5rem, 8vw, 7rem); }
.av-feature .av-wrap { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.av-feature .av-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.av-feature h2 { margin-bottom: 0; }
.av-kicker { color: var(--av-slate); font-size: 0.95rem; margin: 0 0 0.75rem; }
.av-lede { font: 400 1.2rem/1.55 var(--av-serif); margin: 1.25rem 0 2rem; max-width: 34ch; }
.av-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.av-mini a { text-decoration: none; font-size: 0.85rem; }
.av-mini img { aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 0.4rem; }
.av-mini b { display: block; font-weight: 500; }
.av-mini span { color: var(--av-slate); }

.av-promise { border-top: 1px solid var(--av-line); padding-block: 3rem 0; }
.av-promise ul { list-style: none; margin-block: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.av-promise b { display: block; font: 500 1.15rem/1.3 var(--av-serif); margin-bottom: 0.3rem; }
.av-promise span { color: var(--av-slate); font-size: 0.95rem; }
.av-promise span a { color: inherit; }

@media (max-width: 900px) {
  .av-hero .av-wrap, .av-feature .av-wrap { grid-template-columns: 1fr; }
  .av-wall { margin-bottom: 2rem; }
  .av-strip { grid-template-columns: repeat(5, 72%); overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem; margin-inline: calc(-1 * var(--av-pad)); padding-inline: var(--av-pad);
    scroll-padding-inline: var(--av-pad); }
  .av-strip li { scroll-snap-align: start; }
  .av-rail { grid-auto-columns: 42%; }
  .av-promise ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .av-mini { grid-template-columns: repeat(2, 1fr); }
  .av-promise ul { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .av-home * { transition: none !important; } }

/* Selects: the catalogue's sort order is left as the browser draws it in a block theme (2026-11-17); styled like the
   product options, and both in the theme's type and colours */
body .woocommerce-ordering select.orderby,
body.woocommerce div.product form.cart .variations select {
  font: 500 0.95rem/1.3 var(--wp--preset--font-family--figtree); color: var(--wp--preset--color--contrast);
  border: 1px solid var(--wp--preset--color--accent-6); border-radius: 2px;
  background-color: var(--wp--preset--color--base); }
body .woocommerce-ordering select.orderby {
  appearance: none; -webkit-appearance: none; padding: 0.55rem 2.3rem 0.55rem 0.85rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 52%, calc(100% - 0.85rem) 52%;
  background-size: 0.35rem 0.35rem; background-repeat: no-repeat; }
body .woocommerce-ordering select.orderby:hover,
body.woocommerce div.product form.cart .variations select:hover { border-color: var(--wp--preset--color--accent-4); }
body .woocommerce-ordering select.orderby:focus-visible,
body.woocommerce div.product form.cart .variations select:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent-1); outline-offset: 2px; }
