:root {
  --shop-green: #8fb83f;
  --shop-green-dark: #557b1f;
  --shop-green-soft: #f2f7e9;
  --shop-ink: #161916;
  --shop-muted: #70756f;
  --shop-line: #e6e8e4;
  --shop-paper: #fff;
  --shop-wash: #f6f7f4;
  --shop-shadow: 0 28px 80px rgb(20 26 18 / 22%);
}

.shop { min-width: 0; background: var(--shop-paper); color: var(--shop-ink); overflow-x: hidden; }
.shop.shop-view-open { overflow: hidden; }
.shop [hidden] { display: none !important; }
.shop button, .shop a, .shop input { -webkit-tap-highlight-color: transparent; }
.shop button:focus-visible, .shop a:focus-visible, .shop input:focus-visible {
  outline: 3px solid rgb(143 184 63 / 30%); outline-offset: 3px;
}

.olive-topline {
  min-height: 31px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 20px; border-bottom: 1px solid #eceee9; background: #f8f9f6; color: #3e443e;
  font-size: 11px; line-height: 1.55; letter-spacing: .015em; text-align: center;
}
.olive-topline span { color: var(--shop-green-dark); font-weight: 900; }
.config-banner { padding: 10px 18px; background: #fff2c7; color: #5d4505; text-align: center; }

.shop .site-header {
  position: sticky; top: 0; z-index: 20; min-height: 118px; height: auto;
  display: grid; grid-template-columns: minmax(210px, auto) minmax(300px, 640px) minmax(210px, auto);
  grid-template-rows: 68px 42px; align-items: center; justify-content: space-between; gap: 0 clamp(22px, 4vw, 62px);
  padding: 7px max(4vw, 28px) 0; border-bottom: 1px solid var(--shop-line);
  background: rgb(255 255 255 / 97%); backdrop-filter: blur(15px);
}
.shop .brand {
  min-width: 0; display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  color: var(--shop-ink); font-size: 25px; font-weight: 850; letter-spacing: -.06em; white-space: nowrap;
}
.shop .brand-logo { width: 56px; height: 56px; flex: 0 0 56px; object-fit: contain; background: #fff; }
.shop .brand-name { color: var(--shop-ink); }

.olive-search {
  position: relative; width: 100%; height: 46px; display: flex; align-items: center; gap: 11px; padding: 0 18px;
  border: 1px solid #9eb979; border-radius: 23px; background: #fff;
}
.olive-search svg, .header-actions svg, .mobile-dock svg {
  fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7;
}
.olive-search svg { width: 22px; height: 22px; flex: 0 0 22px; color: #252925; }
.olive-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--shop-ink); font-size: 14px; }
.olive-search input::placeholder { color: #959a95; }

.site-nav {
  grid-column: 1 / -1; grid-row: 2; min-width: 0; display: flex; align-self: stretch; align-items: center;
  justify-content: center; gap: clamp(22px, 3.5vw, 52px); overflow-x: auto; color: #5b605b;
  font-size: 14px; font-weight: 650; scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { position: relative; height: 100%; display: flex; flex: 0 0 auto; align-items: center; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { color: var(--shop-ink); font-weight: 800; }
.site-nav a.active::after {
  content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--shop-ink);
}

.header-actions { display: flex; align-items: center; justify-self: end; gap: 5px; }
.shop .account-button, .shop .cart-button {
  position: relative; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 7px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--shop-ink);
  font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.shop .account-button:hover, .shop .cart-button:hover { background: var(--shop-green-soft); }
.shop .account-button svg, .shop .cart-button svg { width: 25px; height: 25px; }
.shop .cart-button b {
  min-width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center;
  margin: 0; padding: 0 5px; border-radius: 999px; background: var(--shop-green); color: #fff; font-size: 10px;
}

.shop main { display: block; }
.home-view { padding-bottom: 70px; }
.shop .hero {
  position: relative; width: calc(100% - max(5vw, 36px)); max-width: 1440px; min-height: 520px;
  display: block; margin: 22px auto 0; overflow: hidden; border-radius: 22px;
  background: radial-gradient(circle at 82% 18%, #f6faed 0 13%, transparent 42%), linear-gradient(135deg, #f7f5ef 0%, #eff4e4 100%);
}
.shop .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.popular-hero-slides {
  position: absolute; inset: 0; z-index: 0; display: flex; width: 100%; height: 100%;
  transition: transform .72s cubic-bezier(.22,.75,.2,1); will-change: transform;
}
.popular-hero-slide { position: relative; flex: 0 0 100%; min-width: 100%; height: 100%; color: inherit; overflow: hidden; }
.popular-hero-slide::before {
  content: ""; position: absolute; top: 9%; right: 4%; width: min(54%, 640px); aspect-ratio: 1;
  border-radius: 50%; background: rgb(255 255 255 / 70%); box-shadow: 0 25px 70px rgb(61 81 39 / 10%);
}
.popular-hero-slide img {
  position: absolute; top: 5%; right: 3%; width: min(56%, 670px); height: 89%; object-fit: contain;
  filter: drop-shadow(0 25px 24px rgb(31 44 22 / 14%)); transition: transform .72s cubic-bezier(.22,.75,.2,1);
}
.popular-hero-slide:hover img { transform: scale(1.025) translateY(-3px); }
.popular-hero-badge {
  position: absolute; right: 5.5%; bottom: 7%; min-height: 31px; display: inline-flex; align-items: center;
  padding: 0 14px; border: 1px solid rgb(255 255 255 / 80%); border-radius: 999px;
  background: rgb(255 255 255 / 86%); color: #526a21; font-size: 12px; font-weight: 800; backdrop-filter: blur(8px);
}
.popular-hero-loading, .popular-hero-error {
  flex: 0 0 100%; display: grid; place-items: center; margin: 0; color: #646b60; text-align: center;
}
.popular-hero-error { gap: 12px; align-content: center; }
.popular-hero-error a { color: var(--shop-green-dark); font-weight: 800; text-decoration: underline; }
.shop .hero-copy {
  position: relative; z-index: 2; min-height: 520px; width: 53%; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; padding: clamp(54px, 6vw, 92px);
  background: linear-gradient(90deg, rgb(247 245 239 / 98%) 0%, rgb(247 245 239 / 88%) 66%, transparent 100%);
}
.popular-hero-eyebrow { margin-bottom: 14px; color: var(--shop-green-dark); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.shop .hero h1 {
  max-width: 650px; margin: 0 0 22px; color: var(--shop-ink); font-size: clamp(40px, 3.9vw, 60px);
  font-weight: 850; line-height: 1.12; letter-spacing: -.065em;
}
.shop .hero h1 .hero-title-line { display: block; white-space: nowrap; }
.shop .hero p { max-width: 520px; margin: 0 0 30px; color: #3f463f; font-size: 20px; font-weight: 650; line-height: 1.55; }
.primary-link {
  min-height: 48px; display: inline-flex; align-items: center; gap: 18px; padding: 0 24px; border-radius: 24px;
  background: var(--shop-green); color: #fff; font-size: 14px; font-weight: 800;
}
.primary-link:hover { background: var(--shop-green-dark); }
.primary-link span { font-size: 19px; }
.hero-counter { position: absolute; bottom: 28px; left: clamp(54px, 6vw, 92px); z-index: 1; color: #676d67; font-size: 12px; letter-spacing: .12em; }
.popular-hero-controls {
  position: absolute; bottom: 25px; left: clamp(54px, 6vw, 92px); z-index: 3; display: flex; align-items: center; gap: 10px;
  color: #5e655b; font-size: 11px; font-weight: 800; letter-spacing: .08em;
}
.popular-hero-controls button {
  width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid rgb(77 98 48 / 24%);
  border-radius: 50%; background: rgb(255 255 255 / 76%); color: #425720; font-size: 15px; cursor: pointer;
}
.popular-hero-controls button:hover, .popular-hero-controls button:focus-visible { border-color: var(--shop-green); background: #fff; }

.home-category-section, .home-picks { width: min(1440px, 100%); margin: 0 auto; padding: 68px max(4vw, 28px) 0; }
.home-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.home-section-heading h2 { margin: 0; font-size: clamp(27px, 2.3vw, 36px); letter-spacing: -.05em; }
.home-section-heading a { color: #666d66; font-size: 13px; }
.home-section-heading a:hover { color: var(--shop-green-dark); }
.home-category-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 15px; }
.home-category-tile {
  min-width: 0; display: grid; gap: 9px; padding: 0; border: 0; background: transparent; color: var(--shop-ink);
  font-size: 12px; text-align: center; cursor: pointer;
}
.home-category-media {
  position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
  border: 1px solid #eff0ed; border-radius: 20px; background: var(--shop-wash);
}
.home-category-media img { width: 100%; height: 100%; object-fit: cover; }
.home-category-media b { color: var(--shop-green-dark); font-family: Georgia, "Songti SC", serif; font-size: 30px; font-weight: 500; }
.category-art {
  --category-image: none;
  --category-size: cover;
  --category-position: center;
  position: relative; overflow: hidden;
  background-color: #f7f7f5; background-image: var(--category-image); background-repeat: no-repeat;
  background-size: var(--category-size); background-position: var(--category-position);
}
.category-art-all {
  --category-image: url("./assets/oliveyoung-v26/makeup.webp"), url("./assets/oliveyoung-v26/skincare.webp"), url("./assets/oliveyoung-v26/hair-care.webp"), url("./assets/oliveyoung-v26/wellness.webp");
  --category-size: 50% 50%, 50% 50%, 50% 50%, 50% 50%;
  --category-position: left top, right top, left bottom, right bottom;
}
.category-art-makeup { --category-image: url("./assets/oliveyoung-v26/makeup.webp"); }
.category-art-body { --category-image: url("./assets/oliveyoung-v26/body-care.webp"); --category-size: contain; }
.category-art-mask { --category-image: url("./assets/oliveyoung-v26/sheet-mask.webp"); --category-size: contain; }
.category-art-cleansing { --category-image: url("./assets/oliveyoung-v26/cleansing.webp"); --category-size: contain; }
.category-art-skincare { --category-image: url("./assets/oliveyoung-v26/skincare.webp"); --category-size: contain; }
.category-art-hair { --category-image: url("./assets/oliveyoung-v26/hair-care.webp"); --category-size: contain; }
.category-art-men { --category-image: url("./assets/oliveyoung-v26/mens-care.webp"); --category-size: contain; }
.category-art-wellness { --category-image: url("./assets/oliveyoung-v26/wellness.webp"); --category-size: contain; }
.category-art-tools { --category-image: url("./assets/oliveyoung-v26/beauty-tools.webp"); --category-size: contain; }
.category-art-oral { --category-image: url("./assets/oliveyoung-v26/oral-care.webp"); }
.home-category-tile:hover .home-category-media, .home-category-tile.active .home-category-media { border-color: #bdd297; background-color: var(--shop-green-soft); }
.home-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.shop-view-layer {
  position: fixed; inset: 0; z-index: 34; display: grid; place-items: center; padding: 26px;
}
.shop-view-backdrop { position: absolute; inset: 0; border: 0; background: rgb(17 21 17 / 48%); backdrop-filter: blur(3px); cursor: default; }
.shop-view-shell {
  position: relative; z-index: 1; width: min(1390px, calc(100vw - 52px)); height: min(900px, calc(100dvh - 52px));
  display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 20px; background: #fff; box-shadow: var(--shop-shadow);
}
.shop-view-header {
  min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 32px 19px; border-bottom: 1px solid var(--shop-line); background: #fff;
}
.shop-view-header p { margin: 0 0 5px; color: var(--shop-muted); font-size: 12px; }
.shop-view-header h2 { margin: 0; font-size: 32px; letter-spacing: -.05em; }
.shop-view-close {
  width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--shop-line);
  border-radius: 50%; background: #fff; color: var(--shop-ink); font-size: 31px; font-weight: 300; line-height: 1; cursor: pointer;
}
.shop-view-close:hover { border-color: #b8c6a7; background: var(--shop-green-soft); }
.shop-view-tabs {
  min-width: 0; min-height: 52px; display: flex; align-items: stretch; gap: 28px; overflow-x: auto;
  padding: 0 32px; border-bottom: 1px solid var(--shop-line); background: #fff; scrollbar-width: none;
}
.shop-view-tabs::-webkit-scrollbar { display: none; }
.shop-view-tabs a { position: relative; display: flex; flex: 0 0 auto; align-items: center; color: #666c66; font-size: 13px; font-weight: 650; }
.shop-view-tabs a.active { color: var(--shop-ink); font-weight: 800; }
.shop-view-tabs a.active::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--shop-green); }
.shop-view-body { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
.shop [data-shop-panel][hidden] { display: none !important; }

.section-shell { width: min(1320px, 100%); margin: 0 auto; padding: 56px max(3vw, 30px) 70px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.shop .section-heading h2, .shop .delivery h2, .shop .tracking h2 { margin: 0; color: var(--shop-ink); font-size: clamp(27px, 2.5vw, 38px); letter-spacing: -.05em; }
.section-heading > p, .shop .tracking p { margin: 0; color: var(--shop-muted); font-size: 13px; }

.olive-cats {
  position: sticky; top: 0; z-index: 2; min-height: 53px; display: flex; align-items: center; justify-content: flex-start;
  gap: 4px; overflow-x: auto; margin: -20px 0 34px; padding: 4px 0; border-bottom: 1px solid var(--shop-line);
  background: rgb(255 255 255 / 96%); font-size: 13px; white-space: nowrap; scrollbar-width: none;
}
.olive-cats::-webkit-scrollbar { display: none; }
.olive-cats button {
  min-height: 44px; flex: 0 0 auto; padding: 8px 14px; border: 0; border-bottom: 3px solid transparent;
  background: transparent; color: #535953; cursor: pointer;
}
.olive-cats button:hover, .olive-cats button.active { border-bottom-color: var(--shop-ink); color: var(--shop-ink); font-weight: 800; }

.category-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.category-tile {
  min-height: 92px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 17px; border: 1px solid var(--shop-line); border-radius: 14px; background: #fff; color: var(--shop-ink);
  text-align: left; cursor: pointer;
}
.category-tile:hover, .category-tile.active { border-color: #b8cc94; background: var(--shop-green-soft); }
.category-symbol {
  width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #ced9bf; border-radius: 16px;
  background-color: #fff; color: var(--shop-green-dark); font-family: Georgia, "Songti SC", serif; font-size: 23px;
}
.category-tile > span:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.category-tile b { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.category-tile small { color: var(--shop-muted); font-size: 11px; }
.category-tile i { color: var(--shop-green-dark); font-size: 18px; font-style: normal; }

.shop .products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 18px; }
.shop .product { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 0; border-radius: 0; background: #fff; }
.product-open { min-width: 0; display: flex; flex: 1; flex-direction: column; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.shop .product-visual {
  width: 100%; height: auto; aspect-ratio: 1 / 1.03; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 0; border-radius: 14px; background: var(--shop-wash);
}
.shop .product-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.product-open:hover .product-visual img { transform: scale(1.025); }
.shop .product-visual span { color: #8a968b; font-family: Georgia, serif; font-size: 18px; letter-spacing: .22em; }
.shop .product-info { display: grid; gap: 6px; padding: 14px 1px 9px; }
.product-category { color: var(--shop-green-dark); font-size: 10px; font-weight: 750; }
.shop .product-info h3 {
  display: -webkit-box; min-height: 42px; margin: 0; overflow: hidden; color: var(--shop-ink); font-size: 15px;
  font-weight: 700; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.shop .product-info p {
  display: -webkit-box; min-height: 35px; margin: 0; overflow: hidden; color: var(--shop-muted); font-size: 11px;
  line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.product-variant-field { min-width: 0; display: grid; gap: 5px; margin: 2px 1px 10px; color: #4f5851; font-size: 10px; font-weight: 700; }
.product-variant-select {
  width: 100%; min-width: 0; height: 38px; padding: 0 30px 0 10px; overflow: hidden; border: 1px solid #cfd5cf;
  border-radius: 5px; background: #fff; color: var(--shop-ink); font-size: 11px; text-overflow: ellipsis; cursor: pointer;
}
.product-variant-select:focus { border-color: var(--shop-green-dark); outline: 2px solid rgb(103 137 57 / 18%); outline-offset: 1px; }
.product-variant-single { min-height: 55px; display: flex; align-items: flex-end; margin: 2px 1px 10px; color: var(--shop-muted); font-size: 10px; }
.shop .product-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 9px; margin: auto 0 0; padding: 3px 1px 0; }
.product-bottom > div { display: grid; gap: 3px; }
.shop .product-bottom b { color: var(--shop-ink); font-size: 18px; }
.shop .product-bottom small { color: var(--shop-muted); font-size: 9px; }
.shop .product-bottom button {
  min-height: 42px; padding: 0 11px; border: 1px solid #222; border-radius: 3px; background: #fff;
  color: var(--shop-ink); font-size: 11px; font-weight: 750; cursor: pointer;
}
.shop .product-bottom button:hover { border-color: var(--shop-green-dark); color: var(--shop-green-dark); }
.shop .product-bottom button:disabled { border-color: var(--shop-line); color: #9ba09c; cursor: not-allowed; }
.shop .empty-state { grid-column: 1 / -1; min-height: 160px; display: grid; place-items: center; margin: 0; border: 1px dashed #cfd5cf; color: var(--shop-muted); }

.benefits {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 30px 0 0; padding: 17px 0;
  border-top: 1px solid var(--shop-line); border-bottom: 1px solid var(--shop-line); color: #4b524b;
  font-size: 13px; font-weight: 650; text-align: center;
}
.benefits span { min-height: 30px; display: flex; align-items: center; justify-content: center; gap: 9px; border-right: 1px solid var(--shop-line); }
.benefits span:last-child { border-right: 0; }
.benefits b, .delivery-grid b { color: var(--shop-green-dark); font-size: 11px; }
.delivery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 38px; }
.delivery-grid article { padding-top: 18px; border-top: 2px solid #d9e5c9; }
.delivery-grid h3 { margin: 14px 0 8px; font-size: 18px; }
.delivery-grid p { margin: 0; color: var(--shop-muted); font-size: 13px; line-height: 1.75; }

.account-section { background: #fafbf8; }
.shop .order-list { display: grid; gap: 12px; }
.shop .order-card { padding: 20px; border: 1px solid var(--shop-line); border-radius: 10px; background: #fff; }
.order-shipment { display: grid; gap: 4px; margin: 14px 0; padding: 12px 14px; border-radius: 8px; background: var(--shop-green-soft); }
.order-shipment b { color: var(--shop-green-dark); }
.order-shipment small { color: var(--shop-muted); }
.order-shipment p { margin: 5px 0 0; color: var(--shop-muted); font-size: 12px; line-height: 1.6; }
.order-shipment.pending { color: var(--shop-muted); background: #f4f5f2; }
.shop .tracking { display: grid; grid-template-columns: minmax(0, .8fr) minmax(380px, 1.2fr); gap: 24px 62px; background: #f8f9f6; }
.shop .tracking form { display: flex; align-items: flex-end; gap: 10px; }
.shop .tracking label, .login-dialog label, .checkout-dialog label { display: grid; flex: 1; gap: 7px; color: #404742; font-size: 12px; font-weight: 700; }
.shop .tracking input, .login-dialog input, .checkout-dialog input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #cfd5cf; border-radius: 5px; background: #fff; }
.shop .tracking #trackingResult { grid-column: 2; margin: 0; }
.contact-panel { background: #f8f9f6; }
.contact-intro { max-width: 680px; }
.contact-card { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 72px); max-width: 840px; margin-top: 28px; padding: clamp(22px, 4vw, 44px); border: 1px solid var(--shop-line); border-radius: 18px; background: #fff; }
.contact-card figure { margin: 0; text-align: center; }
.contact-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid #e3e8de; border-radius: 16px; }
.contact-card figcaption { margin-top: 10px; color: var(--shop-muted); font-size: 12px; }
.contact-card h3 { margin: 0 0 12px; font-size: 24px; }
.contact-hours { color: var(--shop-green-dark); font-size: 18px; font-weight: 800; }
.contact-unavailable { grid-column: 1 / -1; padding: 30px 0; }
.contact-unavailable h3 { margin-bottom: 8px; }
.contact-safety { max-width: 840px; margin-top: 18px; color: #6b716a; font-size: 12px; }
.shop .primary { min-height: 46px; padding: 0 20px; border: 0; border-radius: 4px; background: var(--shop-green-dark); color: #fff; font-weight: 750; }
.shop .secondary { border: 1px solid #cfd5cf; border-radius: 4px; background: #fff; color: var(--shop-ink); }

.shop footer { display: grid; grid-template-columns: minmax(250px, 1fr) auto; gap: 16px 30px; padding: 30px max(4vw, 28px); border-top: 1px solid var(--shop-line); color: var(--shop-muted); font-size: 12px; }
.footer-business { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.footer-business strong { color: var(--shop-ink); font-size: 14px; }
.footer-business a, .footer-links a { text-decoration: underline; text-decoration-color: #c8cec8; text-underline-offset: 4px; }
.footer-business a:hover, .footer-links a:hover { color: var(--shop-green-dark); text-decoration-color: currentColor; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 18px; color: #303630; }
.footer-note { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid #edf0eb; }
.mobile-dock { display: none; }

.shop .cart-drawer {
  position: fixed; top: 132px; right: 22px; z-index: 52; width: min(410px, calc(100vw - 44px));
  max-height: calc(100dvh - 154px); overflow: auto; padding: 22px; border: 1px solid var(--shop-line);
  border-radius: 12px; background: #fff; box-shadow: 0 22px 60px rgb(27 36 29 / 18%);
}
.cart-head, .cart-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-head h2 { margin: 0; font-size: 24px; }
.cart-summary { display: grid; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--shop-line); }
.shop .cart-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--shop-line); }
.cart-row > div { display: grid; flex: 1; gap: 4px; }
.cart-variant { color: var(--shop-green-dark); font-size: 10px; line-height: 1.4; }
.cart-row label { font-size: 11px; }
.cart-row input { width: 58px; padding: 7px; border: 1px solid #ccd2cc; }
.link-danger { border: 0; background: transparent; color: #a22d2d; cursor: pointer; }

.shop dialog {
  width: min(720px, calc(100vw - 36px)); max-height: min(90dvh, 840px); overflow: auto; padding: 0;
  border: 0; border-radius: 12px; box-shadow: 0 24px 70px rgb(20 28 22 / 28%);
}
.shop dialog::backdrop { background: rgb(14 22 17 / 56%); backdrop-filter: blur(2px); }
.login-dialog, .product-dialog, .checkout-dialog, .payment-dialog { position: relative; padding: 34px; }
.login-dialog { width: min(460px, calc(100vw - 36px)) !important; }
.dialog-close { position: absolute; top: 10px; right: 14px; z-index: 2; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.login-dialog h2, .product-dialog h2, .checkout-dialog h2, .payment-dialog h2 { margin: 0 0 24px; }
.shop .eyebrow { margin: 0 0 10px; color: var(--shop-green-dark); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.login-dialog .primary { width: 100%; margin-top: 12px; }
.wechat { width: 100%; min-height: 48px; border: 0; border-radius: 4px; background: #07c160; color: #fff; font-weight: 750; cursor: pointer; }
.or { margin: 18px 0; color: var(--shop-muted); font-size: 12px; text-align: center; }
.form-status { min-height: 20px; color: #9d2929; font-size: 13px; }
.detail-image { height: 330px; display: flex; align-items: center; justify-content: center; margin: -34px -34px 28px; overflow: hidden; background: #f0f2ed; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-loading { min-height: 220px; display: grid; place-items: center; color: #68736a; }
.detail-thumbnails { display: flex; gap: 10px; margin: -12px 0 24px; padding: 2px 0 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.detail-thumbnail { flex: 0 0 72px; width: 72px; height: 72px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 12px; background: #f2f4ef; cursor: pointer; }
.detail-thumbnail.active { border-color: #84a93e; }
.detail-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.detail-summary { color: #4f5851; line-height: 1.75; white-space: pre-line; }
.detail-copy-section { margin: 24px 0; padding-top: 20px; border-top: 1px solid #e5e9e2; }
.detail-copy-section h3 { margin: 0 0 10px; font-size: 18px; }
.detail-copy-section p, .detail-copy-section li { color: #4f5851; line-height: 1.75; }
.detail-copy-section ul { margin: 10px 0 0; padding-left: 20px; }
.detail-information { margin-top: 26px; padding-top: 22px; border-top: 1px solid #dfe5dc; }
.detail-information > h3 { margin: 0 0 4px; font-size: 20px; }
.detail-information .detail-copy-section:first-of-type { margin-top: 14px; }
.detail-rich-images { display: grid; gap: 14px; margin: 24px 0 0; }
.detail-rich-images figure { margin: 0; overflow: hidden; border: 1px solid #e4e8e1; border-radius: 12px; background: #fff; }
.detail-rich-images img { display: block; width: 100%; height: auto; }
.detail-source-link { display: inline-flex; margin-top: 20px; color: #55772b; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.product-dialog .product-variant-field { margin: 20px 0; font-size: 12px; }
.product-dialog .product-variant-select { height: 46px; font-size: 13px; }
.product-dialog .product-variant-single { min-height: auto; margin: 18px 0; font-size: 12px; }
.detail-buy { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.detail-buy b { font-size: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid small { color: var(--shop-muted); font-weight: 400; }
.check { display: flex !important; grid-template-columns: auto 1fr !important; align-items: center; margin: 16px 0; }
.check input { width: auto; height: auto; }
.checkout-summary { margin: 18px 0; padding: 14px; background: var(--shop-green-soft); }
.payment-dialog { width: min(440px, calc(100% - 32px)); text-align: center; }
.payment-qr { display: block; width: min(320px, 78vw); height: auto; margin: 0 auto 18px; border: 1px solid #e2e6e1; border-radius: 12px; }
.payment-qr:not([src]) { display: none; }
.payment-meta { margin: 0 0 16px; text-align: left; border-top: 1px solid #e4e7e3; }
.payment-meta div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #e4e7e3; }
.payment-meta dt { color: #717871; }
.payment-meta dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.payment-actions { display: grid; gap: 10px; margin-top: 18px; }

.toast {
  position: fixed; bottom: 30px; left: 50%; z-index: 70; padding: 12px 18px; transform: translate(-50%, 30px);
  background: #183c2c; color: #fff; opacity: 0; pointer-events: none; transition: .2s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: #8c2727; }
.error-text { color: #a22; }
.compact { padding: 8px 12px; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; border: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 1199px) {
  .shop .site-header { grid-template-columns: minmax(170px, auto) minmax(240px, 1fr) auto; gap: 0 18px; padding-inline: 22px; }
  .shop .brand { font-size: 22px; }
  .shop .brand-logo { width: 50px; height: 50px; flex-basis: 50px; }
  .site-nav { gap: clamp(18px, 3vw, 34px); }
  .home-category-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop .products, .home-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .shop .site-header { grid-template-columns: minmax(150px, auto) minmax(190px, 1fr) auto; gap: 0 10px; padding-inline: 16px; }
  .header-actions .account-button span, .header-actions .cart-button span { display: none; }
  .shop .account-button, .shop .cart-button { min-width: 42px; padding-inline: 6px; }
  .shop .hero-copy { width: 62%; padding-inline: 44px; }
  .shop .hero h1 { font-size: 42px; }
}

@media (max-width: 720px) {
  .shop { padding-bottom: calc(71px + env(safe-area-inset-bottom)); }
  .olive-topline { min-height: 28px; padding: 5px 10px; font-size: 9px; }
  .shop .site-header {
    min-height: 112px; grid-template-columns: minmax(0, 1fr) 44px auto; grid-template-rows: 64px 44px;
    gap: 0 3px; padding: 4px 12px 0;
  }
  .shop .brand { grid-column: 1; grid-row: 1; gap: 6px; overflow: hidden; font-size: 19px; text-overflow: ellipsis; }
  .shop .brand-logo { width: 47px; height: 47px; flex-basis: 47px; }
  .olive-search {
    grid-column: 2; grid-row: 1; justify-self: end; width: 44px; height: 44px; justify-content: center;
    padding: 0; border: 0; border-radius: 8px; background: transparent;
  }
  .olive-search input { position: absolute; inset: 0; z-index: 2; width: 100%; opacity: 0; cursor: text; }
  .olive-search:focus-within {
    position: absolute; top: 7px; right: 12px; left: 12px; z-index: 25; width: auto; justify-content: flex-start;
    padding: 0 16px; border: 1px solid #aabd8e; border-radius: 23px; background: #fff; box-shadow: 0 8px 24px rgb(20 28 22 / 12%);
  }
  .olive-search:focus-within input { position: static; inset: auto; width: 100%; opacity: 1; cursor: text; }
  .header-actions { grid-column: 3; grid-row: 1; gap: 0; }
  .header-actions .account-button span, .header-actions .cart-button span { display: none; }
  .shop .account-button, .shop .cart-button { min-width: 42px; width: 42px; min-height: 44px; padding: 4px; }
  .shop .account-button svg, .shop .cart-button svg { width: 27px; height: 27px; }
  .shop .cart-button b { position: absolute; top: 1px; right: -1px; }
  .shop .site-header .site-nav {
    display: flex;
    grid-column: 1 / -1; grid-row: 2; max-width: 100%; justify-content: flex-start; gap: 29px; margin: 0;
    overflow-x: auto; padding: 0 2px; font-size: 14px; font-weight: 500;
  }
  .site-nav a.active { font-weight: 850; }

  .home-view { padding-bottom: 36px; }
  .shop .hero { width: calc(100% - 24px); min-height: 475px; margin-top: 13px; border-radius: 20px; }
  .popular-hero-slide::before { top: auto; right: -7%; bottom: -4%; width: 78%; }
  .popular-hero-slide img { top: auto; right: -5%; bottom: 1%; width: 78%; height: 67%; }
  .popular-hero-badge { right: 12px; bottom: 13px; min-height: 27px; padding-inline: 10px; font-size: 10px; }
  .shop .hero-copy {
    min-height: 475px; width: 100%; justify-content: flex-start; padding: 45px 19px 70px;
    pointer-events: none; background: linear-gradient(180deg, rgb(247 245 239 / 98%) 0%, rgb(247 245 239 / 88%) 42%, transparent 72%);
  }
  .shop .hero-copy .primary-link { pointer-events: auto; }
  .popular-hero-eyebrow { margin-bottom: 10px; font-size: 9px; }
  .shop .hero h1 { margin-bottom: 16px; font-size: clamp(27px, 7.5vw, 34px); line-height: 1.2; letter-spacing: -.055em; }
  .shop .hero p { max-width: 330px; margin-bottom: 18px; font-size: 15px; font-weight: 650; line-height: 1.5; }
  .primary-link { min-height: 44px; gap: 12px; padding: 0 17px; font-size: 12px; }
  .hero-counter { bottom: 22px; left: 20px; font-size: 10px; }
  .popular-hero-controls { bottom: 18px; left: 17px; gap: 7px; }
  .popular-hero-controls button { width: 31px; height: 31px; }

  .home-category-section, .home-picks { padding: 46px 13px 0; }
  .home-section-heading { align-items: center; margin-bottom: 17px; }
  .home-section-heading h2 { font-size: 24px; }
  .home-section-heading a { font-size: 12px; }
  .home-category-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 7px; }
  .home-category-media { border-radius: 15px; }
  .home-category-media b { font-size: 24px; }
  .home-category-tile { gap: 7px; font-size: 10px; }
  .home-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 29px 10px; }
  .home-products .product:nth-child(n + 5) { display: none; }

  .shop-view-layer { bottom: calc(68px + env(safe-area-inset-bottom)); align-items: end; padding: 92px 0 0; }
  .shop-view-shell {
    width: 100%; height: 100%; max-height: none; border: 0; border-radius: 22px 22px 0 0;
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  .shop-view-header { min-height: 98px; padding: 20px 20px 15px; }
  .shop-view-header p { font-size: 11px; }
  .shop-view-header h2 { font-size: 30px; }
  .shop-view-close { width: 44px; height: 44px; font-size: 28px; }
  .shop-view-tabs { min-height: 49px; gap: 25px; padding: 0 18px; }
  .shop-view-tabs a { font-size: 12px; }
  .section-shell { padding: 31px 14px calc(42px + env(safe-area-inset-bottom)); }
  .section-heading { align-items: center; margin-bottom: 21px; }
  .section-heading > div h2 { font-size: 25px; }
  .section-heading > p { max-width: 140px; font-size: 11px; text-align: right; }
  .olive-cats { margin: -10px 0 25px; padding-inline: 0; }
  .olive-cats button { min-height: 43px; padding-inline: 12px; }

  .category-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px 7px; }
  .category-tile { min-height: 0; display: grid; grid-template-columns: 1fr; gap: 7px; padding: 0; border: 0; background: transparent; text-align: center; }
  .category-tile:hover, .category-tile.active { border-color: transparent; background: transparent; }
  .category-symbol { width: 100%; height: auto; aspect-ratio: 1; border-color: #eceee9; border-radius: 15px; background-color: var(--shop-wash); font-size: 24px; }
  .category-tile > span:nth-child(2) { display: block; }
  .category-tile b { display: block; font-size: 10px; }
  .category-tile small, .category-tile i { display: none; }

  .shop .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 29px 10px; }
  .shop .product-visual { border-radius: 13px; }
  .shop .product-info { gap: 4px; padding: 10px 1px 7px; }
  .product-category { font-size: 9px; }
  .shop .product-info h3 { min-height: 37px; font-size: 13px; line-height: 1.4; }
  .shop .product-info p { display: none; }
  .product-variant-field { margin-bottom: 8px; font-size: 9px; }
  .product-variant-select { height: 36px; padding-inline: 8px 24px; font-size: 10px; }
  .product-variant-single { min-height: 51px; margin-bottom: 8px; font-size: 9px; }
  .shop .product-bottom { align-items: stretch; flex-direction: column; gap: 8px; }
  .shop .product-bottom b { font-size: 16px; }
  .shop .product-bottom button { width: 100%; min-height: 44px; font-size: 11px; }

  .benefits { grid-template-columns: repeat(2, 1fr); margin-top: 24px; padding: 8px 0; }
  .benefits span { min-height: 42px; border-bottom: 1px solid var(--shop-line); }
  .benefits span:nth-child(2) { border-right: 0; }
  .benefits span:nth-child(n + 3) { border-bottom: 0; }
  .delivery-grid { grid-template-columns: 1fr; gap: 22px; }
  .shop .order-card > div { display: grid; }
  .shop .tracking { grid-template-columns: 1fr; gap: 22px; }
  .shop .tracking form { display: grid; }
  .shop .tracking #trackingResult { grid-column: 1; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-card figure { width: min(100%, 280px); margin-inline: auto; }
  .shop footer { display: grid; grid-template-columns: 1fr; padding: 24px 18px 98px; }
  .footer-business { display: grid; gap: 7px; }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 0; border-top: 1px solid var(--shop-line); }
  .footer-links a { min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--shop-line); text-decoration: none; }
  .footer-links a:nth-child(odd) { border-right: 1px solid var(--shop-line); }
  .footer-links a:nth-child(even) { padding-left: 16px; }
  .footer-note { grid-column: 1; border-top: 0; padding-top: 0; line-height: 1.7; }

  .mobile-dock {
    position: fixed; right: 0; bottom: 0; left: 0; z-index: 44; min-height: 68px;
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: stretch;
    padding: 5px 2px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--shop-line);
    background: rgb(255 255 255 / 98%); box-shadow: 0 -6px 20px rgb(30 38 32 / 6%);
  }
  .mobile-dock a {
    min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 2px 0; color: #303430; font-size: 9px; cursor: pointer;
  }
  .mobile-dock a.active { color: var(--shop-green-dark); font-weight: 800; }
  .mobile-dock svg { width: 22px; height: 22px; }

  .shop .cart-drawer {
    top: auto; right: 9px; bottom: calc(75px + env(safe-area-inset-bottom)); width: calc(100vw - 18px);
    max-height: calc(100dvh - 112px); border-radius: 14px;
  }
  .shop dialog { width: 100%; max-width: none; max-height: 90dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .login-dialog, .product-dialog, .checkout-dialog, .payment-dialog { width: 100% !important; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); }
  .detail-image { height: 280px; margin: -28px -20px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); max-width: calc(100vw - 30px); text-align: center; }
}

@media (max-width: 380px) {
  .shop .site-header { padding-inline: 9px; }
  .shop .brand { font-size: 17px; }
  .shop .brand-logo { width: 43px; height: 43px; flex-basis: 43px; }
  .shop .site-header .site-nav { margin-inline: 0; padding-inline: 1px; gap: 24px; font-size: 13px; }
  .olive-search:focus-within { right: 9px; left: 9px; }
  .shop .hero { width: calc(100% - 18px); min-height: 445px; }
  .shop .hero-copy { min-height: 445px; width: 100%; padding: 39px 15px 66px; }
  .shop .hero h1 { font-size: 27px; }
  .home-category-section, .home-picks { padding-inline: 10px; }
  .home-category-tiles { gap-inline: 5px; }
  .home-section-heading h2 { font-size: 22px; }
  .shop-view-layer { padding-top: 82px; }
  .shop-view-header { padding-inline: 16px; }
  .shop-view-tabs { padding-inline: 15px; gap: 21px; }
  .section-shell { padding-inline: 10px; }
  .category-tiles { gap-inline: 5px; }
  .shop .product-info h3 { font-size: 12px; }
  .shop .product-bottom button { padding-inline: 5px; font-size: 10px; }
  .mobile-dock a { font-size: 8px; }
  .mobile-dock svg { width: 21px; height: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .shop *, .shop *::before, .shop *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.shop dialog.checkout-dialog,.shop dialog.login-dialog,.shop dialog.payment-dialog{padding:30px}
.shop .checkout-dialog select,.shop .checkout-dialog textarea{width:100%;padding:10px;border:1px solid #cfd5cf;border-radius:5px;font:inherit;background:#fff}
.shop .checkout-dialog textarea{min-height:140px;resize:vertical}
.shop .checkout-dialog #deleteAddress{margin:8px 0 16px;padding:7px 10px;border:1px solid #d6ddd0;border-radius:5px;background:#f7f9f3}
@media(max-width:600px){.shop dialog.checkout-dialog,.shop dialog.login-dialog,.shop dialog.payment-dialog{padding:24px 20px calc(24px + env(safe-area-inset-bottom))}.shop .checkout-dialog h2{font-size:24px}.shop .checkout-dialog .form-grid{gap:12px}.shop .checkout-dialog .checkout-summary{line-height:1.8}}

/* v47: every primary column has its own document URL instead of sharing a modal layer. */
.shop-route-page { min-height: 100dvh; overflow-y: auto; }
.shop-route-page #homeView,
.shop-route-page > .site-footer { display: none; }
.shop-route-page .shop-view-layer {
  position: relative; inset: auto; z-index: 1; display: block; padding: 0;
}
.shop-route-page .shop-view-backdrop,
.shop-route-page .shop-view-close { display: none; }
.shop-route-page .shop-view-shell {
  width: 100%; height: auto; min-height: calc(100dvh - 132px); overflow: visible;
  border: 0; border-radius: 0; box-shadow: none;
}
.shop-route-page .shop-view-header,
.shop-route-page .shop-view-tabs { position: sticky; z-index: 6; }
.shop-route-page .shop-view-header { top: 0; }
.shop-route-page .shop-view-tabs { top: 104px; }
.shop-route-page .shop-view-body { overflow: visible; }
.shop-route-page .olive-cats { top: 156px; }

/* v47: wider two-column product details on desktop, bottom sheet on phones. */
.shop dialog.product-dialog {
  width: min(1120px, calc(100vw - 48px)); max-height: min(92dvh, 920px); padding: 30px;
}
.product-dialog > .dialog-close {
  position: sticky; top: 8px; z-index: 12; width: 42px; height: 42px; display: grid; place-items: center;
  margin: 0 0 -42px auto; border: 1px solid rgb(215 220 212 / 90%); border-radius: 50%;
  background: rgb(255 255 255 / 94%); box-shadow: 0 6px 18px rgb(26 34 27 / 12%); line-height: 1;
}
.detail-layout { display: grid; grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 54px); }
.detail-media-panel { min-width: 0; align-self: start; position: sticky; top: 0; }
.detail-content-panel { min-width: 0; padding: 12px 8px 24px 0; }
.detail-image {
  width: 100%; height: auto; aspect-ratio: 1 / 1; margin: 0; border-radius: 18px; background: #f5f6f2;
}
.detail-image img { width: 100%; height: 100%; object-fit: contain; }
.detail-thumbnails { margin: 14px 0 0; padding: 2px 0 8px; }
.detail-thumbnail { flex-basis: 66px; width: 66px; height: 66px; border-radius: 10px; }
.detail-thumbnail img { object-fit: contain; background: #fff; }
.detail-gallery-note { margin: 2px 0 0; color: var(--shop-muted); font-size: 11px; line-height: 1.5; }
.detail-content-panel > h2 { margin-bottom: 16px; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.28; }

@media (max-width: 720px) {
  .shop-route-page .shop-view-layer { bottom: auto; display: block; padding: 0 0 calc(68px + env(safe-area-inset-bottom)); }
  .shop-route-page .shop-view-shell { width: 100%; height: auto; min-height: calc(100dvh - 114px); border-radius: 0; }
  .shop-route-page .shop-view-header { top: 0; min-height: 76px; padding: 14px 16px 10px; }
  .shop-route-page .shop-view-header h2 { font-size: 25px; }
  .shop-route-page .shop-view-tabs { display: none; }
  .shop-route-page .olive-cats { top: 76px; }
  .shop dialog.product-dialog {
    width: 100%; max-width: none; max-height: calc(100dvh - 12px); margin: auto 0 0;
    padding: 28px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0;
  }
  .shop dialog.product-dialog[open] > .dialog-close {
    position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; margin: 0;
  }
  .detail-layout { grid-template-columns: 1fr; gap: 22px; }
  .detail-media-panel { position: static; }
  .detail-content-panel { padding: 0 2px 12px; }
  .detail-image { aspect-ratio: 1 / 1; border-radius: 14px; }
  .detail-thumbnail { flex-basis: 58px; width: 58px; height: 58px; }
  .detail-content-panel > h2 { font-size: 23px; }
  .detail-copy-section { margin: 20px 0; padding-top: 17px; }
}

.header-buyer-avatar {
  width: 30px;
  height: 30px;
  border: 1px solid var(--shop-line);
  border-radius: 50%;
  object-fit: cover;
}

.header-buyer-avatar[hidden],
.account-button svg[hidden],
.buyer-account-view[hidden],
.buyer-avatar-wrap img[hidden],
.buyer-avatar-wrap span[hidden] {
  display: none !important;
}

.buyer-account-view { display: grid; gap: 22px; }
.buyer-profile-identity { display: flex; align-items: center; gap: 16px; }
.buyer-profile-identity h2 { margin: 0 0 5px; overflow-wrap: anywhere; }
.buyer-profile-identity p { margin: 0; color: var(--shop-muted); }
.buyer-avatar-wrap {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dfe5da;
  border-radius: 50%;
  background: var(--shop-green-soft);
  color: var(--shop-green-dark);
  font-size: 28px;
  font-weight: 800;
}
.buyer-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.buyer-account-meta { margin: 0; border-top: 1px solid var(--shop-line); }
.buyer-account-meta div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--shop-line); }
.buyer-account-meta dt { color: var(--shop-muted); }
.buyer-account-meta dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.buyer-logout { width: 100%; min-height: 46px; }

@media(max-width:720px){
  .header-buyer-avatar{width:29px;height:29px}
  .buyer-profile-identity{align-items:flex-start}
  .buyer-avatar-wrap{width:64px;height:64px;flex-basis:64px}
  .buyer-account-meta div{grid-template-columns:72px minmax(0,1fr)}
}
