:root{--ink:#201e1a;--muted:#6e6960;--paper:#fbfaf7;--panel:rgba(255,255,255,.88);--gold:#b79a65;--gold-dark:#8e7346;--line:#e7e0d5;--danger:#a34436;--success:#286b4b;--shadow:0 24px 80px rgba(42,35,24,.12)}
*{box-sizing:border-box}html{min-height:100%;background:#f5f1e9;color:var(--ink);font-family:"Segoe UI","Microsoft YaHei UI",Arial,sans-serif}body{margin:0;min-height:100vh;overflow-x:hidden}.hidden{display:none!important}button,input,select{font:inherit}button{cursor:pointer}.ambient{position:fixed;border-radius:999px;filter:blur(12px);pointer-events:none;opacity:.46}.ambient-one{width:420px;height:420px;right:-160px;top:-120px;background:#dbc9a5}.ambient-two{width:360px;height:360px;left:-190px;bottom:-150px;background:#e5d9c8}.shell{position:relative;width:min(1220px,calc(100% - 40px));margin:auto;min-height:100vh}.site-header{height:92px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink);letter-spacing:.08em}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--ink);color:#fff;font-family:Georgia,serif;font-size:22px}.brand strong,.brand small{display:block}.brand small{font-size:9px;letter-spacing:.23em;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:12px}.header-actions select{border:1px solid var(--line);background:rgba(255,255,255,.75);padding:9px 12px;border-radius:999px}.eyebrow{font-size:11px;letter-spacing:.23em;color:var(--gold-dark);font-weight:800;margin-bottom:12px}.auth-layout{min-height:calc(100vh - 120px);display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.75fr);gap:90px;align-items:center;padding:50px 5% 100px}.hero-copy h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:clamp(45px,6vw,78px);line-height:1.04;max-width:780px;margin:0 0 24px}.hero-copy>p{font-size:19px;color:var(--muted);max-width:610px;line-height:1.75}.trust-row{display:flex;gap:24px;flex-wrap:wrap;margin-top:34px;color:var(--muted);font-size:13px}.trust-row span{display:flex;gap:7px}.trust-row span::first-letter{color:var(--gold-dark)}.auth-card,.center-card,.profile-card{background:var(--panel);border:1px solid rgba(255,255,255,.9);box-shadow:var(--shadow);border-radius:28px;padding:38px;backdrop-filter:blur(18px)}.auth-card{position:relative}.step{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#f0e7d7;color:var(--gold-dark);font-size:12px;font-weight:800}.auth-card h2,.center-card h1{font-size:28px;margin:20px 0 8px}.muted{color:var(--muted);line-height:1.65}.center-card{width:min(520px,100%);margin:8vh auto}.profile-card{width:min(760px,100%)}label>span{display:block;font-weight:700;font-size:13px;margin:18px 0 8px}input,select{width:100%;border:1px solid var(--line);border-radius:13px;background:#fff;padding:14px 15px;outline:none;color:var(--ink)}input:focus,select:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(183,154,101,.13)}.check-row{display:flex;align-items:flex-start;gap:10px;margin:19px 0;color:var(--muted);font-size:13px;line-height:1.55}.check-row input{width:18px;height:18px;margin:2px 0 0;flex:0 0 auto}.check-row span{display:inline;margin:0;font-weight:400}.check-row a{color:var(--gold-dark)}.primary{border:0;background:var(--ink);color:#fff;border-radius:13px;padding:14px 18px;font-weight:800;box-shadow:0 9px 24px rgba(32,30,26,.18)}.primary:hover{background:#35312b}.primary:disabled{opacity:.55;cursor:wait}.wide{width:100%}.text-button{border:0;background:transparent;color:var(--gold-dark);padding:9px;font-weight:700}.form-message{min-height:20px;color:var(--danger);font-size:13px}.form-message.success{color:var(--success)}.otp-input{text-align:center;font-size:25px;letter-spacing:.38em;font-variant-numeric:tabular-nums}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.profile-grid .full{grid-column:1/-1}.captcha-box{min-height:72px;margin-top:16px}.catalog-view{padding:35px 0 70px}.draft-banner{padding:12px 16px;background:#fff1c9;border:1px solid #eed184;color:#6f5010;border-radius:12px;text-align:center;font-weight:800;margin-bottom:24px}.catalog-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:35px 0 28px}.catalog-heading h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(38px,5vw,66px);font-weight:500;margin:0 0 8px}.viewer-pill{background:rgba(255,255,255,.75);border:1px solid var(--line);padding:12px 16px;border-radius:16px}.viewer-pill span,.viewer-pill strong{display:block}.viewer-pill span{font-size:11px;color:var(--muted)}.viewer-pill strong{margin-top:4px;font-size:13px}.catalog-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 220px;gap:14px;margin-bottom:22px;position:sticky;top:10px;z-index:5;background:rgba(245,241,233,.88);padding:10px;border-radius:18px;backdrop-filter:blur(12px)}.search{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:13px;background:#fff;padding:3px 3px 3px 14px}.search span{position:relative;top:-1px;display:grid;place-items:center;width:22px;height:22px;line-height:1;font-size:23px;color:var(--muted)}.search input{min-width:0;border:0;padding:11px 0;box-shadow:none}.search input:focus{border:0;box-shadow:none}.search button{align-self:stretch;min-width:68px;border:0;border-radius:10px;background:var(--ink);color:#fff;padding:0 14px;font-weight:800;white-space:nowrap}.search button:hover{background:#35312b}.catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.product-card{background:var(--panel);border:1px solid rgba(255,255,255,.95);border-radius:20px;overflow:hidden;box-shadow:0 10px 34px rgba(44,37,25,.08);transition:.2s ease;cursor:pointer}.product-card:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(44,37,25,.13)}.product-photo{aspect-ratio:1/1;background:#faf8f4;display:grid;place-items:center;overflow:hidden}.product-photo img{width:100%;height:100%;object-fit:cover}.product-photo .loading{color:var(--muted);font-size:12px}.product-info{padding:15px 16px 17px}.sku{font-size:10px;letter-spacing:.12em;color:var(--gold-dark);font-weight:800}.product-info h3{margin:7px 0 9px;font-size:17px;line-height:1.35}.product-info p{margin:4px 0;color:var(--muted);font-size:12px;line-height:1.45}.price{font-weight:800;color:var(--ink)!important;margin-top:10px!important}.pagination{display:flex;justify-content:center;gap:8px;margin:30px 0}.pagination button{border:1px solid var(--line);background:#fff;border-radius:10px;min-width:40px;padding:10px}.pagination button.active{background:var(--ink);color:#fff}.pagination button:disabled{opacity:.4}.empty{grid-column:1/-1;background:var(--panel);padding:50px;text-align:center;border-radius:20px;color:var(--muted)}footer{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:30px;color:var(--muted);font-size:12px}footer a{color:inherit}.modal{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:18px}.modal-backdrop{position:absolute;inset:0;border:0;background:rgba(24,21,17,.72);backdrop-filter:blur(5px)}.modal-card{position:relative;width:min(860px,100%);max-height:92vh;overflow:auto;background:var(--paper);border-radius:24px;padding:20px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:24px}.modal-card>img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:15px;background:#fff}.modal-close{position:absolute;right:11px;top:11px;width:38px;height:38px;border-radius:50%;border:0;background:rgba(32,30,26,.88);color:#fff;font-size:22px;z-index:2}.modal-card h2{font-family:Georgia,"Times New Roman",serif;font-size:32px;margin:35px 0 16px}.modal-card dl div{border-top:1px solid var(--line);display:grid;grid-template-columns:110px 1fr;gap:8px;padding:10px 0}.modal-card dt{font-size:12px;color:var(--muted)}.modal-card dd{margin:0;font-size:13px}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);z-index:30;background:var(--ink);color:#fff;padding:13px 18px;border-radius:12px;box-shadow:var(--shadow)}
@media(max-width:900px){.auth-layout{grid-template-columns:1fr;gap:35px;padding:30px 0 70px}.hero-copy h1{font-size:52px}.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.modal-card{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.shell{width:min(100% - 24px,1220px)}.site-header{height:74px}.brand-mark{width:37px;height:37px}.header-actions{gap:4px}.header-actions select{max-width:105px}.auth-layout{display:block;padding-top:28px}.hero-copy{margin-bottom:27px}.hero-copy h1{font-size:39px}.hero-copy>p{font-size:16px}.trust-row{gap:10px 18px;margin:23px 0}.auth-card,.center-card,.profile-card{padding:25px 20px;border-radius:21px}.center-card{margin:5vh auto}.profile-grid{grid-template-columns:1fr}.catalog-view{padding-top:15px}.catalog-heading{display:block;margin:22px 0}.viewer-pill{display:inline-block;margin-top:10px}.catalog-toolbar{grid-template-columns:1fr;top:4px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-card{border-radius:14px}.product-info{padding:11px}.product-info h3{font-size:14px}.modal-card{display:block;padding:13px}.modal-card>img{margin-bottom:8px}.modal-card h2{margin-top:18px}.modal-card dl div{grid-template-columns:90px 1fr}}
@media(max-width:360px){.catalog-grid{grid-template-columns:1fr}.hero-copy h1{font-size:34px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.local-code{background:#fff5d9;border:1px solid #ebd08b;border-radius:11px;padding:10px 12px;color:#6f5010;font-size:13px;font-weight:800}

/* Unified native controls: keep arrows, checkboxes and close icons optically centered. */
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  line-height: 1.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236e6960' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  border: 1.5px solid #aaa398;
  border-radius: 4px;
  background: #fff center / 12px 12px no-repeat;
  box-shadow: none;
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  border-color: var(--ink);
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6.2l2.4 2.4L10 3' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(183,154,101,.28);
  outline-offset: 2px;
}

.check-row input[type="checkbox"] { margin: 1px 0 0; }

.modal-close {
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 0;
  line-height: 1;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
}

.modal-close::before {
  content: "×";
  display: block;
  font: 400 24px/1 Arial, sans-serif;
  transform: translateY(-1px);
}

#modalContent {
  min-width: 0;
  padding: 5px 2px 4px;
}

.modal-selection-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0 17px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f3ede2;
  cursor: pointer;
  color: var(--ink);
}

.modal-selection-option input {
  flex: 0 0 18px;
  margin: 0;
}

.modal-selection-option > span {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.modal-selection-option:has(input:checked) {
  border-color: var(--gold);
  background: #eee1c8;
}

/* Product detail uses a quiet light close control so it does not compete with the product photo. */
#productModal .modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(32,30,26,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: 0 5px 16px rgba(32,30,26,.12);
  backdrop-filter: blur(8px);
}

#productModal .modal-close::before,
#productModal .modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
}

#productModal .modal-close::before {
  transform: translate(-50%,-50%) rotate(45deg);
}

#productModal .modal-close::after {
  transform: translate(-50%,-50%) rotate(-45deg);
}

#productModal .modal-close:hover {
  border-color: rgba(32,30,26,.28);
  background: #fff;
  box-shadow: 0 7px 20px rgba(32,30,26,.16);
}

/* Header controls keep the language text centered and logout on one line. */
.header-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.header-actions select {
  width: 118px;
  min-width: 118px;
  max-width: 118px;
  height: 40px;
  padding: 0 28px;
  line-height: 40px;
  text-align: center;
  text-align-last: center;
  background-position: right 10px center;
}

#logoutButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: max-content;
  height: 40px;
  padding: 0 8px;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
}

/* A disabled action is idle; only an in-flight request uses a progress cursor. */
.primary:disabled {
  cursor: not-allowed;
}

.primary[aria-busy="true"] {
  cursor: progress;
}
