/* Functional storefront views, extending the approved discovery design. */
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button:disabled { cursor: not-allowed; opacity: .4; }
:focus-visible { outline: 3px solid #6674ff; outline-offset: 4px; }
main:focus { outline: none; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 20px; border-radius: 12px; background: var(--lime); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.sidebar { overflow-y: auto; }
.sidebar > * { flex-shrink: 0; }
.sidebar-meta, .side-label { color: #9eabbc; }
.sidebar-meta { font-size: .75rem; }
.nav-item b { margin-left: auto; font-size: .75rem; }
.side-category, .guest-note p, .guest-note button { font-size: .84rem; }
.quick-chip, #search-button { font-size: .84rem; }
.shipping-bar { gap: 16px; }
.shipping-bar a { flex-shrink: 0; }
.feature-copy h2 { white-space: pre-line; }
.feature-index button { width: 36px; height: 36px; border: 1px solid #ffffff70; border-radius: 50%; color: white; background: #11182760; }
.feature-index button:hover { background: white; color: var(--ink); }
.feature-index { font-size: .8rem; }
.card-arrow { display: grid; place-items: center; }
.offer-saving { position: absolute; bottom: 18px; right: 22px; text-align: right; }
.offer-saving span { display: block; font-size: .7rem; color: #eef0ff; }
.offer-saving strong { font-size: 1.1rem; }
.product-section, .collection-section { scroll-margin-top: 100px; }
body[data-view="catalog"] .product-section, body[data-view="colecciones"] .collection-section { padding-top: 20px; }
.section-actions { align-items: end; flex-wrap: wrap; justify-content: flex-end; }
.sort-label { display: grid; gap: 5px; font-size: .75rem; color: var(--muted); }
select { max-width: 100%; padding: 10px 32px 10px 12px; border: 1px solid #cdd3de; border-radius: 10px; color: var(--ink); background: white; font-size: .85rem; }
#clear-filter { min-height: 42px; font-size: .8rem; }
.product-image-link { display: block; width: 100%; height: 100%; }
.product-image-link:focus-visible { outline-offset: -4px; }
.abstract-art small { position: absolute; bottom: 12px; left: 12px; font-size: .63rem; background: #ffffffc9; padding: 3px 6px; border-radius: 5px; color: var(--ink); }
.product-badge { font-size: .65rem; }
.wishlist { width: 38px; height: 38px; }
.product-category { font-size: .69rem; }
.product-info h3 { font-size: .94rem; min-height: 42px; }
.product-info h3 a:hover, .cart-description h2 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.variant-caption { margin: 7px 0 12px; color: var(--muted); font-size: .75rem; }
.price del { font-size: .72rem; }
.add-to-cart { flex-shrink: 0; width: 40px; height: 40px; }
.pagination { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 18px; font-size: .85rem; }
.round-control { display: block; width: 42px; height: 42px; }
.suggestion-item[aria-selected="true"] { background: #edf0ff; }
.suggestion-item { cursor: pointer; }
.suggestion-item strong { font-size: .88rem; }
.suggestion-item small { font-size: .75rem; }
.search-suggestions { max-height: min(480px, 65vh); overflow-y: auto; }
.empty-state h1 { font-family: Manrope, sans-serif; font-size: 2rem; line-height: 1.15; letter-spacing: -.04em; }
.empty-state p { font-size: 1rem; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 18px; border: 1px solid var(--ink); border-radius: 12px; background: var(--ink); color: white; font-weight: 700; font-size: .9rem; text-align: center; }
.primary-button:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); }
.secondary-button { border-color: var(--line); background: white; color: var(--ink); }
.secondary-button:hover { border-color: var(--ink); }
.text-button { display: inline-block; padding: 10px 0; border: 0; color: var(--blue); background: transparent; font-size: .88rem; font-weight: 700; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.full-width { width: 100%; }
.breadcrumbs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 28px; color: var(--muted); font-size: .85rem; }
.breadcrumbs a:hover { color: var(--blue); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.detail-media { position: sticky; top: 110px; }
.zoom-trigger { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: #e9edf2; }
.detail-image { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; }
.detail-image.abstract-art { display: grid; }
.zoom-trigger > span { position: absolute; bottom: 18px; right: 18px; padding: 8px 12px; border-radius: 999px; background: #ffffffec; font-size: .75rem; color: var(--ink); }
.detail-copy h1, .page-head h1, .info-page h1 { margin: 0 0 20px; font-family: Manrope, sans-serif; font-size: clamp(2rem, 3vw, 3.1rem); line-height: 1.08; letter-spacing: -.055em; }
.detail-copy > p { color: var(--muted); }
.detail-copy .detail-price { color: var(--ink); font-size: 1.9rem; font-weight: 800; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.detail-price del { font-size: 1rem; font-weight: 500; color: var(--muted); }
.detail-price span { border-radius: 999px; background: var(--lime); padding: 5px 10px; font-size: .8rem; }
#product-form { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 10px 14px; margin-top: 26px; }
#product-form label { font-size: .85rem; font-weight: 700; }
#product-form label[for="detail-qty"] { grid-column: 2; grid-row: 1; }
#product-variant { grid-column: 1; grid-row: 2; min-width: 0; width: 100%; }
#detail-qty { grid-column: 2; grid-row: 2; }
#product-form p, #product-form button { grid-column: 1 / -1; }
input:not(#site-search) { max-width: 100%; min-width: 0; padding: 12px; border: 1px solid #cdd3de; border-radius: 10px; background: white; color: var(--ink); }
.password-field { position: relative; display: grid; }
.password-field input { padding-right: 82px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--blue); font-size: .8rem; font-weight: 800; padding: 6px 4px; cursor: pointer; }
.password-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.field-hint, .sample-note { font-size: .8rem; line-height: 1.6; color: var(--muted); }
.field-hint { margin: 0; }
.field-error { margin: 0; color: #b32424; font-size: .9rem; }
.field-error:empty { display: none; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 30px; }
details { padding: 18px 0; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
details dl { margin-bottom: 0; }
dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; }
.detail-copy dl { font-size: .86rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 12px 0 24px; }
.page-head h1 { margin-bottom: 0; }
.page-head > button { flex-shrink: 0; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: start; gap: 24px; }
.cart-lines { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.cart-thumb { display: block; width: 96px; height: 112px; border-radius: 12px; overflow: hidden; }
.cart-thumb .abstract-art span { font-size: 1.3rem; }
.cart-thumb .abstract-art small, .cart-thumb .abstract-art i { display: none; }
.cart-description h2 { font-size: .95rem; margin: 2px 0 7px; }
.cart-description p { margin: 0 0 14px; color: var(--muted); font-size: .8rem; }
.quantity-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; }
.quantity-control button { border: 0; border-radius: 8px; width: 32px; height: 38px; background: #f6f7f9; }
.quantity-control input:not(#site-search) { width: 40px; height: 38px; padding: 0 2px; border: 0; border-radius: 0; text-align: center; appearance: textfield; -moz-appearance: textfield; font-size: .9rem; }
.quantity-control input::-webkit-inner-spin-button { appearance: none; }
.cart-line-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; font-size: .95rem; }
.cart-line-end .text-button { font-size: .78rem; }
.order-summary { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: white; position: sticky; top: 102px; }
.cart-action-buttons { display: grid; gap: 10px; margin-top: 20px; }
.cart-action-buttons .whatsapp-button, .cart-action-buttons .secondary-button { width: 100%; text-align: center; }
.cart-action-buttons .whatsapp-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #25d366; border-color: #25d366; }
.cart-action-buttons .whatsapp-button:hover:not(:disabled) { background: #1ebe5b; border-color: #1ebe5b; }
.cart-action-buttons .secondary-button { background: var(--brand); border-color: var(--brand); color: white; }
.cart-action-buttons .secondary-button:hover:not(:disabled) { background: var(--brand-hover); border-color: var(--brand-hover); color: white; }
.whatsapp-mark { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-action-buttons .whatsapp-button[disabled] { opacity: .56; cursor: not-allowed; }
.cart-contact-unavailable { margin: 12px 0 0; font-size: .8rem; }
.order-summary h2, .checkout-panel h2 { margin: 0 0 20px; font-family: Manrope, sans-serif; font-size: 1.2rem; letter-spacing: -.03em; }
.order-summary dl { font-size: .86rem; }
.order-summary dd { flex-shrink: 0; }
.savings dt, .savings dd { color: #307840; }
.summary-total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 18px; font-weight: 700; }
.summary-total dt { color: var(--ink); }
.order-summary > .text-button { width: 100%; text-align: center; margin-top: 10px; }
.notice { padding: 18px 22px; border: 1px solid #c4cafe; background: #edf0ff; color: #35428b; border-radius: 14px; font-size: .92rem; margin: 0 0 26px; }
.checkout-panel { padding: 28px; background: white; border: 1px solid var(--line); border-radius: 20px; }
.checkout-form { display: grid; gap: 18px; }
.checkout-form label { display: grid; gap: 7px; font-size: .9rem; font-weight: 600; }
.checkout-form input { font-weight: 400; }
.checkout-panel > p { overflow-wrap: anywhere; }
.review-lines { margin: 0 0 24px; padding: 0; list-style: none; }
.review-lines li { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 14px 0; font-size: .88rem; }
.review-lines strong { flex-shrink: 0; }
.checkout-panel > .text-button { margin-bottom: 22px; }
.info-page { width: min(100%, 800px); margin: 12px auto; padding: clamp(22px, 4vw, 50px); border: 1px solid var(--line); border-radius: 24px; background: white; }
.info-page > p { color: var(--muted); line-height: 1.7; }
.info-page > h2 { font-size: 1.15rem; margin-top: 32px; }
.info-page details p { color: var(--muted); font-size: .95rem; line-height: 1.65; }
.info-page details:first-of-type { margin-top: 30px; }
.info-page summary { padding-right: 12px; }
dialog { width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 28px; border: 0; border-radius: 24px; color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: #111827b3; backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dialog-head h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 1.25rem; line-height: 1.25; }
.icon-button { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 1.5rem; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.auth-intro { margin: -4px 0 18px; color: var(--muted); line-height: 1.55; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; padding: 4px; border-radius: 12px; background: #f1f3f7; }
.auth-tabs button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; }
.auth-tabs button.active { background: white; color: var(--ink); box-shadow: 0 2px 8px #11182712; }
#customer-auth-form { display: grid; gap: 9px; }
#customer-auth-form label { margin-top: 4px; font-size: .86rem; font-weight: 700; }
#customer-auth-form input { width: 100%; }
#customer-auth-form .primary-button { margin-top: 8px; }
.auth-required { display: grid; justify-items: start; gap: 14px; }
.auth-required h1, .auth-required > p { max-width: 650px; }
.zoomed-image { display: block; width: 100%; max-height: 65dvh; object-fit: contain; border-radius: 14px; }
.zoomed-image.abstract-art { display: grid; aspect-ratio: 1; }
.share-url { width: 100%; }
.contact-card { margin-top: 28px; padding: 24px; border: 1px solid #cbdac8; border-radius: 20px; background: #ecf8e8; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.contact-card h2 { margin: 0 0 6px; font-size: 1.05rem; }
.contact-card p { margin: 0; font-size: .9rem; color: #36553d; }
.contact-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: white; background: #1c543a; font-size: 1.6rem; }
.contact-number { display: inline-block; font-weight: 800; font-size: 1.2rem; margin-top: 10px; color: #194f32; text-decoration: underline; }
.whatsapp-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border-radius: 12px; color: white; background: #1c543a; font-size: .9rem; font-weight: 700; }
.whatsapp-button:hover { background: #103d28; }
.floating-contact { position: fixed; right: 24px; bottom: 24px; z-index: 65; display: flex; align-items: center; gap: 9px; padding: 13px 18px; border: 1px solid #cbef9e; border-radius: 999px; background: #d0ff65; box-shadow: 0 6px 24px #11182720; color: #142719; font-size: .875rem; font-weight: 700; }
.floating-contact span { font-size: 1.2rem; }
.toast { bottom: 90px; }
.checkout-panel > p { color: var(--muted); font-size: .95rem; }
.optional-label { font-weight: 400; color: var(--muted); }
.checkout-form .consent-label { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; font-size: .875rem; line-height: 1.6; padding: 15px; background: #f3f5f8; border-radius: 12px; }
.consent-label input { margin: 4px 0 0; flex: 0 0 18px; width: 18px; height: 18px; accent-color: var(--blue); }
.review-lines small { display: block; margin-top: 5px; color: var(--muted); }
.inquiry-status { padding: 9px 13px; border-radius: 999px; font-size: .875rem; color: #415e20; background: #e2efcc; }
.inquiry-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.inquiry-stats article { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.inquiry-stats strong { display: block; font-family: Manrope, sans-serif; font-size: clamp(1.5rem, 2.5vw, 2.4rem); letter-spacing: -.04em; }
.inquiry-stats span { display: block; margin-top: 6px; font-size: .875rem; color: var(--muted); }
.inquiry-table-wrap { border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; background: white; }
.inquiry-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.inquiry-table caption { text-align: left; padding: 18px 22px; color: var(--muted); font-size: .875rem; }
.inquiry-table th, .inquiry-table td { padding: 18px 20px; text-align: left; border-top: 1px solid var(--line); }
.inquiry-table th { background: #f9fafc; font-size: .85rem; }
.inquiry-table small { display: block; margin-top: 6px; color: var(--muted); }
.inquiry-table a:hover { color: var(--blue); text-decoration: underline; }
.inquiry-table td:nth-child(n+3) { white-space: nowrap; }
.inquiry-table tfoot { font-weight: 700; }
.shared-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.address-card, .share-panel { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; min-width: 0; }
.address-card h2, .share-panel h2 { font-size: 1.15rem; margin: 0 0 16px; }
.address-card p { overflow-wrap: anywhere; }
.share-panel .dialog-actions { justify-content: flex-start; margin-top: 12px; }
.danger-text { color: #a23232; }
.recent-inquiries { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 24px; }
.recent-inquiries h2 { margin: 0; font-size: 1.1rem; }
.recent-inquiries p, .recent-inquiries span { color: var(--muted); font-size: .875rem; }
.recent-inquiries ul { list-style: none; padding: 0; margin: 16px 0 0; }
.recent-inquiries li { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.recent-inquiries a { color: var(--blue); font-weight: 700; }
.purchase-steps { padding-left: 22px; line-height: 1.7; }
.purchase-steps li { padding: 8px 0; }
.suggestion-thumb { overflow: hidden; }
.suggestion-thumb .abstract-art span { font-size: .7rem; }
.suggestion-thumb .abstract-art small, .suggestion-thumb .abstract-art i { display: none; }
.confidence-strip p, .footer { font-size: .8rem; }
.footer { gap: 16px; }
.footer nav { flex-wrap: wrap; gap: 16px; }
.toast { max-width: min(440px, calc(100vw - 28px)); pointer-events: none; }
.toast p { font-size: .85rem; }
.toast > span { flex-shrink: 0; }
@media (max-width: 1180px) {
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 400px 230px; }
  .feature-card { grid-column: 1 / -1; grid-row: 1; }
  .flash-card { grid-column: span 1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .order-summary { position: static; }
  .detail-layout { gap: 24px; }
}
@media (max-width: 900px) {
  .detail-media { top: 150px; }
  .product-section, .collection-section { scroll-margin-top: 148px; }
  .order-summary { top: 150px; }
  input:not([type=number]), select, .search-wrap input { font-size: 16px; }
}
@media (max-width: 640px) {
  .contact-card { grid-template-columns: 40px minmax(0, 1fr); padding: 18px; gap: 12px; }
  .contact-icon { width: 40px; height: 40px; }
  .contact-card .whatsapp-button { grid-column: 1 / -1; }
  .inquiry-stats { gap: 8px; }
  .inquiry-stats article { padding: 15px 10px; }
  .inquiry-stats strong { font-size: 1.3rem; overflow-wrap: anywhere; }
  .inquiry-stats span { font-size: .8rem; }
  .inquiry-table { min-width: 630px; }
  .inquiry-table-wrap::before { content: 'Desliza la tabla para ver precios y subtotales →'; position: sticky; left: 0; display: block; width: calc(100vw - 34px); padding: 12px 16px; border-bottom: 1px solid var(--line); color: #3f4b8c; background: #edf0ff; font-size: .875rem; }
  .shared-bottom { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .address-card, .share-panel { padding: 20px; }
  .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .feature-card { grid-column: 1; grid-row: auto; }
  #search-button { display: block; padding-inline: 12px; font-size: .8rem; }
  .search-wrap { padding-left: 12px; }
  .search-wrap input { padding-inline: 8px; }
  .shipping-bar { font-size: .66rem; text-align: center; }
  .section-head { flex-direction: column; gap: 20px; }
  .section-actions { width: 100%; justify-content: space-between; }
  .sort-label { margin-left: auto; }
  .sort-label select { font-size: .85rem; }
  .product-info h3 { min-height: 42px; font-size: .85rem; }
  .variant-caption { font-size: .68rem; min-height: 28px; }
  .price { font-size: .94rem; }
  .price del { display: block; margin: 0; font-size: .68rem; }
  .product-category { font-size: .64rem; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .detail-media { position: static; }
  .detail-copy h1 { font-size: 2rem; }
  .detail-copy .detail-price { margin-block: 14px; }
  .detail-actions { gap: 8px; }
  .detail-actions .text-button { width: 100%; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .page-head h1 { font-size: 2.2rem; }
  .cart-line { padding: 14px; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; }
  .cart-thumb { width: 70px; height: 85px; }
  .cart-line-end { grid-column: 1 / -1; flex-direction: row; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
  .cart-description h2 { font-size: .86rem; }
  .checkout-panel, .order-summary { padding: 20px; }
  .review-lines li { gap: 12px; font-size: .8rem; }
  .notice { font-size: .86rem; padding: 16px; }
  .info-page { border-radius: 18px; }
  .info-page h1 { font-size: 2rem; }
  .info-page summary { font-size: .9rem; }
  dialog { padding: 20px; border-radius: 18px; }
  .dialog-head h2 { font-size: 1.1rem; }
  .footer { padding-bottom: 24px; }
  .mobile-nav { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
}
@media (max-width: 900px) {
  .floating-contact { bottom: 80px; right: 14px; font-size: .8rem; padding: 10px 14px; }
  .toast { bottom: 142px; }
  .contact-card { grid-template-columns: 40px minmax(0, 1fr); }
  .contact-card .whatsapp-button { grid-column: 1 / -1; }
}
