:root {
    --ink: #21151b;
    --ink-soft: #54434a;
    --muted: #786a70;
    --line: #e6d9d2;
    --paper: #fbf8f4;
    --paper-deep: #f1e8e1;
    --white: #fffefa;
    --cherry: #8c1833;
    --cherry-dark: #671126;
    --coral: #d8645a;
    --teal: #125b61;
    --teal-dark: #0c464b;
    --gold: #d9a65a;
    --success: #26745c;
    --danger: #a32d3a;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); }
body.cart-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.icon, .button-icon, .inline-icon { display: inline-block; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 21px; height: 21px; }
.button-icon { width: 16px; height: 16px; }
.inline-icon { width: 15px; height: 15px; vertical-align: -2px; }

.announcement { color: #f8fbf8; background: var(--teal-dark); font-size: .76rem; letter-spacing: .01em; }
.announcement-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1180px, calc(100% - 48px)); min-height: 34px; margin-inline: auto; }
.announcement strong { color: #f7d9b1; font-weight: 700; }
.announcement a { display: inline-flex; align-items: center; gap: 5px; color: #f8fbf8; font-weight: 700; }
.announcement a:hover { color: #f7d9b1; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 244, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-main { display: grid; grid-template-columns: 148px minmax(280px, 1fr) auto; align-items: center; gap: 28px; min-height: 82px; }
.brand { display: inline-flex; align-items: center; width: fit-content; color: var(--cherry); font-family: Georgia, "Times New Roman", serif; font-size: 1.68rem; font-weight: 700; line-height: 1; }
.brand-logo { width: 30px; height: 30px; margin-right: 8px; object-fit: contain; }
.brand-word { letter-spacing: 0; }
.brand-sub { margin-left: 7px; color: var(--teal); font-family: "Segoe UI", Inter, Arial, sans-serif; font-size: .42em; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.site-search { display: flex; align-items: center; min-width: 0; border: 1px solid #d6c7be; background: var(--white); }
.site-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18, 91, 97, .11); }
.site-search .icon { width: 19px; height: 19px; margin-left: 14px; color: var(--muted); }
.site-search input { min-width: 0; flex: 1; padding: 13px 14px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .9rem; }
.site-search input::placeholder { color: #93858a; }
.search-submit { align-self: stretch; padding: 0 18px; color: var(--cherry); background: transparent; font-size: .86rem; font-weight: 800; cursor: pointer; }
.search-submit:hover { color: var(--cherry-dark); background: #fcf0eb; }
.header-actions { display: flex; align-items: center; gap: 17px; }
.header-account { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); }
.header-account small, .header-account strong { display: block; }
.header-account small { color: var(--muted); font-size: .64rem; line-height: 1.2; }
.header-account strong { font-size: .84rem; }
.header-account:hover { color: var(--cherry); }
.cart-trigger { display: inline-flex; align-items: center; gap: 9px; padding: 11px 13px; color: var(--cherry); background: transparent; font-size: .86rem; font-weight: 800; cursor: pointer; }
.cart-trigger:hover { background: #fcf0eb; }
.cart-trigger b { display: inline-grid; min-width: 20px; height: 20px; padding-inline: 4px; place-items: center; color: #fff; background: var(--cherry); border-radius: 50%; font-size: .68rem; }
.cart-trigger .icon { width: 20px; height: 20px; }
.category-nav { border-top: 1px solid rgba(230, 217, 210, .65); }
.category-nav-inner { display: flex; align-items: center; gap: 24px; min-height: 43px; overflow-x: auto; scrollbar-width: none; }
.category-nav-inner::-webkit-scrollbar { display: none; }
.category-nav a { flex: 0 0 auto; color: var(--ink-soft); font-size: .79rem; font-weight: 700; white-space: nowrap; }
.category-nav a:hover, .category-nav-home { color: var(--cherry) !important; }
.category-nav-divider { width: 1px; height: 18px; flex: 0 0 1px; background: var(--line); }

.main { min-height: 60vh; }
.notice { margin-top: 18px; padding: 13px 16px; border: 1px solid #cce4d8; color: #1e604c; background: #eff9f3; font-size: .9rem; }
.btn, .builder-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 11px 16px; border: 1px solid transparent; border-radius: 4px; color: #fffaf6; background: var(--cherry); font-size: .83rem; font-weight: 800; line-height: 1.2; text-align: center; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.btn:hover, .builder-button:hover { color: #fffaf6; background: var(--cherry-dark); transform: translateY(-1px); }
.btn.secondary { color: var(--cherry); border-color: var(--cherry); background: transparent; }
.btn.secondary:hover { color: #fffaf6; background: var(--cherry); }
.btn-light { color: var(--ink); background: #f7d9b1; }
.btn-light:hover { color: var(--ink); background: #ffe7ca; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--cherry); font-size: .84rem; font-weight: 800; }
.text-link:hover { color: var(--cherry-dark); }
.text-link span { color: var(--coral); }
.eyebrow, .stock { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--teal); font-size: .7rem; font-weight: 900; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.eyebrow::before, .stock::before { width: 22px; height: 1px; content: ""; background: var(--coral); }

.home-hero { color: #fff8f1; background: var(--ink); }
.home-hero-grid, .home-hero .builder-container.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr); align-items: center; gap: 74px; width: min(1180px, calc(100% - 48px)); min-height: 570px; margin-inline: auto; padding-block: 64px 70px; }
.home-hero .hero-copy, .home-hero .builder-container.hero-grid > .hero-copy { min-width: 0; }
.home-hero h1, .home-hero .builder-heading { max-width: 620px; margin: 0; color: #fff8f1 !important; font-family: Georgia, "Times New Roman", serif !important; font-size: 4.55rem !important; font-weight: 700; letter-spacing: 0; line-height: 1.01 !important; }
.home-hero p, .home-hero .builder-text { max-width: 580px; margin: 23px 0 0; color: #ddcdd0 !important; font-size: 1.05rem !important; line-height: 1.72 !important; }
.home-hero .hero-eyebrow, .home-hero .hero-kicker { margin-bottom: 14px; color: #f0b6a9; }
.home-hero .hero-eyebrow::before, .home-hero .hero-kicker::before { background: var(--gold); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.hero-actions > span, .hero-note { color: #baa7ac; font-size: .76rem; }
.hero-image-wrap { position: relative; min-width: 0; }
.hero-image, .home-hero .builder-image.hero-image { width: 100%; height: 500px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; object-fit: cover; }
.hero-image-label { position: absolute; right: 16px; bottom: 18px; padding: 10px 11px; color: var(--ink); background: var(--gold); font-size: .62rem; font-weight: 900; letter-spacing: .14em; writing-mode: vertical-rl; }
.hero-caption { margin: 11px 0 0; color: #aa989d; font-size: .75rem; }
.home-hero .hero-image-wrap::after { position: absolute; right: 16px; bottom: 18px; padding: 10px 11px; content: "CEREJA PRIVÉ"; color: var(--ink); background: var(--gold); font-size: .62rem; font-weight: 900; letter-spacing: .14em; writing-mode: vertical-rl; }

.feature-section { background: var(--paper); }
.feature-intro { padding-block: 72px 28px; }
.feature-intro h2 { max-width: 690px; margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 2.75rem; line-height: 1.08; }
.feature-intro p { max-width: 640px; margin: 14px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.feature-products { padding-bottom: 76px; }
.builder-section.feature-section { padding: 0; }
.builder-container.feature-intro { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.builder-container.feature-products { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.product-card:hover { border-color: #c7afa4; box-shadow: 0 16px 34px rgba(33, 21, 27, .08); }
.product-image-link { position: relative; display: block; overflow: hidden; background: var(--paper-deep); }
.product-image-link img { width: 100%; height: 264px; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-image-link img { transform: scale(1.025); }
.product-badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 6px 8px; color: var(--ink); background: var(--gold); font-size: .63rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 17px 17px 16px; }
.product-category { margin-bottom: 7px; color: var(--teal); font-size: .65rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.product-card h3 { min-height: 2.45em; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.23rem; line-height: 1.22; }
.product-card h3 a:hover { color: var(--cherry); }
.product-card p { display: -webkit-box; min-height: 4.35em; margin: 10px 0 16px; overflow: hidden; color: var(--muted); font-size: .84rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-card-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; }
.product-card-footer strong { color: var(--cherry); font-size: 1.03rem; }
.product-card-footer span { color: var(--muted); font-size: .68rem; }
.product-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.product-card-actions .btn { min-width: 0; padding: 10px 7px; font-size: .73rem; }

.intent-section { padding-block: 76px; background: var(--paper-deep); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.section-heading-row h2 { margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 2.6rem; line-height: 1.08; }
.intent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.intent-card { min-height: 218px; padding: 22px; border: 1px solid #dccdc4; background: rgba(255, 254, 250, .62); }
.intent-card:hover { border-color: var(--coral); background: var(--white); }
.intent-number { color: var(--coral); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.intent-card h3 { margin: 25px 0 9px; color: var(--cherry); font-family: Georgia, "Times New Roman", serif; font-size: 1.43rem; }
.intent-card p { min-height: 3.25em; margin: 0 0 19px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.home-details { color: #f4fbf7; background: var(--teal); }
.detail-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 82px; align-items: start; padding-block: 76px; }
.detail-grid h2 { max-width: 540px; margin: 0; color: #fffaf6; font-family: Georgia, "Times New Roman", serif; font-size: 2.8rem; line-height: 1.08; }
.detail-grid > div > p { max-width: 510px; margin: 20px 0 0; color: #c9ded8; font-size: 1rem; line-height: 1.7; }
.detail-eyebrow { color: #f4c6b0; }
.detail-eyebrow::before { background: var(--gold); }
.trust-list { border-top: 1px solid rgba(255, 255, 255, .25); }
.trust-list article { display: grid; grid-template-columns: 45px 1fr; gap: 15px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.trust-list article > span { color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.trust-list strong { color: #fffaf6; font-size: 1rem; }
.trust-list p { margin: 6px 0 0; color: #c9ded8; font-size: .88rem; line-height: 1.5; }
.home-help { padding-block: 70px; background: var(--paper); }
.home-help-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.home-help h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 2.55rem; }
.home-help p { max-width: 650px; margin: 12px 0 0; color: var(--muted); line-height: 1.65; }

.catalog-hero { color: #fff8f1; background: var(--ink); }
.catalog-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 70px; align-items: end; padding-block: 62px 58px; }
.catalog-hero h1 { max-width: 770px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 3.8rem; line-height: 1.03; }
.catalog-hero p { max-width: 670px; margin: 18px 0 0; color: #d7c6ca; font-size: 1rem; line-height: 1.7; }
.catalog-hero .eyebrow { color: #efb9ac; }
.catalog-hero .eyebrow::before { background: var(--gold); }
.catalog-promise { padding: 21px; border-top: 3px solid var(--gold); background: #302229; }
.catalog-promise strong { color: #f7d9b1; font-family: Georgia, "Times New Roman", serif; font-size: 1.32rem; }
.catalog-promise p { margin: 10px 0; color: #e5d6d8; font-size: .86rem; line-height: 1.55; }
.catalog-promise b { color: #fff; letter-spacing: .08em; }
.catalog-promise span { color: #bda9ae; font-size: .72rem; }
.catalog-shell { padding-block: 44px 82px; }
.catalog-filters { display: grid; grid-template-columns: minmax(0, 1fr) 245px auto; align-items: end; gap: 12px; padding: 16px; border: 1px solid var(--line); background: var(--white); }
.catalog-filters label, .coupon-form > label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: .75rem; font-weight: 800; }
.input { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #d5c6bd; border-radius: 3px; outline: 0; color: var(--ink); background: #fffefa; font-size: .88rem; }
.input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18, 91, 97, .11); }
.category-chips { display: flex; gap: 8px; margin: 18px 0 23px; overflow-x: auto; scrollbar-width: none; }
.category-chips::-webkit-scrollbar { display: none; }
.category-chips a { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-soft); background: transparent; font-size: .75rem; font-weight: 800; }
.category-chips a:hover, .category-chips a.is-active { color: #fff; border-color: var(--cherry); background: var(--cherry); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.catalog-toolbar p { margin: 0; color: var(--muted); font-size: .83rem; }
.catalog-toolbar a { color: var(--cherry); font-size: .8rem; font-weight: 800; }
.catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty-state { grid-column: 1 / -1; padding: 60px 20px; border: 1px dashed #cdbbb1; text-align: center; }
.empty-state .empty-bag { width: 34px; height: 34px; margin: 0 auto 25px; color: var(--cherry); }
.empty-state h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.empty-state p { max-width: 450px; margin: 10px auto 20px; color: var(--muted); line-height: 1.6; }
.pagination { margin-top: 28px; }
.pagination nav { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; min-width: 36px; min-height: 36px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-soft); background: var(--white); font-size: .82rem; }
.pagination .active span { color: #fff; border-color: var(--cherry); background: var(--cherry); }

.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(370px, .78fr); gap: 76px; align-items: start; padding-block: 58px 78px; }
.product-media { min-width: 0; }
.product-media > img { width: 100%; height: 630px; border: 1px solid var(--line); border-radius: 4px; object-fit: cover; background: var(--paper-deep); }
.media-note { display: flex; gap: 8px; margin-top: 12px; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.media-note .inline-icon { color: var(--success); stroke-width: 3; }
.product-info { min-width: 0; padding-top: 16px; }
.breadcrumb { display: inline-block; margin-bottom: 18px; color: var(--teal); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb:hover { color: var(--cherry); }
.product-info h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 3.65rem; line-height: 1.02; }
.product-info > .lead { margin: 18px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.product-price-row { display: flex; align-items: center; gap: 15px; margin: 25px 0 24px; }
.price { color: var(--cherry); font-size: 1.7rem; font-weight: 900; }
.stock-pill { padding: 6px 8px; color: var(--success); border: 1px solid #b9daca; background: #eff9f3; font-size: .68rem; font-weight: 800; text-transform: capitalize; }
.field-block { display: grid; gap: 8px; margin: 22px 0; color: var(--ink-soft); font-size: .82rem; font-weight: 800; }
.product-actions { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; margin: 22px 0; }
.quantity-field .input { text-align: center; }
.product-note { margin: 26px 0; padding: 17px 18px; border-left: 3px solid var(--coral); background: var(--paper-deep); }
.product-note strong { color: var(--cherry); font-size: .9rem; }
.product-note p { margin: 7px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.product-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-block: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-benefits div { display: grid; gap: 5px; }
.product-benefits strong { font-size: .75rem; }
.product-benefits span { color: var(--muted); font-size: .72rem; line-height: 1.45; }
.product-description { margin-top: 29px; }
.product-description h2 { margin: 0 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.product-description p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.8; }
.related-section { padding-bottom: 82px; }
.related-section .section-heading-row { margin-bottom: 21px; }

.cart-backdrop { position: fixed; inset: 0; z-index: 29; background: rgba(33, 21, 27, .42); }
.cart-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; display: flex; width: min(470px, 100vw); flex-direction: column; overflow: auto; border-left: 1px solid var(--line); background: var(--white); box-shadow: -22px 0 60px rgba(33, 21, 27, .18); }
.cart-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 26px 17px; border-bottom: 1px solid var(--line); }
.cart-header .eyebrow { margin-bottom: 8px; font-size: .62rem; }
.cart-header h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.icon-button { display: inline-grid; width: 34px; height: 34px; place-items: center; color: var(--ink-soft); background: transparent; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.icon-button:hover { color: var(--cherry); background: var(--paper-deep); }
.cart-progress { display: flex; align-items: center; gap: 10px; padding: 14px 26px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .69rem; font-weight: 800; }
.cart-progress span { display: inline-flex; align-items: center; gap: 6px; }
.cart-progress span.is-active { color: var(--cherry); }
.cart-progress b { display: inline-grid; width: 20px; height: 20px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .66rem; }
.cart-progress i { width: 30px; height: 1px; background: var(--line); }
.cart-feedback { display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin: 18px 24px 0; padding: 15px; border: 1px solid #b8d9c8; background: #f0faf4; }
.feedback-check { display: inline-grid; width: 27px; height: 27px; place-items: center; color: #fff; background: var(--success); border-radius: 50%; }
.feedback-check .icon { width: 16px; height: 16px; stroke-width: 3; }
.cart-feedback strong { color: #1e604c; font-size: .89rem; }
.cart-feedback p { margin: 4px 0 0; color: #477a69; font-size: .76rem; line-height: 1.45; }
.feedback-actions { display: flex; grid-column: 1 / -1; gap: 8px; }
.feedback-actions .btn { flex: 1; min-height: 38px; padding: 9px 7px; font-size: .72rem; }
.cart-stage { padding: 22px 26px 30px; }
.cart-stage-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.cart-stage-heading strong, .suggestion-heading strong { display: block; font-size: .92rem; }
.cart-stage-heading span:not(.cart-item-count), .suggestion-heading span { display: block; margin-top: 4px; color: var(--muted); font-size: .73rem; line-height: 1.35; }
.cart-item-count { color: var(--teal); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.cart-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item-image { width: 56px; height: 66px; overflow: hidden; background: var(--paper-deep); }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-main { min-width: 0; }
.cart-item-main > strong { display: block; overflow: hidden; font-size: .81rem; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-variant { display: block; margin-top: 3px; color: var(--teal); font-size: .68rem; }
.cart-item-price { display: block; margin-top: 7px; color: var(--muted); font-size: .68rem; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 7px; }
.cart-item-side strong { color: var(--cherry); font-size: .78rem; white-space: nowrap; }
.remove-link { padding: 0; color: var(--muted); background: transparent; font-size: .67rem; cursor: pointer; }
.remove-link:hover { color: var(--danger); }
.quantity-control { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; border: 1px solid var(--line); }
.quantity-control button { display: inline-grid; width: 23px; height: 24px; place-items: center; color: var(--cherry); background: transparent; cursor: pointer; }
.quantity-control .icon { width: 13px; height: 13px; }
.quantity-control button:hover { background: var(--paper-deep); }
.quantity-control span { min-width: 12px; color: var(--ink); font-size: .72rem; text-align: center; }
.cart-empty { padding: 32px 10px 24px; text-align: center; }
.cart-empty .empty-bag { width: 34px; height: 34px; margin-bottom: 23px; color: var(--cherry); }
.cart-empty strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; }
.cart-empty p { margin: 8px auto 18px; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.cart-summary { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.cart-summary > div { display: flex; justify-content: space-between; gap: 15px; margin-top: 8px; color: var(--muted); font-size: .78rem; }
.cart-summary strong { color: var(--ink); font-size: .8rem; }
.cart-summary .summary-discount strong { color: var(--success); }
.cart-summary .summary-total { align-items: baseline; margin-top: 13px; color: var(--ink); font-weight: 800; }
.cart-summary .summary-total strong { color: var(--cherry); font-size: 1.12rem; }
.cart-incentive { margin: 13px 0 0; padding: 10px 11px; color: #6a4f25; background: #fff6e6; font-size: .7rem; line-height: 1.45; }
.cart-incentive strong, .cart-incentive b { color: #8a5a11; }
.cart-actions { display: grid; grid-template-columns: 1fr 1.15fr; gap: 9px; margin-top: 18px; }
.cart-actions .btn { min-height: 44px; padding-inline: 8px; font-size: .75rem; }
.cart-reassurance { margin: 14px 0 0; color: var(--muted); font-size: .69rem; line-height: 1.45; text-align: center; }
.cart-reassurance .inline-icon { color: var(--success); stroke-width: 3; }
.cart-suggestions { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.suggestion-heading { margin-bottom: 9px; }
.cart-suggestion { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid #eee5df; }
.cart-suggestion img { width: 42px; height: 46px; object-fit: cover; background: var(--paper-deep); }
.suggestion-copy { min-width: 0; }
.suggestion-copy strong, .suggestion-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-copy strong { font-size: .74rem; }
.suggestion-copy span { margin-top: 4px; color: var(--cherry); font-size: .69rem; font-weight: 800; }
.suggestion-link { padding: 5px 0 5px 8px; color: var(--cherry); background: transparent; font-size: .68rem; font-weight: 900; cursor: pointer; }
.suggestion-link:hover { color: var(--cherry-dark); }
.checkout-stage { padding-top: 19px; }
.back-to-list { display: inline-flex; align-items: center; gap: 6px; padding: 0; color: var(--cherry); background: transparent; font-size: .76rem; font-weight: 800; cursor: pointer; }
.back-to-list:hover { color: var(--cherry-dark); }
.checkout-heading { margin: 26px 0 18px; }
.checkout-heading .eyebrow { margin-bottom: 9px; font-size: .62rem; }
.checkout-heading h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; }
.checkout-heading p { margin: 7px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.checkout-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eee5df; }
.checkout-item-image { width: 34px; height: 38px; overflow: hidden; background: var(--paper-deep); }
.checkout-item-image img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item strong, .checkout-item span { display: block; font-size: .72rem; }
.checkout-item span { margin-top: 3px; color: var(--muted); font-size: .65rem; }
.checkout-item .cart-item-variant { color: var(--teal); }
.coupon-form { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.coupon-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.coupon-row .btn { min-height: 43px; padding-inline: 13px; }
.field-status { min-height: 1.25em; margin: 8px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.field-status.is-success { color: var(--success); }
.field-status.is-error { color: var(--danger); }
.order-form { display: grid; gap: 13px; margin-top: 20px; padding-top: 19px; border-top: 1px solid var(--line); }
.form-heading { display: grid; gap: 5px; margin-bottom: 2px; }
.form-heading strong { font-size: .88rem; }
.form-heading span { color: var(--muted); font-size: .72rem; }
.order-form label { display: grid; gap: 6px; color: var(--ink-soft); font-size: .74rem; font-weight: 800; }
.order-form label > span { color: var(--muted); font-weight: 400; }
.order-submit { width: 100%; margin-top: 3px; }
.order-privacy { margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.45; text-align: center; }

.site-footer { color: #f7eee8; background: var(--ink); }
.footer-main { display: grid; grid-template-columns: 1.2fr repeat(2, .75fr) 1.2fr; gap: 35px; padding-block: 54px 48px; }
.footer-brand { color: #fff8f1; }
.footer-brand .brand-sub { color: #f0b5a8; }
.footer-brand .brand-logo { filter: saturate(.9) brightness(1.08); }
.footer-brand-block p { max-width: 245px; margin: 18px 0 0; color: #c9b8bc; font-size: .86rem; line-height: 1.6; }
.footer-adult { display: inline-block; margin-top: 22px; color: #a99399; font-size: .68rem; }
.footer-column { display: grid; align-content: start; gap: 9px; }
.footer-column h2 { margin: 0 0 8px; color: #efb4a8; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-column a { color: #d5c7c9; font-size: .8rem; }
.footer-column a:hover { color: #fff8f1; }
.footer-contact p { margin: 0; color: #c9b8bc; font-size: .8rem; line-height: 1.6; }
.footer-contact strong { margin-top: 6px; color: #f7d9b1; font-size: .76rem; line-height: 1.45; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 16px 20px; border-top: 1px solid rgba(255, 255, 255, .16); color: #a99399; font-size: .66rem; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--teal); }
.auth-card { width: min(430px, 100%); padding: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; background: var(--white); box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.auth-card h1 { margin: 28px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 2.35rem; }
.auth-card label { display: grid; gap: 8px; margin-top: 17px; color: var(--ink-soft); font-size: .9rem; font-weight: 700; }
.auth-card .remember { display: flex; align-items: center; gap: 8px; margin: 16px 0 21px; font-weight: 400; }
.auth-card .remember input { width: auto; }
.error { color: var(--danger); font-size: .9rem; }

.admin-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: #f6f0eb; }
.sidebar { padding: 26px 20px; color: #f7eee7; background: var(--ink); }
.sidebar nav { display: grid; gap: 6px; margin-top: 32px; }
.sidebar a, .sidebar button { padding: 11px 12px; border-radius: 3px; color: #f7eee7; background: transparent; text-align: left; cursor: pointer; }
.sidebar a:hover, .sidebar button:hover { background: rgba(255,255,255,.1); }
.admin-main { min-width: 0; padding: 34px; }
.admin-main h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 42px; }
.admin-main .lead { margin-top: 9px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.kpi, .panel { border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.kpi { padding: 19px; }
.kpi span { color: var(--muted); font-size: .82rem; }
.kpi strong { display: block; margin-top: 9px; color: var(--cherry); font-size: 2rem; }
.panel { padding: 20px; }
.table { width: 100%; border-collapse: collapse; background: var(--white); }
.table th, .table td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.statusline { color: var(--muted); font-size: .78rem; line-height: 1.5; }

.editor-shell { min-height: 100vh; display: grid; grid-template-rows: 60px minmax(0, 1fr); color: var(--ink); background: #e9e0d9; }
.editor-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #d8ccc3; background: var(--white); }
.editor-workspace { display: grid; grid-template-columns: 270px minmax(0, 1fr) 310px; min-height: 0; }
.editor-pane { min-height: 0; overflow: auto; padding: 14px; border-right: 1px solid #d8ccc3; background: var(--white); }
.editor-pane.right { border-right: 0; border-left: 1px solid #d8ccc3; }
.palette { display: grid; gap: 8px; }
.palette button, .tree-node { padding: 10px; border: 1px solid #ddd0c6; border-radius: 3px; background: #fff; text-align: left; cursor: grab; }
.canvas-wrap { display: grid; place-items: start center; overflow: auto; padding: 26px; }
.canvas { width: min(100%, 1180px); min-height: 720px; background: #fff; box-shadow: 0 18px 70px rgba(36,21,27,.12); transform-origin: top center; }
.canvas.tablet { width: 760px; }
.canvas.mobile { width: 390px; }
.canvas [data-id] { position: relative; outline: 1px dashed transparent; }
.canvas [data-id]:hover { outline-color: rgba(139,23,49,.35); }
.canvas [data-id].selected { outline: 2px solid var(--cherry); outline-offset: 2px; }
.drop-marker { min-height: 44px; padding: 13px; border: 2px dashed var(--gold); border-radius: 3px; color: var(--muted); background: rgba(217,169,93,.1); }
.prop-group { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e4d8cf; }
.prop-group label { display: grid; gap: 6px; color: var(--ink-soft); font-size: .86rem; }

@media (max-width: 1040px) {
    .header-main { grid-template-columns: 135px minmax(240px, 1fr) auto; gap: 17px; }
    .header-account { display: none; }
    .home-hero-grid, .home-hero .builder-container.hero-grid { grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr); gap: 38px; }
    .home-hero h1, .home-hero .builder-heading { font-size: 3.8rem !important; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-main { grid-template-columns: 1.3fr repeat(2, 1fr); }
    .footer-contact { grid-column: 2 / -1; }
    .detail-grid { gap: 45px; }
}

@media (max-width: 760px) {
    .shell, .announcement-inner { width: min(100% - 32px, 560px); }
    .announcement-inner { min-height: 48px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding-block: 8px; }
    .header-main { grid-template-columns: 1fr auto; gap: 13px; min-height: auto; padding-block: 14px; }
    .site-search { grid-column: 1 / -1; grid-row: 2; }
    .category-nav-inner { gap: 18px; min-height: 41px; }
    .home-hero-grid, .home-hero .builder-container.hero-grid { grid-template-columns: 1fr; gap: 27px; min-height: 0; padding-block: 40px 44px; }
    .home-hero h1, .home-hero .builder-heading { max-width: 530px; font-size: 3.2rem !important; }
    .home-hero p, .home-hero .builder-text { font-size: .95rem !important; }
    .hero-image, .home-hero .builder-image.hero-image { height: 300px; }
    .section-heading-row, .home-help-inner { align-items: flex-start; flex-direction: column; }
    .feature-intro, .intent-section, .detail-grid, .home-help { padding-block: 54px; }
    .builder-container.feature-intro, .builder-container.feature-products { width: min(100% - 32px, 560px); }
    .feature-intro h2, .section-heading-row h2, .detail-grid h2, .home-help h2 { font-size: 2.25rem; }
    .intent-grid, .detail-grid { grid-template-columns: 1fr; }
    .detail-grid { gap: 33px; }
    .home-help-inner .btn { width: 100%; }
    .catalog-hero-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 45px; }
    .catalog-hero h1 { font-size: 3rem; }
    .catalog-filters { grid-template-columns: 1fr; }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-detail { grid-template-columns: 1fr; gap: 34px; padding-block: 36px 60px; }
    .product-media > img { height: 470px; }
    .product-info { padding-top: 0; }
    .product-info h1 { font-size: 3rem; }
    .related-section { padding-bottom: 60px; }
    .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
    .footer-contact { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; }
    .admin-layout { grid-template-columns: 1fr; }
    .sidebar { padding: 19px; }
    .sidebar nav { display: flex; flex-wrap: wrap; margin-top: 20px; }
    .admin-main { padding: 24px 16px; overflow: hidden; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .editor-workspace { grid-template-columns: 1fr; overflow: auto; }
    .editor-shell { height: auto; }
}

@media (max-width: 480px) {
    .brand { font-size: 1.47rem; }
    .cart-trigger { padding-inline: 5px; font-size: .77rem; }
    .cart-trigger .icon { width: 19px; height: 19px; }
    .search-submit { padding-inline: 13px; }
    .home-hero h1, .home-hero .builder-heading { font-size: 2.65rem !important; }
    .hero-image, .home-hero .builder-image.hero-image { height: 230px; }
    .product-grid, .catalog-grid { grid-template-columns: 1fr; }
    .product-image-link img { height: 270px; }
    .catalog-hero h1 { font-size: 2.55rem; }
    .catalog-promise { padding: 17px; }
    .product-info h1 { font-size: 2.58rem; }
    .product-media > img { height: 390px; }
    .product-benefits { grid-template-columns: 1fr; gap: 12px; }
    .product-actions { grid-template-columns: 86px minmax(0, 1fr); }
    .cart-panel { width: 100%; }
    .cart-header, .cart-progress, .cart-stage { padding-right: 18px; padding-left: 18px; }
    .cart-feedback { margin-right: 18px; margin-left: 18px; }
    .feedback-actions, .cart-actions { grid-template-columns: 1fr; flex-direction: column; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-contact { grid-column: auto; }
}

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

/* Admin */
.admin-body { min-height: 100vh; background: #f3f0ec; color: #1f2933; }
.admin-app { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 22px 18px; color: #eef2f0; background: #171b22; }
.admin-brand-row, .admin-store-link, .admin-user-card, .admin-logout { display: flex; align-items: center; gap: 12px; }
.admin-brand-row { justify-content: space-between; margin-bottom: 18px; }
.admin-brand { display: inline-flex; align-items: baseline; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 800; }
.admin-brand .brand-logo { width: 25px; height: 25px; margin-right: 7px; }
.admin-brand small { margin-left: 6px; color: #f0b6a9; font-family: "Segoe UI", Arial, sans-serif; font-size: .42em; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.admin-environment { padding: 4px 7px; border: 1px solid rgba(255,255,255,.16); color: #d9a65a; font-size: .6rem; font-weight: 900; letter-spacing: .12em; }
.admin-store-link, .admin-user-card { padding: 12px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.04); }
.admin-store-mark, .admin-avatar, .profile-avatar { display: grid; flex: 0 0 auto; place-items: center; color: #171b22; background: #d9a65a; font-weight: 900; }
.admin-store-mark, .admin-avatar { width: 34px; height: 34px; }
.admin-store-mark { padding: 5px; object-fit: contain; background: #fff7e7; }
.admin-store-link strong, .admin-user-card strong { display: block; overflow: hidden; max-width: 160px; color: #fff; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-store-link small, .admin-user-card small { display: block; margin-top: 3px; color: #98a2ad; font-size: .7rem; }
.admin-nav { display: grid; gap: 5px; margin-top: 26px; }
.admin-nav-label { margin: 18px 10px 6px; color: #7e8a96; font-size: .66rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.admin-nav-link, .admin-logout { min-width: 0; padding: 10px 11px; color: #d5dde4; background: transparent; font-size: .86rem; font-weight: 750; text-align: left; cursor: pointer; }
.admin-nav-link { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.admin-nav-link svg, .admin-logout svg, .table-action svg, .admin-flash svg, .editor-icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.admin-nav-link:hover, .admin-nav-link.is-active, .admin-logout:hover { color: #fff; background: rgba(255,255,255,.09); }
.admin-nav-link.is-active { box-shadow: inset 3px 0 0 #d9a65a; }
.nav-count { min-width: 20px; text-align: right; color: #f0b6a9; font-size: .72rem; }
.admin-sidebar-bottom { display: grid; gap: 8px; margin-top: auto; }
.admin-user-card { color: inherit; }
.admin-logout { width: 100%; border: 0; }
.admin-main { min-width: 0; background: #f4f1ed; }
.admin-mobile-topbar { display: none; }
.admin-content { width: min(1440px, 100%); margin-inline: auto; padding: 30px clamp(22px, 3vw, 42px) 48px; }
.admin-flash { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid #c8decf; background: #eef8f1; color: #1d694f; font-size: .88rem; }
.admin-flash.is-error { border-color: #e8b7be; background: #fff1f3; color: #9b2434; }
.admin-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.admin-kicker { display: inline-flex; margin-bottom: 8px; color: #8c1833; font-size: .7rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.admin-page-heading h1 { margin: 0; color: #111827; font-family: "Segoe UI", Inter, Arial, sans-serif; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.05; }
.admin-page-heading p, .admin-muted, .settings-card-note { margin: 8px 0 0; color: #66717e; font-size: .9rem; line-height: 1.55; }
.admin-heading-actions, .admin-form-actions, .table-actions { display: flex; align-items: center; gap: 9px; }
.admin-button, .editor-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 14px; border: 1px solid #8c1833; color: #fff; background: #8c1833; font-size: .83rem; font-weight: 850; cursor: pointer; }
.admin-button.secondary, .editor-button.secondary { color: #8c1833; background: transparent; }
.admin-button:hover, .editor-button:hover { background: #671126; border-color: #671126; color: #fff; }
.admin-button.secondary:hover, .editor-button.secondary:hover { background: #fff; color: #671126; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-stat-card, .admin-panel { border: 1px solid #e2d8d0; background: #fffefa; box-shadow: 0 12px 26px rgba(24, 29, 35, .04); }
.admin-stat-card { padding: 19px; }
.stat-card-top, .admin-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.stat-card-top span:first-child { color: #66717e; font-size: .78rem; font-weight: 850; }
.stat-icon { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; font-size: .78rem; font-weight: 900; }
.stat-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.stat-icon.is-cherry { background: #8c1833; } .stat-icon.is-gold { background: #b8832f; } .stat-icon.is-teal { background: #125b61; } .stat-icon.is-coral { background: #d8645a; }
.admin-stat-card strong { display: block; margin-top: 14px; color: #111827; font-size: 2rem; letter-spacing: 0; }
.admin-stat-card small, .admin-stat-card a { color: #66717e; font-size: .76rem; line-height: 1.45; }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .75fr); gap: 18px; margin-top: 18px; }
.admin-dashboard-grid.lower { grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); }
.admin-panel { padding: 20px; }
.admin-panel h2 { margin: 0; color: #111827; font-size: 1.1rem; }
.admin-panel-link, .admin-inline-link, .admin-back-link { color: #8c1833; font-size: .82rem; font-weight: 850; }
.bar-chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 9px; min-height: 240px; margin-top: 22px; }
.bar-col { display: grid; grid-template-rows: 20px 1fr 18px; min-width: 0; gap: 8px; align-items: end; text-align: center; }
.bar-track { display: flex; height: 180px; align-items: end; background: #f1e8e1; }
.bar-track i { display: block; width: 100%; background: linear-gradient(180deg, #d9a65a, #8c1833); }
.bar-value, .bar-col small, .chart-legend, .status-list { color: #66717e; font-size: .72rem; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; background: #8c1833; }
.status-list { display: grid; gap: 10px; margin-top: 16px; }
.status-list div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eee5df; }
.status-dot, .activity-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: #d9a65a; }
.admin-table-wrap { overflow-x: auto; margin-top: 14px; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th, .admin-table td { padding: 13px 12px; border-bottom: 1px solid #eee5df; text-align: left; vertical-align: middle; }
.admin-table th { color: #75808c; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.admin-table td { color: #29323d; font-size: .86rem; }
.table-subtitle, .admin-table small { display: block; margin-top: 4px; color: #7a8590; font-size: .72rem; }
.status-badge { display: inline-flex; padding: 5px 8px; border: 1px solid #ded5cd; color: #5d6772; background: #f6f2ed; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.status-published, .status-pago, .status-confirmado, .status-concluido { border-color: #bad9ca; color: #20634d; background: #eef8f1; }
.status-draft, .status-novo { border-color: #efd6a6; color: #7a5111; background: #fff7e7; }
.status-cancelado { border-color: #efc1c9; color: #9b2434; background: #fff1f3; }
.table-actions form { margin: 0; }
.table-action { display: inline-grid; width: 34px; height: 34px; place-items: center; border: 1px solid #e1d8d0; color: #5b6570; background: #fffefa; cursor: pointer; }
.table-action:hover { color: #8c1833; border-color: #c6aaa2; }
.table-action.is-danger:hover { color: #9b2434; border-color: #efb0bb; background: #fff1f3; }
.activity-list { display: grid; gap: 13px; margin-top: 15px; }
.activity-item { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; }
.activity-item strong { display: block; color: #29323d; font-size: .82rem; text-transform: capitalize; }
.activity-item small { color: #7a8590; font-size: .72rem; }
.admin-empty { color: #75808c; text-align: center; }
.admin-form-layout { display: grid; gap: 18px; }
.admin-form-columns { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.admin-form-columns > div, .admin-form-columns aside { display: grid; gap: 18px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.admin-form-grid.single { grid-template-columns: 1fr; }
.admin-field { display: grid; gap: 7px; color: #3e4853; font-size: .79rem; font-weight: 850; }
.admin-field.full { grid-column: 1 / -1; }
.admin-field small { color: #7a8590; font-weight: 450; line-height: 1.45; }
.admin-input, .editor-props input, .editor-props textarea, .editor-props select, .editor-page-settings input, .editor-page-settings textarea { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #d9cec6; outline: 0; color: #1f2933; background: #fffefa; font-size: .88rem; }
.admin-input:focus, .editor-props input:focus, .editor-props textarea:focus, .editor-props select:focus, .editor-page-settings input:focus, .editor-page-settings textarea:focus { border-color: #125b61; box-shadow: 0 0 0 3px rgba(18, 91, 97, .11); }
.settings-preview-strip { display: grid; gap: 5px; align-content: center; padding: 12px; border-left: 3px solid #125b61; background: #f2f8f6; color: #125b61; font-size: .78rem; }
.profile-hero { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 14px; }
.profile-avatar { width: 64px; height: 64px; font-size: 1.4rem; }
.profile-hero h2 { margin: 0; }
.profile-hero p { margin: 5px 0 0; color: #66717e; font-size: .86rem; }
.admin-check { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid #eee5df; color: #29323d; }
.admin-check strong, .admin-check small { display: block; }
.admin-check small { color: #66717e; font-size: .74rem; }
.admin-product-cell { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; }
.admin-product-cell img, .product-placeholder { width: 46px; height: 52px; object-fit: cover; background: #f1e8e1; }
.product-placeholder { display: grid; place-items: center; color: #8c1833; font-size: .7rem; font-weight: 900; }
.stock-text.is-low { color: #9b2434; font-weight: 900; }
.admin-pagination { margin-top: 16px; }
.table-subline { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.inventory-adjust-form { display: grid; grid-template-columns: 74px 120px minmax(110px, 1fr) auto; gap: 6px; align-items: center; min-width: 360px; }
.admin-muted { color: var(--muted); font-size: .78rem; }
.variant-editor { display: grid; gap: 8px; }
.variant-row { display: grid; grid-template-columns: 1.05fr .9fr 1.35fr .8fr .65fr 34px; gap: 6px; align-items: center; }
.variant-row input[type="hidden"] { display: none; }
.admin-icon-button { display: inline-grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); color: var(--danger); background: var(--white); font-size: 1.1rem; cursor: pointer; }
.admin-icon-button:hover { border-color: var(--danger); background: #fff1f3; }
.admin-help { margin: 10px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }

/* Visual editor */
.visual-editor-body { height: 100vh; overflow: hidden; background: #1d222a; }
.visual-editor { display: grid; grid-template-rows: 58px minmax(0, 1fr); height: 100vh; color: #1f2933; }
.visual-editor-topbar { display: grid; grid-template-columns: minmax(240px, 1fr) auto minmax(360px, 1fr); align-items: center; gap: 16px; padding: 9px 12px; border-bottom: 1px solid #d8cec6; background: #fffefa; }
.editor-top-left, .editor-top-actions, .editor-device-tabs { display: flex; align-items: center; gap: 8px; }
.editor-top-left strong, .editor-top-left span { display: block; }
.editor-top-left span { color: #7a8590; font-size: .72rem; }
.editor-icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #ded5cd; color: #38424d; background: #fff; }
.editor-action-button { cursor: pointer; }
.editor-action-button:hover { color: #8c1833; border-color: #c9a7a2; background: #fff4f1; }
.editor-device-tabs { justify-content: center; padding: 4px; background: #f1e8e1; }
.editor-device-tabs button { min-height: 32px; padding: 6px 12px; color: #5d6772; background: transparent; font-size: .75rem; font-weight: 850; cursor: pointer; }
.editor-device-tabs button.is-active { color: #111827; background: #fffefa; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.editor-top-actions { justify-content: flex-end; }
.editor-button.danger { color: #9b2434; border-color: #e2aab5; background: #fff1f3; }
.visual-editor-workspace { display: grid; grid-template-columns: 286px minmax(0, 1fr) 330px; min-height: 0; }
.visual-editor-panel { min-height: 0; overflow: auto; padding: 16px; background: #fffefa; }
.visual-editor-panel.left { border-right: 1px solid #d8cec6; }
.visual-editor-panel.right { border-left: 1px solid #d8cec6; }
.editor-panel-section + .editor-panel-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid #eee5df; }
.editor-panel-kicker { display: block; margin-bottom: 10px; color: #8c1833; font-size: .67rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.editor-palette { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.editor-palette button { min-height: 42px; padding: 9px; border: 1px solid #ded5cd; color: #34404c; background: #fff; font-size: .78rem; font-weight: 850; text-align: left; cursor: grab; }
.tree-node { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; min-height: 42px; align-items: center; gap: 8px; margin: 4px 0 4px calc(var(--depth) * 14px); padding: 8px 10px; border: 1px solid #e4d9d1; color: #38424d; background: #fff; text-align: left; cursor: pointer; }
.tree-node.is-active { border-color: #8c1833; box-shadow: inset 3px 0 0 #8c1833; }
.tree-node.is-hovered { border-color: #125b61; background: #eef8f6; }
.tree-node.is-drop-target { border-color: #125b61; background: #eef8f6; box-shadow: inset 3px 0 0 #125b61; }
.tree-node span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-node small { color: #7a8590; font-size: .65rem; }
.editor-preview-stage { min-width: 0; min-height: 0; overflow: auto; padding: 24px; background: #dfe4e8; }
.editor-canvas-toolbar { display: flex; align-items: center; justify-content: space-between; width: min(1280px, 100%); margin: 0 auto 12px; color: #5d6772; font-size: .72rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.editor-canvas-toolbar span { display: inline-flex; align-items: center; gap: 7px; }
.editor-canvas-toolbar i { width: 7px; height: 7px; border-radius: 50%; background: #26745c; box-shadow: 0 0 0 4px rgba(38, 116, 92, .13); }
.editor-canvas-toolbar small { color: #7a8590; font-size: .68rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.editor-frame-shell { margin-inline: auto; background: #fff; box-shadow: 0 18px 70px rgba(17,24,39,.22); transform-origin: top center; transition: width .18s ease; }
.editor-frame-shell.desktop { width: min(100%, 1280px); height: calc(100vh - 108px); }
.editor-frame-shell.tablet { width: 820px; height: calc(100vh - 108px); }
.editor-frame-shell.mobile { width: 390px; height: calc(100vh - 108px); }
.editor-frame-shell iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.editor-page-settings, .editor-props { display: grid; gap: 11px; }
.editor-page-settings { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #eee5df; }
.editor-page-settings label, .editor-props label { display: grid; gap: 6px; color: #3e4853; font-size: .76rem; font-weight: 850; }
.editor-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.editor-prop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.editor-empty-state { padding: 16px; border: 1px dashed #d8cec6; color: #75808c; background: #faf7f3; font-size: .82rem; line-height: 1.5; }
[data-builder-id].is-preview-selected { outline: 2px solid #8c1833 !important; outline-offset: 3px; }
[data-builder-id].is-preview-hover { outline: 1px dashed rgba(140, 24, 51, .75); outline-offset: 2px; }
[data-builder-id].is-inline-editing { outline: 2px solid #125b61 !important; outline-offset: 4px; cursor: text; }
.editor-palette-item { display: flex; min-height: 58px; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #ded5cd; color: #34404c; background: #fff; text-align: left; cursor: grab; }
.editor-palette-item:hover { border-color: #c9a7a2; background: #fff8f5; }
.editor-palette-item svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: #8c1833; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.editor-palette-item span { display: grid; gap: 2px; min-width: 0; }
.editor-palette-item strong { font-size: .76rem; }
.editor-palette-item small { color: #7a8590; font-size: .63rem; font-weight: 500; line-height: 1.2; }
.editor-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1120px) {
    .admin-app { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-nav-label { grid-column: 1 / -1; }
    .admin-sidebar-bottom { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-stat-grid, .admin-dashboard-grid, .admin-dashboard-grid.lower, .admin-form-columns { grid-template-columns: 1fr; }
    .visual-editor-topbar { grid-template-columns: 1fr; align-items: stretch; }
    .editor-device-tabs, .editor-top-actions { justify-content: flex-start; flex-wrap: wrap; }
    .visual-editor-workspace { grid-template-columns: 1fr; overflow: auto; }
    .visual-editor-body, .visual-editor { height: auto; min-height: 100vh; overflow: auto; }
    .visual-editor-panel { max-height: none; }
    .editor-frame-shell.desktop, .editor-frame-shell.tablet, .editor-frame-shell.mobile { width: 100%; height: 760px; }
}

@media (max-width: 640px) {
    .admin-content { padding: 20px 14px 34px; }
    .admin-sidebar { padding: 16px 14px; }
    .admin-nav, .admin-sidebar-bottom, .admin-form-grid { grid-template-columns: 1fr; }
    .admin-page-heading { display: grid; }
    .admin-heading-actions, .admin-form-actions { flex-direction: column; align-items: stretch; }
    .admin-button { width: 100%; }
    .bar-chart { gap: 5px; }
    .inventory-adjust-form { grid-template-columns: 1fr 1fr; min-width: 0; }
    .inventory-adjust-form input[name="reason"] { grid-column: 1 / -1; }
    .variant-row { grid-template-columns: 1fr 1fr; }
    .variant-row input[name*="[options]"] { grid-column: 1 / -1; }
    .variant-row input[name*="[price]"], .variant-row input[name*="[stock]"] { min-width: 0; }
}

/* New operational surfaces */
.media-upload-form { display: grid; gap: 14px; max-width: 720px; }
.upload-dropzone { display: grid; min-height: 170px; place-items: center; gap: 8px; padding: 28px; border: 1px dashed #c9b6aa; color: var(--ink-soft); background: #fffefa; text-align: center; cursor: pointer; }
.upload-dropzone:hover { border-color: var(--cherry); background: #fff7f3; }
.upload-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-dropzone strong { color: var(--cherry); font-size: 1rem; }
.upload-dropzone small { color: var(--muted); }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.media-card { overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.media-preview { aspect-ratio: 1.1; display: grid; place-items: center; overflow: hidden; background: var(--paper-deep); }
.media-preview img, .media-preview video { width: 100%; height: 100%; object-fit: cover; }
.media-card-body { display: grid; gap: 7px; padding: 12px; }
.media-card-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-card-body small { color: var(--muted); font-size: .72rem; }
.media-card-body form { justify-self: start; }
.builder-rich-text { color: var(--ink-soft); line-height: 1.75; }
.builder-video { display: block; width: 100%; max-height: 560px; background: #000; object-fit: cover; }
.builder-divider { border: 0; border-top: 1px solid var(--line); }
.builder-spacer { min-height: 48px; }
.builder-accordion { overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.builder-accordion summary { padding: 15px 18px; color: var(--ink); font-weight: 800; cursor: pointer; }
.builder-accordion-content { padding: 0 18px 18px; color: var(--ink-soft); line-height: 1.65; }
.builder-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.builder-category-card { display: grid; gap: 9px; padding: 22px; border: 1px solid var(--line); background: var(--white); transition: transform .2s ease, border-color .2s ease; }
.builder-category-card:hover { border-color: var(--cherry); transform: translateY(-2px); }
.builder-category-card strong { color: var(--cherry); font-family: Georgia, serif; font-size: 1.25rem; }
.builder-category-card span { color: var(--muted); font-size: .85rem; line-height: 1.55; }
.builder-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.builder-icon { display: inline-grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: var(--cherry); background: #f7d9b1; font-size: 1.3rem; }
.builder-list { display: grid; gap: 9px; padding-left: 1.25rem; color: var(--ink-soft); line-height: 1.6; }
.builder-list li::marker { color: var(--coral); }
.builder-quote { margin: 0; padding: 24px 28px; border-left: 4px solid var(--coral); color: var(--ink); background: var(--paper-deep); font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.45; }
.builder-quote cite { display: block; margin-top: 12px; color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: .78rem; font-style: normal; }
.builder-tabs { border: 1px solid var(--line); background: var(--white); }
.builder-tab { border-bottom: 1px solid var(--line); }
.builder-tab:last-child { border-bottom: 0; }
.builder-tab summary { padding: 15px 18px; color: var(--cherry); font-weight: 800; cursor: pointer; }
.builder-tab [role="tabpanel"] { padding: 0 18px 18px; color: var(--ink-soft); line-height: 1.6; }
.builder-form { display: grid; gap: 12px; max-width: 640px; padding: 22px; border: 1px solid var(--line); background: var(--white); }
.builder-form label { display: grid; gap: 6px; color: var(--ink-soft); font-size: .78rem; font-weight: 800; }
.builder-form input, .builder-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); background: var(--paper); }
.builder-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .8rem; }
.builder-breadcrumbs a { color: var(--cherry); font-weight: 800; }
@media (max-width: 640px) { .builder-category-grid, .builder-columns { grid-template-columns: 1fr; } }
.pos-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr); gap: 18px; }
.pos-open-card { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.pos-open-card form, .pos-close-form { display: flex; align-items: end; gap: 10px; }
.pos-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pos-product { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); color: var(--ink); background: var(--white); text-align: left; cursor: pointer; }
.pos-product:hover { border-color: var(--cherry); box-shadow: 0 8px 20px rgba(33, 21, 27, .08); transform: translateY(-1px); }
.pos-product-thumb { width: 54px; height: 54px; display: grid; flex: 0 0 54px; place-items: center; overflow: hidden; color: var(--cherry); background: var(--paper-deep); font-weight: 900; }
.pos-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pos-product span:last-child { display: grid; gap: 4px; min-width: 0; }
.pos-product strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.pos-product small { color: var(--muted); font-size: .7rem; }
.pos-cart-panel { position: sticky; top: 24px; align-self: start; }
.pos-cart-total { color: var(--cherry); font-size: 1.1rem; font-weight: 900; }
.pos-cart-lines { display: grid; gap: 8px; min-height: 190px; margin-bottom: 18px; }
.pos-cart-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pos-cart-line > span { display: grid; gap: 3px; min-width: 0; }
.pos-cart-line strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.pos-cart-line small { color: var(--muted); font-size: .72rem; }
.pos-cart-line > div { display: inline-flex; align-items: center; gap: 8px; }
.pos-cart-line button { width: 25px; height: 25px; color: var(--cherry); border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
@media (max-width: 980px) { .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pos-layout { grid-template-columns: 1fr; } .pos-cart-panel { position: static; } }
@media (max-width: 640px) { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pos-open-card, .pos-open-card form, .pos-close-form { align-items: stretch; flex-direction: column; } .pos-products { grid-template-columns: 1fr; } }

/* Operational filters and editor controls */
.admin-filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.admin-filter-bar a { min-height: 38px; padding: 9px 13px; border: 1px solid #e2d8d0; color: #66717e; background: #fffefa; font-size: .78rem; font-weight: 850; }
.admin-filter-bar a:hover, .admin-filter-bar a.is-active { color: #8c1833; border-color: #c9a7a2; background: #fff4f1; }
.admin-filter-bar .admin-input { width: min(260px, 100%); }
.order-status-form { min-width: 170px; }
.order-status-form .admin-input { min-width: 165px; }
.admin-input.compact { min-height: 38px; padding-block: 8px; }
.compact-button { min-height: 34px; padding: 8px 11px; font-size: .74rem; }
.editor-selected-heading { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid #eee5df; }
.editor-selected-heading .editor-panel-kicker { margin-bottom: 0; }
.editor-selected-heading strong { color: #1f2933; font-size: .86rem; }
.editor-selection-path { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 7px; color: #7a8590; font-size: .67rem; line-height: 1.35; }
.editor-selection-path button { padding: 0; color: #125b61; background: transparent; font-size: inherit; cursor: pointer; }
.editor-selection-path button:hover, .editor-selection-path button[aria-current="page"] { color: #8c1833; }
.editor-inspector-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 2px 0 5px; padding: 4px; background: #f1e8e1; }
.editor-inspector-tabs button { min-height: 31px; padding: 6px 4px; color: #69737d; background: transparent; font-size: .69rem; font-weight: 850; cursor: pointer; }
.editor-inspector-tabs button.is-active { color: #8c1833; background: #fffefa; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.editor-inspector-panel { display: grid; gap: 11px; }
.editor-help-text { margin: -2px 0 0; color: #7a8590; font-size: .72rem; line-height: 1.5; }
.editor-panel-section.compact { margin-top: 4px; padding-top: 13px; }
.editor-props label[hidden] { display: none; }

.editor-mobile-tabs { display: none; }

@media (max-width: 980px) {
    .visual-editor-body, .visual-editor { height: 100dvh; min-height: 0; overflow: hidden; }
    .visual-editor { grid-template-rows: auto auto minmax(0, 1fr); }
    .visual-editor-topbar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .editor-device-tabs { grid-column: 1 / -1; grid-row: 2; }
    .editor-mobile-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 5px; border-bottom: 1px solid #d8cec6; background: #f1e8e1; }
    .editor-mobile-tabs button { display: inline-flex; min-height: 37px; align-items: center; justify-content: center; gap: 7px; color: #69737d; background: transparent; font-size: .72rem; font-weight: 850; cursor: pointer; }
    .editor-mobile-tabs button.is-active { color: #8c1833; background: #fffefa; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
    .editor-mobile-tabs svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .visual-editor-workspace { grid-template-columns: 1fr; min-height: 0; overflow: hidden; }
    .visual-editor-panel.left, .visual-editor-panel.right { display: none; min-height: 0; max-height: none; overflow: auto; }
    .editor-preview-stage { min-height: 0; overflow: auto; padding: 16px; }
    body[data-editor-view="left"] .visual-editor-panel.left, body[data-editor-view="right"] .visual-editor-panel.right { display: block; }
    body[data-editor-view="left"] .editor-preview-stage, body[data-editor-view="right"] .editor-preview-stage { display: none; }
    .editor-frame-shell.desktop, .editor-frame-shell.tablet, .editor-frame-shell.mobile { width: min(100%, 820px); height: calc(100dvh - 164px); }
}

@media (max-width: 640px) {
    .visual-editor-topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding: 7px; }
    .editor-top-left strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .editor-top-actions { display: grid; grid-template-columns: repeat(5, minmax(30px, 38px)); gap: 4px; }
    .editor-top-actions .editor-button { width: 38px; min-height: 38px; padding: 0; font-size: 0; }
    .editor-top-actions .editor-button svg { width: 17px; height: 17px; margin: 0; }
    .editor-top-actions form { width: auto; }
    .editor-device-tabs button { padding-inline: 9px; }
    .editor-mobile-tabs span { font-size: .68rem; }
    .editor-preview-stage { padding: 10px; }
    .editor-canvas-toolbar { margin-bottom: 8px; }
}

@media (max-width: 820px) {
    .header-main { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; min-height: auto; padding-block: 14px; }
    .site-search { grid-column: 1 / -1; grid-row: 2; }
    .brand { min-width: 0; white-space: nowrap; }
}

@media (max-width: 640px) {
    .admin-filter-bar { align-items: stretch; flex-direction: column; }
    .admin-filter-bar .admin-input, .admin-filter-bar .admin-button { width: 100%; }
    .editor-form-grid { grid-template-columns: 1fr; }
    .visual-editor-topbar { padding: 9px; }
    .editor-top-actions { display: grid; grid-template-columns: repeat(5, minmax(30px, 38px)); gap: 4px; }
    .editor-top-actions .editor-button { width: 38px; min-height: 38px; padding: 0; font-size: 0; }
    .editor-top-actions .editor-button svg { width: 17px; height: 17px; margin: 0; }
    .editor-top-actions form { width: auto; }
    .editor-top-actions form .editor-button { width: 38px; }
}

/* Shared polish: keep keyboard users oriented and make the two shells feel like
   one product even when the page content is supplied by the builder. */
:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(217, 166, 90, .9);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    color: #fff;
    background: var(--cherry);
    transform: translateY(-150%);
    transition: transform .18s ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header { box-shadow: 0 10px 30px rgba(33, 21, 27, .05); }
.mobile-menu-toggle { display: none; width: 40px; height: 40px; place-items: center; color: var(--cherry); background: var(--paper-deep); cursor: pointer; }
.site-header::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(216, 100, 90, .45), transparent);
}

.announcement-inner { min-height: 38px; }
.announcement span:first-child::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    content: "";
    vertical-align: 1px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(217, 166, 90, .14);
}

.product-card,
.intent-card,
.media-card,
.admin-panel,
.admin-stat-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover,
.media-card:hover,
.admin-stat-card:hover { transform: translateY(-3px); }

.admin-body {
    background:
        radial-gradient(circle at 10% 0%, rgba(217, 166, 90, .1), transparent 34%),
        #f3f0ec;
}

.admin-sidebar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 35%),
        #171b22;
}

.admin-content { max-width: 1440px; margin: 0 auto; }
.admin-mobile-actions { display: flex; align-items: center; gap: 8px; }
.admin-mobile-menu { display: none; width: 40px; height: 40px; place-items: center; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; }
.admin-mobile-menu svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.admin-page-heading h1 { letter-spacing: -.025em; }
.admin-stat-card strong { letter-spacing: -.03em; }
.admin-panel-heading h2 { letter-spacing: -.02em; }

.visual-editor-body {
    background:
        radial-gradient(circle at 16% 14%, rgba(217, 166, 90, .18), transparent 25%),
        #1d222a;
}

.editor-palette-item,
.tree-node,
.editor-icon-button,
.editor-button,
.admin-button,
.btn { transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }

.editor-palette-item:hover,
.tree-node:hover,
.editor-icon-button:hover,
.admin-button:hover { transform: translateY(-1px); }

.editor-palette-item:active,
.tree-node:active { cursor: grabbing; transform: scale(.99); }

.editor-frame-shell {
    border: 1px solid rgba(31, 41, 51, .08);
    border-radius: 6px;
}

.editor-canvas-toolbar i { animation: live-pulse 2s ease-in-out infinite; }

@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(38, 116, 92, .13); }
    50% { box-shadow: 0 0 0 7px rgba(38, 116, 92, .02); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 820px) {
    .announcement-inner { width: min(100% - 28px, 1180px); font-size: .69rem; }
    .announcement-inner a { gap: 3px; }
    .shell { width: min(100% - 28px, 1180px); }
    .header-main { width: min(100% - 28px, 1180px); }
    .brand { font-size: 1.45rem; }
    .brand-logo { width: 26px; height: 26px; }
    .category-nav-inner { width: min(100% - 28px, 1180px); gap: 18px; }
    .mobile-menu-toggle { display: inline-grid; }
    .category-nav { display: none; }
    .category-nav.is-open { display: block; }
    .category-nav-inner { align-items: flex-start; flex-direction: column; gap: 0; padding-block: 9px 12px; }
    .category-nav a { width: 100%; padding: 9px 0; }
    .category-nav-divider { display: none; }
    .admin-mobile-menu { display: inline-grid; }
    .admin-sidebar { display: none; }
    .admin-sidebar.is-open { display: flex; }
    .admin-mobile-topbar { display: flex; align-items: center; justify-content: space-between; }
}

@media (max-width: 560px) {
    .announcement-inner { align-items: flex-start; flex-direction: column; gap: 4px; padding-block: 9px; }
    .announcement-inner a { padding-bottom: 2px; }
    .site-search input { padding-inline: 10px; font-size: .82rem; }
    .search-submit { padding-inline: 11px; font-size: .76rem; }
    .home-hero-grid { min-height: 0; padding-block: 48px 52px; }
    .home-hero h1 { font-size: clamp(2.7rem, 14vw, 4.2rem) !important; }
    .catalog-hero h1 { font-size: clamp(2.45rem, 12vw, 3.2rem); }
    .product-card-actions { grid-template-columns: 1fr; }
    .product-benefits { grid-template-columns: 1fr; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}
