:root {
  --ink: #14251f;
  --muted: #607069;
  --forest: #19372d;
  --forest-2: #285846;
  --button-text: #ffffff;
  --gradient-start: #19372d;
  --gradient-end: #285846;
  --lime: #d9f16f;
  --cream: #f7f3e8;
  --paper: #fffdf8;
  --line: #dfe5df;
  --danger: #a33232;
  --shadow: 0 18px 50px rgba(20, 37, 31, .10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; background: white; padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.notice-bar { background: var(--lime); color: var(--ink); text-align: center; padding: 8px 20px; font-size: .86rem; font-weight: 750; }
.site-header { background: color-mix(in srgb, var(--paper) 96%, transparent); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.header-main { min-height: 82px; display: grid; grid-template-columns: auto minmax(280px, 1fr) auto; gap: 28px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 58px; height: 58px; display: grid; flex: 0 0 auto; place-items: center; padding: 5px; border-radius: 14px 14px 14px 5px; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: var(--button-text); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand strong { display: block; font: 800 1.25rem Georgia, serif; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.search-form { display: flex; border: 1px solid var(--line); background: white; border-radius: 999px; overflow: hidden; }
.search-form input { min-width: 0; flex: 1; border: 0; padding: 12px 18px; outline: none; }
.search-form:focus-within { box-shadow: 0 0 0 3px rgba(40,88,70,.18); border-color: var(--forest-2); }
.search-form button { border: 0; background: var(--forest); color: var(--button-text); padding: 0 20px; cursor: pointer; font-weight: 700; }
.account-nav { display: flex; align-items: center; gap: 15px; font-weight: 700; font-size: .9rem; }
.account-nav a { text-decoration: none; }
.account-nav form { margin: 0; }
.pill-link { border: 1px solid var(--forest); border-radius: 999px; padding: 8px 13px; }
.link-button { border: 0; padding: 0; color: var(--muted); background: transparent; cursor: pointer; }
.category-nav { border-top: 1px solid var(--line); }
.category-nav .container { display: flex; gap: 30px; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.category-nav a { text-decoration: none; white-space: nowrap; font-size: .84rem; font-weight: 700; color: var(--muted); }
.hero { background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: var(--button-text); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(217,241,111,.2); border-radius: 50%; right: -130px; top: -270px; box-shadow: 0 0 0 80px rgba(217,241,111,.035), 0 0 0 160px rgba(217,241,111,.025); }
.hero-grid { min-height: 540px; display: grid; grid-template-columns: 1.4fr .6fr; gap: 70px; align-items: center; padding-block: 70px; position: relative; z-index: 1; }
.eyebrow { display: inline-block; color: var(--forest-2); font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-light { color: var(--lime); }
.hero h1 { max-width: 760px; margin: 10px 0 20px; font: 700 clamp(2.8rem, 6vw, 5.2rem)/.98 Georgia, serif; letter-spacing: -.04em; }
.hero-copy > p { max-width: 650px; color: var(--button-text); opacity: .82; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 45px; padding: 11px 19px; border: 0; border-radius: 12px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--button-text); background: var(--forest); box-shadow: 0 8px 20px rgba(25,55,45,.18); }
.button-primary:hover { filter: brightness(.9); }
.button-accent { background: var(--lime); color: var(--ink); }
.button-ghost { color: var(--button-text); border: 1px solid color-mix(in srgb, var(--button-text) 35%, transparent); background: transparent; }
.button-muted { background: #edf0ed; color: #718079; }
.button-muted[aria-disabled="true"] { cursor: not-allowed; }
.button-block { width: 100%; }
.button-large { min-height: 56px; font-size: 1rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--button-text); opacity: .82; font-size: .88rem; }
.hero-trust li::before { content: "✓"; color: var(--lime); margin-right: 7px; font-weight: 900; }
.hero-card { padding: 34px; border: 1px solid rgba(255,255,255,.2); border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); box-shadow: var(--shadow); }
.hero-card span { color: var(--lime); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .72rem; }
.hero-card strong { display: block; margin: 10px 0; font: 700 2.2rem Georgia, serif; }
.hero-card p { color: var(--button-text); opacity: .82; margin: 0; }
.category-strip, .products-section, .page-section { padding-block: 72px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h1, .section-heading h2 { margin: 5px 0 0; font: 700 clamp(2rem,4vw,3rem)/1.05 Georgia, serif; letter-spacing: -.025em; }
.section-heading > p { max-width: 420px; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-grid a { display: flex; min-height: 106px; padding: 20px; flex-direction: column; justify-content: space-between; text-decoration: none; border: 1px solid var(--line); border-radius: 16px; background: white; transition: .18s; }
.category-grid a:hover { border-color: var(--forest-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.category-grid span { font-weight: 800; }
.category-grid small { color: var(--muted); }
.products-section { border-top: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-image-wrap { height: 270px; display: block; position: relative; overflow: hidden; background: var(--cream); }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover img { transform: scale(1.025); }
.condition-badge { position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(255,253,248,.92); font-size: .72rem; font-weight: 800; }
.product-card-body { padding: 19px; }
.product-card h3 { min-height: 48px; margin: 7px 0 13px; font-size: 1rem; line-height: 1.45; }
.product-card h3 a { text-decoration: none; }
.price, .detail-price { margin: 0 0 16px; font: 800 1.35rem Georgia, serif; }
.how-it-works { background: var(--cream); padding-block: 72px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; list-style: none; }
.steps li { display: flex; gap: 16px; padding: 24px; background: var(--paper); border-radius: 16px; }
.steps li > span { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); font-weight: 900; }
.steps p { margin: 4px 0 0; color: var(--muted); }
.breadcrumb { display: flex; gap: 9px; padding-top: 28px; color: var(--muted); font-size: .85rem; }
.product-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; padding-block: 34px 70px; }
.product-gallery { position: relative; min-height: 560px; overflow: hidden; background: var(--cream); border-radius: 26px; }
.product-gallery img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.image-note { position: absolute; bottom: 16px; left: 16px; padding: 7px 11px; border-radius: 9px; background: rgba(255,255,255,.9); font-size: .75rem; font-weight: 700; }
.product-summary { padding-top: 25px; }
.product-summary h1 { margin: 8px 0 24px; font: 700 clamp(2.2rem,4vw,3.5rem)/1.04 Georgia, serif; letter-spacing: -.035em; }
.detail-price { font-size: 2rem; }
.checkout-note, .login-hint { color: var(--muted); font-size: .88rem; }
.stock { display: flex; align-items: center; gap: 8px; margin: 25px 0 14px; font-weight: 750; }
.stock span { width: 9px; height: 9px; border-radius: 50%; }
.stock-available span { background: #2d9b65; box-shadow: 0 0 0 4px #dff3e9; }
.stock-review span { background: #b18125; box-shadow: 0 0 0 4px #f7edd3; }
.service-box { margin-top: 24px; padding: 18px; border-left: 4px solid var(--lime); background: var(--cream); border-radius: 0 12px 12px 0; }
.service-box p { margin: 4px 0 0; color: var(--muted); }
.product-description { padding-bottom: 80px; max-width: 840px; }
.product-description h2 { font: 700 2rem Georgia, serif; }
.product-description > p { color: var(--muted); font-size: 1.05rem; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.detail-chips span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 700; }
.auth-shell { min-height: 660px; display: grid; grid-template-columns: minmax(320px,.8fr) minmax(420px,1.2fr); background: var(--cream); }
.auth-aside { padding: clamp(45px,7vw,100px); background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: var(--button-text); }
.auth-aside h1 { margin: 10px 0 18px; font: 700 clamp(2.3rem,5vw,4rem)/1 Georgia, serif; }
.auth-aside p, .auth-aside li { color: #d5e0dc; }
.auth-aside ul { padding-left: 20px; }
.privacy-note { display: grid; gap: 5px; margin-top: 30px; padding: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; }
.privacy-note span { color: #d5e0dc; font-size: .88rem; }
.auth-card { align-self: center; width: min(620px, calc(100% - 40px)); margin: 42px auto; padding: clamp(28px,5vw,48px); background: white; border-radius: 24px; box-shadow: var(--shadow); }
.auth-card h2 { margin: 0; font: 700 2rem Georgia, serif; }
.muted { color: var(--muted); }
.form-stack { display: grid; gap: 17px; margin-top: 28px; }
.form-stack label { display: grid; gap: 7px; font-size: .85rem; font-weight: 750; }
.form-stack input, .form-stack textarea, .form-stack select { width: 100%; min-height: 48px; border: 1px solid #cfd7d2; border-radius: 10px; padding: 10px 13px; background: white; color: var(--ink); }
.form-stack textarea { resize: vertical; }
.form-stack input:focus, .form-stack textarea:focus, .form-stack select:focus { outline: 3px solid rgba(40,88,70,.14); border-color: var(--forest-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.document-choice { display: flex; gap: 15px; border: 0; padding: 0; margin: 0; }
.document-choice legend { width: 100%; margin-bottom: 8px; font-size: .85rem; font-weight: 750; }
.document-choice label { display: flex; grid-template-columns: auto 1fr; align-items: center; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; }
.document-choice input { width: auto; min-height: auto; }
.form-error { padding: 12px; border-radius: 10px; background: #fff0f0; color: var(--danger); margin-top: 18px; }
.field-error { color: var(--danger); font-weight: 600; }
.auth-switch { text-align: center; color: var(--muted); margin-top: 22px; }
.auth-switch a { color: var(--forest-2); font-weight: 800; }
.flash-stack { padding-top: 16px; }
.flash { padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: white; }
.flash-success { border-color: #a8dbc0; background: #edfaf3; }
.flash-info { border-color: #c9d5ed; background: #f1f5fc; }
.empty-state { padding: 55px; text-align: center; border: 1px dashed #bdc8c1; border-radius: 20px; background: var(--cream); }
.empty-state h1, .empty-state h2 { font-family: Georgia, serif; }
.account-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.account-heading h1 { margin: 7px 0; font: 700 3rem Georgia, serif; }
.status-badge { padding: 8px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.status-active { background: #dff3e9; color: #176741; }
.status-pending_verification { background: #f7edd3; color: #805a14; }
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0; }
.account-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.account-grid article > span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; }
.account-grid strong { display: block; margin-top: 8px; font-size: 1.15rem; }
.account-grid p { color: var(--muted); margin-bottom: 0; }
.admin-summary { display: grid; text-align: right; }
.admin-summary strong { font: 700 2rem Georgia, serif; }
.admin-summary span { color: var(--muted); font-size: .8rem; }
.admin-callout { display: flex; gap: 10px; margin-bottom: 20px; padding: 14px 17px; border-radius: 12px; background: #f1f5fc; border: 1px solid #c9d5ed; }
.admin-callout span { color: var(--muted); }
.admin-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.admin-toolbar a:not(.button) { color: var(--forest-2); font-weight: 800; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: white; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 15px 17px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; background: #fafbf9; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-product { min-width: 310px; display: flex; align-items: center; gap: 12px; }
.admin-product img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--cream); }
.admin-product strong, .admin-product small { display: block; }
.admin-product small, .admin-table td > small { color: var(--muted); }
.table-status { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-size: .7rem; font-weight: 850; }
.table-status-active { background: #dff3e9; color: #176741; }
.table-status-review { background: #f7edd3; color: #805a14; }
.table-status-archived { background: #edf0ed; color: #607069; }
.button-small { min-height: 36px; padding: 7px 12px; color: var(--forest); background: var(--cream); }
.admin-edit-grid { display: grid; grid-template-columns: 310px 1fr; align-items: start; gap: 30px; margin-top: 25px; }
.admin-product-preview { position: sticky; top: 160px; display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; overflow-wrap: anywhere; }
.admin-product-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--cream); }
.admin-product-preview a { color: var(--forest-2); font-weight: 800; }
.admin-form-card { padding: clamp(25px,4vw,45px); border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.admin-form-card h1 { margin: 5px 0 15px; font: 700 2.5rem Georgia, serif; }
.form-section { display: grid; gap: 17px; padding: 22px 0; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; }
.form-section h2 { margin: 0; font: 700 1.35rem Georgia, serif; }
.input-help { color: var(--muted); font-weight: 500; }
.char-count { justify-self: end; color: var(--muted); font-weight: 600; }
.image-placeholder { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: var(--cream); color: var(--muted); font-weight: 800; }
.admin-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.category-hero { padding-block: 75px; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: var(--button-text); }
.category-hero h1 { margin: 8px 0 14px; font: 700 clamp(2.8rem,6vw,5rem)/1 Georgia, serif; }
.category-hero p { max-width: 720px; color: var(--button-text); opacity: .82; font-size: 1.05rem; }
.site-footer { padding-top: 54px; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: var(--button-text); }

.theme-editor-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 24px; align-items: start; }
.theme-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 30px; }
.theme-preset { display: grid; gap: 10px; padding: 14px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); cursor: pointer; }
.theme-preset:hover, .theme-preset:focus-visible { border-color: var(--forest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest) 14%, transparent); }
.theme-preset-gradient { width: 100%; height: 48px; display: block; border-radius: 10px; background: linear-gradient(135deg, var(--preset-start), var(--preset-end)); }
.theme-color-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.color-field { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.color-field input[type="color"] { width: 42px; height: 36px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.color-field output { font: 700 .82rem ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--muted); }
.theme-logo-editor { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
.theme-logo-backdrop { width: 150px; aspect-ratio: 1; display: grid; place-items: center; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); }
.theme-logo-backdrop img { width: 100%; height: 100%; object-fit: contain; }
.theme-preview { position: sticky; top: 155px; overflow: hidden; border-radius: 22px; background: var(--preview-background, var(--paper)); color: var(--preview-text, var(--ink)); box-shadow: var(--shadow); }
.theme-preview-brand { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; color: var(--preview-button-text, var(--button-text)); background: linear-gradient(135deg, var(--preview-gradient-start, var(--gradient-start)), var(--preview-gradient-end, var(--gradient-end))); }
.theme-preview-brand img { width: 130px; height: 130px; object-fit: contain; }
.theme-preview-brand strong { margin-top: 8px; font: 800 1.35rem Georgia, serif; }
.theme-preview-brand span { font-size: .72rem; opacity: .8; }
.theme-preview-content { padding: 32px; }
.theme-preview h2 { margin: 8px 0 12px; font: 700 2.2rem/1.05 Georgia, serif; }
.theme-preview-button { align-self: flex-start; margin-top: 15px; padding: 12px 18px; border-radius: 12px; background: var(--preview-button, var(--forest)); color: var(--preview-button-text, var(--button-text)); font-weight: 800; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-grid p { color: var(--button-text); opacity: .75; }
.footer-bottom { margin-top: 40px; padding-block: 20px; border-top: 1px solid color-mix(in srgb, var(--button-text) 18%, transparent); color: var(--button-text); opacity: .7; font-size: .78rem; }
.add-cart-form { display: grid; gap: 12px; }
.add-cart-form label { max-width: 140px; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cart-items, .checkout-form, .order-items, .order-list { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) 110px auto; gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.cart-item img { width: 92px; height: 78px; object-fit: cover; border-radius: 10px; }
.cart-item div { display: grid; gap: 5px; }
.cart-item a { color: var(--ink); }
.cart-item span, .cart-summary p, .muted { color: var(--muted); }
.cart-summary { position: sticky; top: 155px; display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.cart-summary h2 { margin: 0; }
.cart-summary > div, .order-items > div, .order-list a { display: flex; justify-content: space-between; gap: 18px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.summary-total { font-size: 1.08rem; border-bottom: 0 !important; }
.checkout-form { padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: white; }
.checkout-form fieldset { display: grid; gap: 12px; padding: 0; border: 0; }
.checkout-form legend { margin-bottom: 12px; font: 700 1.35rem Georgia, serif; }
.choice-card { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.choice-card input { width: auto; }
.choice-card span { display: grid; gap: 4px; }
.choice-card small { color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 90px; gap: 14px; }
.security-note, .order-status { padding: 16px; border-radius: 14px; background: var(--cream); }
.security-note p { margin-bottom: 0; color: var(--muted); }
.order-page { max-width: 850px; }
.order-page h1 { font: 700 clamp(2.2rem, 5vw, 3.8rem) Georgia, serif; }
.order-items { margin: 24px 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.order-list { margin: 25px 0; }
.order-list a { color: var(--ink); }

@media (max-width: 900px) {
  .header-main { grid-template-columns: 1fr auto; padding-block: 14px; }
  .search-form { grid-column: 1 / -1; grid-row: 2; }
  .hero-grid, .product-detail, .auth-shell, .theme-editor-grid, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 35px; min-height: auto; }
  .hero-card { max-width: 500px; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .account-grid { grid-template-columns: 1fr; }
  .product-gallery { min-height: 440px; }
  .theme-preview { position: static; min-height: 280px; }
  .cart-summary { position: static; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 26px, 1180px); }
  .notice-bar { font-size: .74rem; }
  .account-nav .pill-link { display: none; }
  .category-nav .container { gap: 18px; }
  .hero-grid { padding-block: 55px; }
  .hero h1 { font-size: 2.75rem; }
  .category-grid, .product-grid, .form-row, .theme-color-grid, .theme-presets { grid-template-columns: 1fr; }
  .product-image-wrap { height: 310px; }
  .section-heading, .account-heading { align-items: start; flex-direction: column; }
  .product-detail { gap: 25px; }
  .product-gallery { min-height: 350px; }
  .auth-shell { display: block; }
  .auth-aside { padding: 50px 26px; }
  .document-choice { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-edit-grid { grid-template-columns: 1fr; }
  .admin-product-preview { position: static; }
  .theme-logo-editor { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item img { width: 72px; height: 72px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ========================================================================== 
   Camada JMSites — padroniza-layout adaptado à identidade EmCotia
   ========================================================================== */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/sora-latin-800-normal.woff2") format("woff2"); }

:root {
  --yellow: #d9f16f;
  --yellow-400: #e5f88f;
  --yellow-600: #b8d44a;
  --white: #ffffff;
  --bg-soft: color-mix(in srgb, var(--paper) 88%, #edf0fa);
  --line-2: color-mix(in srgb, var(--line) 60%, transparent);
  --wa: #25d366;
  --wa-ink: #063d1e;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 2px 10px color-mix(in srgb, var(--gradient-start) 8%, transparent);
  --shadow: 0 12px 34px color-mix(in srgb, var(--gradient-start) 14%, transparent);
  --shadow-lg: 0 26px 60px rgba(7, 17, 44, .22);
  --glow: 0 0 0 4px color-mix(in srgb, var(--forest) 18%, transparent);
  --container: 1160px;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Sora", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; font-family: var(--sans); font-size: 17px; font-weight: 450; line-height: 1.62; background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, h4, .brand strong, .footer-brand { font-family: var(--display); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6vw, 3.7rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.4rem); }
a { color: var(--forest); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 5px; }
.container { width: 100%; max-width: var(--container); padding-inline: 20px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 110; background: var(--forest); color: var(--button-text); font-weight: 800; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

.notice-bar { padding: 7px 20px; background: var(--yellow); color: #243000; font-size: .78rem; font-weight: 800; letter-spacing: .01em; }
.site-header { top: 0; z-index: 60; background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); }
.site-header__bar.header-main { min-height: 74px; display: flex; flex-wrap: wrap; grid-template-columns: none; gap: 1rem; padding-block: 8px; }
.brand { flex: 0 0 auto; gap: 10px; }
.brand-mark { width: 52px; height: 52px; padding: 5px; border-radius: 14px 14px 14px 5px; box-shadow: 0 6px 18px color-mix(in srgb, var(--gradient-start) 20%, transparent); }
.brand-mark img { width: 42px; height: 42px; }
.brand strong { font-size: 1.08rem; }
.brand small { font-size: .62rem; font-weight: 700; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.header-cart { display: inline-flex; align-items: center; gap: .42rem; padding: .58rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-size: .84rem; font-weight: 800; box-shadow: var(--shadow-sm); }
.header-cart strong { min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; background: var(--yellow); color: #263100; font-size: .72rem; }
.header-cart:hover { border-color: var(--forest); text-decoration: none; }
.main-nav { display: block; order: 4; flex-basis: 100%; padding-bottom: .5rem; }
.main-nav ul { list-style: none; display: flex; flex-direction: column; gap: .05rem; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .72rem .2rem; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover { color: var(--forest); }
.js .main-nav { display: none; }
.js .main-nav.is-open { display: block; }
.nav-toggle { display: none; align-items: center; gap: .38rem; padding: .62rem .78rem; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: var(--button-text); font: 800 .86rem var(--sans); cursor: pointer; }
.js .nav-toggle { display: inline-flex; }
.account-nav { gap: .65rem; font-size: .82rem; }
.account-nav .button { min-height: 38px; padding: .5rem .85rem; }
.header-search { padding: 9px 0; border-top: 1px solid var(--line-2); background: color-mix(in srgb, var(--paper) 96%, transparent); }
.header-search .search-form { width: calc(100% - 40px); max-width: 760px; margin-inline: auto; padding: 0; border-radius: 999px; box-shadow: var(--shadow-sm); }
.search-form input { min-height: 44px; font-family: var(--sans); }
.search-form button { padding-inline: 22px; background: var(--forest); color: var(--button-text); }
.search-form:focus-within { border-color: var(--forest); box-shadow: var(--glow); }

.button { min-height: 46px; gap: .5rem; padding: .78rem 1.35rem; border-radius: 999px; font-family: var(--sans); font-size: .94rem; letter-spacing: -.01em; transition: transform .12s ease, box-shadow .2s ease, filter .2s ease; }
.button:hover { transform: translateY(-2px); text-decoration: none; }
.button-primary { background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: var(--button-text); box-shadow: 0 8px 22px color-mix(in srgb, var(--gradient-start) 28%, transparent); }
.button-primary:hover { filter: brightness(.92); box-shadow: 0 12px 28px color-mix(in srgb, var(--gradient-start) 34%, transparent); }
.button-accent { background: linear-gradient(135deg, var(--yellow-400), var(--yellow-600)); color: #293300; box-shadow: 0 8px 22px rgba(180, 210, 65, .28); }
.button-secondary { border: 2px solid var(--line); background: var(--white); color: var(--forest); }
.button-secondary:hover { border-color: var(--forest); }
.button-whatsapp { background: var(--wa); color: var(--wa-ink); }
.button-muted { color: var(--muted); background: var(--bg-soft); }
.button-large { min-height: 54px; padding-inline: 1.8rem; font-size: 1rem; }

.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--forest); font-size: .75rem; font-weight: 800; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--yellow); }
.eyebrow--on-dark, .eyebrow-light { color: var(--yellow-400); }
.eyebrow--on-dark::before, .eyebrow-light::before { background: var(--yellow); }
.hero { isolation: isolate; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); }
.hero::before { content: ""; position: absolute; z-index: -1; right: -8%; top: -25%; width: 60%; height: 150%; background: radial-gradient(closest-side, color-mix(in srgb, var(--yellow) 18%, transparent), transparent 70%); transform: rotate(8deg); }
.hero::after { z-index: -1; width: 560px; height: 560px; border-color: color-mix(in srgb, var(--yellow) 22%, transparent); }
.hero-grid { min-height: 510px; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3.2rem, 7vw, 5.6rem); }
.hero h1 { max-width: 700px; margin: .65rem 0 1.2rem; font-family: var(--display); font-size: clamp(2.55rem, 6vw, 4.8rem); line-height: .99; }
.hero-copy > p { color: color-mix(in srgb, var(--button-text) 84%, transparent); }
.hero-card { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); backdrop-filter: blur(4px); }
.hero-card strong { font-family: var(--display); }
.hero-trust { color: var(--button-text); }

.page-hero, .category-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 0; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: var(--button-text); }
.page-hero::before, .category-hero::before { content: ""; position: absolute; z-index: -1; right: -8%; top: -60%; width: 55%; height: 220%; background: radial-gradient(closest-side, color-mix(in srgb, var(--yellow) 18%, transparent), transparent 70%); }
.page-hero .container, .category-hero .container { padding-block: clamp(2.8rem, 6vw, 4.5rem); }
.page-hero h1, .category-hero h1 { color: var(--button-text); font-family: var(--display); }
.page-hero .lead, .category-hero .lead { max-width: 760px; color: color-mix(in srgb, var(--button-text) 82%, transparent); }
.category-strip, .products-section, .page-section { padding-block: clamp(3rem, 7vw, 5.3rem); }
.section-heading h1, .section-heading h2, .product-summary h1, .product-description h2, .auth-aside h1, .auth-card h2, .account-heading h1, .admin-form-card h1, .form-section h2, .checkout-form legend, .order-page h1 { font-family: var(--display); }
.section-heading h1, .section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); }

.category-grid { gap: 1rem; }
.category-grid a { min-height: 116px; padding: 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.category-grid a::after { content: "→"; color: var(--forest); font-size: 1.2rem; transition: transform .2s ease; }
.category-grid a:hover { border-color: var(--forest); box-shadow: var(--shadow); }
.category-grid a:hover::after { transform: translateX(4px); }
.products-section { border-color: var(--line); }
.product-grid { gap: 1.25rem; }
.product-card { position: relative; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.product-card::before { content: ""; position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--yellow), var(--forest)); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.product-card:hover { border-color: var(--line); box-shadow: var(--shadow); }
.product-card:hover::before { transform: scaleX(1); }
.product-image-wrap { height: auto; aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--bg-soft), var(--white)); }
.product-image-wrap img { object-fit: contain; mix-blend-mode: multiply; }
.product-card-body { display: flex; flex-direction: column; min-height: 245px; padding: 1.2rem; }
.product-card h3 { min-height: auto; margin: .45rem 0 .75rem; font-family: var(--display); }
.product-card .price { margin-top: auto; }
.price, .detail-price { font-family: var(--display); color: var(--ink); }
.condition-badge, .condition-inline { display: inline-flex; width: fit-content; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--white) 92%, transparent); color: var(--muted); font-size: .72rem; font-weight: 800; }
.condition-inline { margin-left: .55rem; vertical-align: middle; }
.how-it-works { background: var(--bg-soft); }
.steps li { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.steps li > span { background: var(--yellow); }

.breadcrumb { padding-block: 1.2rem .3rem; }
.breadcrumb a { color: var(--muted); font-weight: 700; }
.product-detail { align-items: start; gap: clamp(2rem, 6vw, 4rem); }
.product-gallery { min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(160deg, var(--bg-soft), var(--white)); box-shadow: var(--shadow-sm); }
.product-gallery img { object-fit: contain; mix-blend-mode: multiply; }
.product-summary h1 { font-size: clamp(2.2rem, 4vw, 3.55rem); }
.service-box { border-left-color: var(--yellow-600); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.detail-chips span { border-radius: 999px; background: var(--white); }

.auth-shell { background: var(--bg-soft); }
.auth-aside { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); }
.auth-aside::after { content: ""; position: absolute; right: -30%; bottom: -30%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--yellow) 16%, transparent), transparent 70%); }
.auth-card, .admin-form-card, .checkout-form, .cart-summary, .order-items, .account-grid article { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.auth-card { border: 1px solid var(--line); }
.form-stack input, .form-stack textarea, .form-stack select, .checkout-form input, .cart-item input { border-radius: var(--radius-sm); font-family: var(--sans); }
.form-stack input:focus, .form-stack textarea:focus, .form-stack select:focus, .checkout-form input:focus, .cart-item input:focus { outline: none; border-color: var(--forest); box-shadow: var(--glow); }
.document-choice label, .choice-card { background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; }
.document-choice label:has(input:checked), .choice-card:has(input:checked) { border-color: var(--forest); box-shadow: var(--glow); }
.flash, .form-error, .security-note, .order-status { border-radius: var(--radius); }
.empty-state { border-radius: var(--radius-lg); background: var(--bg-soft); }
.empty-state h1, .empty-state h2 { font-family: var(--display); }

.cart-layout, .checkout-layout { gap: 2rem; }
.cart-item { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.cart-item img { background: var(--bg-soft); object-fit: contain; }
.cart-summary { top: 170px; border-radius: var(--radius-lg); }
.checkout-form { gap: 1.3rem; }
.choice-card { border-radius: var(--radius); }
.security-note { border: 1px solid color-mix(in srgb, var(--forest) 18%, var(--line)); background: var(--bg-soft); }
.order-status { border-left: 4px solid var(--forest); }

.site-footer { margin-top: 0; padding-block: 3.5rem 6.5rem; background: linear-gradient(135deg, color-mix(in srgb, var(--gradient-start) 78%, #050f38), color-mix(in srgb, var(--gradient-end) 72%, #050f38)); color: #dbe1f0; }
.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
.footer-brand { display: block; color: var(--button-text); font-size: 1.35rem; font-weight: 800; }
.site-footer h3 { color: var(--button-text); font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .48rem; }
.site-footer a { color: color-mix(in srgb, var(--button-text) 86%, transparent); }
.site-footer__text { color: color-mix(in srgb, var(--button-text) 70%, transparent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; margin-top: 2.2rem; padding-block: 1.25rem 0; border-top: 1px solid color-mix(in srgb, var(--button-text) 16%, transparent); color: color-mix(in srgb, var(--button-text) 65%, transparent); }
.footer-bottom p { margin: 0; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: none; align-items: center; gap: .5rem; padding: .85rem 1.15rem; border-radius: 999px; background: var(--wa); color: var(--wa-ink); font-weight: 800; text-decoration: none; box-shadow: 0 10px 28px rgba(37, 211, 102, .4); }
.wa-float:hover { transform: translateY(-2px); text-decoration: none; }
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .55rem .6rem calc(.55rem + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--white) 94%, transparent); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(7, 17, 44, .1); backdrop-filter: blur(10px); }
.action-bar .button { min-height: 44px; padding: .65rem 1rem; }

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1.2fr; }
  .site-footer { padding-bottom: 3rem; }
  .wa-float { display: inline-flex; }
  .action-bar { display: none; }
}

@media (min-width: 980px) {
  .site-header__bar.header-main { flex-wrap: nowrap; }
  .main-nav, .js .main-nav { display: block; order: 0; flex: 0 1 auto; padding: 0; }
  .main-nav ul { flex-direction: row; align-items: center; gap: 1.05rem; }
  .main-nav a { position: relative; padding: .55rem 0; border: 0; font-size: .85rem; white-space: nowrap; }
  .main-nav a::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 2px; background: var(--yellow-600); transition: width .2s ease; }
  .main-nav a:hover::after { width: 100%; }
  .nav-toggle, .js .nav-toggle { display: none; }
  .header-search .search-form { max-width: var(--container); }
}

@media (max-width: 979px) {
  .brand-copy small { display: none; }
  .account-nav .header-cta, .account-nav form, .account-nav a:nth-of-type(n+2) { display: none; }
  .main-nav { width: 100%; }
}

@media (max-width: 600px) {
  body { padding-bottom: calc(63px + env(safe-area-inset-bottom, 0px)); }
  .container { padding-inline: 13px; }
  .site-header__bar.header-main { min-height: 66px; gap: .5rem; }
  .brand-mark { width: 45px; height: 45px; }
  .brand-mark img { width: 35px; height: 35px; }
  .brand strong { font-size: .95rem; }
  .header-cart { padding: .55rem; }
  .header-cart span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .account-nav { display: none; }
  .nav-toggle span:last-child { display: none; }
  .header-search .search-form { width: calc(100% - 26px); }
  .hero-grid { min-height: auto; padding-block: 3.4rem; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 3.4rem); }
  .hero-card { padding: 1.5rem; }
  .section-heading { gap: 1rem; }
  .product-card-body { min-height: 225px; }
  .product-gallery { min-height: 340px; }
  .cart-item { padding: 13px; }
  .site-footer { padding-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
