/*
  Sunny Shop Engine - frontend styles
  Edit brand colours here if needed.
*/
:root{
  --sunny-orange:#f28c28;
  --sunny-orange-dark:#c76409;
  --sunny-ink:#1f2933;
  --sunny-muted:#667085;
  --sunny-border:#e6e8ec;
  --sunny-soft:#fff8ef;
  --sunny-bg:#faf7f2;
  --sunny-card:#ffffff;
  --sunny-shadow:0 20px 50px rgba(31,41,51,.10);
  --sunny-radius:24px;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,"Noto Sans",sans-serif;
  color:var(--sunny-ink);
  background:linear-gradient(180deg,#fffaf3 0%,#f8f2ea 36%,#fff 100%);
}
a{color:inherit}
button,input,select,textarea{font:inherit}
.sunny-shell{max-width:1380px;margin:0 auto;padding:22px clamp(14px,3vw,34px) 56px}
.sunny-topbar{
  position:sticky;top:0;z-index:40;
  backdrop-filter:blur(18px);
  background:rgba(255,250,243,.82);
  border-bottom:1px solid rgba(230,232,236,.85);
}
.sunny-topbar-inner{max-width:1380px;margin:0 auto;padding:12px clamp(14px,3vw,34px);display:flex;align-items:center;justify-content:space-between;gap:16px}
.sunny-brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.sunny-logo-dot{width:42px;height:42px;border-radius:15px;background:linear-gradient(135deg,var(--sunny-orange),#ffbf69);box-shadow:0 8px 20px rgba(242,140,40,.28);display:grid;place-items:center;color:white;font-weight:900;letter-spacing:.03em}
.sunny-brand-text{line-height:1.1;font-weight:900;letter-spacing:.02em}
.sunny-brand-text span{display:block;color:var(--sunny-muted);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-top:3px}
.sunny-top-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.sunny-pill{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--sunny-border);background:#fff;border-radius:999px;padding:10px 14px;text-decoration:none;font-weight:800;font-size:14px;box-shadow:0 6px 18px rgba(31,41,51,.05)}
.sunny-pill.orange{background:var(--sunny-orange);border-color:var(--sunny-orange);color:#fff}
.sunny-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:26px;align-items:start;margin-top:26px}
.sunny-card{background:var(--sunny-card);border:1px solid var(--sunny-border);border-radius:var(--sunny-radius);box-shadow:var(--sunny-shadow);overflow:hidden}
.gallery-card{padding:16px}
.main-image-wrap{position:relative;background:#f3f4f6;border-radius:20px;overflow:hidden;min-height:480px;display:grid;place-items:center}
.main-image-wrap img{width:100%;height:100%;max-height:660px;object-fit:cover;display:block}
.image-note{position:absolute;left:16px;bottom:16px;background:rgba(255,255,255,.88);backdrop-filter:blur(8px);padding:8px 12px;border-radius:999px;font-size:12px;font-weight:800;color:#475467;border:1px solid rgba(230,232,236,.8)}
.thumb-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:10px;margin-top:12px}
.thumb{border:2px solid transparent;border-radius:14px;overflow:hidden;background:#f3f4f6;cursor:pointer;aspect-ratio:1/1;padding:0}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb.is-active{border-color:var(--sunny-orange)}
.product-card{padding:28px;position:sticky;top:80px}
.product-badge{display:inline-flex;align-items:center;gap:8px;background:#fff1df;color:var(--sunny-orange-dark);border:1px solid #ffdcb0;border-radius:999px;padding:8px 12px;font-weight:900;font-size:13px;margin-bottom:14px}
.product-title{font-size:clamp(31px,4vw,54px);line-height:.98;margin:0 0 12px;letter-spacing:-.055em}
.product-ref{color:#98a2b3;font-size:13px;font-weight:800;margin:0 0 12px}
.product-intro{font-size:17px;line-height:1.58;color:#475467;margin:0 0 20px}
.product-points{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}
.product-point{display:flex;gap:9px;align-items:flex-start;background:#fafafa;border:1px solid var(--sunny-border);border-radius:16px;padding:12px;font-weight:760;font-size:14px;color:#344054}
.check-dot{width:20px;height:20px;border-radius:50%;background:#ecfdf3;color:#079455;display:grid;place-items:center;flex:0 0 auto;font-weight:900;font-size:12px}
.product-not-price{background:linear-gradient(135deg,#fff7ed,#fff);border:1px solid #ffdcb0;border-radius:18px;padding:14px 16px;margin-top:18px}
.product-not-price strong{display:block;color:#9a4b03;font-size:14px;margin-bottom:4px}
.product-not-price p{margin:0;color:#7a4a19;font-size:14px;line-height:1.45}
.sunny-section-grid{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:26px;margin-top:26px;align-items:start}
.config-card{padding:24px;margin-bottom:18px}
.step-title{display:flex;gap:12px;align-items:center;margin:0 0 16px}
.step-num{width:32px;height:32px;border-radius:11px;background:var(--sunny-orange);color:#fff;font-weight:900;display:grid;place-items:center;flex:0 0 auto}
.step-title h2{font-size:22px;margin:0;letter-spacing:-.025em}
.step-help{color:var(--sunny-muted);line-height:1.5;margin:-6px 0 18px;font-size:14px}
.product-selector{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px;background:#f9fafb;border:1px solid var(--sunny-border);padding:12px;border-radius:18px}
.product-selector label{font-weight:900;color:#344054}
.product-selector select{border:1px solid var(--sunny-border);border-radius:12px;padding:10px 12px;background:#fff;min-width:260px;font-weight:750}
.fabric-groups{display:grid;gap:22px}
.collection-title{font-weight:950;margin:0 0 10px;color:#344054;display:flex;align-items:center;gap:9px}
.collection-title::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--sunny-orange)}
.fabric-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(156px,1fr));gap:12px}
.fabric-card{position:relative;border:1px solid var(--sunny-border);border-radius:18px;padding:13px;background:#fff;cursor:pointer;transition:.18s ease;min-height:108px;text-align:left;display:grid;gap:9px}
.fabric-card:hover{transform:translateY(-2px);box-shadow:0 15px 28px rgba(31,41,51,.08)}
.fabric-card.is-active{border-color:var(--sunny-orange);box-shadow:0 0 0 3px rgba(242,140,40,.16)}
.fabric-swatch{width:100%;height:42px;border-radius:12px;border:1px solid rgba(0,0,0,.08);background-size:cover;background-position:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}
.fabric-name{font-weight:900;font-size:14px;line-height:1.2}
.fabric-meta{font-size:12px;color:var(--sunny-muted);font-weight:760}
.form-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:12px}
.field{display:grid;gap:6px;grid-column:span 6}
.field.third{grid-column:span 4}.field.full{grid-column:1/-1}.field.quarter{grid-column:span 3}
.field label{font-size:13px;font-weight:900;color:#344054}
.field input,.field select,.field textarea{width:100%;border:1px solid var(--sunny-border);border-radius:14px;background:#fff;padding:12px 13px;color:#1f2933;outline:none;transition:.15s ease}
.field textarea{min-height:86px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--sunny-orange);box-shadow:0 0 0 3px rgba(242,140,40,.14)}
.mount-grid,.option-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.choice-card{border:1px solid var(--sunny-border);border-radius:18px;background:#fff;padding:16px;display:flex;gap:12px;align-items:flex-start;cursor:pointer;transition:.18s ease;position:relative;min-height:114px}
.choice-card:hover{transform:translateY(-2px);box-shadow:0 15px 28px rgba(31,41,51,.08)}
.choice-card input{margin-top:4px;accent-color:var(--sunny-orange)}
.choice-card.is-active{border-color:var(--sunny-orange);box-shadow:0 0 0 3px rgba(242,140,40,.14)}
.choice-card strong{display:block;margin-bottom:5px;font-size:15px}
.choice-card span{font-size:13px;color:var(--sunny-muted);line-height:1.45}
.option-group{margin-top:18px}
.option-group-title{font-weight:950;margin:0 0 10px;color:#344054}
.notice-box{border:1px solid #ffdcb0;background:#fff7ed;color:#7a4a19;border-radius:16px;padding:12px 14px;line-height:1.45;font-size:14px;margin-top:14px}
.summary-card{position:sticky;top:80px;padding:22px}
.summary-title{font-size:22px;margin:0 0 6px;letter-spacing:-.025em}
.summary-sub{color:var(--sunny-muted);font-size:14px;margin:0 0 18px;line-height:1.45}
.summary-list{display:grid;gap:10px;margin:0 0 18px}
.summary-row{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid #eef0f3;font-size:14px}
.summary-row span:first-child{color:#667085;font-weight:800}.summary-row span:last-child{text-align:right;font-weight:900;color:#1f2933}
.summary-actions{display:grid;gap:10px;margin-top:16px}
.sunny-btn{appearance:none;border:0;border-radius:16px;padding:14px 16px;font-weight:950;cursor:pointer;text-align:center;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s ease}
.sunny-btn:hover{transform:translateY(-1px)}
.sunny-btn.primary{background:var(--sunny-orange);color:#fff;box-shadow:0 12px 24px rgba(242,140,40,.25)}
.sunny-btn.dark{background:#1f2933;color:#fff}.sunny-btn.ghost{background:#fff;color:#344054;border:1px solid var(--sunny-border)}
.copy-status{font-size:13px;color:#079455;font-weight:850;display:none;text-align:center}.copy-status.show{display:block}
.info-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:26px}
.info-mini{padding:18px}.info-mini h3{margin:0 0 8px;font-size:18px}.info-mini p,.info-mini li{color:#667085;line-height:1.5;font-size:14px}.info-mini ul{padding-left:18px;margin:0}.faq-list{display:grid;gap:10px}.faq-item{border:1px solid var(--sunny-border);border-radius:16px;padding:14px;background:#fff}.faq-item strong{display:block;margin-bottom:6px}.faq-item p{margin:0;color:#667085;line-height:1.5}
.home-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px;margin-top:24px}.home-product{padding:20px;text-decoration:none}.home-product h2{margin:0 0 8px}.home-product p{color:#667085;line-height:1.5}.home-product .mini-img{height:170px;border-radius:18px;background:#f3f4f6;margin-bottom:15px;overflow:hidden}.home-product img{width:100%;height:100%;object-fit:cover}
.footer-note{max-width:980px;margin:40px auto 0;text-align:center;color:#667085;font-size:13px;line-height:1.6}
@media (max-width:980px){
  .sunny-hero,.sunny-section-grid{grid-template-columns:1fr}.product-card,.summary-card{position:relative;top:auto}.main-image-wrap{min-height:330px}.product-points{grid-template-columns:1fr}.sunny-top-actions{display:none}.field,.field.third,.field.quarter{grid-column:1/-1}.product-title{font-size:38px}.config-card,.product-card,.summary-card{padding:18px}.fabric-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))}
}
@media (max-width:560px){.sunny-shell{padding-left:12px;padding-right:12px}.thumb-row{grid-template-columns:repeat(4,1fr)}.sunny-logo-dot{width:38px;height:38px}.sunny-brand-text{font-size:14px}.product-title{font-size:32px}.main-image-wrap{min-height:260px}.step-title h2{font-size:19px}.mount-grid,.option-grid{grid-template-columns:1fr}}

/* v2 additions */
.item-manager{padding:12px;margin-bottom:18px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;box-shadow:none}
.item-tabs{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.item-tab{border:1px solid var(--sunny-border);background:#fff;border-radius:14px;padding:9px 12px;font-weight:950;cursor:pointer;display:grid;text-align:left;line-height:1.1;min-width:92px}
.item-tab span{font-size:11px;color:var(--sunny-muted);font-weight:760;margin-top:4px;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item-tab.is-active{border-color:var(--sunny-orange);background:#fff7ed;box-shadow:0 0 0 3px rgba(242,140,40,.12)}
.item-actions{display:flex;gap:8px;flex-wrap:wrap}.sunny-btn.compact{padding:10px 12px;border-radius:13px;font-size:13px}.sunny-btn.danger{background:#fff;border:1px solid #fecaca;color:#b42318}
.mount-guide{display:grid;grid-template-columns:96px 1fr;gap:14px;align-items:center;border:1px solid var(--sunny-border);background:#f9fafb;border-radius:16px;padding:12px;margin-bottom:14px}
.mount-guide img{width:96px;max-height:96px;object-fit:contain;border-radius:10px;background:#fff}.mount-guide strong{display:block;margin-bottom:4px}.mount-guide p{margin:0;color:var(--sunny-muted);font-size:13px;line-height:1.45}
.measure-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.measure-mini-grid div{border:1px solid var(--sunny-border);background:#fff;border-radius:16px;padding:10px;display:flex;align-items:center;gap:10px;font-weight:900;color:#344054}.measure-mini-grid img{width:48px;height:48px;object-fit:contain;border-radius:8px;background:#f3f4f6}
.choice-card.is-locked{background:#f9fafb;cursor:default}.choice-card small{font-size:11px;color:#079455;background:#ecfdf3;border-radius:999px;padding:2px 6px;margin-left:4px}.item-summary-list{gap:14px}.summary-item{border:1px solid var(--sunny-border);border-radius:16px;padding:12px;background:#fff}.summary-item-title{font-weight:950;font-size:14px;margin-bottom:6px;color:#344054}.summary-item .summary-row:last-child{border-bottom:0}.copy-status.error{color:#b42318}.copy-status.error.show{display:block}
@media (max-width:640px){.item-manager{display:block}.item-actions{margin-top:10px}.mount-guide{grid-template-columns:1fr}.mount-guide img{width:100%;height:110px}.measure-mini-grid{grid-template-columns:1fr}}

/* v3 mobile + visual refinements */
.main-image-wrap{aspect-ratio:1 / .86;min-height:0}
.main-image-wrap img{object-fit:contain;background:#f3f4f6}
.image-note{box-shadow:0 8px 24px rgba(31,41,51,.12)}
.fabric-card{min-height:120px;padding:12px;overflow:hidden}
.fabric-card .fabric-selected-mark{position:absolute;right:10px;top:10px;width:24px;height:24px;border-radius:999px;background:var(--sunny-orange);color:#fff;display:none;place-items:center;font-size:13px;font-weight:950;box-shadow:0 5px 14px rgba(242,140,40,.3);z-index:2}
.fabric-card.is-active .fabric-selected-mark{display:grid}
.fabric-card.is-active{background:#fffaf4;border-color:var(--sunny-orange);box-shadow:0 0 0 3px rgba(242,140,40,.18),0 14px 30px rgba(31,41,51,.08)}
.fabric-swatch{height:54px;background-size:cover;background-position:center}
.fabric-name{padding-right:22px}
.mount-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.choice-card.mount-choice{display:grid;grid-template-columns:28px 88px 1fr;align-items:center;text-align:left;min-height:132px;width:100%}
.choice-dot{width:24px;height:24px;border:2px solid #c9ced6;border-radius:999px;display:grid;place-items:center;font-weight:950;color:#fff;background:#fff;font-size:14px;line-height:1}
.choice-card.is-active .choice-dot{border-color:var(--sunny-orange);background:var(--sunny-orange)}
.choice-visual{display:block;width:78px;height:78px;border-radius:14px;background:#f3f4f6;overflow:hidden;border:1px solid var(--sunny-border)}
.choice-visual img{width:100%;height:100%;object-fit:cover;display:block}
.choice-copy{display:block}.choice-copy strong{font-size:16px}.choice-copy span{display:block}
.choice-card.is-active{background:#fff7ed;border-color:var(--sunny-orange);box-shadow:0 0 0 3px rgba(242,140,40,.18),0 14px 30px rgba(31,41,51,.08)}
.choice-card small{background:var(--sunny-orange);color:#fff;font-size:11px;padding:3px 7px;vertical-align:middle}
.summary-safe-note{background:#fff7ed;border:1px solid #ffdcb0;border-radius:16px;padding:11px 12px;color:#7a4a19;font-size:13px;line-height:1.45;margin:0 0 14px}
.mobile-bottom-cta{display:none}
.product-not-price strong{font-size:15px}.product-not-price p{font-size:14px}

@media (max-width:980px){
  body{background:#fffaf3}
  .sunny-shell{padding-bottom:92px}
  .sunny-hero{gap:16px;margin-top:16px}
  .sunny-section-grid{gap:16px;margin-top:16px}
  .gallery-card{padding:10px;border-radius:18px}
  .main-image-wrap{aspect-ratio:1 / .82;border-radius:16px}
  .thumb-row{display:flex;overflow-x:auto;gap:8px;padding:2px 2px 8px;scroll-snap-type:x mandatory}
  .thumb{min-width:72px;width:72px;height:72px;scroll-snap-align:start}
  .product-card{padding:16px;border-radius:18px}
  .product-title{font-size:clamp(28px,8vw,38px);line-height:1.02;letter-spacing:-.04em}
  .product-intro{font-size:15px;margin-bottom:12px}
  .product-points{gap:8px;margin:12px 0}.product-point{font-size:13px;padding:10px;border-radius:14px}
  .product-not-price{margin-top:12px;padding:12px;border-radius:15px}
  .product-selector{position:relative;z-index:1;margin-bottom:12px;padding:10px}.product-selector select{min-width:100%;width:100%}
  .item-manager{border-radius:18px;padding:10px}.item-tabs{display:flex;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.item-tab{min-width:118px}
  .item-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.item-actions .sunny-btn{width:100%}
  .config-card{padding:16px;border-radius:18px;margin-bottom:14px}
  .step-title{margin-bottom:12px}.step-num{width:30px;height:30px;border-radius:10px}.step-title h2{font-size:19px;line-height:1.1}.step-help{font-size:13px;margin:-4px 0 14px}
  .fabric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fabric-card{border-radius:16px;min-height:112px;padding:10px}.fabric-swatch{height:48px;border-radius:10px}.fabric-name{font-size:13px}.fabric-meta{font-size:11px}
  .mount-grid{grid-template-columns:1fr}.choice-card.mount-choice{grid-template-columns:28px 74px 1fr;min-height:112px;padding:12px;border-radius:16px}.choice-visual{width:66px;height:66px}.choice-copy strong{font-size:15px}
  .measure-mini-grid{grid-template-columns:1fr 1fr}.measure-mini-grid img{width:42px;height:42px}.measure-mini-grid div{font-size:13px}
  .field label{font-size:12px}.field input,.field select,.field textarea{padding:11px 12px;border-radius:13px}
  .summary-card{padding:16px;border-radius:18px}.summary-title{font-size:20px}.summary-sub{font-size:13px}.summary-row{font-size:13px;padding:9px 0}.summary-actions{gap:8px}.sunny-btn{padding:13px 14px;border-radius:14px;font-size:14px}
  .mobile-bottom-cta{display:block;position:fixed;left:0;right:0;bottom:0;z-index:80;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-top:1px solid var(--sunny-border);padding:10px 12px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -12px 28px rgba(31,41,51,.10)}
  .mobile-bottom-cta .sunny-btn{width:100%;max-width:520px;margin:0 auto;display:flex}
}
@media (max-width:520px){
  .sunny-topbar-inner{padding:10px 12px}.sunny-logo-dot{width:34px;height:34px;border-radius:12px}.sunny-brand-text{font-size:13px}.sunny-brand-text span:last-child{font-size:10px}
  .sunny-shell{padding-left:10px;padding-right:10px;padding-top:12px}
  .main-image-wrap{aspect-ratio:1 / .78}.image-note{left:10px;bottom:10px;font-size:11px;padding:7px 10px}
  .fabric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fabric-card{min-height:104px}.fabric-swatch{height:42px}
  .form-grid{gap:10px}.field,.field.third,.field.quarter{grid-column:1/-1}
  .measure-mini-grid{grid-template-columns:1fr}
}
.public-home-hero .product-intro{max-width:920px}
.public-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 8px}
.public-hero-actions .sunny-btn{text-decoration:none;width:auto}
.public-note{margin-top:16px}
@media (max-width:640px){.public-hero-actions{display:grid;grid-template-columns:1fr}.public-hero-actions .sunny-btn{width:100%}}


/* v3.2 layout + swatch corrections */
.product-intro-layout{margin-top:22px}
.product-intro-layout .product-card{position:relative;top:auto;padding:24px 26px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:18px;align-items:start}
.product-intro-layout .product-card .product-title{font-size:clamp(32px,3.5vw,48px)}
.product-intro-layout .product-card .product-points{margin:0;align-self:start}
.product-intro-layout .product-card .product-not-price{grid-column:1/-1;margin-top:0}
.sunny-shop-workspace{display:grid;grid-template-columns:minmax(320px,430px) minmax(0,1fr) 360px;gap:22px;margin-top:22px;align-items:start}
.workspace-media{position:sticky;top:78px;z-index:5}
.workspace-config{min-width:0}.workspace-config .config-card{margin-bottom:16px}
.sunny-shop-workspace .summary-card{top:78px}
.sunny-shop-workspace .gallery-card{box-shadow:0 18px 42px rgba(31,41,51,.12)}
.main-image-wrap{height:clamp(330px,38vw,560px);aspect-ratio:auto;background:#f6f6f6}
.main-image-wrap img{height:100%;width:100%;object-fit:contain;background:#f6f6f6;transition:opacity .16s ease, transform .16s ease}.main-image-wrap img.is-changing{opacity:.78;transform:scale(.995)}
.thumb-row{grid-template-columns:repeat(auto-fill,minmax(66px,1fr))}.thumb{border-radius:12px}
.fabric-grid{grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:12px}
.fabric-card{padding:0;min-height:154px;border-radius:13px;display:flex;flex-direction:column;gap:0;background:#fff;overflow:hidden}
.fabric-card:hover{transform:none;box-shadow:0 12px 22px rgba(31,41,51,.08)}
.fabric-swatch{height:88px;border:0;border-bottom:1px solid var(--sunny-border);border-radius:0;background-size:cover;background-position:center;box-shadow:none}
.fabric-name{display:block;padding:10px 12px 3px;font-size:13px;line-height:1.15;min-height:34px;color:#101828}
.fabric-meta{display:block;padding:0 12px 12px;font-size:11px;line-height:1.15;color:#667085}
.fabric-card .fabric-selected-mark{right:8px;top:8px;width:22px;height:22px;background:#15a34a;border:2px solid #fff}
.fabric-card.is-active{background:#fff;border-color:var(--sunny-orange);box-shadow:0 0 0 2px rgba(242,140,40,.3),0 12px 22px rgba(31,41,51,.08)}
.collection-title{margin-top:4px}.collection-title::before{width:7px;height:7px}.step-help{max-width:880px}
@media (max-width:1180px){.sunny-shop-workspace{grid-template-columns:minmax(300px,390px) minmax(0,1fr)}.sunny-shop-workspace #summaryCard{grid-column:2}.workspace-media{top:74px}.product-intro-layout .product-card{grid-template-columns:1fr}.product-intro-layout .product-card .product-points{grid-template-columns:1fr 1fr}}
@media (max-width:980px){.product-intro-layout{margin-top:14px}.product-intro-layout .product-card{padding:16px;display:block}.product-intro-layout .product-card .product-points{grid-template-columns:1fr}.sunny-shop-workspace{display:flex;flex-direction:column;gap:14px;margin-top:14px}.workspace-media{position:relative;top:auto;width:100%;order:1}.workspace-config{order:2;width:100%}.sunny-shop-workspace #summaryCard{order:3;width:100%;position:relative;top:auto}.main-image-wrap{height:auto;aspect-ratio:1/.80}.fabric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fabric-card{min-height:136px}.fabric-swatch{height:72px}}
@media (max-width:520px){.fabric-card{min-height:126px}.fabric-swatch{height:62px}.fabric-name{font-size:12.5px;padding:9px 9px 3px}.fabric-meta{font-size:10.5px;padding:0 9px 10px}.main-image-wrap{aspect-ratio:1/.72}}

/* v3.3 customer UI tightening: compact header, smaller swatches, cleaner mount cards */
.sunny-shell{max-width:1440px;padding-top:14px}
.sunny-shop-workspace{grid-template-columns:minmax(360px,500px) minmax(0,1fr) 350px;gap:18px;margin-top:10px}
.workspace-media{top:74px}
.compact-product-card{padding:18px 20px;margin-bottom:14px;box-shadow:0 12px 32px rgba(31,41,51,.08)}
.compact-product-top{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-bottom:8px}
.compact-product-card .product-badge{margin:0;padding:7px 11px;font-size:12px}
.compact-current-colour{font-size:13px;font-weight:900;color:#667085;background:#f9fafb;border:1px solid var(--sunny-border);border-radius:999px;padding:7px 11px}
.compact-product-card h1{font-size:clamp(26px,2.5vw,38px);letter-spacing:-.04em;line-height:1.04;margin:8px 0 8px;color:#111827}
.compact-product-card p{font-size:15px;line-height:1.45;color:#475467;margin:0 0 12px;max-width:820px}
.compact-points{display:flex;flex-wrap:wrap;gap:8px}
.compact-points span{border:1px solid #e7eef0;background:#fbfffd;border-radius:999px;padding:7px 10px;font-size:12.5px;font-weight:850;color:#344054}
.product-selector{margin-bottom:12px;padding:10px 12px;border-radius:14px;background:#fff;box-shadow:none}
.product-selector label{font-size:13px;color:#667085}.product-selector select{min-width:min(100%,340px);padding:9px 12px;border-radius:10px}
.item-manager{margin-bottom:14px;padding:10px;border-radius:16px;box-shadow:0 10px 25px rgba(31,41,51,.06)}
.item-tabs{gap:8px}.item-tab{padding:9px 10px;border-radius:12px}.item-tab span{font-size:11px}
.config-card{padding:18px 18px;margin-bottom:14px;border-radius:20px;box-shadow:0 12px 32px rgba(31,41,51,.07)}
.step-title{margin-bottom:10px}.step-num{width:30px;height:30px;border-radius:10px}.step-title h2{font-size:20px}.step-help{font-size:14px;margin:0 0 14px;max-width:760px}
.main-image-wrap{height:clamp(300px,34vw,520px);border-radius:18px}.gallery-card{padding:12px;border-radius:20px}.thumb-row{grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:8px}.thumb{border-radius:10px}
.fabric-groups{gap:18px}.collection-title{font-size:17px;margin-bottom:8px}.fabric-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:9px}.fabric-card{min-height:112px;border-radius:12px}.fabric-swatch{height:58px;background-size:cover;background-position:center}.fabric-name{font-size:12px;padding:8px 9px 2px;min-height:30px}.fabric-meta{font-size:10.5px;padding:0 9px 9px}.fabric-card .fabric-selected-mark{width:18px;height:18px;right:6px;top:6px;font-size:11px}
.mount-guide{padding:10px 12px;border-radius:15px;margin-bottom:12px}.mount-guide.compact img{width:72px;height:72px;object-fit:cover;border-radius:10px}.mount-guide strong{font-size:15px}.mount-guide p{font-size:13px;margin-top:3px;line-height:1.35}
.mount-grid{grid-template-columns:1fr 1fr;gap:10px}.choice-card.mount-choice{display:grid;grid-template-columns:24px 72px minmax(0,1fr);gap:11px;align-items:center;min-height:0;padding:12px;border-radius:16px}.choice-dot{width:22px;height:22px;border-radius:50%;border:2px solid #d0d5dd;display:grid;place-items:center;font-weight:900;color:#fff;background:#fff}.choice-card.is-active .choice-dot{border-color:var(--sunny-orange);background:var(--sunny-orange)}.choice-visual{display:block}.choice-visual img{display:block;width:72px;height:72px;object-fit:contain;background:#f8fafc;border:1px solid var(--sunny-border);border-radius:12px}.choice-copy strong{font-size:15px;margin:0 0 4px}.choice-copy strong small{display:inline-flex;margin-left:6px;padding:3px 7px;border-radius:999px;background:var(--sunny-orange);color:#fff;font-size:10px;vertical-align:middle}.choice-copy span{font-size:12.5px;line-height:1.35}.notice-box{margin-top:12px;padding:11px 13px;border-radius:14px}.measure-mini-grid{gap:10px}.measure-mini-grid div{padding:10px;border-radius:14px}.measure-mini-grid img{width:42px;height:42px}.measure-mini-grid span{font-size:15px}.summary-card{padding:18px;border-radius:20px;box-shadow:0 12px 32px rgba(31,41,51,.08)}
@media (max-width:1240px){.sunny-shop-workspace{grid-template-columns:minmax(320px,420px) minmax(0,1fr)}.sunny-shop-workspace #summaryCard{grid-column:2}.compact-product-card h1{font-size:30px}}
@media (max-width:980px){.sunny-shop-workspace{display:flex;flex-direction:column}.workspace-media{order:1;width:100%;position:relative;top:auto}.workspace-config{order:2}.sunny-shop-workspace #summaryCard{order:3;width:100%}.compact-product-card{margin-bottom:10px}.main-image-wrap{height:auto;aspect-ratio:1/.70}.fabric-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}.mount-grid{grid-template-columns:1fr 1fr}.choice-card.mount-choice{grid-template-columns:22px 62px minmax(0,1fr);padding:11px}.choice-visual img{width:62px;height:62px}}
@media (max-width:720px){.mount-grid{grid-template-columns:1fr}.choice-card.mount-choice{grid-template-columns:24px 70px minmax(0,1fr)}.choice-visual img{width:70px;height:70px}.measure-mini-grid{grid-template-columns:1fr 1fr}.product-selector{display:grid;grid-template-columns:1fr}.product-selector select{width:100%;min-width:0}.compact-product-card h1{font-size:25px}.compact-points span{font-size:12px}.fabric-grid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}.fabric-card{min-height:104px}.fabric-swatch{height:52px}.sunny-top-actions .sunny-pill:not(.orange){display:none}}
@media (max-width:420px){.sunny-shell{padding-left:8px;padding-right:8px}.config-card{padding:15px 14px}.fabric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main-image-wrap{aspect-ratio:1/.74}.measure-mini-grid{grid-template-columns:1fr}.compact-current-colour{font-size:12px}.compact-product-card h1{font-size:23px}}

/* v3.4 fixes: keep hero stable, use compact downloaded swatch images, simplify option cards */
.image-note{display:inline-flex;align-items:center;gap:8px;max-width:calc(100% - 32px);white-space:nowrap}
.selected-colour-chip{width:24px;height:24px;border-radius:7px;border:1px solid rgba(0,0,0,.12);background-size:cover;background-position:center;background-repeat:no-repeat;display:inline-block;flex:0 0 auto;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.fabric-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.fabric-card{min-height:96px;border-radius:12px}
.fabric-swatch{height:48px;background-size:contain;background-position:center;background-repeat:no-repeat;background-color:#f7f7f5}
.fabric-name{font-size:11.5px;line-height:1.15;padding:7px 8px 1px;min-height:28px}
.fabric-meta{font-size:10px;line-height:1.15;padding:0 8px 8px}
.option-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.choice-card.is-locked{cursor:default;background:#fafafa}
.choice-card.is-locked:hover{transform:none;box-shadow:none}
@media (max-width:720px){
  .fabric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .fabric-card{min-height:92px}
  .fabric-swatch{height:44px}
  .mount-grid{grid-template-columns:1fr}
  .choice-card.mount-choice{grid-template-columns:24px 58px minmax(0,1fr);align-items:center}
  .choice-visual img{width:58px;height:58px}
}
@media (max-width:420px){
  .fabric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .image-note{left:8px;right:8px;bottom:8px;font-size:10.5px;padding:6px 9px}
  .selected-colour-chip{width:20px;height:20px;border-radius:6px}
}

/* v3.5 fabric preview behaviour */
.main-image-wrap{position:relative;overflow:hidden}
.fabric-preview-panel{display:none;position:absolute;inset:0;background-color:#f6f6f6;background-repeat:no-repeat;background-position:center;background-size:contain;align-items:flex-end;justify-content:flex-start}
.main-image-wrap.is-fabric-preview #mainImage{opacity:0;pointer-events:none}
.main-image-wrap.is-fabric-preview .fabric-preview-panel{display:flex}
.fabric-preview-panel.is-tiled-swatch{background-size:72px 72px;background-repeat:repeat;background-position:center}
.fabric-preview-label{display:inline-block;margin:12px;padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.92);border:1px solid rgba(230,232,236,.9);box-shadow:0 8px 20px rgba(31,41,51,.10);font-size:12px;color:#475467}
.media-help{font-size:12px;line-height:1.35;color:#667085;background:#fffaf4;border:1px solid #ffe0b8;border-radius:12px;padding:9px 10px;margin:10px 0 0}
.selected-colour-chip{background-size:cover;background-position:center;background-repeat:repeat}
.fabric-card{min-height:136px}
.fabric-swatch{height:62px;background-size:cover;background-repeat:no-repeat;background-position:center}
.fabric-card .fabric-swatch[style*="fabric-swatches/sunny-honeycomb"]{background-size:36px 36px;background-repeat:repeat;background-position:center}
.fabric-grid{grid-template-columns:repeat(auto-fill,minmax(124px,1fr))}
@media(max-width:980px){.fabric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fabric-card{min-height:118px}.fabric-swatch{height:52px}.media-help{font-size:11px}.fabric-preview-panel.is-tiled-swatch{background-size:60px 60px}}
@media(max-width:520px){.fabric-card{min-height:108px}.fabric-swatch{height:44px}.fabric-preview-panel.is-tiled-swatch{background-size:54px 54px}.fabric-preview-label{margin:10px;font-size:11px}}

/* v3.6 fabric preview fix: never tile swatches in the main photo area */
.fabric-preview-panel{
  display:none;
  position:absolute;
  inset:0;
  background:#f6f6f6;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.main-image-wrap.is-fabric-preview #mainImage{opacity:0;pointer-events:none}
.main-image-wrap.is-fabric-preview .fabric-preview-panel{display:flex}
.fabric-preview-img{
  display:block;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:12px;
  box-shadow:0 12px 35px rgba(31,41,51,.12);
  background:#fff;
}
.fabric-preview-panel.is-tiled-swatch{background-size:contain;background-repeat:no-repeat;background-position:center}
.fabric-preview-label{
  position:absolute;
  left:12px;
  bottom:12px;
  display:inline-block;
  margin:0;
  padding:8px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(230,232,236,.95);
  box-shadow:0 8px 20px rgba(31,41,51,.10);
  font-size:12px;
  color:#475467;
}
.selected-colour-chip{background-repeat:no-repeat;background-size:cover;background-position:center}
.fabric-card .fabric-swatch[style*="fabric-swatches/sunny-honeycomb"]{
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;
}
@media(max-width:520px){
  .fabric-preview-panel{padding:10px}
  .fabric-preview-img{border-radius:10px}
  .fabric-preview-label{left:10px;bottom:10px;font-size:11px;max-width:calc(100% - 20px);white-space:normal}
}

/* v3.7: colour swatch preview uses a small dialog, not the main product image area */
.fabric-dialog{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:18px}
.fabric-dialog.is-open{display:flex}
.fabric-dialog-backdrop{position:absolute;inset:0;background:rgba(17,24,39,.42);backdrop-filter:blur(3px)}
.fabric-dialog-card{position:relative;z-index:1;width:min(92vw,480px);max-height:min(86vh,620px);background:#fff;border:1px solid var(--sunny-border);border-radius:20px;box-shadow:0 30px 80px rgba(15,23,42,.28);overflow:hidden;display:grid;grid-template-rows:minmax(180px,360px) auto}
.fabric-dialog-close{position:absolute;right:10px;top:10px;z-index:3;width:34px;height:34px;border:1px solid rgba(255,255,255,.75);border-radius:999px;background:rgba(255,255,255,.88);color:#111827;font-size:24px;line-height:1;cursor:pointer;box-shadow:0 7px 18px rgba(15,23,42,.16)}
.fabric-dialog-image-wrap{background:#f4f4f4;display:grid;place-items:center;padding:12px;min-height:180px}
.fabric-dialog-image-wrap img{max-width:100%;max-height:340px;width:auto;height:auto;object-fit:contain;display:block;border-radius:10px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.10)}
.fabric-dialog-copy{padding:14px 16px 16px}.fabric-dialog-copy h3{margin:0 0 3px;font-size:19px;line-height:1.2;color:#111827}.fabric-dialog-copy p{margin:0;color:#667085;font-weight:700;font-size:13px}
body.fabric-dialog-open{overflow:hidden}.main-image-wrap.is-fabric-preview #mainImage{opacity:1;pointer-events:auto}.main-image-wrap.is-fabric-preview .fabric-preview-panel{display:none!important}
@media(max-width:520px){.fabric-dialog{padding:12px}.fabric-dialog-card{width:min(94vw,420px);border-radius:16px;grid-template-rows:minmax(160px,300px) auto}.fabric-dialog-image-wrap img{max-height:285px}.fabric-dialog-copy h3{font-size:17px}.fabric-dialog-close{right:8px;top:8px;width:32px;height:32px}}

/* v3.8 fabric dialog polish: keep main gallery stable; show a compact swatch popup like SelectBlinds */
.fabric-dialog-card{
  width:min(92vw,430px);
  max-height:min(86vh,560px);
  grid-template-rows:auto auto;
  border-radius:18px;
}
.fabric-dialog-image-wrap{
  height:290px;
  min-height:220px;
  padding:18px;
  background:#f6f6f6;
}
.fabric-dialog-image-wrap img{
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
}
.fabric-dialog-copy{padding:14px 16px 17px}
.fabric-dialog-copy h3{font-size:18px}.fabric-dialog-copy p{font-size:12.5px}
.media-help{font-size:12px;line-height:1.45}
@media(max-width:520px){
  .fabric-dialog-card{width:min(94vw,390px);max-height:82vh}
  .fabric-dialog-image-wrap{height:235px;min-height:200px;padding:14px}
}

/* v3.9 swatch source fix: use the exact downloaded fabric images, not tiny tiled honeycomb thumbs */
.fabric-card .fabric-swatch[style*="fabric-swatches/sunny-honeycomb"]{
  background-size:cover!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
}
.fabric-dialog-image-wrap img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

/* v4.1 zebra swatch card crop fix
   SelectBlinds zebra swatch JPGs are square 300x300 images with the sheer band in the middle.
   The small card is a short wide rectangle, so center-cropping shows too much white sheer.
   For zebra only, crop closer to the top fabric band so the actual colour is visible on the card.
   The popup still uses the full original 300x300 image. */
.fabric-swatch.zebra-swatch,
.fabric-card .fabric-swatch[style*="fabric-swatches/sunny-zebra"]{
  background-size:cover!important;
  background-position:center 18%!important;
  background-repeat:no-repeat!important;
}

/* slightly taller zebra cards so the colour/texture has enough room */
.fabric-card .fabric-swatch.zebra-swatch{
  height:64px;
}
@media(max-width:520px){
  .fabric-card .fabric-swatch.zebra-swatch{height:56px}
}

/* v4.2: simplify submit area + required customer fields */
.summary-actions.simplified{
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.summary-actions.simplified .sunny-btn.wide{
  grid-column:1 / -1;
  min-height:48px;
}
.summary-safe-note code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size:.92em;
  background:#fff;
  border:1px solid rgba(230,232,236,.9);
  border-radius:7px;
  padding:1px 5px;
}
.required-star{color:var(--sunny-orange);font-weight:950}
.field input.is-invalid,
.field textarea.is-invalid,
.field select.is-invalid{
  border-color:#f04438!important;
  background:#fff7f7!important;
  box-shadow:0 0 0 3px rgba(240,68,56,.12)!important;
}
.form-error{
  display:none;
  margin-top:12px;
  padding:10px 12px;
  border-radius:13px;
  border:1px solid #fecaca;
  background:#fff1f1;
  color:#b42318;
  font-weight:850;
  font-size:13px;
  line-height:1.35;
}
.form-error.show{display:block}
.copy-status.error{
  color:#b42318;
}
@media(max-width:520px){
  .summary-actions.simplified{grid-template-columns:1fr}
  .summary-actions.simplified .sunny-btn.wide{grid-column:auto}
}
