/* Hombussaba public site — florist theme */

:root {
  --bg: #fdf8f4;
  --bg-alt: #f6ebe1;
  --fg: #2e2620;
  --muted: #756a60;
  --accent: #a6527a;
  --accent-dark: #7f3659;
  --accent-soft: #f4d9e4;
  --sage: #7a9474;
  --sage-dark: #4f6a4c;
  --border: #e6dacd;
  --panel: #ffffff;
  --danger: #a3332c;
  --display-font: Georgia, "Cormorant Garamond", "Playfair Display", "Times New Roman", serif;
  --body-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(70, 40, 20, .06);
  --shadow-md: 0 6px 20px rgba(70, 40, 20, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--fg);
  background-color: var(--bg);
  background-image: url('/assets/lily-tile.svg');
  background-repeat: repeat;
  background-size: 360px 360px;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

img { max-width: 100%; display: block; }

/* === Header === */
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow-sm);
}
.site-header {
  overflow: visible;
}
.site-header .brand {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  height: 64px;
  min-width: 260px;
  flex-shrink: 0;
  z-index: 2;
  margin-left: -2rem; /* cancel site-header's left padding so the logo hits the viewport edge */
}
.site-header .brand .brand-logo {
  position: absolute;
  top: -20px;
  left: 0;
  height: 150px;
  width: auto;
  filter: drop-shadow(0 6px 16px rgba(120, 60, 100, .18));
  pointer-events: none;
}
@media (max-width: 900px) {
  .site-header .brand { height: 56px; min-width: 220px; }
  .site-header .brand .brand-logo { height: 130px; }
}
@media (max-width: 600px) {
  .site-header .brand { height: 48px; min-width: 180px; }
  .site-header .brand .brand-logo { height: 108px; }
}
.lang-switcher {
  display: inline-flex;
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switcher a {
  display: inline-block;
  padding: .35rem .9rem;
  font-size: .82rem;
  color: var(--muted);
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.lang-switcher a[lang="en"] { letter-spacing: .02em; }
.lang-switcher a[lang="th"] { font-family: "Noto Sans Thai", "Leelawadee UI", "Tahoma", var(--body-font); }
.lang-switcher a[lang="zh"] { font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", var(--body-font); }
.lang-switcher a.active {
  background: var(--panel);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.lang-switcher a:hover:not(.active) { color: var(--fg); }

/* === Social icons in header === */
.site-social {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  margin-left: auto; /* push icons + lang-switcher together to the right edge */
}
.site-social .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.site-social .social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.site-social .social-icon:hover,
.site-social .social-icon:focus-visible {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: var(--shadow-sm);
  outline: none;
}
.site-social .social-line:hover,
.site-social .social-line:focus-visible { background: #06C755; }
.site-social .social-instagram:hover,
.site-social .social-instagram:focus-visible {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* === Social modal dialog === */
.social-dialog {
  border: 0;
  border-radius: 12px;
  padding: 0;
  max-width: 400px;
  width: calc(100% - 2rem);
  background: var(--panel);
  color: var(--fg);
  box-shadow: 0 24px 60px rgba(40, 20, 30, .3);
}
.social-dialog::backdrop {
  background: rgba(30, 20, 25, .5);
  backdrop-filter: blur(3px);
}
.social-dialog .social-dialog-body {
  padding: 1.4rem 1.5rem .25rem;
  text-align: center;
}
.social-dialog h2 {
  margin: 0 0 1rem;
  font-family: var(--display-font);
  font-size: 1.3rem;
  color: var(--accent-dark);
}
.social-dialog .social-dialog-img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
}
.social-dialog .social-dialog-note {
  margin: 1rem 0 0;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.45;
}
.social-dialog .social-dialog-actions {
  display: flex;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
}
.social-dialog .dismiss-btn {
  padding: .5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--fg);
  font-size: .9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.social-dialog .dismiss-btn:hover,
.social-dialog .dismiss-btn:focus-visible {
  background: var(--bg-alt);
  border-color: var(--muted);
  outline: none;
}

/* === Hero === */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 85% 10%, rgba(244, 217, 228, .75), transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(122, 148, 116, .22), transparent 50%),
    var(--bg-alt);
  padding: 3rem 2rem 2.75rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: -40px;
  bottom: -40px;
  width: 260px;
  background-image: url('/assets/lily-spray.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  color: var(--accent);
  opacity: .32;
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  left: -80px;
  transform: scaleX(-1) rotate(-6deg);
  color: var(--accent-dark);
}
.hero::after {
  right: -80px;
  transform: rotate(6deg);
}
@media (max-width: 720px) {
  .hero::before,
  .hero::after { width: 170px; opacity: .22; }
  .hero::before { left: -60px; }
  .hero::after  { right: -60px; }
}
.hero h2, .hero p { position: relative; z-index: 1; }
.hero h2 {
  font-family: var(--display-font);
  font-weight: 400;
  margin: 0 0 .5rem;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  color: var(--fg);
  letter-spacing: -.01em;
}
.hero p {
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.55;
}

/* === Layout === */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.25rem 2rem;
}
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; padding: 1.5rem 1.1rem; gap: 1.25rem; }
}

/* === Sidebar === */
.sidebar { position: sticky; top: 88px; align-self: start; }
@media (max-width: 760px) {
  .sidebar { position: static; }
}
.sidebar h3 {
  font-family: var(--display-font);
  font-size: .95rem;
  font-weight: 600;
  margin: 0 0 .9rem;
  letter-spacing: .02em;
  color: var(--fg);
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--border);
}
.sidebar h3.sidebar-section {
  margin-top: 1.5rem;
  padding-top: 0;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin: 0; }
.sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem .75rem;
  border-radius: 6px;
  color: var(--fg);
  font-size: .95rem;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.sidebar a .count {
  font-size: .75rem;
  color: var(--muted);
  background: var(--bg-alt);
  padding: .05rem .5rem;
  border-radius: 10px;
}
.sidebar a:hover { background: var(--bg-alt); color: var(--fg); }
.sidebar a.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}
/* Timed category within its active window (e.g., Mother's Day). */
.sidebar a.timed > span:first-child { font-weight: 700; color: var(--accent-dark); }
.sidebar a.active .count { background: var(--panel); color: var(--accent-dark); }

/* === Search === */
.search-form {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  font-size: .95rem;
  font-family: inherit;
  color: var(--fg);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-form button {
  padding: .65rem 1.1rem;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: .95rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.search-form button:hover { background: var(--accent-dark); }
.search-form .search-clear {
  padding: .5rem .7rem;
  color: var(--muted);
  font-size: .88rem;
  text-decoration: underline;
  white-space: nowrap;
}
.search-form .search-clear:hover { color: var(--fg); }
.search-summary {
  color: var(--muted);
  font-size: .88rem;
  margin: -.4rem 0 1rem;
}
.search-summary strong { color: var(--fg); font-weight: 600; }

/* === Product grid === */
.products-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.products-head h2 {
  font-family: var(--display-font);
  font-weight: 500;
  margin: 0;
  font-size: 1.6rem;
}
.products-head .count { color: var(--muted); font-size: .9rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--panel);
  background-image: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.product-card:hover { text-decoration: none; color: inherit; }
.product-card:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px var(--accent),
    0 10px 22px rgba(166, 82, 122, .22);
}
.product-card .image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-alt), var(--accent-soft));
  overflow: hidden;
  position: relative;
}
.product-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card .image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  opacity: .55;
}
.product-card .image .placeholder svg { width: 50%; max-width: 88px; }
.product-card .sale-badge,
.product-card .oos-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: .3rem 0;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}
.product-card .sale-badge {
  background: linear-gradient(135deg, #d8315b, #a6527a);
  box-shadow: 0 -3px 10px rgba(166, 82, 122, .35);
}
.product-card .oos-badge {
  background: linear-gradient(135deg, #7a4b00, #b36b00);
  box-shadow: 0 -3px 10px rgba(140, 80, 0, .45);
}
.product-card.is-out-of-stock .image img {
  opacity: .75;
  filter: grayscale(.3);
}
.product-card.is-out-of-stock .price {
  color: var(--muted);
  text-decoration: line-through;
}
.product-card.is-on-sale .price {
  color: #d8315b;
}
.product-card .body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}
.product-card .name {
  font-family: var(--display-font);
  font-size: 1.12rem;
  font-weight: 500;
  margin: 0;
  color: var(--fg);
}
.product-card .sku { font-size: .72rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.product-card .desc { color: var(--muted); font-size: .88rem; line-height: 1.45; margin: .2rem 0 .6rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .price { font-weight: 600; color: var(--accent-dark); font-size: 1.05rem; margin-top: auto; font-variant-numeric: tabular-nums; }

.empty-grid {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 10px;
}
.empty-grid p { margin: 0; }

/* === Checkout multi-step form === */
.checkout-page {
  max-width: 760px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.checkout-head { display: flex; flex-direction: column; gap: .6rem; align-items: center; text-align: center; }
.checkout-head h1 { font-family: var(--display-font); font-weight: 500; margin: 0; font-size: 2rem; color: var(--accent-dark); }
.checkout-progress { display: flex; gap: .4rem; align-items: center; }
.checkout-progress .pg-step {
  width: 1.8rem; height: 1.8rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--muted);
  font-weight: 600;
  font-size: .9rem;
  border: 0;
  padding: 0;
  font-family: inherit;
  text-decoration: none;
  cursor: default;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.checkout-progress .pg-step.is-current { background: var(--accent); color: #fff; transform: scale(1.08); }
.checkout-progress .pg-step.is-done    { background: var(--sage); color: #fff; }
/* Done-steps rendered as a button or link are clickable — jump back to them. */
.checkout-progress button.pg-step,
.checkout-progress a.pg-step { cursor: pointer; }
.checkout-progress button.pg-step:hover,
.checkout-progress a.pg-step:hover,
.checkout-progress button.pg-step:focus-visible,
.checkout-progress a.pg-step:focus-visible {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}
.checkout-step-label { font-size: .85rem; color: var(--muted); }

.checkout-product {
  display: flex; gap: 1rem; align-items: center;
  padding: .9rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.checkout-product img { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; background: var(--bg-alt); }
.checkout-product-info .sku { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.checkout-product-info h2 { margin: .1rem 0 .35rem; font-size: 1.05rem; font-weight: 500; }
.checkout-product-info .price { font-weight: 600; color: var(--accent-dark); }

.checkout-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  box-shadow: var(--shadow-sm);
}
.checkout-form h2 { font-family: var(--display-font); font-weight: 500; margin: 0; font-size: 1.4rem; color: var(--fg); }
.checkout-form .muted { margin: 0; font-size: .9rem; }
.checkout-form .required-note { font-size: .78rem; margin-top: -.3rem; }
.checkout-form .field { display: flex; flex-direction: column; gap: .3rem; }
.checkout-form .field > label {
  font-size: .78rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.checkout-form .field .req { color: var(--danger); font-weight: 700; margin-left: .15rem; }
.checkout-form .field input,
.checkout-form .field select,
.checkout-form .field textarea {
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: .95rem;
  font-family: inherit;
  color: var(--fg);
  transition: border-color .15s, box-shadow .15s;
}
.checkout-form .field input:focus,
.checkout-form .field select:focus,
.checkout-form .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.checkout-form .field.has-error input,
.checkout-form .field.has-error select,
.checkout-form .field.has-error textarea {
  border-color: var(--danger);
  background: #fff8f8;
}
.checkout-form .field .err { color: var(--danger); font-size: .82rem; }
.checkout-form .row-two { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 520px) {
  .checkout-form .row-two { grid-template-columns: 1fr; }
}
.checkout-form textarea { resize: vertical; min-height: 6rem; }

.checkout-nav {
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  margin-top: .75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.checkout-nav button,
.checkout-nav a.button {
  padding: .7rem 1.4rem;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.checkout-nav button:hover:not(:disabled),
.checkout-nav a.button:hover { background: var(--accent-dark); }
.checkout-nav .secondary {
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--border);
}
.checkout-nav .secondary:hover { background: var(--bg-alt); }
.checkout-nav .paypal-stub {
  background: #0070ba;
  cursor: not-allowed;
  opacity: .5;
}
.checkout-nav button:only-child { margin-left: auto; }

/* Review step */
/* Fixed-width dt column (10rem) so every row's Edit link right-aligns into
 * the same vertical stripe. Inside the dt, flex pushes the label left and
 * the Edit link hard right. */
.review-dl { display: grid; grid-template-columns: 10rem 1fr; gap: .65rem 1.25rem; margin: 0; }
.review-dl dt {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  font-size: .78rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
  padding-top: .1rem;
}
.review-dl dt .edit { font-size: .7rem; color: var(--accent); text-transform: none; letter-spacing: 0; font-weight: 500; white-space: nowrap; }
.review-dl dt .edit:hover { color: var(--accent-dark); }
.review-dl dd { margin: 0; color: var(--fg); line-height: 1.45; }
@media (max-width: 520px) {
  .review-dl { grid-template-columns: 1fr; gap: .15rem .5rem; }
  .review-dl dd { margin-bottom: .6rem; }
}

/* === Pagination === */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  margin: 2.25rem 0 .75rem;
  font-size: .92rem;
}
.pagination a,
.pagination > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  height: 2.3rem;
  padding: 0 .8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--fg);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--bg-alt);
}
.pagination .pg-num.is-current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
  pointer-events: none;
}
.pagination .pg-gap {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  min-width: auto;
  padding: 0 .35rem;
}
.pagination .is-disabled {
  color: var(--muted);
  opacity: .5;
  pointer-events: none;
}
@media (max-width: 500px) {
  .pagination .pg-step { padding: 0 .55rem; }
}

/* === Footer === */
.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--fg);
  color: #f1e9e0;
  padding: 3rem 2rem 1.5rem;
  margin-top: 3rem;
}
.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  top: -20px;
  bottom: -20px;
  width: 220px;
  background-image: url('/assets/lily-spray.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  color: #f4d9e4;
  opacity: .12;
  pointer-events: none;
  z-index: -1;
}
.site-footer::before {
  left: -60px;
  transform: rotate(-8deg);
}
.site-footer::after {
  right: -60px;
  transform: scaleX(-1) rotate(-8deg);
}
@media (max-width: 680px) {
  .site-footer::before,
  .site-footer::after { width: 150px; opacity: .1; }
}
.site-footer a { color: #f6d9e4; }
.site-footer a:hover { color: #ffffff; }
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.site-footer h4 {
  font-family: var(--display-font);
  font-size: 1.05rem;
  margin: 0 0 .8rem;
  color: #fdf8f4;
  font-weight: 500;
}
.site-footer .contact-line {
  margin: .35rem 0;
  color: #d6c4b2;
  font-size: .92rem;
  line-height: 1.55;
  white-space: pre-line;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin: .35rem 0; font-size: .92rem; }
.site-footer .legal {
  max-width: 1200px;
  margin: 2.25rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  color: #a89987;
  font-size: .78rem;
  letter-spacing: .03em;
}

/* === Product detail page === */
.product-page {
  max-width: 1100px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
}
.product-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
}
.product-back:hover { color: var(--accent); text-decoration: underline; }
.product-notfound {
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}
.product-back-wrap { text-align: center; margin-top: 1rem; }
.product-detail {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.product-detail .sale-corner {
  position: absolute;
  top: 60px;
  right: -70px;
  width: 260px;
  transform: rotate(45deg);
  transform-origin: center;
  pointer-events: none;
  z-index: 3;
}
.product-detail .sale-corner span {
  display: block;
  padding: .45rem 0;
  background: linear-gradient(135deg, #d8315b, #a6527a);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(166, 82, 122, .35);
}
.product-detail .sale-corner.is-oos span {
  background: linear-gradient(135deg, #7a4b00, #b36b00);
  box-shadow: 0 3px 10px rgba(140, 80, 0, .45);
  letter-spacing: .14em;
}
.product-detail.is-out-of-stock .product-detail-image img {
  opacity: .78;
  filter: grayscale(.25);
}
.product-detail.is-out-of-stock .product-price {
  color: var(--muted);
  text-decoration: line-through;
}
@media (max-width: 760px) {
  .product-detail .sale-corner { top: 50px; right: -80px; width: 240px; }
  .product-detail .sale-corner span { font-size: .82rem; padding: .35rem 0; }
}
@media (max-width: 760px) {
  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem; }
}
.product-detail-image {
  position: relative;
  background: linear-gradient(135deg, var(--bg-alt), var(--accent-soft));
  border: 1px solid var(--accent);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow:
    0 0 0 2px var(--accent),
    0 10px 22px rgba(166, 82, 122, .22);
}
.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-detail-image .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-dark); opacity: .55;
}
.product-detail-image .placeholder img { width: 40%; max-width: 120px; }
.product-detail-info { display: flex; flex-direction: column; gap: 1rem; }
.product-detail-info .sku-tag {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.product-detail-info .product-title {
  font-family: var(--display-font);
  font-weight: 500;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin: .1rem 0 0;
  letter-spacing: -.01em;
  color: var(--fg);
  line-height: 1.2;
}
.product-detail-info .product-price {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
  margin-top: .25rem;
}
.product-detail.is-on-sale .product-price { color: #d8315b; }
.product-detail-info .product-description {
  color: var(--fg);
  line-height: 1.6;
  font-size: 1rem;
  margin-top: .25rem;
}
.product-detail-info .order-button {
  display: inline-block;
  margin-top: .75rem;
  padding: .85rem 1.4rem;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: background .15s, transform .1s;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(166, 82, 122, .25);
}
.product-detail-info .order-button:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.product-detail-info button.order-button {
  font-family: inherit;
  border: 0;
  cursor: pointer;
}
.product-detail-info button.order-button:disabled,
.product-detail-info button.order-button[disabled] {
  background: var(--muted);
  color: #fff;
  cursor: not-allowed;
  opacity: .75;
  box-shadow: none;
  transform: none;
}

/* === Policy pages === */
.policy-page {
  max-width: 760px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
}
.policy-page h1 {
  font-family: var(--display-font);
  font-weight: 500;
  font-size: 2rem;
  margin: 0 0 1.25rem;
}
.policy-page .policy-body {
  background: var(--panel);
  background-image: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  white-space: pre-wrap;
  font-size: .98rem;
  line-height: 1.65;
  color: var(--fg);
}
.policy-page .policy-body.empty { color: var(--muted); font-style: italic; }
.policy-page .back { display: inline-block; margin-top: 1.25rem; font-size: .9rem; }
.policy-page .back.back-top { margin-top: 0; margin-bottom: 1rem; }

/* Wrapped images inside document bodies (About Us, etc.) */
.doc-body img.doc-wrap-left,
.doc-body img.doc-wrap-right {
  width: 260px;
  max-width: 45%;
  height: auto;
  border-radius: 8px;
}
.doc-body img.doc-wrap-left  { float: left;  margin: .35rem 1.5rem 1rem 0; }
.doc-body img.doc-wrap-right { float: right; margin: .35rem 0 1rem 1.5rem; }
.doc-body::after {
  content: "";
  display: table;
  clear: both;
}
@media (max-width: 600px) {
  .doc-body img.doc-wrap-left,
  .doc-body img.doc-wrap-right {
    float: none;
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.25rem;
  }
}
