:root {
  --ink: #1d1b1a;
  --muted: #756e6a;
  --paper: #fffdfb;
  --sand: #f4efea;
  --sand-deep: #e7ddd5;
  --rose: #a85162;
  --rose-dark: #813747;
  --line: #e6dfda;
  --success: #2d755a;
  --warning: #9a641b;
  --danger: #a83d43;
  --shadow: 0 12px 36px rgba(47, 31, 25, .08);
  --radius: 2px;
  --max-width: 1240px;
  --font-display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(168, 81, 98, .42);
  outline-offset: 3px;
}
main { min-height: 55vh; }

.container { width: min(calc(100% - 40px), var(--max-width)); margin: 0 auto; }
.narrow { width: min(calc(100% - 40px), 760px); margin: 0 auto; }
.section { padding: 74px 0; }
.section--sand { background: var(--sand); }
.eyebrow { color: var(--rose); font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.display { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4.8rem); font-weight: 400; line-height: 1.04; letter-spacing: -.045em; margin: 10px 0 20px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 3.1rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.1; margin: 7px 0 14px; }
.lede { color: var(--muted); font-size: 1.03rem; max-width: 660px; }
.muted { color: var(--muted); }
.text-right { text-align: right; }
.sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.hidden { display: none !important; }

.announcement { background: var(--ink); color: #fff; font-size: 12px; letter-spacing: .04em; padding: 9px 20px; text-align: center; }
.announcement a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-header { background: rgba(255, 253, 251, .97); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-row { align-items: center; display: grid; gap: 20px; grid-template-columns: 1fr auto 1fr; min-height: 79px; }
.brand { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; letter-spacing: -.08em; line-height: 1; }
.brand img { display: block; height: 42px; max-width: 180px; object-fit: contain; object-position: center; }
.desktop-nav { align-items: center; display: flex; gap: 23px; }
.desktop-nav a { font-size: 12px; font-weight: 700; letter-spacing: .075em; position: relative; text-transform: uppercase; }
.desktop-nav a::after { background: var(--rose); bottom: -8px; content: ""; height: 1px; left: 0; position: absolute; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; width: 100%; }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { align-items: center; display: flex; gap: 17px; justify-content: flex-end; }
.header-actions a, .icon-button { background: transparent; border: 0; color: var(--ink); font-size: 12px; padding: 4px; }
.cart-count { background: var(--rose); border-radius: 999px; color: #fff; display: inline-grid; font-size: 10px; height: 18px; margin-left: 2px; place-items: center; width: 18px; }
.mobile-menu-toggle { display: none; }
.mobile-menu { background: var(--paper); border-bottom: 1px solid var(--line); display: none; padding: 10px 20px 20px; }
.mobile-menu.is-open { display: block; }
.mobile-menu a { border-bottom: 1px solid var(--line); display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; padding: 13px 0; text-transform: uppercase; }

.hero { background: #d8c9c1; color: #fff; min-height: min(680px, 70vh); overflow: hidden; position: relative; }
.hero::before { background: linear-gradient(90deg, rgba(28, 20, 17, .52), rgba(28, 20, 17, .12)); content: ""; inset: 0; position: absolute; z-index: 1; }
.hero-media { inset: 0; position: absolute; z-index: 0; }
.hero-media img { height: 100%; object-fit: cover; width: 100%; }
.hero-inner { align-content: center; display: grid; min-height: min(680px, 70vh); position: relative; z-index: 2; }
.hero-content { max-width: 590px; padding: 60px 0; }
.hero .eyebrow { color: #f9dbdf; }
.hero .display { max-width: 510px; }
.hero-copy { font-size: 1.05rem; max-width: 470px; }
.button { align-items: center; background: var(--ink); border: 1px solid var(--ink); color: #fff; display: inline-flex; font-size: 12px; font-weight: 700; justify-content: center; letter-spacing: .1em; min-height: 47px; padding: 13px 24px; text-transform: uppercase; transition: background .18s ease, color .18s ease, transform .18s ease; }
.button:hover { background: var(--rose); border-color: var(--rose); transform: translateY(-1px); }
.button--light { background: #fff; border-color: #fff; color: var(--ink); }
.button--light:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.button--outline { background: transparent; color: var(--ink); }
.button--outline:hover { color: #fff; }
.button--small { min-height: 38px; padding: 8px 15px; }
.button--danger { background: var(--danger); border-color: var(--danger); }
.button--full { width: 100%; }
.button[disabled] { cursor: not-allowed; opacity: .48; transform: none; }

.section-head { align-items: end; display: flex; gap: 25px; justify-content: space-between; margin-bottom: 31px; }
.section-head .section-title { margin-bottom: 0; }
.text-link { border-bottom: 1px solid currentColor; display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding-bottom: 3px; text-transform: uppercase; }
.text-link:hover { color: var(--rose); }
.product-grid { display: grid; gap: 28px 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card { min-width: 0; }
.product-card-image { background: #eadfd8; display: block; overflow: hidden; position: relative; }
.product-card-image::before { content: ""; display: block; padding-top: 128%; }
.product-card-image img { height: 100%; inset: 0; object-fit: cover; position: absolute; transition: transform .4s ease; width: 100%; }
.product-card:hover img { transform: scale(1.035); }
.product-card-badges { display: flex; flex-wrap: wrap; gap: 5px; left: 10px; position: absolute; top: 10px; z-index: 1; }
.badge { background: #fff; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 4px 7px; text-transform: uppercase; }
.badge--sale { background: var(--rose); color: #fff; }
.image-placeholder { align-items: center; background: linear-gradient(135deg, #eee1d8, #ccb7ab); color: rgba(255,255,255,.78); display: flex; font-family: var(--font-display); font-size: 1.5rem; inset: 0; justify-content: center; position: absolute; }
.product-card-info { padding-top: 13px; }
.product-card-name { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; }
.product-card-category { color: var(--muted); font-size: 12px; }
.price { font-size: 13px; font-weight: 700; margin-top: 3px; }
.price del { color: var(--muted); font-weight: 400; margin-right: 6px; }
.price ins { color: var(--rose); text-decoration: none; }

.category-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-card { background: #d9c6ba; min-height: 310px; overflow: hidden; position: relative; }
.category-card::after { background: linear-gradient(0deg, rgba(23,17,16,.55), transparent 55%); content: ""; inset: 0; position: absolute; }
.category-card img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.category-card .image-placeholder { font-size: 2rem; }
.category-card-content { bottom: 23px; color: #fff; left: 23px; position: absolute; z-index: 1; }
.category-card-content h3 { font-family: var(--font-display); font-size: 2.25rem; font-weight: 400; letter-spacing: -.04em; margin: 0 0 4px; }
.category-card-content span { border-bottom: 1px solid rgba(255,255,255,.85); font-size: 11px; font-weight: 700; letter-spacing: .1em; padding-bottom: 3px; text-transform: uppercase; }
.feature-split { align-items: stretch; display: grid; grid-template-columns: 1.12fr .88fr; min-height: 500px; }
.feature-image { background: #c7afa5; min-height: 400px; position: relative; }
.feature-image picture { display: block; height: 100%; }
.feature-image img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.feature-copy { align-content: center; background: #1f1c1b; color: #fff; display: grid; padding: clamp(38px, 7vw, 92px); }
.feature-copy .eyebrow { color: #dca5ac; }
.feature-copy .section-title { max-width: 390px; }
.feature-copy p { color: #ded9d6; max-width: 410px; }
.about-split { align-items: center; display: grid; gap: clamp(30px, 7vw, 115px); grid-template-columns: .82fr 1.18fr; }
.about-art { background: #d5c2b6; min-height: 430px; position: relative; }
.about-art::after { border: 1px solid rgba(255,255,255,.62); content: "M"; color: rgba(255,255,255,.7); font-family: var(--font-display); font-size: 12rem; inset: 30px; line-height: 1; padding: 45px 0 0 45px; position: absolute; }
.about-art img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.social-row { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); background: var(--line); }
.social-tile { background: var(--paper); min-height: 170px; padding: 22px; transition: background .2s; }
.social-tile:hover { background: var(--sand); }
.social-tile b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; }
.social-tile span { color: var(--muted); font-size: 12px; }

.site-footer { background: var(--ink); color: #eee8e4; padding: 62px 0 22px; }
.footer-grid { display: grid; gap: 45px; grid-template-columns: 1.45fr repeat(3, 1fr); }
.footer-brand { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; letter-spacing: -.08em; }
.footer-brand img { display: block; height: 46px; max-width: 200px; object-fit: contain; object-position: left center; }
.footer-heading { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .12em; margin: 7px 0 16px; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a, .footer-links span { color: #d2c9c4; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); color: #a69c97; font-size: 11px; margin-top: 50px; padding-top: 19px; }

.page-hero { background: var(--sand); padding: 56px 0; }
.breadcrumbs { color: var(--muted); font-size: 12px; margin-bottom: 15px; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.7rem); font-weight: 400; letter-spacing: -.05em; line-height: 1; margin: 0; }
.shop-layout { display: grid; gap: 36px; grid-template-columns: 220px 1fr; padding: 45px 0 76px; }
.filter-panel { border-top: 1px solid var(--ink); }
.filter-group { border-bottom: 1px solid var(--line); padding: 17px 0; }
.filter-group h3 { font-size: 12px; letter-spacing: .08em; margin: 0 0 10px; text-transform: uppercase; }
.filter-list { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.filter-list a { color: var(--muted); font-size: 13px; }
.filter-list a:hover, .filter-list a.active { color: var(--rose); }
.listing-toolbar { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 15px; justify-content: space-between; margin-bottom: 26px; padding-bottom: 15px; }
.listing-toolbar p { color: var(--muted); font-size: 13px; margin: 0; }
.listing-toolbar-controls { align-items: center; display: flex; gap: 14px; }
.listing-toolbar-controls .input, .listing-toolbar-controls .select { height: 45px; min-height: 45px; width: 160px; }
.select { background: #fff; border: 1px solid var(--line); min-height: 39px; padding: 7px 28px 7px 10px; }
.pagination { display: flex; gap: 7px; justify-content: center; margin-top: 45px; }
.pagination a, .pagination span { border: 1px solid var(--line); display: grid; font-size: 13px; height: 36px; place-items: center; width: 36px; }
.pagination .active { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty-state { border: 1px solid var(--line); padding: 50px 24px; text-align: center; }

.product-detail { display: grid; gap: clamp(30px, 6vw, 76px); grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); padding: 43px 0 74px; }
.gallery { display: grid; gap: 12px; grid-template-columns: 74px 1fr; }
.gallery-thumbs { display: grid; gap: 10px; align-content: start; }
.gallery-thumb { background: var(--sand); border: 1px solid transparent; padding: 0; }
.gallery-thumb.active { border-color: var(--ink); }
.gallery-thumb img { aspect-ratio: 1 / 1.22; object-fit: cover; }
.gallery-main { background: #eaded7; min-height: 610px; position: relative; }
.gallery-main img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.product-info { align-self: start; position: sticky; top: 100px; }
.product-info h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; margin: 8px 0 13px; }
.product-sku { color: var(--muted); font-size: 12px; }
.product-price { font-size: 18px; margin: 16px 0 24px; }
.product-description { border-top: 1px solid var(--line); color: #4c4745; padding-top: 22px; }
.option-group { border-bottom: 1px solid var(--line); padding: 18px 0; }
.option-label { display: flex; font-size: 12px; font-weight: 700; justify-content: space-between; letter-spacing: .065em; margin-bottom: 10px; text-transform: uppercase; }
.option-value { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.option-values { display: flex; flex-wrap: wrap; gap: 8px; }
.option-control { position: relative; }
.option-control input { opacity: 0; position: absolute; }
.swatch, .size-option { align-items: center; background: #fff; border: 1px solid var(--line); display: inline-flex; font-size: 13px; justify-content: center; min-height: 37px; min-width: 39px; padding: 6px 11px; }
.swatch::before { background: var(--swatch, #eee); border: 1px solid rgba(0,0,0,.14); border-radius: 50%; content: ""; height: 13px; margin-right: 7px; width: 13px; }
.option-control input:checked + .swatch, .option-control input:checked + .size-option { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option-control input:disabled + .swatch, .option-control input:disabled + .size-option { color: #a8a19d; cursor: not-allowed; opacity: .5; position: relative; text-decoration: line-through; }
.stock-note { color: var(--success); font-size: 13px; margin: 13px 0; }
.stock-note.low { color: var(--warning); }
.purchase-row { display: grid; gap: 10px; grid-template-columns: 108px 1fr; margin: 20px 0; }
.quantity { align-items: center; border: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 49px; }
.quantity button { background: transparent; border: 0; font-size: 18px; height: 100%; width: 33px; }
.quantity input { appearance: textfield; border: 0; min-width: 0; text-align: center; width: 33px; }
.product-accordions details { border-top: 1px solid var(--line); }
.product-accordions summary { cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .08em; list-style: none; padding: 17px 0; text-transform: uppercase; }
.product-accordions summary::-webkit-details-marker { display: none; }
.product-accordions summary::after { content: "+"; float: right; font-size: 17px; font-weight: 400; }
.product-accordions details[open] summary::after { content: "–"; }
.product-accordions p { color: var(--muted); font-size: 13px; margin: -5px 0 17px; }

.cart-layout, .checkout-layout { align-items: start; display: grid; gap: 55px; grid-template-columns: minmax(0, 1fr) 360px; padding: 45px 0 78px; }
.cart-list { border-top: 1px solid var(--ink); }
.cart-item { border-bottom: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: 115px 1fr auto; padding: 18px 0; }
.cart-item-image { background: var(--sand); height: 144px; position: relative; }
.cart-item-image img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.cart-item h2 { font-size: 15px; margin: 0 0 3px; }
.cart-item-meta { color: var(--muted); font-size: 12px; }
.cart-item-controls { align-items: end; display: flex; flex-direction: column; gap: 14px; }
.cart-item-controls .quantity { min-height: 36px; width: 95px; }
.remove-link { background: transparent; border: 0; border-bottom: 1px solid currentColor; color: var(--muted); font-size: 11px; padding: 0 0 2px; }
.order-summary { background: var(--sand); padding: 25px; position: sticky; top: 99px; }
.order-summary h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; margin: 0 0 17px; }
.summary-line { display: flex; font-size: 13px; justify-content: space-between; padding: 7px 0; }
.summary-total { border-top: 1px solid var(--ink); font-size: 16px; font-weight: 700; margin-top: 10px; padding-top: 15px; }
.coupon-line { display: flex; gap: 8px; margin: 18px 0 6px; }
.coupon-line input { min-width: 0; }

.form-card { background: #fff; border: 1px solid var(--line); padding: clamp(22px, 4vw, 38px); }
.form-card h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 400; letter-spacing: -.03em; margin: 0 0 21px; }
.form-grid { display: grid; gap: 17px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-field { align-content: start; display: grid; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
.form-field input:not([type="checkbox"]):not([type="radio"]), .form-field select, .form-field textarea, .input { background: #fff; border: 1px solid #d8d0cb; border-radius: 0; color: var(--ink); min-height: 45px; padding: 10px 11px; width: 100%; }
.form-field textarea { min-height: 112px; resize: vertical; }
.form-help, .field-error { font-size: 12px; }
.form-help { color: var(--muted); }
.field-error { color: var(--danger); }
.check-row { align-items: center; display: flex; gap: 9px; }
.check-row label { font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.form-actions { display: flex; gap: 10px; margin-top: 25px; }
.alert { border-left: 3px solid var(--ink); margin: 18px 0; padding: 12px 14px; }
.alert--success { background: #edf8f1; border-color: var(--success); color: #205c45; }
.alert--error { background: #fff0f1; border-color: var(--danger); color: #852e34; }
.alert--warning { background: #fff7e9; border-color: var(--warning); color: #7e5318; }
.alert ul { margin: 0; padding-left: 18px; }
.content-page { padding: 60px 0 80px; }
.content-page h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 400; letter-spacing: -.05em; }
.rich-content { color: #48423f; font-size: 1rem; }
.rich-content h2 { color: var(--ink); font-family: var(--font-display); font-size: 2rem; font-weight: 400; margin-top: 2em; }
.rich-content a { color: var(--rose); text-decoration: underline; }
.rich-content ul { padding-left: 1.3em; }
.payment-card { background: var(--sand); padding: clamp(25px, 5vw, 55px); text-align: center; }
.payment-card h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; letter-spacing: -.05em; margin: 9px 0; }
.payment-order { font-size: 13px; letter-spacing: .08em; }
.payment-total { font-family: var(--font-display); font-size: 2.4rem; margin: 8px 0 28px; }
.qr-image { background: #fff; margin: 0 auto 20px; max-width: 235px; padding: 10px; }
.payment-details { background: #fff; margin: 26px auto; max-width: 500px; padding: 20px; text-align: left; }
.payment-details dl { margin: 0; }
.payment-details div { border-bottom: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: 1fr 1fr; padding: 10px 0; }
.payment-details div:last-child { border: 0; }
.payment-details dt { color: var(--muted); font-size: 13px; }
.payment-details dd { font-weight: 700; margin: 0; text-align: right; }

.admin-body { background: #f5f3f1; color: #282524; }
.admin-shell { display: grid; grid-template-columns: 245px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { background: #211e1d; color: #f3efeb; padding: 28px 16px; }
@media (min-width: 761px) {
  .admin-sidebar { align-self: start; height: 100vh; overflow-y: auto; position: sticky; top: 0; }
}
.admin-logo { color: #fff; display: block; font-family: var(--font-display); font-size: 2.05rem; font-weight: 600; letter-spacing: -.08em; margin: 0 10px 34px; }
.admin-nav-group { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 10px; }
.admin-nav-group:first-of-type { border: 0; }
.admin-nav-label { color: #9f9691; display: block; font-size: 10px; font-weight: 700; letter-spacing: .13em; margin-bottom: 7px; text-transform: uppercase; }
.admin-nav-group a { color: #d7d0cc; display: block; font-size: 13px; margin: 3px -10px; padding: 7px 10px; }
.admin-nav-group a:hover, .admin-nav-group a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { min-width: 0; }
.admin-topbar { align-items: center; background: #fff; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 70px; padding: 0 32px; }
.admin-topbar h1 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; letter-spacing: -.035em; margin: 0; }
.admin-user { align-items: center; display: flex; font-size: 13px; gap: 13px; }
.admin-content { padding: 32px; }
.admin-page-head { align-items: center; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 27px; }
.admin-page-head h2 { font-family: var(--font-display); font-size: 2.3rem; font-weight: 400; letter-spacing: -.04em; margin: 0; }
.stats-grid { display: grid; gap: 15px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 27px; }
.stat-card { background: #fff; border: 1px solid var(--line); min-height: 121px; padding: 20px; }
.stat-card span { color: var(--muted); display: block; font-size: 11px; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 2.1rem; font-weight: 400; letter-spacing: -.04em; margin-top: 4px; }
.admin-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.admin-grid > .admin-card { min-width: 0; }
.dashboard-panels { display: grid; gap: 20px; }
.admin-card { background: #fff; border: 1px solid var(--line); padding: 22px; }
.admin-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; letter-spacing: -.03em; margin: 0 0 16px; }
.admin-card-header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 18px; }
.admin-card-header h3 { margin: 0; }
.table-wrap { overflow-x: auto; }
.data-table { border-collapse: collapse; min-width: 650px; width: 100%; }
.data-table th { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .075em; padding: 10px 10px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { border-bottom: 1px solid #eeeae7; font-size: 13px; padding: 13px 10px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table a:not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.status { border-radius: 999px; display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .045em; padding: 4px 8px; text-transform: uppercase; white-space: nowrap; }
.status--pending_payment, .status--processing { background: #fff3dc; color: #8b5a13; }
.status--paid, .status--completed, .status--active { background: #e8f5ec; color: #287050; }
.status--shipped { background: #e7f0fb; color: #31648c; }
.status--cancelled, .status--expired, .status--inactive { background: #f7e8e9; color: #9a3f46; }
.admin-filters { align-items: end; background: #fff; border: 1px solid var(--line); display: grid; gap: 13px; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; margin-bottom: 20px; padding: 16px; }
.admin-filters .form-field { gap: 4px; }
.admin-filters .form-field input, .admin-filters .form-field select { min-height: 39px; }
.admin-form { background: #fff; border: 1px solid var(--line); padding: 28px; }
.admin-form-section { border-bottom: 1px solid var(--line); margin-bottom: 28px; padding-bottom: 25px; }
.admin-form-section:last-child { border-bottom: 0; margin-bottom: 0; }
.admin-form-section h3 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; letter-spacing: -.03em; margin: 0 0 17px; }
.admin-form-section > p { color: var(--muted); font-size: 13px; margin: -10px 0 18px; }
.admin-form-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-form-grid .wide { grid-column: span 2; }
.admin-form-grid .full { grid-column: 1 / -1; }
.variant-table input, .variant-table select { min-height: 34px; padding: 5px; }
.order-detail-grid { display: grid; gap: 20px; grid-template-columns: 1.1fr .9fr; }
.order-info-list { display: grid; gap: 0; margin: 0; }
.order-info-list div { border-bottom: 1px solid var(--line); display: grid; gap: 15px; grid-template-columns: 130px 1fr; padding: 10px 0; }
.order-info-list dt { color: var(--muted); font-size: 12px; }
.order-info-list dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { border-left: 1px solid var(--sand-deep); margin-left: 5px; padding: 0 0 19px 20px; position: relative; }
.timeline li::before { background: var(--rose); border-radius: 50%; content: ""; height: 10px; left: -5px; position: absolute; top: 5px; width: 10px; }
.timeline time { color: var(--muted); display: block; font-size: 11px; }
.login-page { align-items: center; background: linear-gradient(135deg, #ebe3de, #cbb8af); display: grid; min-height: 100vh; padding: 20px; }
.login-card { background: var(--paper); box-shadow: var(--shadow); margin: auto; max-width: 420px; padding: 43px; width: 100%; }
.login-brand { display: block; font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; letter-spacing: -.08em; margin-bottom: 28px; text-align: center; }
.login-card h1 { font-family: var(--font-display); font-size: 2.1rem; font-weight: 400; letter-spacing: -.04em; margin: 0 0 4px; text-align: center; }
.login-card > p { color: var(--muted); font-size: 13px; margin: 0 0 25px; text-align: center; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: inline-block; }
  .header-row { grid-template-columns: 1fr auto 1fr; }
  .header-actions .header-search-label { display: none; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: 180px 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--max-width)); }
  .header-row { min-height: 64px; }
  .brand { font-size: 1.8rem; }
  .header-actions { gap: 8px; }
  .section { padding: 51px 0; }
  .hero, .hero-inner { min-height: 575px; }
  .hero-content { padding-bottom: 50px; }
  .product-grid { gap: 26px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { gap: 12px; grid-template-columns: 1fr; }
  .category-card { min-height: 260px; }
  .feature-split, .about-split { grid-template-columns: 1fr; }
  .feature-image { min-height: 340px; }
  .about-art { min-height: 340px; }
  .social-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { gap: 25px; grid-template-columns: repeat(2, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .shop-layout { display: block; padding-top: 24px; }
  .filter-panel { margin-bottom: 25px; }
  .filter-panel:not(.is-open) .filter-group { display: none; }
  .filter-panel::before { content: "篩選分類"; display: block; font-size: 12px; font-weight: 700; letter-spacing: .07em; padding: 13px 0; text-transform: uppercase; }
  .product-detail { display: block; padding-top: 25px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { display: flex; grid-row: 2; overflow: auto; }
  .gallery-thumb { flex: 0 0 60px; }
  .gallery-main { min-height: min(128vw, 590px); }
  .product-info { margin-top: 25px; position: static; }
  .cart-layout, .checkout-layout { display: block; padding-top: 27px; }
  .order-summary { margin-top: 28px; position: static; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item-image { height: 105px; }
  .cart-item-controls { align-items: start; flex-direction: row; grid-column: 2; justify-content: space-between; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .admin-shell { display: block; }
  .admin-sidebar { display: none; }
  .admin-sidebar.is-open { display: block; }
  .admin-topbar { min-height: 60px; padding: 0 17px; }
  .admin-content { padding: 18px 14px; }
  .admin-page-head { align-items: start; flex-direction: column; }
  .admin-page-head h2 { font-size: 2rem; }
  .stats-grid, .admin-grid, .order-detail-grid { grid-template-columns: 1fr; }
  .admin-filters { grid-template-columns: 1fr 1fr; }
  .admin-filters .button { grid-column: span 2; }
  .admin-form { padding: 18px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .wide, .admin-form-grid .full { grid-column: auto; }
  .order-info-list div { grid-template-columns: 95px 1fr; }
}
@media (max-width: 420px) {
  .header-actions a { font-size: 11px; }
  .header-actions .cart-label { display: none; }
  .product-card-name { font-size: 13px; }
  .product-card-category { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .social-row { grid-template-columns: 1fr; }
}
