*{box-sizing:border-box}
.cse-product-thumb{width:52px;height:52px;border-radius:12px;overflow:hidden;background:#f4f1ea;display:grid;place-items:center;flex:0 0 52px;color:#94a3b8}
.cse-product-thumb img{width:100%;height:100%;object-fit:cover}
.cse-template-option{cursor:pointer;transition:.18s ease;border:2px solid transparent!important}
.cse-template-option:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(15,23,42,.09)}
.cse-template-option.is-selected{border-color:#314d72!important;box-shadow:0 0 0 3px rgba(49,77,114,.1)}
.cse-template-thumb{height:180px;padding:18px;background:#f8fafc}
.cse-template-mini-hero{height:58px;border-radius:12px;background:linear-gradient(135deg,#243247,#66758c)}
.cse-template-mini-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}
.cse-template-mini-grid span{height:70px;border-radius:10px;background:#fff;border:1px solid #e5e7eb}
.cse-template-thumb-editorial .cse-template-mini-hero{height:88px;border-radius:0;background:linear-gradient(135deg,#8b6b52,#d1b79d)}
.cse-template-thumb-editorial .cse-template-mini-grid{grid-template-columns:repeat(3,1fr)}
.cse-template-thumb-compact .cse-template-mini-hero{height:42px;background:#334155}
.cse-template-thumb-compact .cse-template-mini-grid{grid-template-columns:repeat(5,1fr);gap:5px}
.cse-template-thumb-compact .cse-template-mini-grid span{height:76px;border-radius:6px}

.cse-storefront{margin:0;background:var(--cse-bg,#f7f5f1);color:var(--cse-text,#1e293b);font-family:var(--cse-font,Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif)}
.cse-storefront button,.cse-storefront input{font:inherit}
.cse-shop-header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,5vw,72px);background:var(--cse-surface,#fff);border-bottom:1px solid #e8e5df;position:sticky;top:0;z-index:20}
.cse-shop-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.cse-shop-brand img{width:44px;height:44px;object-fit:contain;border-radius:10px}
.cse-shop-brand-mark{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:#1f2937;color:#fff;font-weight:900}
.cse-shop-brand strong,.cse-shop-brand small{display:block}
.cse-shop-brand small{margin-top:2px;color:#64748b;font-size:12px}
.cse-shop-head-actions{display:flex;gap:8px}
.cse-shop-head-actions button{border:1px solid #d8dbe0;background:#fff;border-radius:999px;padding:9px 14px;font-weight:700;color:#334155}
.cse-shop-hero{max-width:1440px;margin:0 auto;padding:clamp(36px,6vw,88px) clamp(20px,5vw,72px);display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:40px;align-items:center}
.cse-shop-kicker{display:inline-block;color:var(--cse-accent);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.12em}
.cse-shop-hero h1{max-width:780px;margin:12px 0 16px;font-family:var(--cse-heading-font,Georgia,"Times New Roman",serif);font-size:clamp(42px,6vw,76px);line-height:.98;letter-spacing:-.04em;color:var(--cse-primary,#172033)}
.cse-shop-hero p{max-width:700px;margin:0 0 28px;color:#64748b;font-size:18px;line-height:1.7}
.cse-shop-hero a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:var(--cse-button-radius,999px);background:var(--cse-accent);color:#fff;text-decoration:none;font-weight:800}
.cse-shop-hero-art{min-height:340px;border-radius:36px;background:radial-gradient(circle at 30% 20%,rgba(255,255,255,.9),rgba(255,255,255,.15) 30%,transparent 31%),linear-gradient(135deg,#e9ddcf,#c89c72);display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 30px 70px rgba(30,41,59,.12);transform:rotate(2deg)}
.cse-shop-hero-art span{font-family:var(--cse-heading-font,Georgia,serif);font-size:34px}
.cse-shop-hero-art strong{font-family:var(--cse-heading-font,Georgia,serif);font-size:64px;line-height:.9}
.cse-shop-tools{max-width:1440px;margin:0 auto;padding:0 clamp(20px,5vw,72px) 30px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.cse-shop-search{flex:1 1 320px;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e1ded8;border-radius:999px;padding:0 16px;height:48px}
.cse-shop-search input{border:0;outline:0;width:100%;background:transparent}
.cse-shop-chips{display:flex;gap:8px;flex-wrap:wrap}
.cse-shop-chips button{border:1px solid #ddd8d0;background:#fff;border-radius:999px;padding:10px 14px;font-weight:700}
.cse-shop-catalogue{max-width:1440px;margin:0 auto;padding:20px clamp(20px,5vw,72px) 80px}
.cse-shop-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}
.cse-shop-section-head h2{margin:7px 0 0;font-size:32px;color:#172033}
.cse-shop-section-head>span{color:#64748b;font-size:13px}
.cse-shop-grid{display:grid;grid-template-columns:repeat(var(--cse-cols),minmax(0,1fr));gap:18px}
.cse-shop-card{background:var(--cse-surface,#fff);border:1px solid #ebe7e0;border-radius:var(--cse-card-radius,22px);overflow:hidden;box-shadow:0 8px 24px rgba(30,41,59,.04);transition:.18s ease}
.cse-shop-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(30,41,59,.09)}
.cse-shop-card-image{position:relative;aspect-ratio:1/1;background:#f1ede7;overflow:hidden}
.cse-shop-card-image img{width:100%;height:100%;object-fit:cover}
.cse-shop-placeholder{width:100%;height:100%;display:grid;place-items:center;color:#a18e7c;font-family:Georgia,serif;font-size:20px;background:linear-gradient(145deg,#f5efe8,#e8ddd0)}
.cse-shop-badge{position:absolute;top:12px;left:12px;background:#fff;color:#2f6b3b;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:900;box-shadow:0 4px 15px rgba(0,0,0,.08)}
.cse-shop-card-body{padding:18px}
.cse-shop-card-meta{color:var(--cse-accent);font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:900}
.cse-shop-card h3{margin:8px 0 7px;font-size:19px;color:#172033}
.cse-shop-card p{margin:0 0 16px;color:#64748b;font-size:13px;line-height:1.55}
.cse-shop-card button{width:100%;height:42px;border:0;border-radius:11px;background:var(--cse-primary,#172033);color:#fff;font-weight:800}
.cse-shop-footer{display:flex;justify-content:space-between;gap:20px;padding:28px clamp(20px,5vw,72px);background:var(--cse-primary,#172033);color:#fff}
.cse-shop-footer strong,.cse-shop-footer span{display:block}
.cse-shop-footer span{opacity:.68;font-size:12px;margin-top:4px}

.cse-template-editorial{background:#faf7f3}
.cse-template-editorial .cse-shop-hero{max-width:none;background:#efe4d8;padding-top:80px;padding-bottom:80px}
.cse-template-editorial .cse-shop-hero-art{border-radius:0;transform:none;background:linear-gradient(145deg,#cda984,#8f6a4e);color:#fff}
.cse-template-editorial .cse-shop-card{border-radius:8px;box-shadow:none}
.cse-template-editorial .cse-shop-card-image{aspect-ratio:4/5}
.cse-template-editorial .cse-shop-card button{background:var(--cse-accent)}

.cse-template-compact{background:#f8fafc}
.cse-template-compact .cse-shop-header{height:64px}
.cse-template-compact .cse-shop-hero{padding-top:34px;padding-bottom:34px;grid-template-columns:1fr}
.cse-template-compact .cse-shop-hero h1{font-family:inherit;font-size:clamp(32px,5vw,52px)}
.cse-template-compact .cse-shop-hero-art{display:none}
.cse-template-compact .cse-shop-card{border-radius:12px;box-shadow:none}
.cse-template-compact .cse-shop-card-image{aspect-ratio:4/3}
.cse-template-compact .cse-shop-card-body{padding:13px}
.cse-template-compact .cse-shop-card p{display:none}
.cse-template-compact .cse-shop-card button{height:36px;font-size:13px}

@media(max-width:1100px){.cse-shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){
  .cse-shop-header{height:auto;min-height:72px;padding:12px 18px}
  .cse-shop-brand small{display:none}
  .cse-shop-head-actions button:first-child{display:none}
  .cse-shop-hero{grid-template-columns:1fr;padding-top:34px}
  .cse-shop-hero-art{min-height:230px}
  .cse-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cse-shop-footer{flex-direction:column}
}
@media(max-width:520px){
  .cse-shop-head-actions button{padding:8px 11px;font-size:13px}
  .cse-shop-hero h1{font-size:40px}
  .cse-shop-hero p{font-size:15px}
  .cse-shop-hero-art{display:none}
  .cse-shop-grid{grid-template-columns:1fr}
  .cse-shop-section-head{align-items:start;flex-direction:column}
}

.cse-shop-hero-art img{width:100%;height:100%;object-fit:cover;border-radius:inherit}


.cse-access-shell,.cse-error-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:var(--cse-bg,#f7f5f1)}
.cse-access-card,.cse-error-card{width:min(100%,520px);background:var(--cse-surface,#fff);border:1px solid #e8e5df;border-radius:24px;padding:32px;box-shadow:0 24px 70px rgba(30,41,59,.10)}
.cse-access-card h1,.cse-error-card h1{margin:10px 0 12px;font-size:34px;color:var(--cse-primary,#172033)}
.cse-access-card p,.cse-error-card p{color:#64748b;line-height:1.6}
.cse-access-card label{display:block;font-weight:800;margin:22px 0 8px}
.cse-access-card input{width:100%;height:48px;border:1px solid #d8dbe0;border-radius:12px;padding:0 14px;background:#fff}
.cse-access-card button{width:100%;height:48px;margin-top:14px;border:0;border-radius:12px;background:var(--cse-primary,#172033);color:#fff;font-weight:800;cursor:pointer}
.cse-alert{padding:12px 14px;border-radius:12px;background:#fff1f2;color:#9f1239;font-size:14px;margin-top:16px}
.cse-empty{padding:36px;border:1px dashed #d8dbe0;border-radius:18px;text-align:center;color:#64748b;background:var(--cse-surface,#fff)}
[hidden]{display:none!important}


/* Commerce V1 */
.cse-shop-head-actions a{display:inline-flex;align-items:center;text-decoration:none;border:1px solid #d8dbe0;background:#fff;border-radius:999px;padding:9px 14px;font-weight:700;color:#334155}
.cse-product-link{display:flex;align-items:center;justify-content:center;width:100%;height:42px;border-radius:11px;background:var(--cse-primary,#172033);color:#fff;text-decoration:none;font-weight:800}
.cse-product-page,.cse-account-main{width:min(1180px,calc(100% - 40px));margin:0 auto}
.cse-product-page{padding:34px 0 80px}.cse-back{color:#64748b;text-decoration:none;font-weight:700}
.cse-product-layout{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);gap:54px;margin-top:26px;align-items:start}
.cse-product-image{aspect-ratio:1/1;border-radius:28px;overflow:hidden;background:#f1ede7}.cse-product-image img{width:100%;height:100%;object-fit:cover}
.cse-product-info h1{font-size:clamp(36px,5vw,62px);line-height:1;margin:12px 0 18px;color:var(--cse-primary,#172033)}
.cse-product-price{font-size:30px;font-weight:900}.cse-product-discount{margin-top:5px;color:#15803d;font-weight:700}
.cse-product-copy{padding-top:22px;margin-top:22px;border-top:1px solid #e5e7eb}.cse-product-copy h2,.cse-product-formats h2{font-size:16px}.cse-product-copy p{line-height:1.7;color:#475569}
.cse-product-formats{margin-top:22px}.cse-product-formats>div{display:flex;flex-wrap:wrap;gap:8px}.cse-product-formats span{padding:8px 11px;border-radius:999px;background:#fff;border:1px solid #ddd8d0;font-size:13px}
.cse-add-form{display:flex;gap:10px;margin-top:28px}.cse-add-form input{width:76px;height:48px;border:1px solid #d1d5db;border-radius:12px;padding:0 10px}.cse-add-form button{flex:1;border:0;border-radius:var(--cse-button-radius,12px);background:var(--cse-primary,#172033);color:#fff;font-weight:900}.cse-add-form button:disabled{opacity:.45}
.cse-auth-shell{min-height:100vh;display:grid;place-items:center;padding:26px;background:var(--cse-bg,#f7f5f1)}
.cse-auth-card,.cse-panel{background:#fff;border:1px solid #e7e5e4;border-radius:22px;padding:28px;box-shadow:0 18px 45px rgba(15,23,42,.07)}
.cse-auth-card{width:min(100%,540px)}.cse-auth-card h1{font-size:36px;margin:10px 0}.cse-auth-card p,.muted{color:#64748b}
.cse-auth-card label,.cse-panel label{display:block;font-weight:800;font-size:13px;margin:14px 0 7px}
.cse-auth-card input,.cse-panel input,.cse-panel textarea{width:100%;border:1px solid #d1d5db;border-radius:11px;min-height:46px;padding:10px 12px;background:#fff}
.cse-auth-card button,.cse-panel button{width:100%;min-height:46px;border:0;border-radius:11px;background:var(--cse-primary,#172033);color:#fff;font-weight:900;margin-top:16px}
.cse-auth-card>a{display:block;text-align:center;margin-top:16px;color:#475569}.cse-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cse-account-shell{padding:36px 0 80px}.cse-page-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:22px}.cse-page-head h1{margin:5px 0 0;font-size:40px}.cse-page-head a{color:#475569}
.cse-account-grid,.cse-checkout-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.cse-panel h2{margin-top:0}
.cse-success{padding:13px 15px;border-radius:12px;background:#ecfdf5;color:#166534;margin-bottom:18px}
.cse-order-list{display:grid;gap:9px}.cse-order-list a{display:flex;justify-content:space-between;gap:12px;padding:13px;border:1px solid #e5e7eb;border-radius:12px;text-decoration:none;color:inherit}.cse-order-list span{color:#64748b;font-size:13px}
.cse-cart-list{display:grid;gap:10px}.cse-cart-row{display:grid;grid-template-columns:64px minmax(0,1fr) 90px 120px;gap:14px;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:12px}.cse-cart-thumb{width:64px;height:64px;border-radius:12px;overflow:hidden;background:#f1ede7}.cse-cart-thumb img{width:100%;height:100%;object-fit:cover}.cse-cart-row small{display:block;color:#94a3b8;margin-top:4px}.cse-cart-row input{height:42px;border:1px solid #d1d5db;border-radius:10px;padding:0 8px}.cse-cart-price{text-align:right;font-weight:900}
.cse-cart-summary{margin-top:18px;margin-left:auto;width:min(100%,380px);background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:20px}.cse-cart-summary>div{display:flex;justify-content:space-between;font-size:18px}.cse-cart-summary button,.cse-primary-link{display:flex;justify-content:center;align-items:center;width:100%;min-height:45px;margin-top:10px;border-radius:11px;text-decoration:none;font-weight:900}.cse-cart-summary button{border:1px solid #d1d5db;background:#fff}.cse-primary-link{background:var(--cse-primary,#172033);color:#fff}
.cse-summary-line,.cse-summary-total,.cse-order-meta{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #eee}.cse-summary-total{font-size:20px;border-bottom:0;margin-top:8px}.cse-order-meta{flex-wrap:wrap}.cse-payment-placeholder{margin-top:22px;padding:18px;border-radius:14px;background:#fff7ed;color:#9a3412}
@media(max-width:800px){.cse-product-layout,.cse-account-grid,.cse-checkout-grid{grid-template-columns:1fr}.cse-cart-row{grid-template-columns:52px minmax(0,1fr) 76px}.cse-cart-price{grid-column:2/4}.cse-form-grid{grid-template-columns:1fr}.cse-product-page,.cse-account-main{width:min(100% - 24px,1180px)}}


/* Rich product page */
.cse-product-detail-page{background:var(--cse-bg,#f7f5f1);color:var(--cse-text,#172033);font-family:var(--cse-font,Arial,sans-serif)}
.cse-product-detail-page h1,.cse-product-detail-page h2{font-family:var(--cse-heading-font,var(--cse-font,Arial,sans-serif))}
.cse-product-breadcrumb{display:flex;align-items:center;gap:9px;color:#7c8796;font-size:14px;margin:22px 0 24px}
.cse-product-breadcrumb a{color:inherit;text-decoration:none;font-weight:700}
.cse-product-hero{display:grid;grid-template-columns:minmax(320px,.95fr) minmax(0,1.05fr);gap:56px;align-items:start}
.cse-product-gallery{position:sticky;top:22px}
.cse-product-image{position:relative;aspect-ratio:1/1;border-radius:calc(var(--cse-card-radius,16px) + 10px);overflow:hidden;background:var(--cse-surface,#fff);border:1px solid rgba(15,23,42,.08)}
.cse-product-image img{width:100%;height:100%;object-fit:cover}
.cse-product-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.cse-product-badge{display:inline-flex;align-items:center;min-height:32px;padding:0 11px;border-radius:999px;background:var(--cse-surface,#fff);border:1px solid rgba(15,23,42,.1);font-size:12px;font-weight:900;letter-spacing:.03em}
.cse-product-badge--bio{background:#eef8ef;color:#216b31;border-color:#cce8d0}
.cse-product-info{padding:10px 0}
.cse-product-info h1{font-size:clamp(42px,5.4vw,72px);line-height:.98;letter-spacing:-.045em;margin:12px 0 18px;color:var(--cse-primary,#172033)}
.cse-product-lead{font-size:20px;line-height:1.55;color:#566171;max-width:700px;margin:0 0 26px}
.cse-product-buybox{background:var(--cse-surface,#fff);border:1px solid rgba(15,23,42,.08);border-radius:calc(var(--cse-card-radius,16px) + 6px);padding:24px;box-shadow:0 20px 50px rgba(15,23,42,.06)}
.cse-product-price{font-size:34px;font-weight:950;letter-spacing:-.03em;color:var(--cse-primary,#172033)}
.cse-product-discount{margin-top:4px;font-size:13px;font-weight:800;color:#138044}
.cse-format-block{margin-top:20px;padding-top:18px;border-top:1px solid #eceff2}
.cse-format-label{display:block;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#7b8490;margin-bottom:9px}
.cse-format-list{display:flex;flex-wrap:wrap;gap:8px}
.cse-format-pill{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border-radius:999px;background:color-mix(in srgb,var(--cse-accent,#B8763E) 10%,#fff);border:1px solid color-mix(in srgb,var(--cse-accent,#B8763E) 28%,#fff);font-weight:800;font-size:13px}
.cse-add-form{display:grid;grid-template-columns:110px 1fr;gap:12px;margin-top:20px}
.cse-add-form label>span{display:block;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#7b8490;margin-bottom:7px}
.cse-add-form input{width:100%;height:50px;border:1px solid #d8dde4;border-radius:var(--cse-button-radius,10px);padding:0 12px;background:#fff}
.cse-add-form button{align-self:end;height:50px;border:0;border-radius:var(--cse-button-radius,10px);background:var(--cse-primary,#172033);color:#fff;font-weight:900;font-size:15px;cursor:pointer}
.cse-add-form button:not(:disabled):hover{filter:brightness(.96)}
.cse-product-quickfacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.cse-product-quickfacts>div{background:color-mix(in srgb,var(--cse-surface,#fff) 84%,transparent);border:1px solid rgba(15,23,42,.07);border-radius:var(--cse-card-radius,16px);padding:14px}
.cse-product-quickfacts span,.cse-origin-list span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#84909d;font-weight:900;margin-bottom:5px}
.cse-product-quickfacts strong,.cse-origin-list strong{display:block;font-size:14px;line-height:1.35}
.cse-product-content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:54px 0 90px}
.cse-product-content-card{position:relative;display:grid;grid-template-columns:54px 1fr;gap:18px;background:var(--cse-surface,#fff);border:1px solid rgba(15,23,42,.08);border-radius:calc(var(--cse-card-radius,16px) + 4px);padding:26px;min-height:220px}
.cse-product-content-card--wide{grid-column:1/-1}
.cse-content-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--cse-accent,#B8763E) 13%,#fff);color:var(--cse-primary,#172033);font-size:12px;font-weight:950;letter-spacing:.05em}
.cse-product-content-card h2{font-size:28px;letter-spacing:-.025em;margin:6px 0 12px;color:var(--cse-primary,#172033)}
.cse-product-content-card p{font-size:16px;line-height:1.72;color:#4e5b69;margin:0}
.cse-product-recipe-card{background:linear-gradient(145deg,var(--cse-surface,#fff),color-mix(in srgb,var(--cse-accent,#B8763E) 7%,#fff))}
.cse-origin-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.cse-origin-list>div{border:1px solid #e7ebef;border-radius:14px;padding:14px;background:#fff}
@media(max-width:900px){
  .cse-product-hero{grid-template-columns:1fr;gap:24px}
  .cse-product-gallery{position:static}
  .cse-product-info h1{font-size:46px}
  .cse-product-quickfacts,.cse-origin-list{grid-template-columns:1fr}
}
@media(max-width:680px){
  .cse-product-page{width:min(100% - 22px,1180px);padding-top:10px}
  .cse-product-info h1{font-size:39px}
  .cse-product-lead{font-size:17px}
  .cse-product-content-grid{grid-template-columns:1fr;margin-top:34px}
  .cse-product-content-card,.cse-product-content-card--wide{grid-column:auto;grid-template-columns:1fr;min-height:auto;padding:20px}
  .cse-add-form{grid-template-columns:92px 1fr}
}
