:root {
  color-scheme: light;
  --background: #fbfdff;
  --ink: #274455;
  --muted: #526f82;
  --primary: #08669e;
  --primary-hover: #07527e;
  --soft: #eaf6ff;
  --line: #d5e6f1;
  --danger: #ad2442;
}
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--background); color: var(--ink); font: 16px/1.6 Arial, Helvetica, sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, a, input, textarea, select { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--primary); }
input, textarea, select { min-width: 0; }
img { display: block; max-width: 100%; }
svg.icon { width: 19px; height: 19px; flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: #174f73; line-height: 1.25; }
h1 { font-size: 36px; margin-bottom: 12px; }
h2 { font-size: 27px; }
h3 { font-size: 19px; line-height: 1.35; }
p + p { margin-top: 12px; }
small, .small { font-size: 14px; }
.muted { color: var(--muted); }
.centered { text-align: center; }
.wrap { max-width: 1240px; margin: auto; padding-inline: 32px; }
.announcement { padding: 7px 18px; text-align: center; font-size: 14px; color: #2a668a; background: #e8f6ff; border-bottom: 1px solid var(--line); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 109px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand, .footer-logo { flex-shrink: 0; display: block; }
.brand-logo { display: block; width: 159px; height: 104px; overflow: hidden; }
.header-nav { display: flex; gap: 30px; font-size: 15px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.button { border: 1px solid var(--primary); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.45; text-align: center; }
.button:hover { background: var(--primary-hover); text-decoration: none; }
.button.secondary { background: #fff; color: var(--primary); border-color: #bdd7e8; }
.button.secondary:hover { background: var(--soft); }
.button.whatsapp { background: #18714d; border-color: #18714d; }
.button.whatsapp:hover { background: #125438; }
.button.destructive { background: var(--danger); border-color: var(--danger); }
.button.full { width: 100%; }
.icon-button { border: 0; background: transparent; color: var(--primary); border-radius: 6px; width: 44px; height: 44px; display: inline-grid; place-items: center; flex-shrink: 0; }
.icon-button:hover { background: var(--soft); }
.danger { color: var(--danger); }
.count { display: inline-grid; place-items: center; background: var(--soft); border-radius: 50%; min-width: 24px; height: 24px; padding: 0 4px; font-size: 13px; }
.eyebrow { font-size: 13px; font-weight: 600; color: #376f92; margin-bottom: 8px; }
.store-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 34px 30px; border-bottom: 1px solid var(--line); }
.store-intro h1 { font-size: 38px; }
.store-intro p:not(.eyebrow) { color: var(--muted); }
.lead-chip { max-width: 275px; font-size: 14px; display: flex; align-items: center; gap: 12px; color: #2c668b; }
.lead-chip svg.icon { width: 25px; height: 25px; }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 305px; gap: 32px; align-items: start; padding-block: 32px 48px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h1 { margin-bottom: 0; }
.category-tabs { display: flex; gap: 9px; margin-bottom: 22px; flex-wrap: wrap; }
.category-tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 24px; background: #fff; font-size: 15px; min-height: 44px; }
.category-tab.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.category-tab:hover { text-decoration: none; border-color: var(--primary); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.product-picture { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.product-picture img { width: 100%; height: 100%; object-fit: cover; }
.product-badge { position: absolute; top: 12px; left: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); background: #fff; color: #2d6084; font-size: 12px; border-radius: 4px; padding: 4px 8px; }
.product-body { padding: 19px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.product-meta { font-size: 12px; text-transform: uppercase; color: #426d88; }
.product-body h3 { font: 24px/1.25 Georgia, serif; }
.product-body h3 a { color: #214f6e; }
.product-body p { margin: 0; }
.product-description { font-size: 15px; color: var(--muted); flex: 1; }
.product-bottom { border-top: 1px solid var(--line); padding-top: 14px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.product-bottom small { display: block; color: var(--muted); font-size: 12px; }
.price { color: #174f73; font-size: 22px; font-weight: 600; }
.cart-column { position: sticky; top: 24px; }
.cart-column > p { margin-top: 18px; }
.cart-box { padding: 22px; border: 1px solid #c8deed; border-radius: 8px; background: #fff; }
.cart-box h2 { font-size: 24px; display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.cart-box .button { margin-top: 20px; }
.cart-box .centered { margin-top: 12px; }
.empty { padding: 44px 20px; text-align: center; }
.empty p { margin: 15px 0; }
.empty .button { margin-top: 18px; }
.cart-box .empty { padding: 18px 0; }
.cart-box .empty p { margin: 0 0 8px; }
.cart-box .empty span { font-size: 14px; }
.total { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); margin-top: 22px; padding-block: 18px 8px; }
.total strong { font-size: 23px; color: #174f73; }
.summary-lines { list-style: none; padding: 0; margin: 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-lines li > span { min-width: 0; overflow-wrap: anywhere; }
.summary-lines small { display: block; color: var(--muted); }
.demo-note { color: #697077; font-size: 13px; text-align: center; }
.how-section { padding-block: 32px; border-top: 1px solid var(--line); margin-bottom: 25px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; margin-top: 24px; }
.how-grid > div { position: relative; padding-left: 46px; }
.how-grid span { position: absolute; left: 0; top: -2px; font: 28px Georgia, serif; color: #58809c; }
.how-grid h3 { font-size: 16px; margin-bottom: 5px; }
.how-grid p { font-size: 14px; color: var(--muted); }
.site-footer { margin-top: 30px; border-top: 1px solid var(--line); background: #f2f9fd; padding-block: 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 22px; font-size: 14px; }
.footer-logo .brand-logo { width: 113px; height: 78px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-block: 24px; font-size: 14px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 45px; align-items: start; }
.detail-photo { aspect-ratio: 1; overflow: hidden; border-radius: 8px; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-detail h1 { font-size: 32px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 15px; font-weight: 600; margin-top: 20px; }
.field small { font-weight: 400; color: var(--muted); }
input:not([type='checkbox']):not([type='radio']), textarea, select { display: block; width: 100%; border: 1px solid #bed7e7; border-radius: 6px; padding: 10px 12px; min-height: 46px; color: var(--ink); background: #fff; font-size: 16px; font-weight: 400; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--primary); width: 19px; height: 19px; flex-shrink: 0; }
input[type='file'] { padding: 8px; font-size: 14px; }
textarea { resize: vertical; min-height: 92px; }
fieldset { min-width: 0; }
.options { border: 0; padding: 0; margin: 26px 0 20px; }
.options legend { margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.option { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; margin-top: 10px; cursor: pointer; background: #fff; }
.option:has(input:checked) { border-color: var(--primary); background: #f0f8fe; }
.option > span { flex: 1; }
.option small { display: block; color: var(--muted); }
.option b { white-space: nowrap; font-size: 15px; }
.form-actions { display: flex; justify-content: flex-end; align-items: end; flex-wrap: wrap; gap: 12px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.quantity-field { width: 105px; margin: 0; margin-right: auto; }
.product-detail .muted.small { margin-top: 16px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.narrow { max-width: 660px; margin: 32px auto 60px; }
.narrow > .back-link { margin-top: 0; }
.cart-line { display: flex; align-items: start; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-photo { flex-shrink: 0; width: 98px; height: 98px; border-radius: 6px; overflow: hidden; }
.cart-photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-description { flex: 1; min-width: 0; }
.cart-description h2 { font-size: 22px; }
.cart-description p { font-size: 14px; margin-top: 5px; }
.inline-form { display: flex; align-items: end; gap: 5px; margin-top: 12px; }
.inline-form label { font-size: 12px; }
.inline-form input { max-width: 90px; }
.cart-line > strong { white-space: nowrap; }
.preview-message { white-space: pre-wrap; overflow-wrap: anywhere; padding: 22px; border: 1px solid var(--line); border-radius: 8px; font: 15px/1.7 Arial, sans-serif; background: #f0f8fd; margin-block: 25px; }
.notice { padding: 15px 18px; border: 1px solid #cadfed; border-left: 3px solid var(--primary); border-radius: 6px; background: #edf7ff; margin-block: 20px; font-size: 15px; overflow-wrap: anywhere; }
.notice a { text-decoration: underline; font-weight: 600; }
.notice.error { background: #fff2f4; color: #97263f; border-color: #f0c8d1; }
.notice.success { background: #effaf5; color: #256446; border-color: #c9e5d7; }
.auth-box { max-width: 490px; margin: 45px auto 75px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.auth-box h1 { font-size: 30px; }
.check-line { display: flex; align-items: center; gap: 12px; padding-block: 14px; font-size: 15px; margin-top: 10px; }
.auth-box .button.full { margin-top: 20px; }
.admin-main { max-width: 1160px; padding-bottom: 35px; }
.admin-label { font-size: 14px; display: flex; align-items: center; gap: 7px; }
.admin-nav { display: flex; align-items: stretch; gap: 12px; border-bottom: 1px solid var(--line); margin: 24px 0 34px; flex-wrap: wrap; }
.admin-nav > a { display: flex; align-items: center; gap: 8px; padding: 12px; font-size: 15px; border-bottom: 2px solid transparent; }
.admin-nav > a.active { font-weight: 600; border-bottom-color: var(--primary); }
.admin-nav form { margin-left: auto; display: flex; align-items: center; }
.text-button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--primary); padding: 12px; font-size: 15px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 25px 0; }
.admin-stats > div { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 20px; }
.admin-stats span { display: block; font-size: 14px; color: var(--muted); }
.admin-stats strong { font-size: 25px; color: #205a7d; }
.table-scroll { overflow-x: auto; border-block: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { font-weight: 600; text-align: left; background: #eaf5fc; }
th, td { padding: 16px; border-bottom: 1px solid var(--line); }
td { background: #fff; }
.admin-product { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.admin-product > img, .admin-product > .photo-empty { width: 58px; height: 58px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.admin-product small { display: block; color: var(--muted); font-size: 12px; }
.admin-product .photo-empty span { display: none; }
.row-actions { display: flex; }
.nowrap { white-space: nowrap; }
.switch-button { display: flex; gap: 8px; align-items: center; border: 0; background: transparent; font-size: 14px; color: var(--muted); min-height: 44px; }
.switch-track { width: 34px; height: 20px; border-radius: 20px; background: #8198a7; display: inline-block; padding: 3px; flex-shrink: 0; }
.switch-track::after { content: ''; display: block; width: 14px; height: 14px; background: #fff; border-radius: 50%; }
.switch-button[aria-checked='true'] .switch-track { background: var(--primary); }
.switch-button[aria-checked='true'] .switch-track::after { transform: translateX(14px); }
.form-section-title { padding-top: 25px; border-top: 1px solid var(--line); margin-top: 30px; }
.editor { max-width: 780px; margin: 0 auto 30px; }
.upload-box { display: flex; align-items: center; gap: 22px; padding-block: 20px; border-block: 1px solid var(--line); }
.upload-box > img, .upload-box > .photo-empty { width: 130px; height: 120px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.upload-box .field { flex: 1; min-width: 0; margin: 0; }
.photo-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; color: var(--muted); background: #edf5fa; font-size: 14px; }
.photo-empty .icon { width: 30px; height: 30px; }
.option-editor { border: 1px solid var(--line); border-radius: 8px; padding: 4px 18px 16px; margin: 18px 0; background: #fff; }
.option-editor legend { font-size: 14px; padding: 0 7px; }
.option-editor .field { margin-top: 12px; }
.remove-option { display: flex; margin-left: auto; margin-top: 8px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 20; background: #fff; padding: 12px; }
.skip-link:focus { top: 12px; }
@media (max-width: 1000px) {
  .wrap { padding-inline: 24px; }
  .shop-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
  .product-grid { gap: 16px; }
  .product-body { padding: 16px; }
  .product-body h3 { font-size: 22px; }
  .header-nav { gap: 20px; }
}
@media (max-width: 820px) {
  .shop-grid { grid-template-columns: 1fr; }
  .cart-column { position: static; }
  .cart-column .cart-box { max-width: 550px; margin-inline: auto; }
  .store-intro { align-items: start; flex-direction: column; gap: 18px; }
  .lead-chip { max-width: none; }
  .header-nav { display: none; }
  .product-detail { gap: 24px; }
  .how-grid { gap: 20px; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 18px; }
  .announcement { font-size: 12px; }
  .header-inner { min-height: 98px; gap: 10px; }
  .brand-logo { width: 137px; height: 92px; }
  .header-actions { gap: 6px; }
  .header-inner .button { padding: 9px 12px; font-size: 14px; }
  h1, .store-intro h1 { font-size: 31px; }
  h2 { font-size: 25px; }
  .store-intro { padding-block: 24px; }
  .shop-grid { padding-top: 25px; gap: 24px; }
  .category-tab { padding: 8px 14px; font-size: 14px; }
  .category-tabs { gap: 7px; }
  .product-grid { gap: 12px; }
  .product-picture { aspect-ratio: 1; }
  .product-body { padding: 13px; }
  .product-body h3 { font-size: 21px; }
  .product-description { font-size: 14px; }
  .product-meta { font-size: 12px; }
  .product-bottom { align-items: start; flex-direction: column; }
  .product-bottom .button { width: 100%; padding: 10px 8px; font-size: 14px; }
  .price { font-size: 21px; }
  .product-badge { left: 8px; top: 8px; max-width: calc(100% - 16px); padding: 3px 6px; }
  .how-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { flex-wrap: wrap; gap: 12px; }
  .footer-inner p { order: 3; width: 100%; }
  .product-detail { grid-template-columns: 1fr; }
  .detail-photo { aspect-ratio: 4 / 3; }
  .two-fields { grid-template-columns: 1fr; gap: 0; }
  .product-detail .form-actions { align-items: end; }
  .product-detail .form-actions .button { flex: 1; }
  .quantity-field { width: 88px; }
  .cart-photo { width: 66px; height: 66px; }
  .cart-line { gap: 12px; flex-wrap: wrap; }
  .cart-line > strong { margin-left: auto; }
  .cart-description h2 { font-size: 21px; }
  .auth-box { padding: 22px 19px; margin-top: 30px; }
  .admin-label { display: none; }
  .admin-nav { gap: 0; }
  .admin-nav > a, .text-button { padding: 10px 9px; font-size: 14px; }
  .admin-nav form { margin-left: 0; }
  .admin-stats { gap: 8px; }
  .admin-stats > div { padding: 12px; }
  .admin-stats span { font-size: 12px; }
  .admin-stats strong { font-size: 23px; }
  .section-heading { align-items: start; flex-wrap: wrap; gap: 14px; }
  .upload-box { gap: 14px; flex-wrap: wrap; }
  .upload-box .field { flex-basis: 100%; }
  .option { flex-wrap: wrap; }
  .option > span { min-width: 100px; }
}
@media (max-width: 359px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-picture { aspect-ratio: 3 / 2; }
  .admin-stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
