/* =========================================================
   P'rabote — base.css
   Shared styles for every page: design tokens, reset,
   typography, buttons, header, footer, product card.
   (Shopify: this file goes in /assets, load it in layout/theme.liquid)
   ========================================================= */

/* ---------- Design tokens (from Figma variables) ---------- */
:root {
  /* Brand */
  --color-brand-default: #2c6b49;
  --color-brand-hover: #225239;
  --color-brand-subtle: #f1f8f4;
  --color-brand-primary-50: #f1f8f4;
  --color-brand-primary-100: #dcede3;
  --color-brand-primary-200: #b9dbc8;
  --color-brand-primary-300: #8cc2a4;
  --color-brand-primary-800: #1a3f2c;
  --color-brand-primary-900: #122c1f;

  /* Neutral */
  --color-white: #ffffff;
  --color-neutral-200: #e2e8f0;
  --color-neutral-500: #64748b;
  --color-neutral-600: #475569;
  --color-neutral-700: #334155;
  --color-neutral-900: #0f172a;

  /* Semantic */
  --color-text-primary: #0f172a;
  --color-text-brand: #225239;
  --color-text-inverse: #ffffff;
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8fafc;
  --color-bg-tertiary: #f1f5f9;
  --color-border-default: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  --color-danger-default: #dc2626;
  --color-warning-500: #f59e0b;

  /* Type */
  --font-family-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-family-serif: "Instrument Serif", Georgia, serif;

  /* Spacing */
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;

  /* Radius */
  --radius-full: 9999px;

  /* Shadow */
  --shadow-lg: 0 4px 6px -4px rgba(0, 0, 0, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Page side padding (changes per breakpoint) */
  --page-gutter: 56px;
}

@media (max-width: 1023px) {
  :root { --page-gutter: 48px; }
}
@media (max-width: 767px) {
  :root { --page-gutter: 24px; }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-family-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0;
}
ul, ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--color-brand-default);
  text-transform: uppercase;
}
.heading-serif-64 {
  font-family: var(--font-family-serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 72px;
  letter-spacing: -1.28px;
}
.heading-serif-48 {
  font-family: var(--font-family-serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.96px;
}
.heading-serif-32 {
  font-family: var(--font-family-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.64px;
}
.heading-serif-64 em,
.heading-serif-48 em,
.heading-serif-32 em {
  font-style: italic;
}

/* ---------- Buttons (Figma component "Button") ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-family-sans);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
/* Size MD */
.btn--md {
  padding: 11px 20px;
  font-size: 14px;
  line-height: 20px;
}
/* Size LG */
.btn--lg {
  padding: 13px 28px;
  font-size: 15px;
  line-height: 22px;
}
.btn--primary {
  background: var(--color-brand-default);
  color: var(--color-text-inverse);
}
.btn--primary:hover {
  background: var(--color-brand-hover);
}
.btn--outline {
  background: transparent;
  border-color: var(--color-border-default);
  color: var(--color-text-primary);
}
.btn--outline:hover {
  border-color: var(--color-text-primary);
}
.btn--block {
  width: 100%;
}

/* ---------- Stars ---------- */
.stars {
  display: flex;
  align-items: flex-start;
  gap: 2px;
}
.stars img {
  width: 14px;
  height: 14px;
}
.stars--16 {
  gap: 3px;
}
.stars--16 img {
  width: 16px;
  height: 16px;
}

/* =========================================================
   HEADER  (Shopify: sections/header.liquid)
   ========================================================= */
.announcement-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-brand-primary-900);
  color: var(--color-brand-primary-50);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: pre;
}
.announcement-bar img {
  width: 16px;
  height: 16px;
}
.announcement-bar__short {
  display: none;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 17px var(--page-gutter);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-subtle);
}
.site-header__menu-toggle {
  display: none;
  width: 24px;
  height: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo img {
  width: 33.15px;
  height: 26px;
}
.logo span {
  font-family: var(--font-family-serif);
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.48px;
  color: var(--color-text-primary);
  white-space: nowrap;
}
.site-nav {
  flex: 1 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-width: 1px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--color-neutral-700);
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--color-brand-default);
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 248px;
  padding: 10px 16px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-default);
  border-radius: 999px;
}
.header-search img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.header-search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-primary);
}
.header-search input::placeholder {
  color: var(--color-neutral-500);
}
.header-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}
.header-icon img {
  width: 22px;
  height: 22px;
}
.cart-count {
  position: absolute;
  left: 11px;
  top: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--color-brand-default);
  color: var(--color-text-inverse);
  font-size: 10px;
  line-height: normal;
  font-weight: 600;
}

/* Mobile drawer menu (not drawn in Figma — minimal styling using the same tokens) */
.mobile-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 8px var(--page-gutter) 24px;
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border-default);
  box-shadow: var(--shadow-lg);
}
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--color-neutral-700);
  border-bottom: 1px solid var(--color-border-subtle);
}
.site-header.is-menu-open .mobile-menu {
  display: block;
}

/* Tablet header: menu | logo (center) | search + cart */
@media (max-width: 1023px) {
  .site-header {
    justify-content: space-between;
    padding-top: 17px;
    padding-bottom: 17px;
  }
  .site-header__menu-toggle {
    display: block;
    width: 84px;
    text-align: left;
  }
  .site-header__menu-toggle img {
    width: 24px;
    height: 24px;
  }
  .site-nav {
    display: none;
  }
  .site-header__actions {
    width: 84px;
    justify-content: flex-end;
  }
  .header-search {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }
  .header-search input {
    display: none;
  }
  .header-icon--account,
  .header-icon--wishlist {
    display: none;
  }
}

/* Mobile header */
@media (max-width: 767px) {
  .announcement-bar {
    padding: 10px 16px;
    font-size: 12px;
    line-height: 16px;
  }
  .announcement-bar__long {
    display: none;
  }
  .announcement-bar__short {
    display: inline;
  }
  .site-header__menu-toggle,
  .site-header__actions {
    width: 48px;
  }
  .header-search {
    display: none;
  }
}

/* =========================================================
   PRODUCT CARD  (Shopify: snippets/product-card.liquid)
   ========================================================= */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 434 / 360;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-secondary);
}
.product-card__media > a {
  display: block;
  height: 100%;
}
.product-card__media > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card__badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-danger-default);
  color: var(--color-text-inverse);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}
.wishlist-btn {
  position: absolute;
  right: 16px;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--color-bg-primary);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.14));
}
.wishlist-btn img {
  width: 22px;
  height: 22px;
}
.wishlist-btn.is-active img {
  /* tint to brand green when saved */
  filter: brightness(0) saturate(100%) invert(31%) sepia(28%) saturate(860%) hue-rotate(95deg) brightness(92%) contrast(88%);
}
.product-card__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card__title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-neutral-500);
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.price__current {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--color-text-brand);
}
.price__compare {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-neutral-500);
  text-decoration: line-through;
}

/* =========================================================
   FOOTER  (Shopify: sections/footer.liquid)
   ========================================================= */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  height: 700px;
  padding: 72px 64px 0;
  overflow: hidden;
  background: var(--color-brand-primary-900);
}
.site-footer__columns {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.site-footer .logo span {
  color: var(--color-text-inverse);
}
.site-footer__tagline,
.site-footer__copyright {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-brand-primary-200);
}
.site-footer__tagline {
  width: 300px;
}
.site-footer__copyright--bottom {
  display: none;
}
.social-links {
  display: flex;
  gap: 16px;
}
.social-links img {
  width: 22px;
  height: 22px;
}
.site-footer__menus {
  display: flex;
  align-items: flex-start;
  gap: 172px;
  white-space: nowrap;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  text-align: right;
}
.footer-menu--tight {
  gap: 16px;
}
.footer-menu__title {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--color-text-inverse);
}
.footer-menu ul {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-brand-primary-200);
}
.footer-menu--tight ul {
  gap: 12px;
}
.footer-menu a:hover {
  color: var(--color-text-inverse);
}
.site-footer__wordmark {
  flex-shrink: 0;
  /* scales so the word always spans the footer width (685px at 1920) */
  font-size: calc((100vw - 128px) * 0.3824);
  font-family: var(--font-family-serif);
  line-height: 0.72;
  letter-spacing: -0.02em;
  color: var(--color-brand-primary-800);
  white-space: nowrap;
  user-select: none;
}
@supports (text-box: trim-both cap alphabetic) {
  .site-footer__wordmark {
    line-height: normal;
    text-box: trim-both cap alphabetic;
  }
}

@media (max-width: 1279px) {
  .site-footer__menus {
    gap: 96px;
  }
}

/* Tablet + mobile footer: centered brand, menus below */
@media (max-width: 1023px) {
  .site-footer {
    height: 700px;
    gap: 48px;
    padding: 72px var(--page-gutter) 0;
  }
  .site-footer__columns {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }
  .site-footer__brand {
    align-items: center;
    text-align: center;
  }
  .site-footer__tagline {
    width: 254px;
  }
  .site-footer__brand .site-footer__copyright {
    display: none;
  }
  .site-footer__copyright--bottom {
    display: block;
    text-align: center;
  }
  .site-footer__menus {
    width: 100%;
    justify-content: space-between;
    gap: 24px;
  }
  .site-footer__wordmark {
    font-size: calc((100vw - 38px) * 0.3824);
    margin-bottom: -0.2em;
  }
}

@media (max-width: 767px) {
  .site-footer {
    height: auto;
    gap: 48px;
  }
  .site-footer__menus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 32px;
  }
  .footer-menu {
    width: 100%;
  }
  .site-footer__wordmark {
    font-size: calc((100vw - 19px) * 0.3824);
  }
}

/* =========================================================
   MICRO-INTERACTIONS  (Figma: 06 · Micro-interactions)
   Shared by every page. Markup for search panel, toast and
   quick view is injected by theme.js
   (Shopify: snippets/search-dropdown, cart-toast, quick-view)
   ========================================================= */
:root {
  --color-success-default: #059669;
  --color-danger-subtle: #fef2f2;
  --color-text-secondary: #475569;
  --color-text-tertiary: #94a3b8;
  --color-warning-default: #d97706;
  --color-border-strong: #cbd5e1;
  --shadow-popover: 0 12px 32px -4px rgba(15, 23, 41, 0.12);
  --shadow-modal: 0 24px 64px -8px rgba(15, 23, 41, 0.2);
}

/* ---------- Header search: focus + live dropdown (desktop) ---------- */
.header-search {
  position: relative;
  transition: width 0.2s ease, margin 0.2s ease, box-shadow 0.2s ease;
}
.header-search__clear {
  display: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.header-search__clear img {
  width: 18px;
  height: 18px;
}
.header-search .icon-search-active {
  display: none;
}
@media (min-width: 1024px) {
  .header-search.is-open {
    width: 480px;
    margin: -2.5px 0 -2.5px -232px;
    gap: 10px;
    padding: 12px 16px;
    background: var(--color-bg-primary);
    border: 1.5px solid var(--color-brand-default);
    box-shadow: 0 0 0 4px rgba(43, 107, 74, 0.18);
  }
  .header-search.is-open > img {
    display: none;
  }
  .header-search.is-open .icon-search-active {
    display: block;
    width: 20px;
    height: 20px;
  }
  .header-search.is-open input {
    font-weight: 500;
    caret-color: var(--color-brand-default);
  }
  .header-search.is-open.has-value .header-search__clear {
    display: block;
  }
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: -1.5px;
  z-index: 30;
  display: none;
  flex-direction: column;
  width: 480px;
  padding: 8px 0;
  border: 1px solid var(--color-border-default);
  border-radius: 12px;
  background: var(--color-bg-primary);
  box-shadow: var(--shadow-popover);
}
.header-search.is-open.has-value .search-dropdown {
  display: flex;
}
.search-dropdown__label {
  padding: 8px 16px 4px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
}
.search-dropdown__divider + .search-dropdown__label {
  padding-top: 12px;
}
.search-dropdown__divider {
  height: 1px;
  background: var(--color-border-default);
}
.search-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-primary);
}
.search-suggestion:first-of-type,
.search-suggestion:hover {
  background: var(--color-bg-secondary);
}
.search-suggestion img {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.search-suggestion span {
  flex: 1 0 0;
  min-width: 1px;
}
.search-suggestion b {
  font-weight: 600;
}
.search-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
}
.search-product:hover {
  background: var(--color-bg-secondary);
}
.search-product img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}
.search-product__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 1px;
}
.search-product__title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.search-product .price {
  gap: 6px;
}
.search-product .price__current {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
}
.search-product .price__compare {
  font-size: 12px;
  line-height: 16px;
  color: var(--color-text-tertiary);
}
.search-see-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--color-brand-default);
}
.search-see-all img {
  width: 18px;
  height: 18px;
}
.search-empty {
  padding: 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-secondary);
}

/* ---------- Search overlay (tablet + mobile) ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  background: var(--color-bg-primary);
}
.search-overlay.is-open {
  display: flex;
}
.search-overlay__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--color-border-default);
}
.search-overlay__back img {
  width: 22px;
  height: 22px;
}
.search-overlay__field {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  gap: 8px;
  min-width: 1px;
  padding: 10px 14px;
  border: 1.5px solid var(--color-brand-default);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(43, 107, 74, 0.18);
}
.search-overlay__field img {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.search-overlay__field input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  line-height: 20px;
  caret-color: var(--color-brand-default);
}
.search-overlay__field input::placeholder {
  color: var(--color-text-tertiary);
}
.search-overlay__cancel {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--color-brand-default);
}
.search-overlay__body {
  flex: 1;
  overflow-y: auto;
}
.search-overlay__idle {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 20px 16px;
}
.search-overlay__results {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 20px;
}
.search-overlay.has-value .search-overlay__idle {
  display: none;
}
.search-overlay.has-value .search-overlay__results {
  display: flex;
}
.search-overlay__results .search-suggestion {
  padding: 12px 16px;
  background: none;
}
.search-overlay__results .search-suggestion img:first-child {
  width: 18px;
  height: 18px;
}
.search-overlay__results .search-dropdown__label {
  padding: 16px 16px 8px;
}
.search-overlay__results .search-product img {
  width: 56px;
  height: 56px;
}
.search-overlay__results .search-product .price__current {
  font-weight: 600;
}
.search-overlay__see-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 16px 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--color-brand-subtle);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--color-brand-default);
}
.search-overlay__see-all img {
  width: 16px;
  height: 16px;
}
.search-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.search-block__head button {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--color-brand-default);
}
.search-recent {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.search-recent__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 20px;
}
.search-recent__item > img {
  width: 18px;
  height: 18px;
}
.search-recent__item a {
  flex: 1 0 0;
  min-width: 1px;
}
.search-recent__item button img {
  width: 16px;
  height: 16px;
}
.search-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-block__title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-chip {
  padding: 7px 13px;
  border: 1px solid var(--color-border-default);
  border-radius: 999px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.search-rooms {
  display: flex;
  gap: 10px;
}
.search-room {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 6px;
  min-width: 1px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}
.search-room img {
  width: 100%;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
}

/* ---------- Wishlist heart states ---------- */
.wishlist-btn .wl-hover,
.wishlist-btn .wl-saved {
  display: none;
}
@media (hover: hover) {
  .wishlist-btn:hover {
    background: var(--color-danger-subtle);
  }
  .wishlist-btn:not(.is-active):hover .wl-default {
    display: none;
  }
  .wishlist-btn:not(.is-active):hover .wl-hover {
    display: block;
  }
}
.wishlist-btn.is-active .wl-default {
  display: none;
  filter: none;
}
.wishlist-btn.is-active .wl-saved {
  display: block;
}
.wishlist-btn.is-active img {
  filter: none;
}

/* ---------- Add to cart button states (Default → Loading → Added) ---------- */
.atc-loading,
.atc-added {
  gap: 10px !important;
  border-color: transparent !important;
  color: var(--color-text-inverse) !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 600 !important;
  pointer-events: none;
}
.btn--md.atc-loading,
.btn--md.atc-added {
  padding-top: 11px;
  padding-bottom: 11px;
}
.atc-loading {
  background: var(--color-brand-hover) !important;
}
.atc-added {
  background: var(--color-success-default) !important;
}
.atc-loading img,
.atc-added img {
  width: 20px;
  height: 20px;
}
.atc-loading img {
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Product card hover: zoom + quick actions ---------- */
.product-card__media > a > img {
  transition: transform 0.35s ease;
}
.card-actions {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
/* icon-only quick actions, same 40px circle as the wishlist heart */
.card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--color-bg-primary);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.14));
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.card-action:hover {
  transform: scale(1.06);
}
.card-action img {
  width: 18px;
  height: 18px;
}
.card-action--add {
  background: var(--color-brand-default);
  color: var(--color-text-inverse);
}
.card-action--add:hover {
  background: var(--color-brand-hover);
}
.card-action--add.is-added {
  background: var(--color-success-default);
}
@media (hover: hover) and (min-width: 1024px) {
  .product-card {
    transition: transform 0.25s ease;
  }
  .product-card:hover {
    transform: translateY(-4px);
  }
  .product-card:hover .product-card__media > a > img {
    transform: scale(1.08);
  }
  .product-card:hover .card-actions,
  .card-actions:focus-within {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  right: var(--page-gutter);
  z-index: 90;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 400px;
  padding: 15px;
  border: 1px solid var(--color-border-default);
  border-radius: 12px;
  background: var(--color-bg-primary);
  box-shadow: var(--shadow-popover);
  opacity: 0;
  transform: translateX(calc(100% + var(--page-gutter)));
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.toast.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.toast__image {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}
.toast__body {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 4px;
  min-width: 1px;
}
.toast__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.toast__title img {
  width: 16px;
  height: 16px;
}
.toast__text {
  font-size: 12px;
  line-height: 16px;
  color: var(--color-text-secondary);
}
.toast__links {
  display: flex;
  gap: 16px;
  padding-top: 4px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--color-brand-default);
}
.toast__close img {
  width: 18px;
  height: 18px;
}
@media (max-width: 767px) {
  .toast {
    left: 16px;
    right: 16px;
    bottom: 24px;
    top: auto !important;
    width: auto;
    transform: translateY(calc(100% + 24px));
  }
}

/* ---------- Quick view modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 41, 0.24);
}
.modal-backdrop.is-open {
  display: flex;
}
body.has-modal {
  overflow: hidden;
}
.quick-view {
  display: flex;
  width: 1040px;
  max-width: 100%;
  height: 680px;
  max-height: calc(100vh - 32px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-bg-primary);
  box-shadow: var(--shadow-modal);
}
.quick-view__image {
  flex: 0 0 50%;
  width: 50%;
  object-fit: cover;
}
.quick-view__info {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 1px;
  padding: 40px;
  overflow-y: auto;
}
.quick-view__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.quick-view__close img {
  width: 22px;
  height: 22px;
}
.quick-view__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-text-secondary);
}
.quick-view__rating span {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-warning-default);
}
.quick-view .price {
  gap: 10px;
}
.quick-view .price__compare {
  color: var(--color-text-tertiary);
}
.quick-view__desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-secondary);
}
.quick-view__label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}
.qv-swatches {
  display: flex;
  gap: 10px;
}
.qv-swatch {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--swatch);
}
.qv-swatch.is-selected {
  box-shadow: 0 0 0 1px var(--color-bg-primary), 0 0 0 2px var(--color-brand-default);
}
.quick-view__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-top: 8px;
}
.qty {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--color-border-default);
  border-radius: 999px;
}
.qty button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
}
.qty button img {
  width: 18px;
  height: 18px;
}
.qty__minus:not(:disabled) {
  background: var(--color-bg-secondary);
}
.qty__minus:disabled {
  cursor: default;
}
.qty__plus {
  background: var(--color-brand-subtle);
}
.qty__value {
  width: 40px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-align: center;
}
.btn-cart {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 1px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--color-brand-default);
  color: var(--color-text-inverse);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.btn-cart:hover {
  background: var(--color-brand-hover);
}
.btn-cart img {
  width: 20px;
  height: 20px;
}
.quick-view__more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--color-brand-default);
}
.quick-view__more img {
  width: 16px;
  height: 16px;
}
@media (max-width: 767px) {
  .quick-view {
    flex-direction: column;
    height: auto;
  }
  .quick-view__image {
    flex: none;
    width: 100%;
    height: 260px;
  }
  .quick-view__info {
    padding: 24px;
  }
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.site-nav a.is-active {
  color: var(--color-brand-default);
}
