/*
Theme Name: glorycorner
Theme URI: https://glorycorner.com
Author: glorycorner
Description: WooCommerce theme for the glorycorner print-on-demand apparel store.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: artsygift
*/

:root {
  --ag-ink: #161616;
  --ag-muted: #5f636b;
  --ag-line: #e4e5e8;
  --ag-paper: #ffffff;
  --ag-canvas: #ffffff;
  --ag-soft: #f5f5f7;
  --ag-accent: #d9483b;
  --ag-star: #ffb218;
  --ag-radius-xl: 38px;
  --ag-radius-lg: 26px;
  --ag-radius-md: 18px;
  --ag-radius-sm: 12px;
  --ag-shadow: 0 18px 60px rgba(18, 22, 33, 0.08);
  --ag-max: 1440px;
}

@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/Inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/Inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ag-ink);
  background: var(--ag-canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.ag-menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ag-container { width: min(calc(100% - 40px), var(--ag-max)); margin-inline: auto; }
.ag-surface { background: var(--ag-soft); border-radius: var(--ag-radius-xl); }
.ag-site-main { min-height: 60vh; }

/* Header */
.ag-site-header {
  position: sticky; top: 0; z-index: 50;
  width: min(calc(100% - 24px), calc(var(--ag-max) + 48px));
  margin: 12px auto 0; padding: 18px 22px;
  background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.8);
  border-radius: 30px; box-shadow: 0 10px 40px rgba(20,24,36,.06);
  backdrop-filter: blur(18px);
}
.ag-header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.ag-header-start, .ag-header-end, .ag-header-actions { display: flex; align-items: center; gap: 12px; }
.ag-header-end { justify-content: flex-end; }
.ag-header-nav ul { display: flex; gap: 26px; padding: 0; margin: 0; list-style: none; }
.ag-header-nav a { font-size: 14px; font-weight: 650; }
.ag-logo { display: inline-flex; align-items: center; justify-content: center; font-size: 29px; font-weight: 850; letter-spacing: -.07em; }
.ag-logo img { max-height: 42px; width: auto; }
.ag-icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--ag-line);
  border-radius: 50%; background: #fff; cursor: pointer; transition: .2s ease;
}
.ag-icon-button:hover { transform: translateY(-2px); border-color: #bbbfc7; }
.ag-icon-button svg { width: 20px; height: 20px; }
.ag-cart-link, .ag-favorites-link { position: relative; }
.ag-favorites-count[hidden] { display: none; }
.ag-cart-count, .ag-favorites-count {
  position: absolute; top: -4px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center; color: #fff; background: var(--ag-ink); border: 2px solid #fff;
  border-radius: 10px; font-size: 10px; font-weight: 800;
}
.ag-header-tools { display: grid; grid-template-columns: 180px 1fr auto; gap: 12px; margin-top: 16px; }
.ag-category-select, .ag-search-form, .ag-chip {
  min-height: 44px; border: 1px solid var(--ag-line); background: #fafafa; border-radius: 999px;
}
.ag-category-select,
.woocommerce .woocommerce-ordering select {
  min-height: 44px; padding: 0 44px 0 16px; border: 1px solid var(--ag-line); border-radius: 999px;
  color: var(--ag-ink); background-color: #fafafa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 16px;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.ag-category-select:focus-visible,
.woocommerce .woocommerce-ordering select:focus-visible,
.ag-search-form input:focus-visible {
  outline: 3px solid var(--ag-ink); outline-offset: 2px; border-color: var(--ag-ink);
}
.ag-search-form { position: relative; display: flex; align-items: center; }
.ag-search-form input { width: 100%; padding: 0 48px 0 18px; border: 0; outline: 0; background: transparent; }
.ag-search-form button { position: absolute; right: 5px; border: 0; background: transparent; }
.ag-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ag-chips::-webkit-scrollbar { display: none; }
.ag-chip { display: inline-flex; align-items: center; padding: 0 18px; white-space: nowrap; font-size: 14px; }
.ag-menu-panel {
  position: fixed; inset: 0 auto 0 0; z-index: 80; width: min(390px, 88vw); padding: 28px;
  background: #fff; transform: translateX(-102%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
}
.ag-menu-open .ag-menu-panel { transform: translateX(0); visibility: visible; transition: transform .3s ease; box-shadow: 20px 0 60px rgba(0,0,0,.14); }
.ag-menu-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.ag-menu-panel ul { margin: 0; padding: 0; list-style: none; }
.ag-menu-panel li { border-bottom: 1px solid var(--ag-line); }
.ag-menu-panel a { display: block; padding: 17px 0; font-size: 24px; font-weight: 700; }
.ag-menu-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(15,17,21,.38); opacity: 0; pointer-events: none; transition: .3s; }
.ag-menu-open .ag-menu-scrim { opacity: 1; pointer-events: auto; }

/* Ship to (currency by country) */
.ag-ship-to { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.ag-ship-to-label { color: var(--ag-muted); white-space: nowrap; }
.ag-ship-to select {
  max-width: 190px; min-height: 40px; padding: 0 34px 0 14px; border: 1px solid #7f8591; border-radius: 999px; color: var(--ag-ink); background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; appearance: none; -webkit-appearance: none; cursor: pointer; font: inherit;
}
.ag-ship-to select:focus-visible { outline: 3px solid var(--ag-ink); outline-offset: 2px; }
.ag-menu-panel .ag-ship-to { margin-top: 28px; }
.ag-menu-panel .ag-ship-to select { max-width: none; flex: 1; }

/* Shared */
.ag-section { padding: 48px 0; }
.ag-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.ag-eyebrow { margin: 0 0 8px; color: var(--ag-muted); font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.ag-title { margin: 0; font-size: clamp(36px, 5vw, 72px); line-height: .98; letter-spacing: -.055em; }
.ag-section-title { margin: 0; font-size: clamp(29px, 3vw, 46px); line-height: 1.05; letter-spacing: -.045em; }
.ag-button, .button, button.button, input.button, .woocommerce a.button, .woocommerce button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px !important; border: 0 !important; border-radius: 999px !important;
  color: #fff !important; background: var(--ag-ink) !important; font-weight: 750 !important; cursor: pointer;
  line-height: 1.1 !important; white-space: nowrap;
  transition: transform .2s ease, opacity .2s ease;
}
.ag-button svg, .button svg { flex: 0 0 auto; width: 18px; height: 18px; }
.ag-button:hover, .button:hover { transform: translateY(-2px); opacity: .88; }
.ag-button:focus-visible, .button:focus-visible, .ag-icon-button:focus-visible, .ag-wishlist:focus-visible, a:focus-visible {
  outline: 3px solid var(--ag-ink); outline-offset: 3px;
}
.ag-site-footer a:focus-visible { outline-color: #fff; }
.ag-hero-copy a:focus-visible, .ag-campaign a:focus-visible, .ag-pdp-buy :focus-visible { outline-color: #fff; }
.ag-button--light { color: var(--ag-ink) !important; background: #fff !important; }
.ag-link { font-weight: 750; border-bottom: 1px solid currentColor; }

/* Homepage */
.ag-home { padding: 20px 0 60px; }
.ag-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 12px; }
.ag-hero--text { grid-template-columns: 1fr; }
.ag-hero-copy {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: min(560px, 70vh);
  padding: clamp(28px, 5vw, 72px); color: #fff; background: var(--ag-ink); border-radius: var(--ag-radius-xl);
  animation: ag-rise .7s cubic-bezier(.2,.75,.2,1) both;
}
.ag-hero-copy .ag-eyebrow { color: rgba(255,255,255,.75); }
.ag-hero-copy p:not(.ag-eyebrow) { max-width: 560px; margin: 22px 0 28px; font-size: clamp(16px, 1.6vw, 20px); color: rgba(255,255,255,.85); }
.ag-hero-copy .ag-button { align-self: flex-start; }
.ag-hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ag-hero-tile { display: block; overflow: hidden; min-height: 0; background: var(--ag-soft); border-radius: var(--ag-radius-lg); }
/* Product photos with white backgrounds blend into the soft tile instead of showing as white boxes. */
.ag-hero-tile img, .ag-style-tile-media img, .ag-product-card-media img { mix-blend-mode: multiply; }
.ag-hero-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.ag-hero-tile:hover img { transform: scale(1.04); }
.ag-hero-mosaic--1 { grid-template-columns: 1fr; }
.ag-hero-mosaic--3 .ag-hero-tile:first-child { grid-row: span 2; }

/* Trust strip */
.ag-trust-strip ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.ag-trust-strip li { display: flex; }
.ag-trust-strip li > a, .ag-trust-strip li > span { display: flex; flex: 1; align-items: center; gap: 12px; min-height: 72px; padding: 14px 16px; background: var(--ag-soft); border-radius: 18px; }
.ag-trust-strip li > a:hover { background: #ececf0; }
.ag-trust-strip i { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--ag-ink); border-radius: 50%; font-style: normal; }
.ag-trust-strip i svg { width: 18px; height: 18px; }
.ag-trust-strip strong, .ag-trust-strip small { display: block; }
.ag-trust-strip strong { font-size: 14px; line-height: 1.3; }
.ag-trust-strip small { color: var(--ag-muted); font-size: 13px; line-height: 1.35; }

/* Shop by style */
.ag-style-grid { display: grid; grid-template-columns: repeat(var(--tiles, 4), minmax(0, 1fr)); gap: 14px; }
.ag-style-tile { display: flex; flex-direction: column; overflow: hidden; background: var(--ag-soft); border-radius: 24px; transition: transform .25s ease, box-shadow .25s ease; }
.ag-style-tile:hover { transform: translateY(-4px); box-shadow: var(--ag-shadow); }
.ag-style-tile-media { display: block; aspect-ratio: .86; overflow: hidden; background: #e9eaee; }
.ag-style-tile-media img { width: 100%; height: 100%; object-fit: cover; }
.ag-style-tile-label { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.ag-style-tile-label strong { font-size: 18px; letter-spacing: -.02em; }
.ag-style-tile-label small { color: var(--ag-muted); font-size: 13px; }
.ag-style-tile--text { justify-content: flex-end; min-height: 160px; }

.ag-category-strip { display: flex; gap: 10px; padding: 22px 0 0; overflow-x: auto; }
.ag-category-strip a { flex: 0 0 auto; padding: 11px 18px; background: var(--ag-soft); border-radius: 999px; font-weight: 650; }
.ag-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ag-product-card { position: relative; min-width: 0; padding: 10px; background: var(--ag-soft); border: 0; border-radius: 24px; transition: transform .25s ease, box-shadow .25s ease; }
.ag-product-card:hover { transform: translateY(-5px); box-shadow: var(--ag-shadow); }
.ag-product-card-media { position: relative; overflow: hidden; aspect-ratio: .86; background: #e9eaee; border-radius: 18px; }
.ag-product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.ag-product-card:hover img { transform: scale(1.035); }
.ag-product-badge { position: absolute; top: 12px; left: 12px; padding: 7px 11px; background: rgba(255,255,255,.92); border-radius: 999px; font-size: 11px; font-weight: 750; }
.ag-wishlist { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; cursor: pointer; transition: transform .2s ease, color .2s ease; }
.ag-wishlist:hover { transform: scale(1.06); }
.ag-wishlist svg { width: 19px; height: 19px; }
.ag-wishlist.is-active { color: var(--ag-accent); }
.ag-product-card-body { padding: 14px 6px 6px; }
.ag-product-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 12px; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.15; letter-spacing: -.025em; }
.ag-product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ag-product-card .price { font-weight: 800; }
.ag-from { color: var(--ag-muted); font-size: 12px; font-weight: 600; }
.ag-from-amount { font-size: 1.15em; font-weight: 800; letter-spacing: -.02em; }
.ag-card-cart { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0 !important; }
.ag-card-cart svg { width: 18px; height: 18px; }
.ag-card-cart.added::after { display: none !important; }
.ag-campaign { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; min-height: 480px; background: #171717; color: #fff; border-radius: var(--ag-radius-xl); }
.ag-campaign-media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; background: #222; }
.ag-campaign-media a { display: block; overflow: hidden; aspect-ratio: .86; border-radius: 18px; background: #2c2c2c; }
.ag-campaign-media img { width: 100%; height: 100%; object-fit: cover; }
.ag-campaign--text { grid-template-columns: 1fr; min-height: 0; }
.ag-campaign-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(35px, 6vw, 88px); }
.ag-campaign-copy p { color: rgba(255,255,255,.65); }
.ag-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ag-value { padding: 28px; background: var(--ag-soft); border-radius: 22px; }
.ag-value-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 24px; background: var(--ag-ink); color: #fff; border-radius: 50%; }
.ag-value h3 { margin: 0 0 7px; font-size: 20px; }
.ag-value p { margin: 0; color: var(--ag-muted); }

/* Shop archive, categories, search */
.ag-shop-shell { margin-top: 20px; padding: 0 0 70px; background: transparent; }
.ag-archive-head { display: grid; gap: 8px; margin: 8px 0 18px; }
.woocommerce .ag-archive-head .woocommerce-breadcrumb { margin: 0; color: var(--ag-muted); font-size: 13px; }
.ag-archive-head .woocommerce-breadcrumb a { color: var(--ag-muted); text-decoration: underline; text-underline-offset: 3px; }
.ag-crumb-sep { margin: 0 8px; }
.ag-archive-title { margin: 0; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.05em; }
.woocommerce .ag-archive-head .woocommerce-result-count { float: none; margin: 0; color: var(--ag-muted); font-size: 14px; }
.ag-archive-head .term-description, .ag-archive-head .page-description { max-width: 720px; color: var(--ag-muted); }
.ag-shop-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
.ag-shop-toolbar .woocommerce-ordering { float: none; margin: 0; }
.ag-chips-row { display: flex; gap: 8px; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 6px; margin: -6px; }
/* The archive shows its own category chips; don't repeat them in the header there. */
body.woocommerce-shop .ag-header-tools .ag-chips, body.tax-product_cat .ag-header-tools .ag-chips, body.tax-product_tag .ag-header-tools .ag-chips, body.search-results .ag-header-tools .ag-chips { display: none; }
.ag-chips-row::-webkit-scrollbar { display: none; }
.ag-chips-row .ag-chip { min-height: 40px; background: var(--ag-soft); border-color: transparent; font-weight: 600; }
.ag-chips-row .ag-chip.is-current { color: #fff; background: var(--ag-ink); }
.woocommerce .woocommerce-ordering select { max-width: 100%; background-color: #fff; border-color: #7f8591; }
.woocommerce-notices-wrapper:empty { display: none; }
.ag-card-see { color: var(--ag-muted); font-size: 14px; font-weight: 650; }
.ag-no-results { padding: clamp(20px, 3vw, 32px); background: var(--ag-soft); border-radius: var(--ag-radius-lg); }
.ag-no-results > h2 { margin: 0 0 6px; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; }
.ag-no-results > p { margin: 0 0 22px; color: var(--ag-muted); }
.ag-no-results > p a { color: var(--ag-ink); text-decoration: underline; }
.ag-no-results > h2.ag-no-results-sub { margin: 0 0 14px; font-size: 18px; letter-spacing: 0; }
.ag-no-results .ag-product-card { background: #fff; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 8px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; background: var(--ag-soft); }
.woocommerce nav.woocommerce-pagination { margin-top: 28px; }
.woocommerce nav.woocommerce-pagination ul li span.current { color: #fff; background: var(--ag-ink); }



/* Content, checkout and account */
.ag-content-shell { max-width: 880px; margin: 20px auto 70px; padding: clamp(8px, 3vw, 32px) 0; background: transparent; }
.woocommerce-cart .ag-content-shell, .woocommerce-checkout .ag-content-shell, .woocommerce-account .ag-content-shell { max-width: var(--ag-max); }
.ag-content-shell .ag-prose { font-size: 17px; line-height: 1.7; }
.ag-prose h2 { margin: 1.8em 0 .5em; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.03em; }
.ag-prose h3 { margin: 1.5em 0 .4em; font-size: 20px; line-height: 1.25; }
.ag-prose p, .ag-prose ul, .ag-prose ol { margin: 0 0 1em; }
.ag-prose ul, .ag-prose ol { padding-left: 1.3em; }
.ag-prose li { margin: .35em 0; }
.ag-prose a { text-decoration: underline; text-underline-offset: 3px; }
.ag-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.ag-prose th, .ag-prose td { padding: 10px 12px; border-bottom: 1px solid var(--ag-line); text-align: left; }
.ag-prose th { background: var(--ag-soft); font-weight: 700; }
.ag-prose .wp-block-button__link, .ag-prose .ag-button { text-decoration: none; }
.ag-prose .ag-lead { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.55; color: var(--ag-ink); }
.ag-prose .wp-block-table { margin: 0 0 1.4em; overflow-x: auto; }
.ag-prose details { margin: 0 0 10px; padding: 0 18px; background: var(--ag-soft); border-radius: 14px; }
.ag-prose details summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; font-weight: 700; list-style: none; }
.ag-prose details summary::-webkit-details-marker { display: none; }
.ag-prose details summary::after { content: "+"; font-weight: 400; }
.ag-prose details[open] summary::after { content: "−"; }
.ag-prose details > p { margin: 0; padding: 0 0 16px; }

/* Contact */
.ag-contact { max-width: var(--ag-max); }
.ag-contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ag-contact-facts { display: grid; gap: 10px; padding: 0 !important; list-style: none; }
.ag-contact-facts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 0; padding: 14px 18px; background: var(--ag-soft); border-radius: 14px; font-size: 15px; }
.ag-contact-card { padding: clamp(20px, 3vw, 34px); background: var(--ag-soft); border-radius: var(--ag-radius-lg); }
.ag-contact-card h2 { margin: 0 0 18px; font-size: 24px; letter-spacing: -.03em; }
.ag-contact-form .ag-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ag-field { margin: 0 0 14px; }
.ag-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 650; }
.ag-optional { color: var(--ag-muted); font-weight: 400; }
.ag-field input, .ag-field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #7f8591; border-radius: 12px; background: #fff; }
.ag-field input:focus-visible, .ag-field textarea:focus-visible { outline: 3px solid var(--ag-ink); outline-offset: 1px; }
.ag-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ag-notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.ag-notice--ok { background: #e6f4ea; color: #12512a; }
.ag-notice--error { background: #fdecea; color: #8a1c13; }
.ag-notice a { color: inherit; text-decoration: underline; }

/* Order tracking */
.woocommerce-form-track-order { max-width: 560px; padding: clamp(20px, 3vw, 32px); background: var(--ag-soft); border-radius: var(--ag-radius-lg); }
.woocommerce-form-track-order p.form-row { width: 100% !important; float: none !important; margin: 0 0 14px; }
.woocommerce-form-track-order label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 650; }
.woocommerce-form-track-order input.input-text { width: 100%; background: #fff; }
.ag-content-shell h1 { font-size: clamp(38px, 5vw, 70px); line-height: 1; letter-spacing: -.05em; }
.woocommerce-cart-form, .cart-collaterals, form.woocommerce-checkout, .woocommerce-account .woocommerce { padding: 22px; background: var(--ag-soft); border-radius: 24px; }
.woocommerce table.shop_table { border-color: var(--ag-line); border-radius: 18px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  min-height: 48px; padding: 10px 14px; border: 1px solid var(--ag-line); border-radius: 12px;
}
.select2-container--default .select2-selection--single { min-height: 48px; padding: 9px; border-color: var(--ag-line); border-radius: 12px; }
.woocommerce-info, .woocommerce-message { border-top-color: var(--ag-ink); border-radius: 14px; background: var(--ag-soft); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--ag-ink); }

/* 404 */
.ag-404 { padding: 20px 0 40px; }
.ag-404-hero { display: grid; gap: 14px; justify-items: start; padding: clamp(24px, 5vw, 64px); background: var(--ag-soft); border-radius: var(--ag-radius-xl); }
.ag-404-hero h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.05em; }
.ag-404-hero > p:not(.ag-eyebrow) { margin: 0; max-width: 560px; color: var(--ag-muted); font-size: 18px; }
.ag-404-search { width: min(100%, 560px); background: #fff; border-color: #7f8591; }
.ag-404-search input { min-height: 48px; }
.ag-404-hero .ag-chips-row .ag-chip { background: #fff; }
.ag-404-latest { padding-top: 40px; }

/* Cart and checkout (WooCommerce blocks) */
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button,
.wc-block-components-button:not(.is-link):not(.text):not(.outlined):not(.wc-block-components-quantity-selector__button) {
  min-height: 52px; color: #fff !important; background: var(--ag-ink) !important; border: 0 !important;
  border-radius: 999px !important; font-weight: 700; transition: opacity .2s ease;
}
.wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover { opacity: .88; }
.wc-block-cart .wc-block-cart__sidebar, .wc-block-checkout .wc-block-checkout__sidebar { padding: 20px; background: var(--ag-soft); border-radius: var(--ag-radius-lg); }
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { border-radius: 12px; }
.wc-block-components-quantity-selector { border-radius: 999px !important; border-color: #7f8591 !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-textarea {
  min-height: 52px; border-color: #7f8591 !important; border-radius: 12px !important;
}
.wc-block-components-text-input.is-active input:focus, .wc-block-components-text-input input:focus { box-shadow: 0 0 0 2px var(--ag-ink) !important; }
.wc-block-components-totals-wrapper { border-color: var(--ag-line) !important; }
.wc-block-components-product-name { color: var(--ag-ink); font-weight: 650; }
.wc-block-cart .wc-block-components-product-badge { border-radius: 999px; }
.wp-block-woocommerce-empty-cart-block a { text-decoration: underline; text-underline-offset: 3px; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product { padding: 10px; background: var(--ag-soft); border: 0; border-radius: 20px; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img { border-radius: 14px; }
.wp-block-woocommerce-empty-cart-block .wp-block-button__link { min-height: 44px; padding: 0 18px; color: #fff; background: var(--ag-ink); border-radius: 999px; font-weight: 700; text-decoration: none; }

/* Account */
.woocommerce-account .ag-store-content > .woocommerce { padding: clamp(16px, 2.5vw, 28px); }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password {
  margin: 0; padding: clamp(18px, 3vw, 28px); background: #fff; border: 0 !important; border-radius: 20px !important;
}
.woocommerce-account .ag-store-content h2 { margin: 0 0 14px; font-size: 24px; letter-spacing: -.03em; }
.woocommerce-account .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.woocommerce-account .u-columns.col2-set::before, .woocommerce-account .u-columns.col2-set::after { display: none; }
.woocommerce-account .u-columns .u-column1, .woocommerce-account .u-columns .u-column2 { float: none; width: auto; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border-color: #7f8591; background: #fff; }
.woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; }
.woocommerce-LostPassword a { text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation li a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; background: #fff; border-radius: 999px; font-weight: 600; }
.woocommerce-MyAccount-navigation li.is-active a { color: #fff; background: var(--ag-ink); }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }

/* Footer */
.ag-site-footer { width: min(calc(100% - 24px), calc(var(--ag-max) + 48px)); margin: 0 auto 12px; padding: clamp(32px, 5vw, 64px); background: #171717; color: #fff; border-radius: var(--ag-radius-xl); }
.ag-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.ag-footer-brand p { max-width: 350px; color: rgba(255,255,255,.58); }
.ag-footer-brand .ag-footer-email { color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); }
.ag-footer-title { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.66); }
.ag-footer-menu { margin: 0; padding: 0; list-style: none; }
.ag-footer-menu li { margin: 4px 0; }
.ag-footer-menu a { display: inline-block; min-height: 24px; padding: 5px 0; }
.ag-footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.45); font-size: 13px; }

@keyframes ag-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 1100px) {
  .ag-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ag-header-tools { grid-template-columns: 150px 1fr; }
  .ag-header-tools .ag-chips { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  :root { --ag-radius-xl: 28px; }
  .ag-container { width: min(calc(100% - 20px), var(--ag-max)); }
  .ag-site-header { width: calc(100% - 12px); margin-top: 6px; padding: 12px; border-radius: 24px; }
  .ag-header-row { grid-template-columns: 1fr auto 1fr; }
  .ag-header-nav, .ag-account-link, .ag-header-end .ag-ship-to { display: none; }
  .ag-logo { font-size: 24px; }
  .ag-icon-button { width: 44px; height: 44px; }
  .ag-header-tools { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
  .ag-category-select { display: block; width: 100%; order: 2; }
  .ag-search-form { order: 1; }
  .ag-search-form { min-height: 42px; }
  .ag-header-tools .ag-chips { display: none; }
  .ag-home { padding-top: 10px; }
  .ag-hero { grid-template-columns: 1fr; }
  .ag-hero-copy { min-height: 0; padding: 28px 24px; }
  .ag-hero-mosaic { gap: 8px; }
  .ag-hero-tile { aspect-ratio: 1; border-radius: 18px; }
  .ag-trust-strip ul, .ag-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ag-trust-strip li > a, .ag-trust-strip li > span { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .ag-section { padding: 36px 0; }
  .ag-style-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ag-style-grid--3 .ag-style-tile { border-radius: 18px; }
  .ag-style-grid--3 .ag-style-tile-label { padding: 10px 10px 12px; }
  .ag-style-grid--3 .ag-style-tile-label strong { font-size: 14px; }
  .ag-style-grid--3 .ag-style-tile-label small { font-size: 12px; }
  .ag-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ag-product-card { padding: 7px; border-radius: 19px; }
  .ag-product-card-media { border-radius: 14px; }
  .ag-campaign { grid-template-columns: 1fr; }
  .ag-campaign-copy { order: -1; }
  .ag-values { grid-template-columns: 1fr; }
  .ag-shop-toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .ag-shop-toolbar .woocommerce-ordering select { width: 100%; }
  .ag-product-grid { width: 100%; min-width: 0; }
  .ag-footer-grid { grid-template-columns: 1fr 1fr; }
  .ag-contact-layout, .ag-contact-form .ag-field-row { grid-template-columns: 1fr; }
  .woocommerce-account .u-columns.col2-set { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 15px; }
  .ag-section-head { align-items: start; flex-direction: column; }
  .ag-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ag-product-card { padding: 6px; border-radius: 16px; }
  .ag-product-card-media { border-radius: 12px; }
  .ag-product-card-body { padding: 10px 4px 4px; }
  .ag-product-card-title { font-size: 15px; line-height: 1.2; }
  .ag-product-badge { top: 8px; left: 8px; padding: 5px 8px; font-size: 10px; }
  .ag-wishlist { top: 6px; right: 6px; width: 36px; height: 36px; }
  .ag-card-cart { flex-basis: 40px; width: 40px; height: 40px; min-height: 40px; }
  .ag-product-card-foot { align-items: end; }
  .ag-footer-grid { grid-template-columns: 1fr; }
  .ag-footer-bottom { flex-direction: column; }
}

