/* Store layout. Reusable controls and surfaces are provided by Bulma. */
.storefront .container { width: calc(100% - 3rem); max-width: 1180px; }
.site-header { position: sticky; z-index: 40; top: 0; color: #f7f8fb; background: #171b24; }
.header-main { position: relative; height: 80px; display: flex; align-items: center; justify-content: center; }
.brand img { display: block; width: 154px; max-height: 56px; object-fit: contain; }
.theme-toggle, .mobile-menu { width: 42px; height: 42px; padding: 0; }
.theme-toggle { position: absolute; right: 0; }
.theme-toggle .icon-sun, .mobile-menu { display: none; }
[data-theme='dark'] .theme-toggle .icon-moon { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: block; }
.category-nav { border-top: 1px solid rgb(255 255 255 / 8%); }
.nav-inner { display: flex; align-items: stretch; justify-content: space-between; min-height: 48px; }
.nav-item { position: relative; display: flex; }
.nav-link { display: flex; align-items: center; gap: .5rem; padding: .75rem .5rem; border: 0; color: #d8dce5; background: transparent; font: inherit; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.nav-link svg { width: .875rem; transition: transform .15s; }
.nav-item.open .nav-link svg { transform: rotate(180deg); }
.nav-item:hover > .nav-link, .nav-item.open > .nav-link, .nav-filter-all.active { color: #fff; background: rgb(255 255 255 / 7%); }
.submenu { position: absolute; z-index: 45; top: 100%; left: 0; display: none; width: 245px; max-height: calc(100dvh - 140px); overflow: auto; padding: .5rem; border: 1px solid var(--line); border-radius: 0 0 .75rem .75rem; background: var(--surface); box-shadow: 0 12px 30px rgb(0 0 0 / 12%); }
.nav-item:hover .submenu, .nav-item.open .submenu { display: grid; }
.submenu-columns { width: 410px; grid-template-columns: 1fr 1fr; }
.nav-item-last .submenu { right: 0; left: auto; }
.submenu button { width: 100%; padding: .65rem .75rem; border: 0; border-radius: .375rem; color: var(--ink); background: transparent; font: inherit; font-size: .8125rem; text-align: left; }
.submenu button:hover, .submenu button.active { color: var(--ink); background: var(--accent-soft); }
.mobile-nav-heading { display: none; }
.menu-loading { align-self: center; color: #c2c8d2; padding: .75rem; }
.apps-section { padding-block: 2.75rem 2rem; }
.section-heading { margin-bottom: 1.5rem; text-align: center; }
.section-heading h1 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
.apps-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
.app-card { display: grid; justify-items: center; gap: .75rem; border: 0; padding: .5rem; color: var(--ink); background: transparent; font: inherit; font-size: .875rem; font-weight: 650; }
.app-card img { width: 100%; max-width: 128px; aspect-ratio: 1; object-fit: cover; border-radius: 1.25rem; transition: transform .15s; }
.app-card:hover img { transform: translateY(-3px); }
.catalog-loading { grid-column: 1 / -1; padding: 1rem; color: var(--muted); text-align: center; }
.benefits { margin-bottom: 2.5rem; border-block: 1px solid var(--line); background: var(--surface); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.benefits article { display: flex; align-items: center; gap: .875rem; padding: 1.25rem; }
.benefits article + article { border-left: 1px solid var(--line); }
.benefit-icon { display: grid; place-items: center; flex: 0 0 36px; color: var(--muted); }
.benefit-icon svg { width: 26px; height: 26px; stroke-width: 1.6; }
.benefits p { font-size: .8125rem; line-height: 1.6; }
.collections { scroll-margin-top: 145px; }
.collection-section { padding-bottom: 3rem; }
.collection-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.collection-title { font-size: 1.375rem; }
.filter-count { flex-shrink: 0; }
.products-grid { --bulma-column-gap: .75rem; }
.products-grid > .column { display: flex; }
.product-card { display: flex; flex-direction: column; width: 100%; overflow: hidden; cursor: pointer; transition: box-shadow .15s; }
.product-card:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, var(--line)), 0 6px 18px rgb(20 25 35 / 7%); }
.product-image-wrap { position: relative; padding: .75rem .75rem 0; }
.product-image { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .5rem; }
.discount { position: absolute; top: 1.25rem; left: 1.25rem; }
.product-card .card-content { display: flex; flex: 1; flex-direction: column; padding: 1.125rem; }
.product-collection-badges .tag { max-width: 100%; height: auto; min-height: 2em; padding-block: .25em; white-space: normal; overflow-wrap: anywhere; }
.product-name { margin-bottom: .375rem; overflow-wrap: anywhere; }
.product-stock { margin-bottom: .75rem; color: var(--success); font-size: .75rem; }
.product-stock.out { color: var(--danger); }
.product-stock.unknown { color: var(--muted); }
.old-price { min-height: 1.25rem; margin-top: auto; color: var(--muted); font-size: .8125rem; text-decoration: line-through; }
.price { color: var(--ink); font-size: 1.375rem; font-weight: 750; letter-spacing: -.03em; }
.product-card-actions { display: grid; gap: .5rem; margin-top: 1rem; }
.empty-products, .load-error { display: grid; place-content: center; gap: .5rem; min-height: 180px; padding: 1.5rem; border: 1px dashed var(--line); border-radius: .75rem; color: var(--muted); text-align: center; }
.site-footer { border-top: 1px solid var(--line); color: #d8dce5; background: #171b24; }
.footer-compact { display: grid; grid-template-columns: 140px 250px 1fr; align-items: center; gap: 2rem; padding-block: 1.75rem; }
.footer-brand img { width: 130px; }
.footer-column { display: grid; gap: .375rem; }
.footer-pages { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.footer-pages h3 { width: 100%; }
.footer-column h3, .footer-pages h3 { color: #fff; font-size: .875rem; margin-bottom: .25rem; }
.footer-column a, .footer-pages a { color: #bfc5d0; font-size: .8125rem; }
.footer-column a:hover, .footer-pages a:hover { color: #fff; text-decoration: underline; }
.scroll-top { position: fixed; z-index: 30; right: 1.25rem; bottom: 1.25rem; display: none; width: 44px; height: 44px; padding: 0; }
.scroll-top.visible { display: inline-flex; }

/* Checkout and information use Bulma modal containers with a product-specific layout. */
body.modal-open, body.nav-open { overflow: hidden; }
.product-dialog, .details-dialog { position: relative; width: min(960px, 100%); max-height: calc(100dvh - 3rem); display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); overflow: hidden; border-radius: .875rem; background: var(--surface); }
.details-dialog { width: min(1040px, 100%); }
.product-modal-close, .details-close { position: absolute; z-index: 2; top: 1rem; right: 1rem; }
.product-modal-media, .details-media { display: grid; place-items: center; padding: 2rem; border-right: 1px solid var(--line); background: var(--surface-2); }
.product-modal-media img, .details-media img { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: .75rem; }
.product-modal-content, .details-content { padding: 2.5rem 2rem 2rem; max-height: calc(100dvh - 3rem); overflow-y: auto; }
.product-modal-content h2, .details-content h2 { margin: .5rem 2rem 1.5rem 0; font-size: 1.75rem; }
.product-modal-eyebrow { display: block; color: var(--muted); font-size: .6875rem; font-weight: 750; letter-spacing: .08em; }
.purchase-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0 2rem 1.5rem 0; }
.purchase-progress span { padding-bottom: .625rem; border-bottom: 2px solid var(--line); color: var(--muted); font-size: .75rem; }
.purchase-progress span.active { border-color: var(--accent); color: var(--ink); font-weight: 750; }
.choice-panel { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 1rem; margin-top: 1rem; }
.quantity-control { display: flex; }
.quantity-control .button { width: 36px; padding-inline: 0; flex-shrink: 0; }
.quantity-control .button:first-child { border-radius: .5rem 0 0 .5rem; }
.quantity-control .button:last-child { border-radius: 0 .5rem .5rem 0; }
.quantity-control .input { width: 56px; min-width: 0; margin-inline: -1px; padding-inline: .25rem; border-radius: 0; text-align: center; }
.stock-status { min-height: 1.25rem; margin-block: .5rem 1.25rem; color: var(--muted); font-size: .75rem; }
.stock-status.available { color: var(--success); }
.stock-status.unavailable { color: var(--danger); }
.customizations { margin-block: .75rem 1.5rem; }
.purchase-notice { white-space: pre-line; overflow-wrap: anywhere; }
.customization-field, .customer-field { display: grid; gap: .5rem; margin-bottom: 1rem; color: var(--ink); font-size: .8125rem; font-weight: 600; }
.customization-options { display: flex; flex-wrap: wrap; gap: .75rem; }
.customization-options label { display: flex; align-items: center; gap: .5rem; padding: .625rem .75rem; border: 1px solid var(--line); border-radius: .5rem; }
.customization-options label:has(:checked) { border-color: var(--accent); background: var(--accent-soft); }
.customer-fields { border: 0; margin-block: 1rem; padding: 0; }
.customer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.customer-field-full { grid-column: 1 / -1; }
.purchase-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding-block: 1rem; border-block: 1px solid var(--line); }
.purchase-summary strong { color: var(--ink); font-size: 1.5rem; }
.purchase-actions { display: flex; gap: .75rem; }
.purchase-actions .confirm-purchase { flex: 1; width: auto; }
.purchase-error { margin-top: 1rem; }
.pix-step { text-align: center; }
.pix-step h3 { margin-block: 1rem .5rem; }
.pix-amount { display: block; margin-bottom: 1rem; font-size: 1.75rem; }
.pix-qrcode { display: block; width: 220px; max-width: 100%; aspect-ratio: 1; object-fit: contain; margin: 0 auto 1.25rem; border: 10px solid #fff; border-radius: .5rem; }
.pix-copy { display: flex; }
.pix-copy .input { min-width: 0; border-radius: .5rem 0 0 .5rem; font-size: .875rem; }
.pix-copy .button { border-radius: 0 .5rem .5rem 0; }
.pix-feedback { margin-top: 1rem; color: var(--muted); }
.checkout-note { display: flex; align-items: center; justify-content: center; gap: .375rem; margin-top: .75rem; color: var(--muted); font-size: .75rem; }
.checkout-note svg { width: 14px; flex-shrink: 0; }
.pix-success { display: none; }
.pix-step.payment-confirmed .pix-payment-content { display: none; }
.pix-step.payment-confirmed .pix-success { display: grid; justify-items: center; gap: 1rem; padding: 2rem 0; color: var(--success); }
.pix-success svg { width: 64px; height: 64px; }
.details-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.details-description { margin-bottom: 1.5rem; line-height: 1.8; }
.details-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; }
.detail-fact { padding-block: .75rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.detail-fact dt { margin-bottom: .375rem; color: var(--muted); font-size: .75rem; font-weight: 650; }
.detail-fact dd { font-size: .875rem; }
.detail-value-list { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.details-sections { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.details-section h3 { margin-bottom: .5rem; font-size: .875rem; }
.details-section ul { padding-left: 1.25rem; list-style: disc; font-size: .875rem; overflow-wrap: anywhere; }
.details-plans { margin-top: 1.5rem; }
.details-plans h3 { margin-bottom: .75rem; }
.details-plans > div { display: grid; gap: .75rem; }
.details-plan-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; }
.details-plan-card small, .details-plan-card s { display: block; color: var(--muted); font-size: .75rem; }
.details-plan-price { text-align: right; }
.details-buy { margin-top: 1.5rem; }
.modal-dialog { width: min(820px, 100%); height: min(780px, calc(100dvh - 3rem)); border-radius: .75rem; overflow: hidden; background: var(--surface); }
.modal-header { justify-content: space-between; }
.modal-header h2 { min-width: 0; font-size: 1.125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-dialog iframe { width: 100%; min-height: 0; flex: 1; border: 0; }

.maintenance-screen { min-height: calc(100dvh - 80px); display: grid; place-items: center; padding: 2rem; }
.maintenance-card { max-width: 600px; padding: 3rem; text-align: center; }
.maintenance-icon { margin-bottom: 1rem; color: var(--accent); }
.maintenance-icon svg { width: 48px; height: 48px; }
.maintenance-card > span { color: var(--muted); font-size: .75rem; letter-spacing: .08em; }
.maintenance-card h1 { margin-block: .75rem 1rem; }
.maintenance-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.maintenance-actions a { display: inline-flex; align-items: center; gap: .5rem; }
.store-maintenance .category-nav, .store-maintenance .mobile-menu, .store-maintenance .scroll-top { display: none; }
.home-notification { padding-top: 1.5rem; }
.home-notification-inner { display: flex; align-items: center; gap: 1rem; }
.home-notification-inner > div:nth-child(2) { flex: 1; }
.home-notification strong { display: block; margin-bottom: .25rem; }
.home-notification p { white-space: pre-line; }
.home-notification-icon { flex-shrink: 0; }
.home-notification-icon svg { width: 24px; height: 24px; }

@media (max-width: 1215px) {
  .header-main { height: 72px; }
  .mobile-menu { position: absolute; left: 0; display: inline-flex; }
  .category-nav { display: none; }
  .category-nav.open { position: fixed; inset: 72px 0 0; display: block; height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; background: #171b24; }
  .category-nav .nav-inner { display: block; max-width: 560px; padding-block: 1.25rem 2rem; }
  .mobile-nav-heading { display: grid; gap: .25rem; padding: .5rem .75rem 1rem; }
  .mobile-nav-heading span { color: #bfc5d0; font-size: .8125rem; }
  .nav-item { display: block; border-bottom: 1px solid rgb(255 255 255 / 8%); }
  .nav-link { width: 100%; min-height: 48px; justify-content: space-between; border-radius: .5rem; }
  .submenu, .submenu-columns { position: static; width: 100%; max-height: none; grid-template-columns: 1fr; border: 0; border-radius: .5rem; background: #222936; box-shadow: none; }
  .nav-item:hover .submenu { display: none; }
  .nav-item.open .submenu { display: grid; }
  .submenu button { min-height: 44px; color: #e5e8ee; }
  .submenu button:hover, .submenu button.active { color: #fff; background: rgb(255 255 255 / 8%); }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .benefits article:nth-child(3) { border-left: 0; }
  .footer-compact { grid-template-columns: 130px 1fr; gap: 1.5rem; }
  .footer-pages { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .storefront .container { width: calc(100% - 2rem); }
  .apps-section { padding-block: 2rem 1.5rem; }
  .apps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .app-card img { max-width: 96px; border-radius: 1rem; }
  .benefits article { padding: 1rem .5rem; gap: .5rem; }
  .benefits p { font-size: .75rem; }
  .benefit-icon { flex-basis: 26px; }
  .collection-title { font-size: 1.125rem; }
  .products-grid { --bulma-column-gap: .5rem; }
  .product-card .card-content { padding: .875rem; }
  .product-image-wrap { padding: .5rem .5rem 0; }
  .product-name { font-size: .9375rem; }
  .price { font-size: 1.25rem; }
  .product-card .button { font-size: .8125rem; padding-inline: .5rem; }
  .discount { top: .875rem; left: .875rem; font-size: .6875rem; }
  .modal { padding: 1rem; }
  .product-dialog, .details-dialog { display: block; max-height: calc(100dvh - 2rem); overflow-y: auto; }
  .product-modal-media, .details-media { padding: 1.25rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .product-modal-media img, .details-media img { width: 110px; }
  .product-modal-content, .details-content { max-height: none; overflow: visible; padding: 1.5rem; }
  .product-modal-content h2, .details-content h2 { font-size: 1.5rem; }
  .home-notification-inner { flex-wrap: wrap; }
  .home-notification button { width: 100%; }
}
@media (max-width: 480px) {
  .storefront .container { width: calc(100% - 1.5rem); }
  .brand img { width: 136px; }
  .product-card .card-content { padding: .75rem; }
  .product-card .button { gap: .375rem; }
  .product-card .button svg { width: 15px; }
  .footer-compact { grid-template-columns: 1fr; }
  .footer-pages { grid-column: auto; }
  .modal { padding: .5rem; }
  .product-dialog, .details-dialog { max-height: calc(100dvh - 1rem); }
  .product-modal-content, .details-content { padding: 1.25rem; }
  .choice-panel { grid-template-columns: 1fr; gap: .25rem; }
  .quantity-choice { margin-bottom: 1.25rem; }
  .customer-grid, .details-list { grid-template-columns: 1fr; }
  .modal-dialog { height: calc(100dvh - 1rem); }
  .maintenance-card { padding: 1.5rem; }
}
