/* ==========================================================================
   MEGEWISE — warm, modern apparel brand
   1. Tokens & base   2. Announcement   3. Header & nav   4. Search panel
   5. Drawers         6. Footer         7. Buttons/forms   8. Homepage
   9. Collection      10. Product       11. Cart/checkout  12. Pages/misc
   ========================================================================== */

/* ---------- 1. Tokens & base ---------- */
:root {
  --color-body: #fdfbf7;
  --color-text: #2d2d2d;
  --color-text-alpha: rgba(45, 45, 45, .7);
  --color-nav: #fdfbf7;
  --color-nav-text: #2d2d2d;
  --color-announcement: #2d5a4a;
  --color-announcement-home: #2d5a4a;
  --color-border: #e8e3dc;
  --color-footer: #f0ebe3;
  --color-sale: #c17f59;
  --color-cart-dot: #4a7c6f;
  --color-modal-bg: rgba(45, 45, 45, .55);
  --av-black: #2d2d2d;
  --av-green: #4a7c6f;
  --av-mint: #f0ede7;
  --av-line: #e0dbd3;
  --color-link: #4a7c6f;
  --button-radius: 8px;
  --type-base-size: 16px;
  --type-header-primary: 'Outfit', sans-serif;
  --drawer-gutter: 30px;
  --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-body);
  color: var(--color-text);
  font-family: 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: var(--type-base-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.js-drawer-open { overflow: hidden; }

img { max-width: 100%; border: 0; }

a { color: inherit; }
a:hover { color: inherit; }

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--type-header-primary);
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 15px;
}
h1, .h1 { font-size: clamp(30px, calc(20px + 2.6vw), 40px); }
h2, .h2 { font-size: clamp(26px, calc(18px + 2vw), 34px); }
h3, .h3 { font-size: 22px; }
h4, .h4 { font-size: 17px; }

p { margin: 0 0 15px; }

.page-width { margin: 0 auto; max-width: 1500px; padding: 0 40px; }
.page-width--narrow { max-width: 1000px; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.hidden { display: none !important; }

/* Responsive visibility — desktop defaults */
.small--hide { display: block; }
.medium-up--hide { display: none !important; }

.icon {
  display: block;
  fill: currentColor;
  stroke: none;
}
.icon--stroke { fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- 2. Announcement bar ---------- */
.announcement-bar {
  position: relative;
  padding: 10px 0;
  background-color: var(--color-announcement);
  color: #fff;
  text-align: center;
  font-size: 14px;
}
.template-index .announcement-bar { background-color: var(--color-announcement-home); }
.announcement-bar a,
.announcement-bar a:hover { color: #fff; }
.announcement-link-text { margin-left: 5px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 3. Header & navigation ---------- */
.header-sticky-wrapper {
  position: relative;
  z-index: 10;
  background: var(--color-nav);
}

.site-header {
  position: relative;
  padding: 12px 0;
  background: var(--color-nav);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.header-layout { display: flex; justify-content: space-between; align-items: center; }

.header-item { display: flex; align-items: center; flex: 1 1 auto; }
.header-item--navigation { flex: 1 1 130px; }
.header-item--icons { flex: 1 1 130px; justify-content: flex-end; }
.header-item--logo-split { display: flex; align-items: center; justify-content: center; flex: 1 1 100%; }
.header-item--logo-split .header-item:not(.header-item--logo) { flex: 1 1 20%; text-align: center; }
.header-item--split-left { justify-content: flex-end; }
.header-item--split-right { justify-content: flex-start; }
.header-item--left .site-nav { margin-left: -7.5px; }
.header-item--icons .site-nav { margin-right: -7.5px; }

.site-nav { margin: 0; }
.site-navigation { list-style: none; padding: 0; margin: 0; }
.site-nav__item { display: inline-block; margin: 0; position: relative; }

.site-nav__link {
  display: inline-block;
  padding: 5px 10px;
  color: var(--color-nav-text);
  text-decoration: none;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 15px;
}
.site-nav__link:hover { color: var(--color-nav-text); }

/* Sliding underline on hover — signature nav animation */
.site-nav__link--underline { position: relative; }
.site-nav__link--underline::after {
  content: "";
  display: block;
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  margin: 0 15px;
  border-bottom: 2px solid var(--color-nav-text);
  transition: right .5s ease;
}
.site-nav__item:hover .site-nav__link--underline::after,
.site-nav__link--underline.is-active::after { right: 0; }

.site-nav__link--icon { padding-left: 7.5px; padding-right: 7.5px; cursor: pointer; background: none; border: 0; color: var(--color-nav-text); font: inherit; }
.site-nav__link--icon + .site-nav__link--icon { margin-left: -4px; }
.site-nav__link--icon .icon { width: 24px; height: 24px; }
.site-nav__link--icon .icon.icon-user { position: relative; top: 1px; }
.site-nav__icons { white-space: nowrap; }

.site-header__logo {
  display: block;
  margin: 4px 0;
  font-size: 24px;
  position: relative;
  z-index: 6;
  text-align: center;
}
.site-header__logo a {
  display: inline-flex;
  align-items: center;
  color: var(--color-nav-text);
  text-decoration: none;
  font-family: var(--type-header-primary);
  font-weight: 600;
  letter-spacing: .08em;
}
.header-layout[data-logo-align="center"] .site-header__logo { margin-left: auto; margin-right: auto; }
.header-layout[data-logo-align="center"] .header-item--logo { margin: 0 30px; flex: 0 0 auto; }

/* Header is sticky via .header-sticky-wrapper { position: sticky } */

/* ---------- 4. Header search panel ---------- */
.site-header__search-container {
  display: none;
  overflow: hidden;
  position: absolute;
  left: 0; right: 0;
  bottom: 200%;
  height: 100%;
  z-index: 28;
}
.site-header__search-container.is-active { display: block; bottom: 0; overflow: visible; }

.site-header__search {
  display: flex;
  position: absolute;
  inset: 0;
  transform: translate3d(0, -110%, 0);
  background: var(--color-body);
  box-shadow: 0 15px 45px rgba(0, 0, 0, .1);
  z-index: 28;
}
.is-active .site-header__search { transform: translateZ(0); transition: transform .35s var(--ease-out-quart); }

.site-header__search .page-width { display: flex; align-items: stretch; flex: 1 1 100%; padding: 0 55px 0 40px; }

.header-search-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
.search__input-wrap { flex: 1; position: relative; }
.search__input {
  width: 100%;
  flex: 1;
  padding: 18px 50px 18px 16px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-size: 16px;
  outline: none;
}
.search__input:focus { border-bottom-color: var(--color-text); }
.btn--search {
  position: absolute;
  right: 15px; top: 50%;
  transform: translateY(-50%);
  background: none; border: 0; cursor: pointer;
  color: var(--color-text);
  padding: 4px;
}
.btn--search .icon { width: 25px; height: 25px; }
.btn--close-search {
  display: none;
  align-items: center; justify-content: center;
  flex: 30px 0 0;
  margin-left: 10px;
  background: none; border: 0; cursor: pointer;
  color: var(--color-nav-text);
  padding: 4px;
}
.search-container-open .btn--close-search { display: flex; }
.btn--close-search .icon { width: 25px; height: 25px; }

/* ---------- 5. Drawers (mobile nav left / cart right) ---------- */
.drawer {
  position: fixed;
  top: 0; bottom: 0;
  max-width: 95%;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 0 150px rgba(0, 0, 0, .1);
  transition: transform .25s var(--ease-out-quart);
  z-index: 30;
}
.drawer--left { left: -350px; width: 350px; }
.drawer--right { right: -450px; width: 450px; }
@media (max-width: 768px) {
  .drawer--right { right: -350px; width: 350px; }
}
.drawer--is-open { display: block; }
.drawer--left.drawer--is-open { transform: translateX(350px); transition-duration: .45s; }
.drawer--right.drawer--is-open { transform: translateX(-450px); transition-duration: .45s; }
@media (max-width: 768px) {
  .drawer--right.drawer--is-open { transform: translateX(-350px); }
}

.drawer__contents { display: flex; flex-direction: column; height: 100%; min-height: 100vh; }
.drawer__fixed-header { min-height: 80px; }
.drawer__header {
  display: table;
  width: 100%;
  min-height: 70px;
  padding: 11px var(--drawer-gutter);
  border-bottom: 1px solid var(--color-border);
}
.drawer__title, .drawer__close { display: table-cell; vertical-align: middle; }
.drawer__title { width: 100%; font-family: var(--type-header-primary); font-weight: 300; font-size: 26px; }
.drawer__close { text-align: center; width: 1%; }
.drawer__close-button { background: none; border: 0; cursor: pointer; color: inherit; padding: 0 var(--drawer-gutter); height: 100%; }
.drawer__close-button .icon { width: 28px; height: 28px; }

.drawer__scrollable { flex: 1 1 auto; display: flex; flex-direction: column; overflow-y: auto; padding-top: var(--drawer-gutter); padding-left: var(--drawer-gutter); padding-right: var(--drawer-gutter); }
.drawer__footer {
  padding: 22px var(--drawer-gutter) var(--drawer-gutter);
  border-top: 1px solid var(--color-border);
}
.drawer a:not(.btn) { color: var(--color-text); }

/* Drawer overlay fade over the page */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-modal-bg);
  opacity: 0;
  pointer-events: none;
  z-index: 26;
}
body.js-drawer-open .drawer-overlay { opacity: .6; pointer-events: auto; animation: overlay-on .35s forwards; }
body.js-drawer-closing .drawer-overlay { opacity: 0; animation: overlay-off .25s forwards; }
@keyframes overlay-on { from { opacity: 0; } to { opacity: .6; } }
@keyframes overlay-off { from { opacity: .6; } to { opacity: 0; } }

/* Staggered appear animation inside drawers */
.appear-animation { opacity: 1; }
.js-drawer-is-open .appear-animation { animation: drawer-item-in .9s var(--ease-out-quart) both; }
.js-drawer-is-open .appear-delay-1 { animation-delay: .1s; }
.js-drawer-is-open .appear-delay-2 { animation-delay: .22s; }
.js-drawer-is-open .appear-delay-3 { animation-delay: .32s; }
.js-drawer-is-open .appear-delay-4 { animation-delay: .44s; }
.js-drawer-is-open .appear-delay-5 { animation-delay: .54s; }
.js-drawer-is-open .appear-delay-6 { animation-delay: .64s; }
.js-drawer-is-open .appear-delay-7 { animation-delay: .74s; }
@keyframes drawer-item-in {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile nav list */
.mobile-nav { list-style: none; margin: calc(var(--drawer-gutter) * -1) calc(var(--drawer-gutter) * -1) 0; padding: 0; }
.mobile-nav__item { display: block; position: relative; background: #fff; }
.mobile-nav__item::after {
  content: "";
  position: absolute;
  left: var(--drawer-gutter); right: var(--drawer-gutter); bottom: 0;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav__link {
  display: block;
  padding: 15px var(--drawer-gutter);
  color: var(--color-text);
  text-decoration: none;
}
.mobile-nav__link--top-level { font-size: 1.4em; }
.mobile-nav__item--secondary { margin-top: 10px; }
.mobile-nav__item--secondary::after { display: none; }
.mobile-nav__item--secondary .mobile-nav__link { padding-top: 10px; padding-bottom: 5px; }

/* Cart drawer rows */
.cart-row { display: flex; align-items: flex-start; gap: 15px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--color-border); }
.cart-row__image { flex: 0 0 90px; width: 90px; height: 90px; object-fit: contain; background: var(--av-mint); }
.cart-row__info { flex: 1 1 auto; min-width: 0; }
.cart-row__title { font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.cart-row__price { font-size: 14px; opacity: .8; }
.cart-row__qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); margin-top: 10px; }
.cart-row__qty button { background: none; border: 0; cursor: pointer; padding: 5px 10px; color: var(--color-text); font-size: 14px; }
.cart-row__qty input { width: 34px; border: 0; text-align: center; font: inherit; font-size: 14px; color: var(--color-text); background: none; }
.cart-row__remove { background: none; border: 0; cursor: pointer; color: var(--color-text); opacity: .6; font-size: 13px; text-decoration: underline; padding: 0; margin-top: 8px; align-self: flex-start; }

.cart-notes { width: 100%; min-height: 70px; padding: 10px; border: 1px solid var(--color-border); font: inherit; font-size: 14px; color: var(--color-text); resize: vertical; }
.cart-notes:focus { outline: none; border-color: var(--color-text); }
.drawer__footer label { display: block; margin-bottom: 6px; font-size: 13px; }
.cart__item-sub { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 17px; font-weight: 700; }
.cart__checkout-wrapper { margin-top: 15px; }
.cart__checkout { width: 100%; }
.cart-empty-msg { padding: 40px 0; text-align: center; opacity: .7; }

/* Cart bubble dot on bag icon */
.cart-link { display: block; position: relative; }
.cart-link__bubble { display: none; }
.cart-link__bubble--visible {
  display: block;
  position: absolute;
  right: 0; top: 50%;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--color-cart-dot);
  border: 2px solid var(--color-body);
}

/* ---------- 6. Footer ---------- */
.site-footer {
  background: var(--color-footer);
  color: var(--color-text);
  padding: 60px 0 45px;
  margin-top: 0;
}
.footer-grid { display: flex; flex-wrap: wrap; margin: 0 -17px; }
.footer__item { padding: 0 17px; }
.footer__item--menu_shop, .footer__item--menu_help { width: 20%; }
.footer__item--newsletter { width: 40%; margin-left: auto; }

.footer__title {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .05em;
  margin: 0 0 18px;
}
.footer__collapsible { font-size: 14px; padding-bottom: 15px; }
.site-footer__linklist { list-style: none; margin: 0; padding: 0; }
.site-footer__linklist li { margin-bottom: 10px; }
.site-footer__linklist a {
  color: var(--color-text);
  text-decoration: none;
  opacity: .85;
}
.site-footer__linklist a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.footer-newsletter-form { display: flex; margin-top: 18px; max-width: 420px; }
.footer-newsletter-form input {
  flex: 1 1 auto;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-right: 0;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  outline: none;
}
.footer-newsletter-form input:focus { border-color: var(--color-text); }
.footer-newsletter-form button {
  padding: 12px 24px;
  background: var(--color-text);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-payment-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 45px 0 0;
}
.footer-payment-list li { display: flex; }
.footer-payment-list svg { display: block; width: 38px; height: 24px; }
.footer-payment-list img { display: block; width: 38px; height: 24px; object-fit: contain; background: #fff; border: 1px solid var(--color-border); border-radius: 3px; padding: 2px 3px; box-sizing: border-box; }
.footer__small-text { margin-top: 25px; font-size: 12px; opacity: .7; }

/* Mobile footer collapsibles */
.collapsible-trigger { position: relative; }
.footer__item .collapsible-trigger {
  display: none;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 4px;
  padding: 12px 30px 12px 0;
  border-bottom: 1px solid rgba(12, 34, 55, .1);
  cursor: pointer;
}
.collapsible-trigger__icon {
  display: block;
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
}
.collapsible-trigger__icon svg { display: block; width: 12px; height: 8px; transition: transform .2s ease-in; }
.collapsible-trigger[aria-expanded="true"] .collapsible-trigger__icon svg { transform: scaleY(-1); }
.collapsible-content { overflow: hidden; }
@media (max-width: 768px) {
  .footer__item { width: 100% !important; margin: 0; }
  .footer__item .collapsible-trigger { display: block; }
  .footer__item .small--hide { display: none; }
  .footer__item .collapsible-content { height: 0; opacity: 0; visibility: hidden; transition: opacity .3s ease, height .3s ease; }
  .footer__item .collapsible-content.is-open { height: auto; opacity: 1; visibility: visible; }
}

/* ---------- 7. Buttons, forms, utilities ---------- */
.btn {
  -webkit-appearance: none;
  display: inline-block;
  background: var(--av-green);
  color: #fff !important;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.42;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  min-width: 90px;
  padding: 12px 24px;
  transition: background .2s ease, transform .15s ease;
}
.btn:hover { background: #3d6b5f; transform: translateY(-1px); }
.btn--secondary {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text) !important;
}
.btn--secondary:hover { background: transparent; border-color: var(--color-text); }
.btn--full { width: 100%; }
.btn[disabled] { background: #f6f6f6; color: #b6b6b6 !important; cursor: default; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="search"], input[type="number"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--color-text);
  border-radius: 0;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--color-text); }
label { font-size: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; }

.breadcrumb { font-size: 14px; margin: -25px 0 15px; color: var(--color-text-alpha); }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__divider { margin: 0 6px; }

.section-header { margin-bottom: 50px; }
[data-center-text] .section-header { text-align: center; }
.section-header__title { margin-bottom: 0; }

/* Scroll-reveal animations (AOS-lite) */
[data-aos] { opacity: 0; transition: opacity .6s ease, transform .6s var(--ease-out-quart); }
[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos="fade-in"] { transform: none; }
[data-aos].aos-animate { opacity: 1; transform: none; }

/* ---------- 8. Homepage (softnu-home sections) ---------- */
.softnu-home { color: var(--av-black); font-family: Arial, Helvetica, sans-serif; }

.av-hero {
  min-height: 485px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--av-mint);
  overflow: hidden;
}
.av-hero__content { padding: 70px clamp(40px, 7vw, 130px); align-self: center; }
.av-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 25px;
  max-width: 590px;
}
.av-hero__content > p:not(.av-rating) { font-size: 17px; line-height: 1.55; max-width: 600px; margin: 0 0 30px; }
.av-hero__image { min-height: 485px; background-position: center; background-size: cover; background-repeat: no-repeat; }
.av-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--av-green);
  color: #fff !important;
  text-decoration: none;
  border: 0;
  border-radius: var(--button-radius);
  min-height: 48px;
  padding: 12px 36px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.av-btn:hover { background: #3d6b5f; transform: translateY(-1px); }
.av-rating { font-size: 14px; margin: 18px 0 0 !important; }

.av-section { max-width: 1220px; margin: 0 auto; padding: 76px 24px; }
.av-products { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 46px; align-items: start; }
.av-products__intro { padding-top: 20px; }
.av-products__intro h2,
.softnu-home .av-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
.av-products__intro p { font-size: 17px; line-height: 1.5; margin-bottom: 26px; }
.av-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }

.av-card { background: #fff; min-width: 0; }
.av-card__media { display: block; aspect-ratio: 1; background: #effbf6; overflow: hidden; }
.av-card__media img { width: 100%; height: 100%; object-fit: contain; }
.av-card__body { padding: 17px 2px 22px; }
.av-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 10px;
}
.av-card h3 a { color: inherit; text-decoration: none; }
.av-price { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 16px; font-weight: 700; }
.av-price s { font-size: 14px; font-weight: 400; opacity: .48; }
.av-price span { background: var(--av-green); color: #fff; border-radius: 3px; padding: 4px 6px; font-size: 11px; font-weight: 800; }

.av-guarantee {
  background: var(--av-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: min(15vw, 220px);
  padding: 85px 30px;
}
.av-guarantee__content { max-width: 650px; }
.av-guarantee h2 {
  font-family: 'Outfit', Helvetica, sans-serif;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 18px;
}
.av-guarantee p { font-size: 17px; line-height: 1.62; }
.av-btn--light { background: #fff; color: var(--av-black) !important; margin-top: 10px; }
.av-guarantee__seal {
  width: 210px; height: 210px;
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
}
.av-guarantee__seal span { font-size: 65px; font-weight: 800; }
.av-guarantee__seal small { font-weight: 800; line-height: 1.2; }

.av-reviews { text-align: center; }
.av-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 38px; text-align: left; }
.av-review-grid blockquote { margin: 0; padding: 34px; background: #f5f1eb; border-radius: 4px; }
.av-review-grid h3 { font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-weight: 800; }
.av-review-grid p { font-size: 17px; line-height: 1.6; margin: 0; }

.av-help { background: var(--av-mint); padding: 80px 24px; text-align: center; color: var(--av-black); }
.av-help > div { max-width: 680px; margin: auto; }
.av-help h2 { font-family: 'Outfit', Helvetica, sans-serif; font-size: clamp(32px, 3vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.av-help p { font-size: 17px; line-height: 1.55; margin: 7px 0; }
.av-help .av-btn { margin-top: 24px; }

.av-proofbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--av-line);
  border-bottom: 1px solid var(--av-line);
  background: #fff;
}
.av-proofbar > div { padding: 25px 18px; text-align: center; border-right: 1px solid var(--av-line); color: var(--av-black); }
.av-proofbar > div:last-child { border: 0; }
.av-proofbar strong, .av-proofbar span { display: block; }
.av-proofbar strong { font-size: 16px; }
.av-proofbar span { font-size: 13px; opacity: .7; margin-top: 4px; }

/* ---------- 9. Collection page ---------- */
.page-content { padding: 30px 0 60px; }
.page-content--top { padding-top: 45px; }

.collection-content { padding-top: 45px; }
.collection-content .grid { display: flex; flex-wrap: wrap; margin: -15px; align-items: stretch; }
.collection-content .grid > .grid__item { padding: 0 15px; }
.grid__item--sidebar { width: 20%; }
.grid__item--main { width: 80%; }

.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
.collection-toolbar select { width: auto; min-width: 180px; padding: 9px 30px 9px 12px; font-size: 14px; }
.result-count { font-size: 14px; opacity: .7; }

.collection-sidebar { margin-bottom: 20px; padding-right: 10px; }
.collection-sidebar__group { border-top: 1px solid var(--color-border); padding: 5px 0; margin: 5px 0; overflow: visible; }
.filter-form > div:first-child .collection-sidebar__group { border-top: 0; padding-top: 0; }
.tag-list__header {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 15px 30px 15px 0;
  position: relative;
}
.tag-list { list-style: none; margin: 0; padding: 0 0 6px; }
.tag-list li { margin-bottom: 9px; }
.tag-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}
.tag-list label:hover { text-decoration: underline; text-underline-offset: 2px; }
.tag-list input[type="checkbox"] { display: none; }
.tag__checkbox {
  position: relative;
  flex: 0 0 auto;
  width: 16px; height: 16px;
  border: 1px solid var(--color-border);
  background: #fff;
}
.tag-list input:checked ~ .tag__checkbox { background: var(--color-text); border-color: var(--color-text); }
.tag-list input:checked ~ .tag__checkbox::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 3px; height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { padding: 8px; font-size: 14px; }

.grid--uniform { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }

.grid-product { margin-bottom: 0; position: relative; }
.grid-product__content { position: relative; text-align: center; }
.grid-product__tag {
  position: absolute;
  top: 0; right: 0;
  z-index: 2;
  background: var(--color-text);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 7px 7px 7px 9px;
  transition: opacity .4s ease;
}
.grid-product__tag--sale { background: var(--color-sale); }
.grid-product__image-mask { position: relative; overflow: hidden; background: #fff; }
.grid__image-ratio { aspect-ratio: 1; background: #fff; padding: 10px; display: flex; align-items: center; justify-content: center; }
.grid__image-ratio img {
  display: block;
  width: 88%; height: 88%;
  max-width: 240px; max-height: 240px;
  object-fit: contain;
  margin: auto;
}
.grid-product__secondary-image {
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  background: #fff;
  opacity: 0;
}
.grid-product__secondary-image img { width: 100%; height: 100%; object-fit: contain; }
.grid-product__content:hover .grid-product__secondary-image { animation: fade-in .2s cubic-bezier(.26, .54, .32, 1) forwards; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.quick-product__btn {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  z-index: 2;
  width: calc(100% - 20px);
  background: var(--color-text);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  padding: 9px 5px;
  text-align: center;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .25s ease, transform .25s ease-out, background .4s ease;
}
.grid-product__content:hover .quick-product__btn,
.grid-product:focus-within .quick-product__btn { opacity: 1; transform: translateY(0); }
.quick-product__btn:hover { background: #1d3a58; }

.grid-product__link { display: block; text-decoration: none; color: inherit; }
.grid-product__meta { padding: 10px 0 6px; line-height: 1.4; }
.grid-product__title { font-size: 15px; word-break: break-word; hyphens: auto; }
.grid-product__price { margin-top: 5px; font-size: 14px; }
.grid-product__price--original { margin-right: 5px; text-decoration: line-through; opacity: .55; }
.grid-product__price--savings { margin-left: 5px; color: var(--color-sale); white-space: nowrap; }

.pagination { display: flex; justify-content: center; gap: 8px; margin: 50px 0 0; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  text-decoration: none;
  font-size: 14px;
}
.pagination .current { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.pagination a:hover { border-color: var(--color-text); }

/* ---------- 10. Product detail page ---------- */
.product-single { display: grid; grid-template-columns: minmax(0, 58%) minmax(0, 1fr); gap: 50px; padding: 40px 0 60px; }
.product-single__media { position: relative; }
.product-single__media .grid__image-ratio { background: var(--av-mint); }
/* Detail-page hero: fill the square container instead of the 240px grid-card cap */
.product-single__media .grid__image-ratio img {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
}
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.product-thumbs button { flex: 0 0 72px; border: 1px solid var(--color-border); background: var(--av-mint); padding: 0; cursor: pointer; aspect-ratio: 1; }
.product-thumbs button.is-active { border-color: var(--color-text); }
.product-thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; }

.product-single__details .product__title { margin: 5px 0 10px; }
.product__price { display: flex; align-items: baseline; gap: 10px; font-size: 19px; font-weight: 700; margin-bottom: 22px; }
.product__price s { font-size: 15px; font-weight: 400; opacity: .5; }
.product__price .grid-product__price--savings { font-size: 14px; }
.quantity-selector { display: inline-flex; border: 1px solid var(--color-border); margin: 0 0 20px; }
.quantity-selector button { background: none; border: 0; cursor: pointer; padding: 10px 16px; font-size: 16px; color: var(--color-text); }
.quantity-selector input { width: 52px; border: 0; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); text-align: center; font: inherit; color: var(--color-text); }
.add-to-cart { min-height: 48px; }

.product-accordions { margin-top: 35px; border-top: 1px solid var(--color-border); }
.accordion { border-bottom: 1px solid var(--color-border); }
.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  padding: 15px 0;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary .icon { width: 12px; height: 8px; transition: transform .2s ease-in; }
details[open] .accordion__summary .icon { transform: scaleY(-1); }
.accordion__content { padding: 0 0 18px; font-size: 15px; line-height: 1.65; opacity: .85; }

/* ---------- 11. Cart & checkout pages ---------- */
.cart-page { max-width: 1100px; margin: 0 auto; padding: 45px 0 60px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; padding: 12px 8px; border-bottom: 1px solid var(--color-border); font-weight: 400; }
.cart-table td { padding: 18px 8px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.cart-table .cart-row__image { width: 88px; height: 88px; flex: 0 0 88px; }

.checkout-page { max-width: 1100px; margin: 0 auto; padding: 40px 0 70px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 60px; margin-top: 30px; }
.checkout-sidebar { border: 1px solid var(--color-border); border-radius: 4px; padding: 26px; align-self: start; position: sticky; top: 20px; background: #fafcfb; }
.checkout-item { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.checkout-item__img { width: 56px; height: 56px; object-fit: contain; background: var(--av-mint); }
.checkout-item__name { font-size: 14px; font-weight: 700; }
.checkout-item__price { margin-left: auto; font-weight: 700; font-size: 14px; }
.payment-methods { display: grid; gap: 10px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.payment-option.active { border-color: var(--color-text); background: #fff; }
.payment-option input { accent-color: var(--color-text); }
.payment-icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 47px; height: 29px; border: 1px solid var(--color-border); border-radius: 3px; background: #fff; font-size: 10px; font-weight: 800; }

/* ---------- 12. Content pages, account, misc ---------- */
.rte { line-height: 1.7; font-size: 16px; }
.rte h2 { margin-top: 35px; }
.rte ul { padding-left: 22px; }
.policy-page { max-width: 900px; margin: 0 auto; padding: 45px 0 70px; }
.policy-page .rte p, .policy-page .rte li { color: var(--color-text-alpha); }

.faq-list { max-width: 900px; margin: 0 auto; padding: 40px 0 70px; }
.faq-item { border-bottom: 1px solid var(--color-border); }

.account-page { max-width: 480px; margin: 0 auto; padding: 50px 0 80px; }
.account-card { border: 1px solid var(--color-border); border-radius: 4px; padding: 30px; }
.account-tabs { display: flex; margin-bottom: 24px; border-bottom: 1px solid var(--color-border); }
.account-tabs button {
  flex: 1;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px;
  font: inherit;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-alpha);
  cursor: pointer;
}
.account-tabs button.active { color: var(--color-text); border-bottom-color: var(--color-text); }

.track-page { max-width: 640px; margin: 0 auto; padding: 50px 0 80px; text-align: center; }
.track-form { display: flex; gap: 10px; margin-top: 22px; }
.track-form input { flex: 1; }
.track-result { margin-top: 28px; text-align: left; }
.track-result > div, .track-result > p { padding: 18px 20px; border: 1px solid var(--color-border); border-radius: 4px; }

.contact-page { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 45px 0 70px; max-width: 1100px; margin-inline: auto; }

.empty-state { text-align: center; padding: 70px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 989px) {
  .product-single { grid-template-columns: 1fr; gap: 30px; }
  .contact-page { grid-template-columns: 1fr; gap: 30px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-sidebar { order: -1; position: static; }
  .grid--uniform { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .page-width { padding: 0 17px; }

  /* header switches to hamburger layout */
  .small--hide { display: none !important; }
  .medium-up--hide { display: block !important; }
  .medium-up--hide.site-nav { display: flex !important; }
  .site-header { padding: 12px 0; }
  .site-header__logo { margin: 4px 0; font-size: 22px; }
  .header-layout[data-logo-align="center"] .header-item--logo { margin: 0 12px; }

  .av-hero { grid-template-columns: 1fr; min-height: auto; }
  .av-hero__image { min-height: 60vw; order: 1; }
  .av-hero__content { order: 2; padding: 45px 24px 52px; }
  .av-hero h1 { font-size: 44px; }
  .av-products { display: block; padding: 60px 20px; }
  .av-products__intro { padding: 0; margin-bottom: 30px; }
  .av-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .av-card__body { padding: 12px 0 18px; }
  .av-card h3 { font-size: 15px; }
  .av-price { font-size: 15px; }
  .av-guarantee { flex-direction: column; text-align: center; gap: 35px; padding: 64px 24px; }
  .av-guarantee__seal { width: 170px; height: 170px; }
  .av-review-grid { grid-template-columns: 1fr; }
  .av-section { padding: 62px 20px; }
  .av-proofbar { grid-template-columns: 1fr 1fr; }
  .av-proofbar > div:nth-child(2) { border-right: 0; }
  .av-proofbar > div:nth-child(-n+2) { border-bottom: 1px solid var(--av-line); }

  .collection-content .grid { display: block; margin: 0; }
  .collection-content .grid > .grid__item { padding: 0; width: 100%; }
  .collection-toolbar { flex-wrap: wrap; }
  .grid--uniform { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .grid-product__meta { text-align: left; }
}

@media (max-width: 520px) {
  .av-hero h1 { font-size: 38px; }
  .av-rating { font-size: 12px; }
  .softnu-home .av-section-title, .av-products__intro h2, .av-guarantee h2, .av-help h2 { font-size: 34px; }
  .av-price span { width: max-content; }
  .av-proofbar strong { font-size: 14px; }
  .av-proofbar span { font-size: 11px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-aos] { opacity: 1; transform: none; }
}

/* ---------- Product detail page (legacy class names) ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 50%) minmax(0, 1fr); gap: 50px; padding: 20px 0 60px; }
.product-detail__gallery { position: relative; }
.product-detail__main-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--av-mint); border-radius: 4px; }
.product-detail__info { padding-top: 10px; }
.product-detail__name { font-size: clamp(26px, 3vw, 34px); font-weight: 300; margin: 0 0 12px; }
.product-detail__price { display: flex; align-items: baseline; gap: 10px; font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.product-detail__price s { font-size: 16px; font-weight: 400; opacity: .5; }
.sale-tag { background: var(--color-sale); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 3px; margin-left: 8px; }
.product-detail__features { margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.product-detail__feature { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.product-detail__feature svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--av-green); }
.product-detail__desc { margin-top: 20px; font-size: 15px; line-height: 1.65; opacity: .85; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.review-grid { display: grid; }
.review-block { background: #f5f1eb; border-radius: 4px; }
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* ---------- Product detail: sales points, pricing, buttons ---------- */
.sales-points { list-style: none; margin: 16px 0 20px; padding: 0; }
.sales-point { padding: 5px 0; }
.icon-and-text { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.4; }
.icon-and-text svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--av-green); }

.product__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.product__price--compare { font-size: 17px; font-weight: 400; text-decoration: line-through; opacity: .45; }
.product__price.on-sale { color: var(--color-sale); }
.product__price-savings { display: inline-block; background: var(--color-sale); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 3px; }

.product__policies { font-size: 13px; margin-top: 10px; opacity: .65; }
.product__policies a { text-decoration: underline; text-underline-offset: 2px; }

.payment-buttons { margin-top: 16px; }
.payment-buttons .btn--full { width: 100%; }

.product__description { margin-top: 24px; font-size: 15px; line-height: 1.65; }
.product__description p { margin: 0 0 14px; opacity: .85; }

/* ---------- Collapsible accordion — matching softnu.com collapsible-trigger-btn--borders ---------- */
.collapsibles-wrapper--border-bottom { margin-top: 20px; }

.collapsible-trigger-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--color-text);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 15px 40px 15px 0;
  position: relative;
}

.collapsible-trigger-btn--borders {
  border: 1px solid var(--color-border);
  border-bottom: 0;
  padding: 15px;
}

.collapsible-trigger__icon {
  display: block;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.collapsible-trigger__icon svg {
  display: block;
  width: 12px;
  height: 8px;
  transition: transform .2s ease-in;
}

.collapsible-trigger.is-open .collapsible-trigger__icon svg {
  transform: scaleY(-1);
}

.collapsible-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height .35s ease, opacity .3s ease;
}
.collapsible-content.is-open {
  max-height: 600px;
  opacity: 1;
  visibility: visible;
}

.collapsible-content--all.is-open {
  max-height: none;
}

.collapsible-content__inner {
  font-size: 15px;
  line-height: 1.65;
  padding: 0 20px 20px;
  border: 1px solid var(--color-border);
  border-top: 0;
}
.collapsible-content__inner p { margin: 0 0 14px; opacity: .85; }
.collapsible-content__inner a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Policy pages — matching softnu.com shopify-policy__container ---------- */
.policy-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 75px 40px;
}
.policy-title h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  margin: 0 0 10px;
}
.policy-body { margin-top: 20px; }

/* .rte typography — matching softnu.com theme exactly */
.rte { margin-bottom: 15px; }
.rte::after { clear: both; content: ""; display: table; }
.rte p, .rte ul, .rte ol, .rte table { margin: 0 0 25px; }
.rte p:last-child, .rte ul:last-child, .rte ol:last-child { margin-bottom: 0; }
.rte h2 { font-size: clamp(24px, 2.5vw, 34px); font-weight: 300; margin: 60px 0 25px; }
.rte h2:first-child { margin-top: 0; }
.rte h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.rte h3:first-child { margin-top: 0; }
.rte li { margin-bottom: 0; line-height: 1.65; }
.rte ul { padding-left: 22px; }
.rte a {
  text-decoration: underline;
  text-decoration-color: rgba(12, 34, 55, .15);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .3s ease;
}
.rte a:hover { text-decoration-color: var(--color-text); }

@media (max-width: 768px) {
  .policy-container { padding: 45px 17px; }
}
/* Alias for ip.html which uses .policy-page */
.policy-page { max-width: 900px; margin: 0 auto; padding: 75px 40px; }
@media (max-width: 768px) { .policy-page { padding: 45px 17px; } }

/* Standard page layout classes */
.page-width { margin: 0 auto; max-width: 1500px; padding: 0 40px; }
.page-width--narrow { max-width: 1000px; }
.page-content { padding: 75px 0; }
@media (max-width: 768px) {
  .page-width { padding: 0 17px; }
  .page-content { padding: 45px 0; }
}

/* Footer: desktop = always visible, mobile = collapsible */
.footer__item .collapsible-content {
  /* Mobile: collapsed by default */
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-height .35s ease, opacity .3s ease;
}
.footer__item .collapsible-content.is-open {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
}

/* Desktop: always show footer content, hide mobile toggle buttons */
@media (min-width: 769px) {
  .footer__item .collapsible-content {
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
  }
  .footer__item .collapsible-trigger { display: none !important; }
}

/* ---------- Account page tabs ---------- */
.account-tabs { display: flex; border-bottom: 1px solid var(--color-border); }
.account-tabs button {
  flex: 1;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-alpha);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.account-tabs button.active { color: var(--color-text); border-bottom-color: var(--av-green); }
.account-tabs button:hover { color: var(--color-text); }

/* ---------- .rte--nomargin variant ---------- */
.rte--nomargin p:last-child { margin-bottom: 0; }
.rte--nomargin h3 { font-size: 16px; font-weight: 600; margin: 28px 0 8px; }
.rte--nomargin h3:first-child { margin-top: 0; }

/* ---------- Order Status Stepper ---------- */
.order-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 24px 0;
  position: relative;
}
.order-stepper::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--color-border);
  z-index: 0;
}
.order-stepper__line {
  position: absolute;
  top: 16px;
  left: 24px;
  height: 3px;
  background: var(--av-green);
  z-index: 1;
  transition: width .6s ease;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 120px;
}
.step__circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  background: var(--color-body);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-alpha);
  transition: all .3s ease;
  margin-bottom: 8px;
}
.step__label {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: var(--color-text-alpha);
  line-height: 1.3;
  transition: color .3s ease;
}
.step__time {
  font-size: 11px;
  color: var(--color-text-alpha);
  opacity: .6;
  text-align: center;
  margin-top: 2px;
}

/* Completed */
.step--completed .step__circle {
  background: var(--av-green);
  border-color: var(--av-green);
  color: #fff;
}
.step--completed .step__label { color: var(--color-text); font-weight: 600; }

/* Current / Active */
.step--current .step__circle {
  background: var(--av-green);
  border-color: var(--av-green);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(74, 124, 111, .2);
  animation: pulse-ring 2s ease infinite;
}
.step--current .step__label { color: var(--color-text); font-weight: 700; }

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 124, 111, .2); }
  50% { box-shadow: 0 0 0 8px rgba(74, 124, 111, .08); }
}

/* Cancelled/Refunded override */
.step--cancelled .step__circle {
  background: var(--color-sale);
  border-color: var(--color-sale);
  color: #fff;
}
.step--cancelled .step__label { color: var(--color-sale); font-weight: 700; }

/* Payment badge */
.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0;
}
.pay-badge--unpaid { background: #fff3e0; color: #e65100; }
.pay-badge--paid { background: #e8f5e9; color: #2e7d32; }
.pay-badge--proof { background: #e3f2fd; color: #1565c0; }
.pay-badge--refunded { background: #fce4ec; color: #c62828; }
.pay-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.pay-badge--unpaid .pay-badge__dot { background: #e65100; }
.pay-badge--paid .pay-badge__dot { background: #2e7d32; }
.pay-badge--proof .pay-badge__dot { background: #1565c0; }
.pay-badge--refunded .pay-badge__dot { background: #c62828; }

@media (max-width: 520px) {
  .step__label { font-size: 10px; }
  .step__circle { width: 28px; height: 28px; font-size: 12px; }
  .order-stepper::before, .order-stepper__line { top: 13px; left: 18px; right: 18px; }
}
