:root {
  font-family:system-ui,-apple-system,Segoe UI,sans-serif;
  color:#173b2a;
  background:#f4f8f3}
* {
  box-sizing:border-box}
body {
  margin:0}
button,input,textarea {
  font:inherit}
button {
  cursor:pointer}
header {
  background:white;
  border-bottom:1px solid #e5eee7;
  position:sticky;
  top:0;
  z-index:2}
header>div {
  max-width:1100px;
  margin:auto;
  padding:16px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between}
.brand {
  font-size:23px;
  font-weight:850}
.btn {
  background:#176b46;
  color:#fff;
  border:0;
  border-radius:12px;
  padding:11px 16px;
  font-weight:700}
.btn:disabled {
  opacity:.5;
  cursor:not-allowed}
.ghost {
  background:#e5f2e9;
  color:#176b46}
.wrap {
  max-width:1100px;
  margin:auto;
  padding:22px}
.hero {
  background:#176b46;
  color:#fff;
  border-radius:24px;
  padding:35px}
.hero small {
  color:#bcead1;
  font-weight:800;
  letter-spacing:1px}
.hero h1 {
  margin:10px 0;
  font-size:clamp(28px,4vw,45px)}
.hero p {
  color:#deeee3}
.search {
  margin:23px 0 12px;
  width:100%;
  padding:16px;
  border:1px solid #e2eae3;
  border-radius:14px;
  background:white}
.filters {
  display:flex;
  gap:8px;
  flex-wrap:wrap}
.filters button {
  border:0;
  border-radius:30px;
  padding:9px 15px;
  background:#e4eee6;
  color:#254532}
.filters button.active {
  background:#176b46;
  color:white}
.head {
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin:26px 0 14px}
.head h2 {
  margin:0}
.head p {
  margin:4px 0;
  color:#63786b}
.grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  gap:14px}
.card {
  background:#fff;
  border-radius:18px;
  padding:13px}
.illustration {
  height:135px;
  background:#eaf4e9;
  border-radius:13px;
  display:grid;
  place-items:center;
  font-size:65px}
.card h3 {
  margin:10px 0 0}
.card small {
  color:#6b7c70}
.card .row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:12px}
.price {
  font-size:20px;
  font-weight:800;
  color:#176b46}
.step {
  display:flex;
  align-items:center;
  gap:8px}
.step button {
  border:0;
  border-radius:100%;
  width:31px;
  height:31px;
  background:#176b46;
  color:#fff}
dialog {
  border:0;
  border-radius:20px;
  max-width:min(520px,95vw);
  width:100%;
  box-shadow:0 20px 80px #173b2a55;
  max-height:90vh;
  overflow:auto}
dialog::backdrop {
  background:#102b2099}
.basket-line,.total {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 0;
  border-bottom:1px solid #edf2ed}
.basket-line>span:first-child {
  flex:1}
.total strong {
  font-size:20px}
.form input,.form textarea {
  width:100%;
  padding:12px;
  margin:6px 0;
  border:1px solid #dce6dd;
  border-radius:10px}
.form textarea {
  min-height:75px}
.note {
  font-size:13px;
  color:#617267}
.actions {
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:16px}
.status {
  color:#ad4c24}
footer {
  text-align:center;
  color:#718276;
  padding:35px}

#itemDetail {
  width:100vw;
  max-width:none;
  height:100dvh;
  max-height:none;
  margin:0;
  border-radius:0;
  padding:20px;
  background:#f4f8f3}
#itemDetail::backdrop {
  background:#102b2099}
.detail-shell {
  max-width:650px;
  margin:auto}
.detail-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px}
.detail-art {
  height:min(48dvh,460px);
  min-height:200px;
  border-radius:24px;
  background:#eaf4e9;
  display:grid;
  place-items:center;
  font-size:120px;
  margin-top:20px}
.detail-price {
  font-size:24px;
  font-weight:800;
  color:#176b46}
.detail-controls {
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:22px}
.detail-controls .step {
  margin-left:auto}
.basket-name {
  flex:1;
  text-align:left;
  background:none;
  border:0;
  color:inherit;
  padding:10px 0;
  cursor:pointer}
.basket-name:focus-visible {
  outline:2px solid #176b46;
  outline-offset:3px}
@media(max-width:420px) {
  .basket-line {
  flex-wrap:wrap}
.basket-name {
  min-width:100%}
}


.payment-choice{border:1px solid #d8e5dc;border-radius:14px;padding:12px 14px;display:grid;gap:8px;background:#f8fbf8}
.payment-choice legend{font-weight:800;padding:0 6px}
.payment-choice label{display:flex;gap:8px;align-items:center}
.payment-panel{margin:14px 0;padding:14px;border:1px solid #cfe0d4;border-radius:16px;background:#f7fbf7;display:grid;gap:10px}
.payment-panel h4,.payment-panel p{margin:0}
.payment-panel input[type="file"],.payment-panel input[type="text"]{width:100%}

/* Customer language picker and small-screen navigation */
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.language-control select{font:inherit;font-weight:700;color:#176b46;background:#f0f8f1;border:1px solid #b7d8c1;border-radius:10px;padding:10px 28px 10px 10px;max-width:130px}
.language-control select:focus-visible,.btn:focus-visible,.filters button:focus-visible,.step button:focus-visible{outline:3px solid #52a8ff;outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.customer-address-book{padding:14px;background:#f3f8f4;border:1px solid #d8e6db;border-radius:14px;margin-bottom:16px}
.customer-address-book select{width:100%;margin:8px 0 12px;padding:12px;border-radius:10px;border:1px solid #cddfce;background:#fff;color:#173b2a}
.customer-address-book .btn{margin:2px 6px 4px 0;font-size:14px}
.customer-address-book [role=status]{margin:4px 0;color:#176b46}
.panel{margin:16px 0;padding:20px;border-radius:16px;border:1px solid #e0ede2;background:#fff}
.panel h2{margin:0 0 14px}
.panel>.btn{margin:4px}
.basket-line .btn{padding:8px 10px}
@media(max-width:640px){header>div{padding:10px 12px;gap:8px}.brand{font-size:20px}.header-actions{gap:6px}.header-actions .btn{padding:9px 10px;font-size:13px}.language-control select{font-size:13px;padding:9px 20px 9px 7px;max-width:100px}.wrap{padding:14px}.hero{padding:24px}.head{align-items:center;gap:8px}.head .btn{padding:9px 10px;font-size:13px}}
@media(max-width:375px){header>div{flex-wrap:wrap}.header-actions{width:100%;justify-content:space-between}.language-control select{max-width:110px}}

/* Compact, predictable header on narrow phones: brand and language above account/cart. */
@media (max-width:460px){
  header>div{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:10px;row-gap:8px;padding:10px 14px}
  .brand{grid-column:1;grid-row:1;white-space:nowrap;font-size:20px}
  .header-actions{display:contents}
  .language-control{grid-column:2;grid-row:1;justify-self:end}
  .header-actions #accountButton{grid-column:1;grid-row:2;justify-self:start}
  .header-actions #basketButton{grid-column:2;grid-row:2;justify-self:end}
  .head{flex-wrap:wrap}
  .head>div{min-width:145px;flex:1}
  .head #refresh{white-space:nowrap;margin-left:auto}
}

/* Customer delivery handoff: visible only while signed in; codes come from the delivery API. */
.delivery-panel{margin:18px 0 22px;padding:18px;border:1px solid #bad9c7;border-radius:20px;background:#f1faf4}
.delivery-panel[hidden]{display:none!important}
.delivery-panel-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.delivery-panel-top h2{font-size:clamp(18px,3vw,23px);margin:0}
.delivery-panel-top button{flex-shrink:0}
.delivery-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:13px;margin-top:12px}
.customer-delivery-card{border:1px solid #d4e6d8;border-radius:16px;padding:16px;background:#fff;min-width:0}
.delivery-card-head{display:flex;justify-content:space-between;align-items:start;gap:12px;flex-wrap:wrap}
.delivery-card-head h3{margin:0;font-size:17px;overflow-wrap:anywhere}
.delivery-state{font-size:12px;font-weight:750;border-radius:999px;background:#e6f1eb;color:#176b46;padding:5px 9px}
.delivery-state[data-state="out_for_delivery"]{background:#fff0d8;color:#764400}
.delivery-state[data-state="cancelled"]{background:#ffeded;color:#992c2c}
.delivery-state[data-state="delivered"]{background:#dcefe1;color:#145f32}
.delivery-code-box{margin-top:14px;border:1px solid #b8d3be;border-radius:14px;padding:16px;background:#f7fcf8;text-align:center}
.delivery-code-label{font-weight:750;margin:0 0 8px}
.delivery-code-number{font:900 clamp(26px,7vw,36px)/1.3 ui-monospace,monospace;letter-spacing:6px;color:#134f33;user-select:text;overflow-wrap:anywhere}
.delivery-qr{display:inline-flex;align-items:center;justify-content:center;background:#fff;padding:12px;border:1px solid #e0e8e2;border-radius:10px;margin-top:8px}
.delivery-qr img,.delivery-qr canvas{max-width:100%;height:auto!important;image-rendering:pixelated}
.delivery-code-warning,.delivery-help,.delivery-expiry{font-size:13px;line-height:1.5;color:#4e6657;margin:12px 0 0}
.delivery-code-warning{color:#744c2b}
.delivery-empty{margin:0;color:#506b58}
@media(max-width:460px){.delivery-panel{padding:12px}.delivery-panel-top button{padding:8px 10px;font-size:13px}.delivery-list{grid-template-columns:1fr}}

/* Compact mobile catalog: two product columns, up to 6–8 items within common viewports. */
@media(max-width:600px){
 .hero{padding:14px 16px;border-radius:16px}
 .hero small{font-size:10px}
 .hero h1{font-size:22px;margin:4px 0}
 .hero p{font-size:12px;margin:3px 0}
 .search{margin:12px 0 8px;padding:10px}
 .filters{gap:5px}
 .filters button{padding:5px 10px;font-size:12px}
 .head{margin:12px 0 8px}
 .head h2{font-size:19px}
 .head p{font-size:11px}
 .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .card{border-radius:12px;padding:8px;min-width:0}
 .illustration{height:72px;font-size:39px;border-radius:9px}
 .card h3{font-size:14px;line-height:1.2;margin:6px 0 3px}
 .card small{font-size:11px}
 .card .row{margin-top:6px;gap:3px}
 .price{font-size:15px}
 .step{gap:4px}
 .step button{width:28px;height:28px}
}
.account-password-dialog{width:min(450px,94vw);border-radius:18px;padding:22px}
.customer-inbox-menu{max-width:100%;border:1px solid #dae7de}

/* Google customer login is discoverable even before OAuth SDK initialization. */
.google-customer-section{margin:16px 0;padding:14px;border:1px solid #d6e6dc;border-radius:14px;background:#f7fcf9;text-align:center}
.google-separator{margin:0 0 13px;font-size:13px;font-weight:650;color:#547160}
#googleSignIn{display:flex;align-items:center;justify-content:center;min-height:0}
.google-continue{display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:42px;max-width:100%;background:#fff!important;color:#24332c!important;border:1px solid #abbeb1!important}
.google-g{font:800 19px/1 Arial,sans-serif;color:#4285f4}
.google-status{font-size:12px;line-height:1.5;margin:9px auto 0;max-width:340px}
.google-status:empty{display:none}
.google-customer-section [hidden]{display:none!important}
#googleLink{margin-top:10px;display:flex;justify-content:flex-start}
