/* Cart and checkout additions. The three page styles retain the original theme. */
@font-face { font-family: 'Noto Sans Devanagari'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/noto-devanagari-400.ttf') format('truetype'); }
@font-face { font-family: 'Noto Sans Devanagari'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/noto-devanagari-700.ttf') format('truetype'); }
:root { --sb-brown: #66251c; --sb-gold: #d4a574; --sb-ink: #2c1810; --font-body-family: Murecho, 'Noto Sans Devanagari', sans-serif; --font-heading-family: Murecho, 'Noto Sans Devanagari', sans-serif; }
.sb-store [hidden] { display: none !important; }
.sb-store button, .sb-store input, .sb-store select, .sb-store textarea { font-family: inherit; }
.sb-store button { cursor: pointer; }
.sb-store button:focus-visible, .sb-store a:focus-visible { outline: 3px solid var(--sb-gold); outline-offset: 4px; }
.sb-store .header-wrapper { display: block; }
.sb-store .header__icon--cart { position: relative; }
.sb-store .header__icon .sb-cart-count { position: absolute; top: 2px; right: 2px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 4px; border-radius: 20px; background: var(--sb-brown); color: #fff; font-size: 10px; line-height: 1; }
.sb-store .section-header { top: 0; z-index: 20; }
.sb-store .announcement-bar { display: block; }
.sb-store .announcement-bar-slider { width: 100%; }
.sb-store .announcement-bar-slider .slider { scroll-behavior: smooth; scrollbar-width: none; }
.sb-store .product-card-wrapper { height: 100%; }
.sb-store .product-card-wrapper > .card { height: 100%; display: flex; flex-direction: column; }
.sb-store .product-card-wrapper > .card > .card__content { flex: 1; }
.sb-store .sb-card-actions { position: relative; z-index: 2; display: flex; gap: 8px; padding: 12px 0 16px; margin-top: auto; }
.sb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border: 1px solid var(--sb-brown); border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; text-align: center; transition: background .15s; }
.sb-btn-primary { background: var(--sb-brown); color: #fff; }
.sb-btn-primary:hover { background: #4c1b15; color: #fff; }
.sb-btn-outline { background: #fff; color: var(--sb-brown); }
.sb-btn-outline:hover { background: #fbf5f0; }
.sb-card-actions .sb-btn { flex: 1; padding: 10px 8px; font-size: 13px; white-space: nowrap; }
.sb-btn:disabled { opacity: .6; cursor: wait; }
.sb-btn-wide { width: 100%; }
.sb-catalog { padding-top: 36px; padding-bottom: 48px; }
.sb-catalog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.sb-catalog-heading h1 { margin: 0; }
.sb-catalog-heading p { font-size: 14px; }
.sb-footer-address { margin: 0; max-width: 330px; color: #fff; font-size: 14px; line-height: 1.8; }
.sb-footer-email { color: #fff; font-size: 13px; overflow-wrap: anywhere; }
.sb-dialog { position: fixed; inset: 0; width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; background: #fff; color: var(--sb-ink); border: 1px solid #eaded6; border-radius: 16px; box-shadow: 0 24px 90px #0003; overflow: auto; font-size: 14px; letter-spacing: 0; line-height: 1.6; }
.sb-dialog::backdrop { background: rgba(35, 19, 14, .6); }
.sb-dialog h2, .sb-dialog h3 { font-family: inherit; letter-spacing: 0; color: var(--sb-ink); }
.sb-dialog h2 { font-size: 22px; font-weight: 600; margin: 0; }
.sb-dialog h3 { font-size: 17px; font-weight: 600; margin: 0 0 18px; }
.sb-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 5; padding: 16px 24px; border-bottom: 1px solid #eee2d9; background: #fff; font-weight: 600; }
.sb-close { flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #f7f1ed; color: var(--sb-brown); font-size: 26px; line-height: 1; }
.sb-product-body { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 24px; }
.sb-product-picture { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #f7f7f7; border-radius: 8px; }
.sb-product-info h2 { font-size: 20px; line-height: 1.5; margin: 0 0 14px; }
.sb-product-size { color: #756359; margin-bottom: 10px; }
.sb-product-price { font-size: 22px; font-weight: 700; color: var(--sb-brown); }
.sb-product-old { font-size: 14px; color: #82746c; margin-right: 8px; }
.sb-product-quantity { margin: 20px 0; }
.sb-product-quantity label { display: block; margin-bottom: 6px; }
.sb-product-quantity input { width: 85px; min-height: 44px; padding: 8px 12px; border: 1px solid #c8b6aa; border-radius: 6px; font-size: 15px; color: var(--sb-ink); background: #fff; }
.sb-product-buttons { display: grid; gap: 10px; }
.sb-product-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.sb-product-thumbs button { padding: 2px; border: 1px solid #dccbbd; border-radius: 6px; background: #fff; }
.sb-product-thumbs button[aria-pressed="true"] { border: 2px solid var(--sb-brown); padding: 1px; }
.sb-product-thumbs img { display: block; width: 52px; height: 52px; object-fit: cover; }
.sb-store #sb-product.sb-product-dialog { inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
#sb-product .sb-dialog-header { padding: 16px clamp(16px, 4vw, 64px); }
#sb-product .sb-product-body { max-width: 1440px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 64px); gap: 48px; align-items: start; }
#sb-product .sb-product-picture { max-width: 540px; margin: 0 auto; }
#sb-product .sb-product-info { padding-top: 20px; }
#sb-product .sb-product-info h2 { font-size: clamp(22px, 2.2vw, 32px); }
#sb-product .sb-product-thumbs { justify-content: center; }
#sb-product .sb-product-buttons { max-width: 420px; }
.sb-product-list { max-width: 1440px; margin: 0 auto; padding: 30px clamp(16px, 4vw, 64px) 48px; border-top: 1px solid #eee2d9; }
.sb-all-products-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.sb-all-products-heading h3 { margin: 0; font-size: 24px; }
.sb-all-products-heading > span { font-size: 13px; color: #756359; }
#sb-product .sb-all-products-grid > .grid__item { width: calc(33.3333% - var(--grid-desktop-horizontal-spacing) * 2 / 3); max-width: calc(33.3333% - var(--grid-desktop-horizontal-spacing) * 2 / 3); }
#sb-cart-content { padding: 4px 24px 24px; }
.sb-cart-item { display: grid; grid-template-columns: 82px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid #eee2d9; }
.sb-cart-item > img { width: 82px; height: 82px; object-fit: contain; background: #f7f7f7; border-radius: 6px; }
.sb-cart-item h3 { font-size: 14px; font-weight: 500; line-height: 1.5; margin: 0 0 6px; }
.sb-cart-item p { margin: 2px 0 8px; color: #756359; font-size: 13px; }
.sb-cart-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.sb-quantity { display: inline-flex; align-items: center; border: 1px solid #c8b6aa; border-radius: 6px; overflow: hidden; }
.sb-quantity button { width: 36px; height: 38px; border: 0; background: #faf5f1; color: var(--sb-brown); font-size: 20px; }
.sb-quantity input { width: 48px; height: 38px; margin: 0; padding: 0 4px; border: 0; border-left: 1px solid #e5d8ce; border-right: 1px solid #e5d8ce; background: #fff; color: var(--sb-ink); font-size: 14px; text-align: center; appearance: textfield; }
.sb-quantity input::-webkit-inner-spin-button { appearance: none; }
.sb-text-btn { min-height: 38px; padding: 5px 0; border: 0; background: transparent; color: var(--sb-brown); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.sb-total { display: flex; justify-content: space-between; gap: 10px; padding: 18px 0; font-size: 17px; }
.sb-total strong { white-space: nowrap; }
.sb-cart-footer { display: flex; gap: 10px; margin-top: 16px; }
.sb-cart-footer .sb-btn { flex: 1; }
.sb-empty-cart { padding: 32px 0 16px; text-align: center; }
.sb-empty-cart p { margin: 0 0 22px; }
.sb-checkout-dialog { width: min(970px, calc(100% - 32px)); }
.sb-checkout-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 28px; padding: 24px; }
.sb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.sb-field { min-width: 0; }
.sb-field-wide { grid-column: 1 / -1; }
.sb-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.sb-field label > span:not(.sb-optional) { color: var(--sb-brown); }
.sb-optional { color: #82746c; font-weight: 400; }
.sb-field input, .sb-field textarea, .sb-field select { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #c8b6aa; border-radius: 6px; background: #fff; color: var(--sb-ink); font-size: 14px; line-height: 1.5; box-sizing: border-box; }
.sb-field textarea { resize: vertical; }
.sb-field input:focus, .sb-field textarea:focus, .sb-field select:focus { outline: 2px solid var(--sb-gold); outline-offset: 1px; }
.sb-field input[readonly] { background: #f7f3ef; }
.sb-phone { display: flex; align-items: stretch; border: 1px solid #c8b6aa; border-radius: 6px; }
.sb-phone > span { display: flex; align-items: center; padding: 0 10px; border-right: 1px solid #e5d8ce; background: #f7f3ef; border-radius: 5px 0 0 5px; }
.sb-phone input { border: 0; border-radius: 0 5px 5px 0; }
.sb-order-summary { align-self: start; padding: 20px; border: 1px solid #e5d8ce; border-radius: 10px; background: #fbf7f3; }
.sb-summary-item { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid #e5d8ce; }
.sb-summary-item img { width: 48px; height: 48px; object-fit: contain; border-radius: 4px; background: #fff; }
.sb-summary-item p { font-size: 12px; line-height: 1.6; margin: 0 0 4px; }
.sb-summary-item small { display: block; color: #756359; font-size: 12px; }
.sb-summary-item strong { font-size: 13px; }
.sb-order-summary .sb-total { font-size: 15px; }
.sb-order-note { font-size: 12px; color: #756359; line-height: 1.7; margin: 14px 0; }
.sb-form-status { font-size: 13px; line-height: 1.7; margin: 12px 0; }
.sb-form-status:empty { display: none; }
.sb-form-status[data-state="error"] { color: #982a20; padding: 10px 12px; background: #fff1ed; border: 1px solid #efc6bd; border-radius: 6px; }
.sb-form-status[data-state="success"] { color: #24643e; }
.sb-honeypot { display: none !important; }
.sb-fallback { display: block; margin-top: 14px; color: var(--sb-brown); text-decoration: underline; font-size: 13px; }
.sb-success-dialog { max-width: 520px; }
.sb-success-content { padding: 34px 24px 40px; text-align: center; }
.sb-success-content h2 { margin: 20px 0 12px; }
.sb-success-content p { margin: 12px 0; }
.sb-success-content .sb-btn { margin-top: 14px; }
.sb-success-check { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #eaf4ec; color: #24643e; font-size: 34px; }
.sb-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 8px; background: var(--sb-brown); color: #fff; font-size: 14px; box-shadow: 0 8px 28px #0003; }
.sb-noscript { padding: 24px; text-align: center; color: var(--sb-brown); }
@media (max-width: 989px) {
  .sb-store header-drawer { display: block; }
  .sb-store #Details-menu-drawer-container[open] > #menu-drawer { transform: translateX(0); visibility: visible; }
  .sb-store #Details-menu-drawer-container[open] > summary:before { opacity: 1; visibility: visible; }
  .sb-store #Details-menu-drawer-container[open] .icon-hamburger { visibility: hidden; }
  .sb-store #Details-menu-drawer-container[open] .icon-close { visibility: visible; }
}
@media (max-width: 749px) {
  .sb-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
  .sb-dialog-header { padding: 12px 16px; }
  .sb-dialog h2 { font-size: 20px; }
  .sb-checkout-layout { grid-template-columns: 1fr; padding: 20px 16px; gap: 20px; }
  .sb-checkout-layout .sb-order-summary { grid-row: 1; }
  .sb-form-grid { gap: 12px; }
  .sb-field input, .sb-field textarea, .sb-field select { font-size: 16px; }
  .sb-product-body { padding: 16px; gap: 18px; }
  #sb-product .sb-product-body { grid-template-columns: 1fr; padding-top: 24px; gap: 20px; }
  #sb-product .sb-product-picture { max-width: 360px; }
  #sb-product .sb-product-info { padding-top: 0; }
  #sb-product .sb-product-buttons { max-width: none; }
  #sb-product .sb-all-products-grid > .grid__item { width: calc(50% - var(--grid-mobile-horizontal-spacing) / 2); max-width: calc(50% - var(--grid-mobile-horizontal-spacing) / 2); }
  #sb-cart-content { padding-left: 16px; padding-right: 16px; }
  .sb-card-actions { flex-direction: column; gap: 6px !important; padding-top: 10px !important; }
  .sb-card-actions .sb-btn { font-size: 12px; min-height: 40px; width: 100%; }
  .sb-store .sb-card-actions .sb-btn { padding: 9px 4px; }
  .sb-catalog-heading h1 { font-size: 32px; }
  .sb-catalog { padding-top: 26px; }
  .sb-catalog-heading p { font-size: 12px; white-space: nowrap; }
  .sb-cart-item { grid-template-columns: 62px 1fr; gap: 12px; }
  .sb-cart-item > img { width: 62px; height: 62px; }
  .sb-cart-item h3 { font-size: 13px; }
  .sb-toast { bottom: 16px; width: max-content; font-size: 12px; }
}
@media (max-width: 480px) {
  .sb-product-body { grid-template-columns: 1fr; }
  .sb-product-picture { max-height: 260px; object-fit: contain; }
  .sb-product-thumbs { justify-content: center; }
  .sb-form-grid { grid-template-columns: 1fr; }
  .sb-cart-footer { flex-direction: column-reverse; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-store *, .sb-store *:before, .sb-store *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* SABALAND premium order confirmation / downloadable receipt */
.sb-success-dialog { width: min(620px, calc(100% - 28px)); max-width: 620px; border-color: #e1d0aa; border-radius: 22px; box-shadow: 0 30px 110px rgba(20, 31, 24, .28); }
.sb-luxury-success .sb-dialog-header { background: #173d2b; color: #fff; border-bottom: 2px solid #c8a45d; padding: 17px 24px; }
.sb-luxury-success .sb-close { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.sb-success-wordmark { display: flex; align-items: baseline; gap: 9px; color: #fff; letter-spacing: .12em; font-size: 13px; font-weight: 800; }
.sb-success-wordmark small { color: #d7bd80; font-size: 9px; letter-spacing: .15em; font-weight: 600; }
.sb-success-content { padding: 30px clamp(20px, 5vw, 42px) 32px; text-align: center; background: radial-gradient(ellipse at top, #fbf7ec 0%, #fff 54%); }
.sb-success-check { width: 58px; height: 58px; background: #e7f0e9; border: 1px solid #b5d0bb; color: #215c3a; box-shadow: 0 0 0 7px rgba(204, 173, 104, .12); font-size: 31px; }
.sb-success-eyebrow { margin: 20px 0 8px !important; color: #92733b; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.sb-luxury-success .sb-success-content h2 { margin: 0 0 10px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(24px, 4vw, 31px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; color: #173d2b; }
.sb-success-welcome { max-width: 460px; margin: 10px auto 18px !important; color: #625d52; font-size: 13px; line-height: 1.7; }
.sb-success-reference-card { position: relative; display: grid; justify-items: center; gap: 5px; padding: 17px 16px 15px; border: 1px solid #e2d0a7; border-radius: 14px; background: linear-gradient(135deg, #fffdf7 0%, #f6f0e2 100%); box-shadow: inset 0 1px rgba(255,255,255,.9); }
.sb-success-reference-card > span { font-size: 9px; font-weight: 800; letter-spacing: .16em; color: #8c713e; }
.sb-success-reference-card > strong { color: #173d2b; font-size: clamp(15px, 2.7vw, 18px); letter-spacing: .045em; overflow-wrap: anywhere; }
.sb-success-reference-card > small { color: #7b7467; font-size: 10px; }
.sb-success-summary { margin: 16px 0 10px; padding: 16px 17px 12px; border: 1px solid #e9e2d5; border-radius: 14px; background: rgba(255,255,255,.9); text-align: left; }
.sb-success-summary-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid #eee7dc; color: #173d2b; font-size: 12px; }
.sb-success-summary-heading span { color: #867b68; font-size: 10px; }
.sb-success-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 10px 0; border-bottom: 1px solid #f0ece4; }
.sb-success-item-info { display: grid; gap: 4px; min-width: 0; }
.sb-success-item-info strong { color: #322f27; font-size: 11px; line-height: 1.5; font-weight: 700; }
.sb-success-item-info small { color: #7a756c; font-size: 10px; line-height: 1.4; }
.sb-success-line-total { flex: 0 0 auto; color: #173d2b; white-space: nowrap; font-size: 11px; }
.sb-success-total { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0 6px; color: #504b40; font-size: 12px; }
.sb-success-total strong { color: #173d2b; font-size: 15px; }
.sb-success-delivery-note { margin: 6px 0 0 !important; padding-top: 9px; border-top: 1px dashed #e4ddcf; color: #82796c; font-size: 10px; text-align: left; line-height: 1.6; }
.sb-success-mail-status { margin: 12px 0 8px; font-size: 11px; }
.sb-success-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.sb-success-actions .sb-btn { width: 100%; min-height: 44px; margin: 0; border-radius: 9px; font-size: 12px; }
.sb-success-actions .sb-btn-primary { background: #173d2b; border-color: #173d2b; }
.sb-success-actions .sb-btn-primary:hover { background: #102c1e; }
.sb-success-actions .sb-btn-outline { color: #173d2b; border-color: #c9b77f; background: #fffdf7; }
.sb-success-actions .sb-btn-quiet { grid-column: 1 / -1; color: #6c6252; border-color: transparent; background: transparent; min-height: 38px; }
.sb-success-fineprint { margin: 13px 0 0 !important; color: #a0988b; font-size: 9px; line-height: 1.5; }
#sb-download-order-pdf[hidden], #sb-retry-confirmation[hidden] { display: none !important; }
@media (max-width: 520px) {
  .sb-success-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; }
  .sb-luxury-success .sb-dialog-header { padding: 13px 16px; }
  .sb-success-content { padding: 24px 14px 22px; }
  .sb-success-summary { padding: 13px 12px 10px; }
  .sb-success-actions { grid-template-columns: 1fr; }
  .sb-success-actions .sb-btn-quiet { grid-column: auto; }
}
