/* ==========================================================================
   SiteCraft storefront base — loaded by the editor canvas AND every
   published site, so the editor is WYSIWYG. Theme values come from CSS
   variables set per website (see ThemeService / builder Theme panel).
   Class prefix: sc-
   ========================================================================== */
:root {
  --sc-primary: #0f766e; --sc-primary-text: #ffffff; --sc-accent: #f59e0b;
  --sc-text: #1f2933; --sc-muted: #5f6b7a; --sc-background: #ffffff; --sc-surface: #f6f7f9; --sc-border: #e3e6ea;
  --sc-heading-font: "Inter", system-ui, sans-serif; --sc-body-font: "Inter", system-ui, sans-serif;
  --sc-radius: 8px; --sc-container: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sc-body-font); color: var(--sc-text); background: var(--sc-background); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--sc-heading-font); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); } h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); } h3 { font-size: 1.25rem; } h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--sc-primary); }
img, video { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; border: 0; }
ul, ol { padding-left: 1.2em; }

/* Layout ------------------------------------------------------------------- */
.sc-container { width: 100%; max-width: var(--sc-container); margin: 0 auto; padding: 0 20px; }
.sc-section { padding: 76px 0; }
.sc-section--tight { padding: 44px 0; }
.sc-section--alt { background: var(--sc-surface); }
.sc-section--dark { background: var(--sc-text); color: #fff; }
.sc-section--dark .sc-lead, .sc-section--dark .sc-muted { color: rgba(255,255,255,.75); }
.sc-section--primary { background: var(--sc-primary); color: var(--sc-primary-text); }
.sc-section--primary .sc-lead { color: inherit; opacity: .85; }
.sc-center { text-align: center; }
.sc-center .sc-lead { margin-left: auto; margin-right: auto; }
.sc-head { margin-bottom: 40px; }
.sc-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sc-primary); margin-bottom: .8em; }
.sc-section--primary .sc-eyebrow, .sc-section--dark .sc-eyebrow { color: inherit; opacity: .8; }
.sc-lead { font-size: 1.12rem; color: var(--sc-muted); max-width: 640px; }
.sc-muted { color: var(--sc-muted); }
.sc-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sc-grid--2, .sc-grid--3, .sc-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .sc-grid--3 { grid-template-columns: repeat(3, 1fr); } .sc-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.sc-split { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .sc-split { grid-template-columns: 1fr 1fr; } .sc-split--reverse > :first-child { order: 2; } }
.sc-media { border-radius: calc(var(--sc-radius) * 1.5); overflow: hidden; background: var(--sc-surface); }
.sc-media img { width: 100%; height: 100%; object-fit: cover; }

/* Buttons ------------------------------------------------------------------ */
.sc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.6em; border-radius: var(--sc-radius); border: 2px solid var(--sc-primary); background: var(--sc-primary); color: var(--sc-primary-text); font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: filter .15s, transform .15s; font-family: inherit; line-height: 1.2; }
.sc-btn:hover { filter: brightness(1.08); }
.sc-btn--outline { background: transparent; color: var(--sc-primary); }
.sc-btn--light { background: #fff; border-color: #fff; color: var(--sc-text); }
.sc-btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.sc-btn--sm { padding: .55em 1.1em; font-size: .85rem; }
.sc-btn--block { width: 100%; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sc-center .sc-actions { justify-content: center; }

/* Header & navigation ------------------------------------------------------ */
.sc-header { background: var(--sc-background); border-bottom: 1px solid var(--sc-border); position: relative; z-index: 10; }
.sc-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.sc-logo { font-family: var(--sc-heading-font); font-weight: 800; font-size: 1.35rem; color: var(--sc-text); text-decoration: none; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 10px; }
.sc-logo img { max-height: 44px; width: auto; }
.sc-nav { display: none; gap: 28px; margin-left: auto; }
.sc-nav a { color: var(--sc-text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.sc-nav a:hover { color: var(--sc-primary); }
.sc-header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.sc-nav + .sc-header__actions { margin-left: 8px; }
.sc-icon-link { color: var(--sc-text); text-decoration: none; font-size: 1.2rem; position: relative; display: inline-flex; }
.sc-cart-count { position: absolute; top: -6px; right: -9px; background: var(--sc-primary); color: var(--sc-primary-text); font-size: .62rem; font-weight: 700; border-radius: 999px; min-width: 17px; height: 17px; line-height: 17px; text-align: center; padding: 0 4px; font-family: var(--sc-body-font); }
.sc-menu { position: relative; }
.sc-menu > summary { list-style: none; cursor: pointer; font-size: 1.5rem; line-height: 1; padding: 4px; }
.sc-menu > summary::-webkit-details-marker { display: none; }
.sc-menu > nav { position: absolute; right: 0; top: calc(100% + 12px); background: var(--sc-background); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 10px; min-width: 200px; display: flex; flex-direction: column; box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.sc-menu > nav a { padding: 8px 10px; color: var(--sc-text); text-decoration: none; border-radius: 6px; }
@media (min-width: 900px) { .sc-nav { display: flex; } .sc-menu { display: none; } }
.sc-announce { background: var(--sc-text); color: #fff; text-align: center; font-size: .85rem; padding: 9px 16px; }

/* Hero --------------------------------------------------------------------- */
.sc-hero { padding: 84px 0; }
.sc-hero h1 { margin-bottom: .4em; }
.sc-hero--center { text-align: center; }
.sc-hero--center .sc-lead { margin: 0 auto; }
.sc-hero--center .sc-actions { justify-content: center; }
.sc-hero--cover { position: relative; color: #fff; background-color: var(--sc-text); background-size: cover; background-position: center; padding: 140px 0; }
.sc-hero--cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.15)); }
.sc-hero--cover > * { position: relative; }
.sc-hero--cover .sc-lead { color: rgba(255,255,255,.88); }
.sc-hero .sc-media { aspect-ratio: 5 / 4; }

/* Cards & features --------------------------------------------------------- */
.sc-card { background: var(--sc-background); border: 1px solid var(--sc-border); border-radius: calc(var(--sc-radius) * 1.5); padding: 28px; height: 100%; }
.sc-section--alt .sc-card { border-color: transparent; }
.sc-icon-badge { width: 52px; height: 52px; border-radius: var(--sc-radius); background: color-mix(in srgb, var(--sc-primary) 12%, transparent); color: var(--sc-primary); display: grid; place-items: center; font-size: 1.45rem; margin-bottom: 18px; }
.sc-icon { display: inline-block; color: var(--sc-primary); font-size: 2rem; line-height: 1; }
.sc-feature h3 { margin-bottom: .4em; }
.sc-feature p { color: var(--sc-muted); margin: 0; }
.sc-stats { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .sc-stats { grid-template-columns: repeat(4, 1fr); } }
.sc-stat strong { display: block; font-family: var(--sc-heading-font); font-size: 2.2rem; line-height: 1.1; }
.sc-stat span { color: var(--sc-muted); font-size: .92rem; }
.sc-section--primary .sc-stat span, .sc-section--dark .sc-stat span { color: inherit; opacity: .8; }
.sc-checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.sc-checklist li { padding: 6px 0 6px 30px; position: relative; }
.sc-checklist li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--sc-primary) 14%, transparent); color: var(--sc-primary); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }

/* Products ----------------------------------------------------------------- */
.sc-product { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.sc-product__media { aspect-ratio: 1 / 1; border-radius: var(--sc-radius); overflow: hidden; background: var(--sc-surface); margin-bottom: 14px; position: relative; }
.sc-product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sc-product:hover .sc-product__media img { transform: scale(1.04); }
.sc-product__badge { position: absolute; top: 10px; left: 10px; background: var(--sc-accent); color: #111; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.sc-product__title { font-weight: 600; font-size: 1rem; margin: 0 0 4px; color: var(--sc-text); }
.sc-product__meta { color: var(--sc-muted); font-size: .85rem; margin: 0 0 6px; }
.sc-price { font-weight: 700; color: var(--sc-text); }
.sc-price del { color: var(--sc-muted); font-weight: 400; margin-left: 6px; font-size: .9em; }
.sc-product .sc-btn { margin-top: 12px; }
.sc-category { position: relative; display: block; border-radius: calc(var(--sc-radius) * 1.5); overflow: hidden; aspect-ratio: 4 / 5; text-decoration: none; color: #fff; background: var(--sc-surface); }
.sc-category img { width: 100%; height: 100%; object-fit: cover; }
.sc-category span { position: absolute; left: 16px; bottom: 16px; right: 16px; font-weight: 700; font-size: 1.1rem; font-family: var(--sc-heading-font); text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.sc-pdp { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .sc-pdp { grid-template-columns: 1.1fr 1fr; } }
.sc-gallery__main { aspect-ratio: 1 / 1; border-radius: calc(var(--sc-radius) * 1.5); overflow: hidden; background: var(--sc-surface); }
.sc-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.sc-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.sc-gallery__thumbs img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--sc-radius); border: 2px solid transparent; }
.sc-gallery__thumbs img:first-child { border-color: var(--sc-primary); }
.sc-pdp__price { font-size: 1.6rem; margin: 8px 0 18px; }
.sc-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.sc-options span { border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 6px 14px; font-size: .9rem; }
.sc-options span:first-child { border-color: var(--sc-text); }
.sc-qty { display: inline-flex; align-items: center; border: 1px solid var(--sc-border); border-radius: var(--sc-radius); }
.sc-qty input { width: 52px; border: 0; text-align: center; font: inherit; padding: 10px 0; background: transparent; }
.sc-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Slider (CSS scroll-snap, no JavaScript) --------------------------------- */
.sc-slider { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; scrollbar-width: thin; border-radius: calc(var(--sc-radius) * 1.5); }
.sc-slider--cards { grid-auto-columns: minmax(240px, 280px); }
.sc-slide { scroll-snap-align: start; position: relative; }
.sc-slide img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: calc(var(--sc-radius) * 1.5); }
.sc-slide__caption { position: absolute; left: 32px; bottom: 32px; color: #fff; max-width: 480px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }

/* Testimonials, team, pricing, FAQ --------------------------------------- */
.sc-quote { margin: 0; }
.sc-quote p { font-size: 1.05rem; }
.sc-quote footer { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.sc-quote footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.sc-quote cite { font-style: normal; font-weight: 600; display: block; }
.sc-stars { color: var(--sc-accent); letter-spacing: 2px; margin-bottom: 10px; }
.sc-member { text-align: center; }
.sc-member img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: calc(var(--sc-radius) * 1.5); margin-bottom: 14px; }
.sc-member h3 { margin-bottom: 2px; }
.sc-plan { display: flex; flex-direction: column; }
.sc-plan__price { font-family: var(--sc-heading-font); font-size: 2.4rem; font-weight: 800; margin: 8px 0 4px; }
.sc-plan__price small { font-size: .9rem; font-weight: 500; color: var(--sc-muted); }
.sc-plan .sc-btn { margin-top: auto; }
.sc-plan--featured { border: 2px solid var(--sc-primary); box-shadow: 0 16px 40px color-mix(in srgb, var(--sc-primary) 18%, transparent); }
.sc-faq { max-width: 780px; margin: 0 auto; }
.sc-faq details { border-bottom: 1px solid var(--sc-border); padding: 18px 0; }
.sc-faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.sc-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--sc-primary); }
.sc-faq details[open] summary::after { content: "–"; }
.sc-faq summary::-webkit-details-marker { display: none; }
.sc-faq details p { margin: 12px 0 0; color: var(--sc-muted); }

/* Forms -------------------------------------------------------------------- */
.sc-form { display: grid; gap: 14px; }
.sc-form label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; }
.sc-form input, .sc-form textarea, .sc-form select, .sc-search input, .sc-newsletter input { width: 100%; font: inherit; color: var(--sc-text); background: var(--sc-background); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 12px 14px; }
.sc-form textarea { min-height: 130px; resize: vertical; }
.sc-form__row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sc-form__row { grid-template-columns: 1fr 1fr; } }
.sc-newsletter { display: flex; gap: 10px; max-width: 520px; flex-wrap: wrap; }
.sc-center .sc-newsletter { margin: 0 auto; }
.sc-newsletter input { flex: 1 1 240px; }
.sc-search { display: flex; gap: 10px; max-width: 560px; }
.sc-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.sc-contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.sc-contact-list i { color: var(--sc-primary); font-size: 1.25rem; }
.sc-map { border-radius: calc(var(--sc-radius) * 1.5); overflow: hidden; background: var(--sc-surface); }
.sc-map iframe { width: 100%; height: 380px; display: block; }
.sc-video { position: relative; aspect-ratio: 16 / 9; border-radius: calc(var(--sc-radius) * 1.5); overflow: hidden; background: #000; }
.sc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Blog, CTA, logos, social, cart ------------------------------------------ */
.sc-post { text-decoration: none; color: inherit; display: block; }
.sc-post img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: var(--sc-radius); margin-bottom: 14px; }
.sc-post h3 { margin-bottom: 6px; }
.sc-post small { color: var(--sc-muted); }
.sc-cta { border-radius: calc(var(--sc-radius) * 2); padding: 56px 40px; background: var(--sc-primary); color: var(--sc-primary-text); text-align: center; }
.sc-cta .sc-lead { color: inherit; opacity: .85; margin: 0 auto; }
.sc-cta .sc-actions { justify-content: center; }
.sc-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; color: var(--sc-muted); font-weight: 700; font-family: var(--sc-heading-font); font-size: 1.15rem; letter-spacing: .02em; opacity: .75; }
.sc-social { display: flex; gap: 12px; flex-wrap: wrap; }
.sc-center .sc-social { justify-content: center; }
.sc-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--sc-primary) 12%, transparent); color: var(--sc-primary); text-decoration: none; font-size: 1.1rem; }
.sc-cart-table { width: 100%; border-collapse: collapse; }
.sc-cart-table th, .sc-cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--sc-border); text-align: left; }
.sc-cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--sc-radius); }
.sc-cart-summary { margin-left: auto; max-width: 360px; margin-top: 24px; }
.sc-cart-summary div { display: flex; justify-content: space-between; padding: 6px 0; }
.sc-divider { border: 0; border-top: 1px solid var(--sc-border); margin: 32px 0; }
.sc-spacer { height: 48px; }
.sc-text { max-width: 760px; }

/* Widget sample note (editor + draft preview only; replaced on live sites) */
.sc-widget-note { font-size: .78rem; color: var(--sc-muted); background: var(--sc-surface); border: 1px dashed var(--sc-border); border-radius: 6px; padding: 6px 10px; margin-bottom: 16px; display: inline-block; }

/* Footer ------------------------------------------------------------------- */
.sc-footer { background: var(--sc-text); color: rgba(255,255,255,.78); padding: 64px 0 28px; font-size: .95rem; }
.sc-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.sc-footer a:hover { color: #fff; }
.sc-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.sc-footer .sc-logo { color: #fff; }
.sc-footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .sc-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.sc-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sc-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }
.sc-footer .sc-social a { background: rgba(255,255,255,.1); color: #fff; }
.sc-powered { font-size: .8rem; opacity: .8; }

/* Live storefront (Phase 4) ------------------------------------------------ */
.sc-empty { text-align: center; padding: 36px 16px; border: 1px dashed var(--sc-border); border-radius: calc(var(--sc-radius) * 1.5); color: var(--sc-muted); }
.sc-empty p { margin: 0 0 12px; }
.sc-empty p:last-child { margin: 0; }
.sc-noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: var(--sc-surface); color: var(--sc-muted); font-size: 2rem; border-radius: var(--sc-radius); }
.sc-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.sc-form__notice { padding: 12px 16px; border-radius: var(--sc-radius); margin: 0 0 16px; font-weight: 500; }
.sc-form__notice--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.sc-form__notice--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.sc-nav__group { position: relative; }
.sc-nav__sub { display: none; position: absolute; left: -12px; top: 100%; padding: 10px; min-width: 200px; background: var(--sc-background); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); box-shadow: 0 12px 30px rgba(0,0,0,.08); flex-direction: column; z-index: 50; }
.sc-nav__sub a { padding: 6px 8px; }
.sc-nav__group:hover > .sc-nav__sub, .sc-nav__group:focus-within > .sc-nav__sub { display: flex; }
.sc-menu > nav a.sc-menu__sub { padding-left: 24px; font-size: .92em; }
.sc-error-page { min-height: 50vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 16px; }
.sc-error-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }

/* Shop (Phase 5) ------------------------------------------------------------ */
.sc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sc-small { font-size: .875rem; }
.sc-right { text-align: right !important; }
.sc-narrow { max-width: 760px; }
.sc-h3 { font-size: 1.15rem; margin: 28px 0 12px; }
.sc-breadcrumb { font-size: .875rem; color: var(--sc-muted); margin-bottom: 18px; }
.sc-breadcrumb a { color: inherit; text-decoration: none; }
.sc-breadcrumb a:hover { color: var(--sc-text); text-decoration: underline; }
.sc-listing__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 12px; }
.sc-listing__bar { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding: 12px 0 20px; border-bottom: 1px solid var(--sc-border); margin-bottom: 24px; }
.sc-sort { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; }
.sc-sort a { color: var(--sc-muted); text-decoration: none; }
.sc-sort a:hover { color: var(--sc-text); }
.sc-sort [aria-current] { font-weight: 600; color: var(--sc-text); border-bottom: 2px solid var(--sc-primary); }
.sc-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.sc-pagination a, .sc-pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--sc-border); border-radius: var(--sc-radius); text-decoration: none; color: var(--sc-text); }
.sc-pagination [aria-current] { background: var(--sc-primary); color: var(--sc-primary-text); border-color: var(--sc-primary); }
.sc-product__badge--muted { background: var(--sc-text); color: var(--sc-background); }
.sc-gallery__main--live img { display: none; }
.sc-gallery__main--live img:first-child { display: block; }
.sc-gallery__main--live:has(img:target) img { display: none; }
.sc-gallery__main--live img:target { display: block; }
.sc-gallery__thumbs a img { border: 2px solid transparent; }
.sc-gallery__thumbs a:hover img, .sc-gallery__thumbs a:focus img { border-color: var(--sc-primary); }
.sc-pdp__title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 6px 0 4px; }
.sc-label { display: block; font-weight: 600; font-size: .9rem; margin: 18px 0 6px; }
.sc-select { width: 100%; max-width: 360px; font: inherit; color: var(--sc-text); background: var(--sc-background); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 11px 12px; margin-bottom: 14px; }
.sc-buy-form { margin: 18px 0 24px; }
.sc-buy-form .sc-btn[disabled] { opacity: .55; cursor: not-allowed; }
.sc-stock-note { color: #b45309; font-weight: 600; font-size: .9rem; margin: 10px 0 0; }
.sc-prose { line-height: 1.7; border-top: 1px solid var(--sc-border); padding-top: 20px; margin-top: 8px; }
.sc-prose ul, .sc-prose ol { padding-left: 1.3em; }
.sc-section--muted { background: var(--sc-surface); }
.sc-table-wrap { overflow-x: auto; }
.sc-cart-table td { vertical-align: middle; }
.sc-cart-img { width: 80px; }
.sc-noimg--sm { width: 64px; height: 64px; aspect-ratio: auto; font-size: 1.2rem; }
.sc-flag { display: block; color: #b42318; font-size: .85rem; font-weight: 600; margin-top: 4px; }
.sc-link-btn { background: none; border: 0; color: var(--sc-muted); cursor: pointer; padding: 6px; font: inherit; }
.sc-link-btn:hover { color: #b42318; }
.sc-cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.sc-cart-summary .sc-total { border-top: 1px solid var(--sc-border); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 1.1rem; }
.sc-btn--block { display: flex; width: 100%; justify-content: center; margin-top: 16px; }
.sc-checkout { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .sc-checkout { grid-template-columns: 1.4fr 1fr; } }
.sc-checkout__summary { background: var(--sc-surface); border-radius: calc(var(--sc-radius) * 1.5); padding: 24px; position: sticky; top: 24px; }
.sc-checkout__summary .sc-cart-summary { max-width: none; }
.sc-checkout__summary .sc-h3 { margin-top: 0; }
.sc-mini-cart { list-style: none; padding: 0; margin: 0 0 12px; }
.sc-mini-cart li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--sc-border); font-size: .92rem; }
.sc-field-error { display: block; color: #b42318; font-size: .85rem; margin-top: 4px; }
.sc-form [aria-invalid="true"] { border-color: #b42318; }
.sc-check, .sc-radio { display: flex !important; gap: 10px; align-items: center; font-weight: 500 !important; }
.sc-check input, .sc-radio input { width: auto !important; }
.sc-radio { border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 14px 16px; }
.sc-details summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.sc-details[open] { display: grid; gap: 14px; }
.sc-thanks { text-align: center; padding: 12px 0 28px; }
.sc-thanks .bi { font-size: 3rem; color: #059669; }
.sc-order-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; background: var(--sc-surface); border-radius: var(--sc-radius); padding: 16px; margin-bottom: 20px; }
.sc-order-meta span { display: block; font-size: .8rem; }
.sc-order-addr { margin-top: 24px; }

/* Phase 6 */
.sc-coupon { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.sc-coupon input { font: inherit; padding: 9px 12px; border: 1px solid var(--sc-border); border-radius: var(--sc-radius); background: var(--sc-background); color: var(--sc-text); max-width: 200px; text-transform: uppercase; }
.sc-discount { color: #047857; }
.sc-pay { text-align: center; }
.sc-account-nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; font-size: .95rem; }
.sc-account-nav a { color: var(--sc-muted); text-decoration: none; }
.sc-account-nav [aria-current] { color: var(--sc-text); font-weight: 600; border-bottom: 2px solid var(--sc-primary); }
.sc-auth { max-width: 440px; margin: 0 auto; }
.sc-account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sc-account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin-top: 32px; }
.sc-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sc-table th, .sc-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--sc-border); }
.sc-table .sc-num { text-align: right; white-space: nowrap; }

/* Blog (Phase 7) */
.sc-article { max-width: 760px; }
.sc-article__head { margin: 8px 0 24px; }
.sc-article__head h1 { margin: 6px 0 10px; }
.sc-article__image { margin: 0 0 28px; }
.sc-article__image img { width: 100%; border-radius: var(--sc-radius); aspect-ratio: 16 / 9; object-fit: cover; }
.sc-prose { font-size: 1.08rem; line-height: 1.75; }
.sc-prose > * + * { margin-top: 1em; }
.sc-prose h2 { margin-top: 1.8em; }
.sc-prose h3 { margin-top: 1.5em; }
.sc-prose img { max-width: 100%; height: auto; border-radius: var(--sc-radius); }
.sc-prose blockquote { border-left: 3px solid var(--sc-primary); padding-left: 16px; color: var(--sc-muted); font-style: italic; }
.sc-prose pre { background: var(--sc-surface, #f6f7f9); padding: 14px; border-radius: 8px; overflow-x: auto; font-size: .9rem; }
.sc-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--sc-radius); }
.sc-prose table { width: 100%; border-collapse: collapse; }
.sc-prose th, .sc-prose td { border: 1px solid var(--sc-border); padding: 8px; text-align: left; }
.sc-prose a { color: var(--sc-primary); }
.sc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.sc-tags a { font-size: .85rem; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--sc-border); color: var(--sc-muted); text-decoration: none; }
.sc-related { margin-top: 64px; }
.sc-blog-grid { row-gap: 40px; }
