:root{--ink:#1f2b24;--muted:#6e766f;--cream:#f7f3ed;--paper:#fff;--green:#486353;--green-dark:#30473a;--line:#e6e2dc;--accent:#dba86d;--danger:#b44d47;--success:#347554;--shadow:0 16px 45px rgba(35,47,39,.09);--radius:20px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:#fcfbf9;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;line-height:1.65}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}button,input,select,textarea{font:inherit;color:inherit}.container{width:min(1160px,calc(100% - 40px));margin-inline:auto}.site-header{position:sticky;top:0;z-index:20;background:rgba(252,251,249,.9);backdrop-filter:blur(16px);border-bottom:1px solid rgba(230,226,220,.75)}.nav-wrap{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{display:inline-flex;align-items:center;gap:11px;font-size:20px;font-weight:800;letter-spacing:.06em}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:#fff;background:var(--green)}.main-nav,.admin-nav{display:flex;align-items:center;gap:24px;font-size:15px;font-weight:650}.main-nav a,.admin-nav a{transition:.2s}.main-nav a:hover{color:var(--green)}.cart-badge{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 6px;margin-left:4px;border-radius:99px;color:#fff;background:var(--green);font-size:12px}.hero{padding:72px 0 80px;background:var(--cream);overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:70px;align-items:center}.eyebrow{display:block;margin-bottom:10px;color:var(--green);font-size:12px;font-weight:800;letter-spacing:.2em}.hero h1{margin:0 0 22px;font-family:Georgia,"Noto Serif TC",serif;font-size:clamp(42px,6vw,72px);line-height:1.13;letter-spacing:-.04em}.hero p{max-width:560px;margin:0 0 30px;color:var(--muted);font-size:18px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 20px;border:1px solid transparent;border-radius:999px;cursor:pointer;font-weight:750;transition:transform .2s,background .2s,border-color .2s}.button:hover{transform:translateY(-1px)}.button.primary{color:#fff;background:var(--green)}.button.primary:hover{background:var(--green-dark)}.button.secondary{border-color:#cfd6d0;background:#fff}.button.secondary:hover{border-color:var(--green)}.button.disabled{color:#949b96;background:#e9ebe9;cursor:not-allowed}.button.wide{width:100%}.hero-card{position:relative;min-height:410px;padding:34px;border-radius:36px;background:#d9e6dc;box-shadow:var(--shadow);overflow:hidden}.hero-number{position:absolute;right:28px;top:20px;font-family:Georgia,serif;font-size:65px;color:rgba(48,71,58,.18)}.hero-object{position:absolute;border-radius:50%;box-shadow:0 24px 55px rgba(48,71,58,.18)}.object-one{width:220px;height:220px;left:55px;top:70px;background:#fff}.object-two{width:115px;height:210px;left:230px;top:135px;border-radius:55px;background:var(--accent);transform:rotate(20deg)}.hero-card p{position:absolute;left:35px;bottom:22px;margin:0;color:var(--green-dark);font-family:Georgia,serif;font-size:23px;line-height:1.25}.shop-section,.page-section{padding:78px 0}.section-heading,.admin-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}.section-heading h1,.section-heading h2,.admin-title h1{margin:0;font-family:Georgia,"Noto Serif TC",serif;font-size:38px;line-height:1.2}.muted{color:var(--muted)}.filter-bar{display:flex;gap:12px;align-items:center;margin-bottom:30px}.filter-bar input{flex:1}.filter-bar input,.filter-bar select,input,select,textarea{min-height:46px;padding:10px 14px;border:1px solid #d8d9d5;border-radius:12px;background:#fff;outline:none;transition:border .2s,box-shadow .2s}.filter-bar input:focus,.filter-bar select:focus,input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(72,99,83,.12)}textarea{width:100%;resize:vertical}.text-link{color:var(--green);font-weight:750}.text-link:hover{text-decoration:underline}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px 24px}.product-card{overflow:hidden;border-radius:var(--radius);background:#fff;border:1px solid var(--line);transition:transform .22s,box-shadow .22s}.product-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.product-image{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:var(--cream)}.product-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.product-card:hover .product-image img{transform:scale(1.035)}.sold-out{position:absolute;right:14px;top:14px;padding:5px 10px;border-radius:99px;color:#fff;background:rgba(31,43,36,.82);font-size:12px}.product-info{padding:20px}.product-category{color:var(--green);font-size:12px;font-weight:800;letter-spacing:.12em}.product-info h3{margin:7px 0 16px;font-size:20px}.product-meta{display:flex;align-items:center;justify-content:space-between;gap:15px}.product-meta strong{font-size:18px}.product-meta span{color:var(--muted);font-size:13px}.service-strip{padding:33px 0;background:var(--green);color:#fff}.service-grid{display:grid;grid-template-columns:repeat(3,1fr)}.service-grid div{display:flex;flex-direction:column;align-items:center;text-align:center;border-right:1px solid rgba(255,255,255,.22)}.service-grid div:last-child{border:0}.service-grid span{opacity:.72;font-size:14px}.site-footer{padding:50px 0;background:#202d25;color:#fff}.footer-grid{display:flex;justify-content:space-between;gap:30px}.site-footer p{margin:8px 0 0;color:rgba(255,255,255,.66)}.footer-links{display:flex;flex-direction:column;align-items:flex-end;color:rgba(255,255,255,.66);font-size:14px}.alert{margin-top:20px;padding:14px 18px;border-radius:12px}.alert.success{color:#215d3d;background:#e6f3eb;border:1px solid #bfdfcc}.alert.error{color:#893732;background:#f9e9e7;border:1px solid #efcac6}.alert ul{margin:6px 0 0;padding-left:20px}.empty-state{padding:70px 25px;text-align:center;border:1px dashed #ccd2cd;border-radius:var(--radius);background:#fff}.empty-state h1,.empty-state h2,.empty-state h3{margin-top:0}.product-detail{display:grid;grid-template-columns:1.05fr .95fr;gap:70px;padding:70px 0 90px}.detail-image{overflow:hidden;aspect-ratio:1/1;border-radius:30px;background:var(--cream)}.detail-image img{width:100%;height:100%;object-fit:cover}.detail-content{padding-top:12px}.back-link{display:inline-block;margin-bottom:38px;color:var(--muted);font-size:14px}.detail-content h1{margin:10px 0 8px;font-family:Georgia,"Noto Serif TC",serif;font-size:48px;line-height:1.2}.detail-price{margin-bottom:28px;color:var(--green);font-size:26px;font-weight:800}.description{padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:#4e5952}.stock-line{margin:20px 0;color:var(--muted)}.buy-form{display:grid;grid-template-columns:110px 1fr;gap:14px;align-items:end}.buy-form label,.qty-label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:700}.buy-form input{width:100%}.detail-notes{margin-top:25px;color:var(--muted);font-size:14px}.detail-notes p{margin:5px 0}.cart-layout,.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:34px;align-items:start}.cart-list{display:flex;flex-direction:column;gap:14px}.cart-item{display:grid;grid-template-columns:110px minmax(0,1fr) 90px 110px 35px;gap:18px;align-items:center;padding:17px;border:1px solid var(--line);border-radius:16px;background:#fff}.cart-item img{width:110px;height:90px;border-radius:12px;object-fit:cover}.cart-item-main h3{margin:3px 0}.qty-label input{width:75px}.line-total{text-align:right}.icon-button{border:0;background:transparent;cursor:pointer;font-size:25px}.icon-button.danger{color:var(--danger)}.hidden-form{display:none}.summary-card,.card{padding:25px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:0 8px 28px rgba(35,47,39,.05)}.summary-card{position:sticky;top:98px}.summary-card h2,.card h2{margin-top:0}.summary-card>div,.checkout-item{display:flex;justify-content:space-between;gap:18px;padding:10px 0}.summary-total{margin:10px 0 20px;padding-top:18px!important;border-top:1px solid var(--line);font-size:20px}.checkout-form{display:flex;flex-direction:column;gap:9px}.checkout-form label,.stack-form label,.product-editor label{margin-top:7px;font-size:14px;font-weight:700}.form-grid.two{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.form-grid.two label{grid-row:1}.checkout-form fieldset{display:grid;gap:10px;margin:16px 0;padding:0;border:0}.checkout-form legend{margin-bottom:8px;font-weight:800}.radio-card{display:flex;align-items:center;gap:12px!important;margin:0!important;padding:14px;border:1px solid var(--line);border-radius:12px;cursor:pointer}.radio-card input{min-height:auto}.radio-card span{display:flex;flex-direction:column}.radio-card small{color:var(--muted);font-weight:400}.success-page{max-width:700px;padding:90px 20px;text-align:center}.success-icon{display:grid;place-items:center;width:78px;height:78px;margin:0 auto 25px;border-radius:50%;color:#fff;background:var(--green);font-size:38px}.success-page h1{margin:5px 0;font-family:Georgia,"Noto Serif TC",serif;font-size:48px}.success-page p{color:var(--muted)}.order-number{display:flex;flex-direction:column;width:min(400px,100%);margin:30px auto;padding:18px;border-radius:14px;background:var(--cream)}.order-number strong{font-size:24px;letter-spacing:.06em}.login-body{min-height:100vh;display:grid;place-items:center;padding:30px;background:var(--cream)}.login-card{width:min(450px,100%);display:flex;flex-direction:column;gap:24px;padding:38px;border:1px solid var(--line);border-radius:25px;background:#fff;box-shadow:var(--shadow)}.login-card h1{margin:4px 0;font-family:Georgia,"Noto Serif TC",serif;font-size:38px}.stack-form{display:flex;flex-direction:column;gap:7px}.admin-body{background:#f5f6f4}.admin-header{background:#26372d;color:#fff}.brand.light{color:#fff}.admin-nav a{color:rgba(255,255,255,.75)}.admin-nav a:hover{color:#fff}.admin-main{padding-top:45px;padding-bottom:70px}.admin-title{align-items:center}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:30px}.stat-card{padding:24px;border-radius:18px;background:#fff;border:1px solid var(--line)}.stat-card span{display:block;color:var(--muted);font-size:14px}.stat-card strong{display:inline-block;margin-top:12px;font-size:29px}.stat-card small{margin-left:5px;color:var(--muted)}.admin-section{margin-top:20px}.admin-section .section-heading{align-items:center;margin-bottom:15px}.admin-section .section-heading h2{font-family:inherit;font-size:22px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th,td{padding:14px 13px;border-bottom:1px solid var(--line);text-align:left;font-size:14px}th{color:var(--muted);font-size:12px;letter-spacing:.06em}tbody tr:last-child td{border-bottom:0}td a{color:var(--green);font-weight:700}.table-empty{text-align:center;color:var(--muted);padding:40px}.status{display:inline-flex;padding:4px 9px;border-radius:99px;font-size:12px;font-weight:750;background:#edf0ee}.status-pending{color:#8a601c;background:#fbf0d8}.status-paid,.status-processing{color:#225d77;background:#e0f0f7}.status-shipped{color:#604e8a;background:#ece8f8}.status-completed{color:#2f6c4a;background:#e4f1e9}.status-cancelled{color:#91433f;background:#f7e8e6}.admin-filter{max-width:620px}.table-product{display:flex;align-items:center;gap:12px}.table-product img{width:58px;height:48px;border-radius:8px;object-fit:cover}.low-stock{color:var(--danger);font-weight:800}.actions{display:flex;align-items:center;gap:13px}.actions form{display:inline}.link-button{padding:0;border:0;color:var(--danger);background:transparent;cursor:pointer;font-weight:700}.product-editor{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:35px}.editor-main,.editor-side{display:flex;flex-direction:column;gap:8px}.editor-side{padding-left:28px;border-left:1px solid var(--line)}.image-preview{overflow:hidden;aspect-ratio:4/3;border-radius:13px;background:var(--cream)}.image-preview img{width:100%;height:100%;object-fit:cover}.switch-row{display:flex;align-items:center;gap:9px;margin:10px 0}.switch-row input{width:18px;min-height:18px}.order-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:25px;align-items:start}.order-totals{max-width:350px;margin:22px 0 0 auto}.order-totals div{display:flex;justify-content:space-between;padding:7px 0}.order-totals div:last-child{margin-top:5px;padding-top:14px;border-top:1px solid var(--line);font-size:18px}.order-sidebar hr{margin:28px 0;border:0;border-top:1px solid var(--line)}.info-list{display:grid;grid-template-columns:80px 1fr;gap:9px 15px;margin:0}.info-list dt{color:var(--muted)}.info-list dd{margin:0;word-break:break-word}@media(max-width:900px){.hero-grid,.product-detail{grid-template-columns:1fr}.hero-card{min-height:340px}.product-grid{grid-template-columns:repeat(2,1fr)}.cart-layout,.checkout-layout,.order-detail-grid{grid-template-columns:1fr}.summary-card{position:static}.stats-grid{grid-template-columns:repeat(2,1fr)}.product-editor{grid-template-columns:1fr}.editor-side{padding-left:0;border-left:0;border-top:1px solid var(--line);padding-top:22px}.admin-nav{gap:13px;font-size:13px}}@media(max-width:650px){.container{width:min(100% - 26px,1160px)}.nav-wrap{min-height:64px}.brand{font-size:17px}.brand-mark{width:32px;height:32px}.main-nav{gap:13px;font-size:14px}.hero{padding:48px 0}.hero-grid{gap:35px}.hero h1{font-size:43px}.hero-card{min-height:300px}.object-one{width:165px;height:165px;left:25px}.object-two{width:90px;height:170px;left:160px;top:120px}.shop-section,.page-section{padding:50px 0}.section-heading,.admin-title{align-items:flex-start}.section-heading h1,.section-heading h2,.admin-title h1{font-size:32px}.filter-bar{align-items:stretch;flex-direction:column}.product-grid{grid-template-columns:1fr}.service-grid{grid-template-columns:1fr;gap:18px}.service-grid div{padding-bottom:18px;border-right:0;border-bottom:1px solid rgba(255,255,255,.22)}.footer-grid{flex-direction:column}.footer-links{align-items:flex-start}.product-detail{gap:30px;padding:35px 0 60px}.detail-content h1{font-size:38px}.buy-form{grid-template-columns:90px 1fr}.cart-item{grid-template-columns:78px 1fr 35px;gap:12px}.cart-item img{width:78px;height:72px}.qty-label{grid-column:2}.line-total{grid-column:2;text-align:left}.icon-button{grid-column:3;grid-row:1}.form-grid.two{grid-template-columns:1fr}.form-grid.two label{grid-row:auto}.stats-grid{grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:18px}.stat-card strong{font-size:22px}.admin-header .nav-wrap{align-items:flex-start;flex-direction:column;padding:14px 0}.admin-nav{width:100%;overflow-x:auto;padding-bottom:3px}.admin-title{flex-direction:column}.product-editor{padding:18px}.order-detail-grid .card{padding:18px}}
.button-row{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.payment-box{width:min(560px,100%);margin:24px auto;padding:20px;text-align:left;border:1px solid #cfe0d4;border-radius:16px;background:#f0f7f2}.payment-box h2,.payment-box h3{margin:0 0 10px}.payment-box p{margin:0;color:var(--ink);white-space:normal}.payment-box small{display:block;margin-top:10px;color:var(--muted)}.lookup-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:28px;align-items:start}.lookup-form{position:sticky;top:98px}.lookup-result{margin-top:0}.status-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.status-head h2{margin:3px 0 0;word-break:break-all}.status-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}.status-summary-grid>div{display:flex;flex-direction:column;gap:5px;padding:14px;border-radius:12px;background:var(--cream)}.status-summary-grid span{color:var(--muted);font-size:13px}.status-note,.tracking-box{margin:18px 0;padding:16px;border-left:4px solid var(--green);border-radius:0 12px 12px 0;background:#f3f7f4}.status-note p{margin:5px 0 0}.tracking-box{display:flex;flex-direction:column;gap:4px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.settings-grid>.full-width{grid-column:1/-1}.settings-actions{grid-column:1/-1;display:flex;justify-content:flex-end}.toggle-row{display:flex!important;align-items:center;gap:10px}.toggle-row input{min-height:auto}.credential-state{padding:12px 14px;border-radius:12px;font-weight:700}.credential-state.ready{color:#215d3d;background:#e6f3eb}.credential-state.missing{color:#893732;background:#f9e9e7}code{padding:2px 6px;border-radius:6px;background:var(--cream)}@media(max-width:900px){.lookup-layout{grid-template-columns:1fr}.lookup-form{position:static}.status-summary-grid{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:1fr}.settings-grid>.full-width,.settings-actions{grid-column:auto}}@media(max-width:650px){.main-nav{gap:10px;font-size:13px}.status-summary-grid{grid-template-columns:1fr}.status-head{align-items:flex-start;flex-direction:column}.button-row{flex-direction:column}.button-row .button{width:100%}}


.is-hidden{display:none!important}
.radio-card.is-disabled{opacity:.45;cursor:not-allowed;background:#f5f5f3}
.conditional-panel{display:flex;flex-direction:column;gap:9px;margin:4px 0 14px;padding:18px;border:1px solid #cfe0d4;border-radius:16px;background:#f5faf7}
.conditional-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:5px}
.conditional-panel-head>div{display:flex;flex-direction:column;gap:4px}
.conditional-panel-head small,.myship-note{color:var(--muted)}
.myship-note{margin:8px 0 0;line-height:1.7}
.pickup-info-box{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin:18px 0}
.pickup-info-box>div{display:flex;flex-direction:column;gap:5px;padding:16px;border-radius:12px;background:#f3f7f4}
.pickup-info-box span{color:var(--muted);font-size:13px}
.pickup-info-box small{color:var(--muted);line-height:1.5}
.admin-title-actions{display:flex;gap:10px;flex-wrap:wrap}
.myship-admin-note{margin-bottom:22px}
.myship-admin-note p{line-height:1.75}
.settings-grid>.full-width{grid-column:1/-1}
@media(max-width:650px){
  .conditional-panel-head{flex-direction:column}
  .pickup-info-box{grid-template-columns:1fr}
  .admin-title-actions{width:100%;flex-direction:column}
  .admin-title-actions .button{width:100%}
}

/* Checkout and order status */
.fixed-option{cursor:default;background:#f5faf7;border-color:#cfe0d4}
.store-selected{display:flex;flex-direction:column;gap:5px;margin:8px 0 14px;padding:16px;border:1px solid #cfe0d4;border-radius:14px;background:#f5faf7}
.store-selected span,.store-selected small{color:var(--muted)}
.narrow-section{width:min(820px,calc(100% - 40px));margin-inline:auto}
.success-mark{display:grid;place-items:center;width:76px;height:76px;margin:0 auto 22px;border-radius:50%;color:#fff;background:var(--green);font-size:36px;font-weight:800}
.section-heading.centered{display:block;text-align:center}
.order-success-card{margin-top:26px;text-align:left}
.status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.status-grid>div{display:flex;flex-direction:column;gap:4px;padding:15px;border-radius:12px;background:var(--cream)}
.status-grid span{color:var(--muted);font-size:13px}
.order-summary{display:flex;flex-direction:column;gap:10px;margin-top:20px}
.summary-item{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid var(--line)}
.summary-item:last-child{border-bottom:0}
@media(max-width:650px){.status-grid{grid-template-columns:1fr}.narrow-section{width:min(100% - 28px,820px)}}



/* Product categories */
.product-admin-filter{max-width:900px}
.product-admin-filter select{min-width:180px}
.label-with-link{display:flex;align-items:center;justify-content:space-between;gap:14px}
.label-with-link label{margin:0}
.plain-button{border:0;background:transparent;cursor:pointer;padding:0}
.link-button.neutral{color:var(--green)}
.category-create-card{margin-bottom:22px}
.category-create-form{display:grid;grid-template-columns:minmax(180px,1fr) minmax(240px,420px) auto;gap:16px;align-items:center}
.category-create-form>div{display:flex;flex-direction:column;gap:5px}
.category-create-form small{color:var(--muted)}
.inline-category-form input{min-width:220px}
.category-actions{min-width:245px}
@media(max-width:900px){.category-create-form{grid-template-columns:1fr}.category-create-form .button{width:100%}}
@media(max-width:650px){.product-admin-filter select{width:100%}.label-with-link{align-items:flex-start;flex-direction:column;gap:4px}.inline-category-form input{min-width:170px}.category-actions{min-width:220px}}

.map-query-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.map-query-actions .text-link{padding:8px 4px;white-space:nowrap}@media(max-width:650px){.conditional-panel-head{align-items:stretch;flex-direction:column}.map-query-actions{align-items:stretch;justify-content:flex-start;flex-direction:column}.map-query-actions .button{width:100%}}

.order-contact-grid{grid-template-columns:1fr}

/* v7.0.6: order lookup by recipient name and mobile */
.lookup-form{position:static}.lookup-orders-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:34px 0 14px}.lookup-orders-heading h2{margin:0}.lookup-orders-heading p{margin:0;color:var(--muted)}.lookup-orders-list{display:grid;gap:22px}.lookup-result .admin-title small{display:block;margin-top:5px;color:var(--muted)}@media(max-width:650px){.lookup-orders-heading{align-items:flex-start;flex-direction:column;gap:6px}}




/* v7.1.0: simplified admin workflow and unified spacing */
.button.danger{color:#fff;background:var(--danger)}
.button.danger:hover{background:#963e39}

.admin-main{padding-top:40px;padding-bottom:76px}
.admin-title{margin-bottom:24px}
.admin-title .eyebrow{margin-bottom:7px}
.admin-title-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}

.admin-filter{
  max-width:none;
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:22px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 6px 20px rgba(35,47,39,.035);
}
.order-admin-filter{max-width:560px}
.product-admin-filter{max-width:900px}

.admin-table-card{padding:0;overflow-x:auto}
.admin-table-card th,.admin-table-card td{padding:15px 14px;vertical-align:middle}
.admin-table-card tbody tr{transition:background .16s ease}
.admin-table-card tbody tr:hover{background:#fafbf9}

.order-export-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:22px;
  padding:22px 24px;
}
.order-export-copy{min-width:0}
.order-export-copy .eyebrow{margin-bottom:5px}
.order-export-copy h2{margin:0 0 5px;font-size:22px}
.order-export-copy p{margin:0;color:var(--muted)}
.order-export-panel>.button{flex:0 0 auto}

.checkbox-cell{width:46px;text-align:center}
.checkbox-cell input{width:18px;height:18px;vertical-align:middle}
.row-actions{display:flex;align-items:center;gap:13px;white-space:nowrap}
.row-actions .link-button{line-height:1.5}

.admin-main .card h2{margin-bottom:18px}
.admin-main hr{margin:28px 0;border:0;border-top:1px solid var(--line)}
.order-sidebar .stack-form{gap:9px}
.order-sidebar .stack-form label{margin-top:8px}
.order-sidebar .muted{margin:10px 0 0;font-size:14px;line-height:1.7}

@media(max-width:720px){
  .admin-main{padding-top:30px;padding-bottom:58px}
  .admin-title{gap:16px;margin-bottom:20px}
  .admin-title-actions{width:100%;flex-direction:column;align-items:stretch}
  .admin-title-actions .button{width:100%}
  .admin-filter{align-items:stretch;flex-direction:column;padding:15px}
  .admin-filter .button{width:100%}
  .order-export-panel{align-items:stretch;flex-direction:column;padding:19px}
  .order-export-panel>.button{width:100%}
}

/* v7.1.3: fixed order lookup viewport and responsive order items */
html{
  scrollbar-gutter:stable;
  overflow-x:hidden;
}
body{
  min-width:320px;
  overflow-x:hidden;
}
.order-lookup-page{
  min-height:100vh;
  min-height:100svh;
  display:flex;
  flex-direction:column;
}
.order-lookup-page main{
  flex:1 0 auto;
  width:100%;
  min-width:0;
}
.order-lookup-page .site-footer{
  margin-top:auto;
}
.order-lookup-page .page-section,
.order-lookup-page .lookup-form,
.order-lookup-page .lookup-orders-list,
.order-lookup-page .lookup-result,
.order-lookup-page .table-wrap{
  min-width:0;
  max-width:100%;
}
.order-lookup-page .lookup-form{
  overflow:hidden;
}
.order-lookup-page .lookup-form input{
  width:100%;
  min-width:0;
}
.order-lookup-page .lookup-result .admin-title>div{
  min-width:0;
}
.order-lookup-page .lookup-result .admin-title h2{
  overflow-wrap:anywhere;
}
.order-lookup-page .table-wrap{
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}

@media(max-width:650px){
  .order-lookup-page .page-section{
    padding-top:42px;
    padding-bottom:50px;
  }
  .order-lookup-page .lookup-result{
    padding:18px;
    overflow:hidden;
  }
  .order-lookup-page .lookup-result .admin-title{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
  .order-lookup-page .lookup-result .table-wrap{
    overflow:visible;
  }
  .order-lookup-page .lookup-result table,
  .order-lookup-page .lookup-result tbody,
  .order-lookup-page .lookup-result tr,
  .order-lookup-page .lookup-result td{
    display:block;
    width:100%;
    white-space:normal;
  }
  .order-lookup-page .lookup-result thead{
    display:none;
  }
  .order-lookup-page .lookup-result tbody tr{
    padding:11px 0;
    border-bottom:1px solid var(--line);
  }
  .order-lookup-page .lookup-result tbody tr:last-child{
    border-bottom:0;
  }
  .order-lookup-page .lookup-result td{
    display:grid;
    grid-template-columns:72px minmax(0,1fr);
    gap:12px;
    padding:5px 0;
    border:0;
    text-align:right;
    overflow-wrap:anywhere;
  }
  .order-lookup-page .lookup-result td::before{
    content:attr(data-label);
    color:var(--muted);
    font-size:12px;
    font-weight:700;
    letter-spacing:.04em;
    text-align:left;
  }
  .order-lookup-page .order-totals{
    width:100%;
    max-width:none;
  }
}


/* v7.1.4: show only order results after a successful lookup */
.order-lookup-result-page .lookup-orders-heading{
  margin-top:0;
}


/* v7.1.6: product deletion and product management layout repair */
.product-admin-title{align-items:center}
.product-admin-filter{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(170px,230px) auto auto;
  width:100%;
  max-width:none;
}
.product-admin-filter input,
.product-admin-filter select{width:100%;min-width:0}
.product-filter-clear{white-space:nowrap;text-align:center}
.product-management-card{width:100%;max-width:100%}
.product-management-table{min-width:760px;table-layout:fixed}
.product-management-table th:nth-child(1){width:31%}
.product-management-table th:nth-child(2){width:16%}
.product-management-table th:nth-child(3){width:13%}
.product-management-table th:nth-child(4){width:9%}
.product-management-table th:nth-child(5){width:13%}
.product-management-table th:nth-child(6){width:18%}
.product-management-table td{white-space:normal;overflow-wrap:anywhere}
.product-management-table .product-name-cell{min-width:0}
.product-management-table .table-product{min-width:0}
.product-management-table .table-product img{flex:0 0 58px}
.product-management-table .table-product strong{min-width:0;line-height:1.45;overflow-wrap:anywhere}
.product-actions-cell{white-space:normal}
.product-row-actions{justify-content:flex-start;gap:12px;flex-wrap:wrap}
.inline-action-form{display:inline-flex;margin:0}
.link-button.neutral{color:var(--green)}
.product-editor-actions{display:grid;gap:10px;margin-top:4px}
.hidden-form{display:none!important}

@media(max-width:900px){
  .product-admin-filter{grid-template-columns:minmax(0,1fr) minmax(170px,220px) auto}
  .product-admin-filter .product-filter-clear{grid-column:1/-1;justify-self:start}
}

@media(max-width:720px){
  .product-admin-title{align-items:flex-start}
  .product-admin-filter{display:flex;flex-direction:column;gap:11px}
  .product-admin-filter .product-filter-clear{width:100%;padding:5px 0}
  .product-management-card{
    padding:0;
    overflow:visible;
    border:0;
    background:transparent;
    box-shadow:none;
  }
  .product-management-table,
  .product-management-table tbody,
  .product-management-table tr,
  .product-management-table td{display:block;width:100%;min-width:0}
  .product-management-table{min-width:0;table-layout:auto}
  .product-management-table thead{display:none}
  .product-management-table tbody{display:grid;gap:14px}
  .product-management-table tbody tr{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    overflow:hidden;
    padding:16px;
    border:1px solid var(--line);
    border-radius:16px;
    background:#fff;
    box-shadow:0 6px 20px rgba(35,47,39,.035);
  }
  .product-management-table tbody tr:hover{background:#fff}
  .product-management-table td{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:9px 0;
    border:0;
    white-space:normal;
    text-align:right;
  }
  .product-management-table td::before{
    content:attr(data-label);
    flex:0 0 auto;
    color:var(--muted);
    font-size:12px;
    font-weight:750;
    letter-spacing:.04em;
  }
  .product-management-table .product-name-cell{
    grid-column:1/-1;
    display:block;
    padding:0 0 14px;
    margin-bottom:5px;
    border-bottom:1px solid var(--line);
    text-align:left;
  }
  .product-management-table .product-name-cell::before{display:none}
  .product-management-table .table-product{gap:13px}
  .product-management-table .table-product img{width:64px;height:54px;flex-basis:64px}
  .product-management-table .product-actions-cell{
    grid-column:1/-1;
    align-items:flex-start;
    padding:13px 0 0;
    margin-top:5px;
    border-top:1px solid var(--line);
  }
  .product-management-table .product-actions-cell::before{padding-top:2px}
  .product-row-actions{justify-content:flex-end;gap:16px}
  .product-empty-row{display:block!important;padding:0!important}
  .product-empty-row .table-empty{display:block;padding:34px 18px;text-align:center}
  .product-empty-row .table-empty::before{display:none}
}

@media(max-width:430px){
  .product-management-table tbody tr{grid-template-columns:1fr;padding:15px}
  .product-management-table td{grid-column:1/-1}
  .product-management-table .product-actions-cell{align-items:flex-start;flex-direction:column;text-align:left}
  .product-row-actions{width:100%;justify-content:flex-start}
}
