/* Cura Store pages. Uses the palette and radii of cura-site.css. */
.store-hero { padding: 48px 0 40px; }
.store-hero p { max-width: 640px; }
.store-section { padding: 32px 0 80px; }
.store-section [hidden], .store-bar [hidden] { display: none !important; }

.store-bar { background: var(--card); border-bottom: 1px solid var(--line); }
.store-bar-row { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.store-bar-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--green-txt); text-decoration: none; white-space: nowrap; }
.store-search { flex: 1; min-width: 0; position: relative; }
.store-search input { width: 100%; height: 42px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 18px; background: var(--mint-xl); font: inherit; color: var(--text); }
.store-search input:focus { outline: none; border-color: var(--green-lt); background: #fff; }
.store-cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.store-cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--mint); color: var(--green-txt); font-size: 12px; font-weight: 800; }
@media (max-width: 640px) { .store-bar-brand span, .store-cart-link > span:not(.store-cart-count) { display: none; } }

.store-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }
.store-chip { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--green-txt); font-weight: 700; font-size: 14px; text-decoration: none; }
.store-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; margin-inline-start: -8px; }
.store-chip.is-active, .store-chip:hover { border-color: var(--green); background: var(--green); color: #fff; }

.store-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.store-card { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.store-card-media { position: relative; aspect-ratio: 1; background: var(--mint-xl); display: grid; place-items: center; }
.store-card-media img { width: 100%; height: 100%; object-fit: cover; }
.store-fallback { width: 48px; height: 48px; color: var(--mint); }
.store-pill { position: absolute; inset-inline-start: 10px; top: 10px; padding: 4px 10px; border-radius: 99px; background: var(--green-dk); color: #fff; font-size: 12px; line-height: 1.4; font-weight: 800; height: auto; width: auto; }
.store-pill-sale { background: var(--red); }
.store-card-body { display: grid; gap: 4px; padding: 14px 16px 18px; }
.store-card-brand { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0; }
.store-card-name { font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-card-price { font-weight: 800; color: var(--green); }
.store-card-price s, .store-price s { color: var(--muted); font-weight: 500; margin-inline-start: 6px; font-size: .9em; }
.store-empty { padding: 40px 0; color: var(--muted); }
.store-note { display: flex; align-items: center; gap: 10px; margin-top: 32px; color: var(--muted); font-size: 14px; }

.store-crumbs { color: var(--muted); }
.store-crumbs a { color: var(--green-lt); }
.store-product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .store-product { grid-template-columns: 1fr; gap: 24px; } }
.store-gallery-main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--mint-xl); display: grid; place-items: center; }
.store-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.store-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.store-thumb { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; background: none; }
.store-thumb img { width: 100%; height: 100%; object-fit: cover; }
.store-info h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.2; margin: 4px 0 10px; }
.store-price { font-size: 26px; font-weight: 800; color: var(--green); margin: 0 0 20px; }
.store-options { border: 0; padding: 0; margin: 0 0 20px; }
.store-options legend { font-weight: 700; margin-bottom: 10px; }
.store-option { display: inline-flex; margin: 0 8px 8px 0; cursor: pointer; }
.store-option input { position: absolute; opacity: 0; pointer-events: none; }
.store-option span { display: grid; gap: 2px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card); font-weight: 700; }
.store-option small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.store-option input:checked + span { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: var(--mint-xl); }
.store-option input:disabled + span { opacity: .45; cursor: not-allowed; }
.store-option input:focus-visible + span { outline: 2px solid var(--green-lt); outline-offset: 2px; }
.store-buy { display: flex; gap: 12px; flex-wrap: wrap; }
.store-add { flex: 1; min-width: 200px; }
.store-add:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.store-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); height: 48px; }
.store-qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 20px; font-weight: 700; color: var(--green-txt); cursor: pointer; }
.store-qty input { width: 44px; border: 0; text-align: center; font: inherit; font-weight: 700; background: none; -moz-appearance: textfield; }
.store-qty input::-webkit-inner-spin-button, .store-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.store-added { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--green-lt); font-weight: 700; }
.store-stock { margin: 10px 0 0; color: var(--red); font-weight: 700; font-size: 14px; }
.store-perks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.store-perks li { display: flex; gap: 10px; align-items: center; }
.store-desc { border-top: 1px solid var(--line); padding-top: 20px; color: var(--text); line-height: 1.7; }

.store-title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin: 0 0 20px; }
.store-cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 920px) { .store-cart { grid-template-columns: 1fr; } }
.store-lines { list-style: none; margin: 0 0 20px; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.store-lines:empty { display: none; }
.store-line { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.store-line:last-child { border-bottom: 0; }
.store-line img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.store-line-name { flex: 1; min-width: 0; display: grid; gap: 2px; font-weight: 700; }
.store-line-name small { font-weight: 500; color: var(--muted); font-size: 13px; }
.store-line-name em { font-style: normal; color: var(--red); font-size: 13px; font-weight: 700; }
.store-line.has-problem { background: #FDF1F0; }
.store-line .store-qty { height: 38px; }
.store-line .store-qty button { width: 32px; font-size: 17px; }
.store-line .store-qty input { width: 34px; }
.store-line-total { width: 90px; text-align: end; font-weight: 800; }
.store-remove { border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; padding: 0 4px; }
@media (max-width: 560px) { .store-line { flex-wrap: wrap; } .store-line-total { width: auto; margin-inline-start: auto; } }

.store-form { display: grid; gap: 18px; }
.store-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 18px 20px 20px; margin: 0; }
.store-form legend { font-weight: 800; padding: 0 6px; }
.store-form select, .store-form input:not([type=checkbox]), .store-form textarea { width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; font: inherit; background: var(--mint-xl); color: var(--text); box-sizing: border-box; }
.store-form textarea { min-height: 70px; }
.store-form :is(select, input, textarea):focus { outline: none; border-color: var(--green-lt); background: #fff; }
.store-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.store-fields label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.store-fields .span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .store-fields { grid-template-columns: 1fr; } }
.store-accept { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.store-accept input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); }
.store-hint { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }
.store-alert { padding: 12px 16px; border-radius: var(--radius-sm); background: #FDF1F0; color: #9B2C2A; font-weight: 600; font-size: 14.5px; margin: 0 0 16px; }

.store-summary { position: sticky; top: 80px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.store-summary dl { margin: 0; display: grid; gap: 8px; }
.store-summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.store-summary dt { color: var(--muted); }
.store-summary dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.store-summary .store-total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 19px; }
.store-summary .store-total dt { color: var(--text); font-weight: 800; }
.store-summary .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.store-status { display: inline-block; padding: 6px 14px; border-radius: 99px; background: var(--mint-lt); color: var(--green-txt); font-weight: 800; margin: 0 0 16px; }
.store-status-pending_payment, .store-status-expired, .store-status-cancelled { background: #F4F1EA; color: #6B5A2E; }
.store-status-refunded { background: #EEF0F3; color: #4A5563; }
.store-ship { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.store-ship h2 { font-size: 16px; margin: 0 0 8px; }
.store-ship p { margin: 0 0 6px; color: var(--muted); }

.store-preview-note { background: #FFF5E3; color: #6B4E12; text-align: center; font-size: 13.5px; font-weight: 700; padding: 8px 16px; border-bottom: 1px solid #F0DDB4; }

/* Product page v2 */
.store-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (min-width: 861px) { .store-gallery { position: sticky; top: 24px; } }
.store-gallery-main { max-height: 560px; }
.store-highlights { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.store-highlights li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 15px; }
.store-highlights .ico { flex: none; width: 20px; height: 20px; color: var(--green-lt); margin-top: 1px; }
.store-perks { border-top: 1px solid var(--line); padding-top: 18px; }
.store-more { margin-top: 48px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.store-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.store-tabs button { border: 0; background: none; padding: 16px 14px 14px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.store-tabs button[aria-selected="true"] { color: var(--green-txt); border-bottom-color: var(--green); }
.store-panel { padding: 24px 28px 28px; line-height: 1.7; max-width: 860px; }
.store-panel p { margin: 0 0 14px; }
.store-panel p .ico { width: 18px; height: 18px; vertical-align: -3px; color: var(--green-lt); }
.store-bullets { margin: 0 0 14px; padding-inline-start: 20px; }
.store-bullets li { margin-bottom: 6px; }
.store-muted { color: var(--muted); }
.store-specs { margin: 0; display: grid; }
.store-specs div { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.store-specs div:last-child { border-bottom: 0; }
.store-specs dt { color: var(--muted); font-weight: 600; }
.store-specs dd { margin: 0; font-weight: 600; }
.store-specs a { color: var(--green-lt); }
.store-zones { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 15px; }
.store-zones th { text-align: start; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.store-zones td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.store-zones td small { display: block; color: var(--muted); font-size: 12.5px; }
.store-links a { color: var(--green-lt); font-weight: 600; }
.store-related { margin-top: 56px; }
.store-related h2 { font-size: 24px; font-weight: 800; margin: 0 0 18px; }
@media (max-width: 560px) { .store-panel { padding: 18px 16px 20px; } .store-specs div { grid-template-columns: 1fr; gap: 2px; } }

/* Share + zoom */
.store-info-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.store-share .share-btn { min-height: 40px; padding: 0 16px; font-size: 14px; background: var(--card); color: var(--green-txt); border: 1.5px solid var(--line); }
.store-share .share-btn:hover { background: var(--mint-xl); }
.store-share .share-menu { inset-inline-start: auto; inset-inline-end: 0; }
.store-zoom { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.store-zoom img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-zoom-hint { position: absolute; inset-inline-end: 14px; bottom: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--green-txt); box-shadow: var(--shadow-sm); }
.store-zoom-hint .ico { width: 20px; height: 20px; }
.store-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 22, 17, .94); display: grid; place-items: center; padding: 56px 16px; }
.store-lightbox[hidden] { display: none; }
.store-lightbox img { max-width: min(100%, 1400px); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 12px; background: #fff; }
.store-lb-close { position: absolute; top: 14px; inset-inline-end: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.store-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.store-lb-prev { inset-inline-start: 16px; }
.store-lb-next { inset-inline-end: 16px; }
[dir="rtl"] .store-lb-prev, [dir="rtl"] .store-lb-next { transform: translateY(-50%) scaleX(-1); }
.store-lb-close:hover, .store-lb-nav:hover { background: rgba(255, 255, 255, .26); }
.store-lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .8); font-weight: 700; margin: 0; }
body.store-lb-open { overflow: hidden; }

/* Checkout: verification, phone code, places, promo */
.store-inline { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.store-inline > input, .store-inline > select { flex: 1 1 160px; min-width: 0; }
.store-inline .btn { min-height: 48px; }
.store-field-label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.store-verify { display: grid; gap: 8px; }
.store-verify label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.store-ok { display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--mint-lt); color: var(--green-txt); font-weight: 800; font-size: 14px; }
.store-code { display: grid; gap: 6px; }
.store-code input { letter-spacing: .4em; font-weight: 800; text-align: center; max-width: 180px; }
.store-form select.store-dial { flex: 0 0 150px; }
.store-places { position: relative; }
.store-places-list { position: absolute; z-index: 30; top: calc(100% - 22px); inset-inline: 0; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.store-places-list li { padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--text); font-weight: 600; font-size: 14.5px; }
.store-places-list li:hover, .store-places-list li:focus { background: var(--mint-xl); }
.store-promo { border-top: 1px solid var(--line); padding-top: 12px; }
.store-promo input { min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; font: inherit; text-transform: uppercase; background: var(--mint-xl); }
.store-promo .btn { min-height: 44px; }
.store-promo-msg { margin-top: 8px; color: var(--green-lt); font-weight: 700; }
.store-promo-msg.is-error { color: #9B2C2A; }
.store-link-btn { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
.store-summary dd small, .store-summary dt small { color: var(--muted); font-weight: 600; }

/* Country code picker with search */
.store-dialpick { position: relative; flex: 0 0 auto; }
.store-dialpick-btn { display: inline-flex; align-items: center; gap: 6px; height: 100%; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--mint-xl); font: inherit; font-weight: 700; color: var(--text); cursor: pointer; white-space: nowrap; }
.store-dialpick-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.store-dialpick-caret { color: var(--muted); font-size: 12px; }
.store-dialpick-pop { position: absolute; z-index: 40; top: calc(100% + 6px); inset-inline-start: 0; width: min(320px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; }
.store-dialpick-search { width: 100%; min-height: 42px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; background: var(--mint-xl); margin-bottom: 6px; }
.store-dialpick-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.store-dialpick-list li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--text); }
.store-dialpick-list li.is-active, .store-dialpick-list li:hover { background: var(--mint-xl); }
.store-dialpick-list li[aria-selected="true"] .d { color: var(--green-txt); font-weight: 800; }
.store-dialpick-list .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.store-dialpick-list .store-dialpick-empty { display: block; text-align: center; color: var(--muted); cursor: default; }
.store-dialpick-btn span:nth-child(2), .store-dialpick-list .d { direction: ltr; unicode-bidi: isolate; }

/* Live search suggestions */
.store-suggest { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 40; max-height: min(70vh, 460px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 40px rgba(16, 40, 31, .16); padding: 6px; }
.store-suggest-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.store-suggest-item:hover, .store-suggest-item.is-active { background: var(--mint-xl); }
.store-suggest-item img, .store-suggest-noimg { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--mint-xl); }
.store-suggest-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-suggest-price { flex: none; font-weight: 800; color: var(--green-txt); }
.store-suggest-cat .store-suggest-name::before { content: '#'; margin-inline-end: 6px; color: var(--green-lt); }
.store-suggest-cat { padding-block: 10px; }
.store-suggest-empty { margin: 0; padding: 14px 12px; color: var(--muted, #5b6b64); }
.store-suggest-all { display: block; width: 100%; margin-top: 4px; padding: 10px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-weight: 700; color: var(--green-txt); cursor: pointer; border-radius: 0 0 12px 12px; }
.store-suggest-all:hover { background: var(--mint-xl); }

/* Terms of sale */
.store-terms .store-lead{color:var(--muted,#5b6b63);margin:.25rem 0 .5rem}
.store-terms-toc{background:var(--surface-2,#f3f6f4);border-radius:14px;padding:14px 18px;margin:18px 0 8px}
.store-terms-toc p{margin:0 0 6px}
.store-terms-toc ol{margin:0;padding-inline-start:20px;columns:2;column-gap:28px}
.store-terms-toc li{margin:3px 0;break-inside:avoid}
.store-terms .prose h2{scroll-margin-top:90px}
.store-terms-form{border:1px dashed var(--line,#cfd8d3);border-radius:12px;padding:14px 18px}
.store-terms-form p{margin:.45rem 0}
@media (max-width:640px){.store-terms-toc ol{columns:1}}
