/* Storefront theme: colors and font come from the store (CSS variables set by the layout). */
:root { --store-primary: #111827; --store-accent: #f59e0b; --store-font: system-ui, sans-serif; }
body.storefront { font-family: var(--store-font); background: #fafafa; color: #111; margin: 0; }
.sf-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sf-header { background: var(--store-primary); color: #fff; }
.sf-header .sf-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 14px 20px; }
.sf-brand { color: #fff; font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.sf-brand img { max-height: 44px; }
.sf-search { flex: 1; min-width: 160px; }
.sf-search input { width: 100%; padding: 8px 12px; border-radius: 8px; border: 0; }
.sf-nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.sf-nav a { color: #fff; text-decoration: none; opacity: .9; }
.sf-nav a:hover { opacity: 1; text-decoration: underline; }
.sf-cart { font-weight: 700; }
.sf-main { padding: 28px 0 48px; }
.sf-main > .sf-inner > h1 { margin-top: 0; }
.sf-banner { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; margin-bottom: 24px; }
.sf-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.storefront-catalog .sf-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.storefront-editorial .sf-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.sf-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.sf-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f3f4f6; }
.sf-card .sf-ph { width: 100%; aspect-ratio: 1; background: #f3f4f6; display: grid; place-items: center; color: #9ca3af; }
.sf-card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.sf-card-body a { color: inherit; text-decoration: none; font-weight: 600; }
.sf-price { font-weight: 700; color: var(--store-primary); }
.sf-compare { text-decoration: line-through; color: #9ca3af; font-weight: 400; margin-left: 6px; }
.sf-btn { display: inline-block; background: var(--store-accent); color: #111; padding: 10px 18px; border-radius: 8px; border: 0; font-weight: 700; cursor: pointer; text-decoration: none; }
.sf-btn.secondary { background: #fff; border: 1px solid #d1d5db; }
.sf-btn:disabled { opacity: .5; cursor: not-allowed; }
.sf-product { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .sf-product { grid-template-columns: 1.1fr 1fr; } }
.sf-gallery img { width: 100%; border-radius: 12px; border: 1px solid #e5e7eb; }
.sf-gallery .thumbs { display: flex; gap: 8px; margin-top: 8px; }
.sf-gallery .thumbs img { width: 64px; height: 64px; object-fit: cover; }
.sf-table { width: 100%; border-collapse: collapse; background: #fff; }
.sf-table th, .sf-table td { padding: 10px 12px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.sf-form label { display: block; font-size: .9rem; margin: 10px 0 4px; }
.sf-form input, .sf-form select, .sf-form textarea { width: 100%; padding: 9px 11px; border: 1px solid #d1d5db; border-radius: 8px; box-sizing: border-box; }
.sf-two { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .sf-two { grid-template-columns: 1.4fr 1fr; } }
.sf-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; }
.sf-alert { background: #fef3c7; border: 1px solid #fcd34d; padding: 10px 12px; border-radius: 8px; margin: 12px 0; }
.sf-error { background: #fee2e2; border: 1px solid #fca5a5; padding: 10px 12px; border-radius: 8px; margin: 12px 0; }
.sf-progress { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.sf-progress span { display: block; height: 100%; background: var(--store-accent); }
.sf-footer { background: #111827; color: #d1d5db; padding: 28px 0; font-size: .9rem; }
.sf-footer a { color: #fff; }
.sf-powered { opacity: .6; }
.sf-whats { position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.5rem; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.sf-badge { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: #e5e7eb; }
.sf-stars { color: #f59e0b; }
.sf-muted { color: #6b7280; }

/* --- Modern refinements ------------------------------------------------ */
body.storefront { font-family: var(--store-font); color: #0f172a; background: #f6f7fb; -webkit-font-smoothing: antialiased; }
.sf-header { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 6px 24px -16px rgba(0,0,0,.5); }
.sf-header .sf-inner { padding: 12px 20px; }
.sf-search input { border-radius: 999px; padding: 9px 16px; background: rgba(255,255,255,.14); color: #fff; }
.sf-search input::placeholder { color: rgba(255,255,255,.7); }
.sf-search input:focus { outline: none; background: #fff; color: #111; }
.sf-nav a { padding: 6px 10px; border-radius: 999px; transition: background .15s; }
.sf-nav a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.sf-cart { background: var(--store-accent); color: #111 !important; }
.sf-main h1 { font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.sf-banner { box-shadow: 0 24px 60px -30px rgba(0,0,0,.45); border-radius: 18px; }
.sf-card { border-radius: 16px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.sf-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(15,23,42,.35); border-color: var(--store-accent); }
.sf-card img { transition: transform .4s ease; }
.sf-card:hover img { transform: scale(1.03); }
.sf-card-body a { font-weight: 600; line-height: 1.35; }
.sf-price { font-size: 1.05rem; }
.sf-btn { border-radius: 12px; padding: 12px 22px; transition: transform .12s, box-shadow .15s, filter .15s; box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); }
.sf-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.sf-btn.secondary { box-shadow: none; }
.sf-box { border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 30px -22px rgba(15,23,42,.25); }
.sf-form input, .sf-form select, .sf-form textarea { border-radius: 10px; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.sf-form input:focus, .sf-form select:focus, .sf-form textarea:focus { outline: none; border-color: var(--store-primary); box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
.sf-table { border-radius: 14px; overflow: hidden; border: 1px solid #e5e7eb; }
.sf-table th { background: #f8fafc; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; }
.sf-badge { font-weight: 600; }
.sf-gallery img { box-shadow: 0 24px 60px -30px rgba(0,0,0,.4); }
.sf-footer { background: #0b1120; }
.sf-whats { transition: transform .15s; }
.sf-whats:hover { transform: scale(1.06); }
.btn-link { background: none; border: 0; color: var(--store-primary); cursor: pointer; text-decoration: underline; font: inherit; padding: 0; }
