body, button, input, select, textarea {
  font-family: 'Noto Sans Bengali', system-ui, sans-serif;
}
body.variant-modal-open { overflow: hidden; }
.checkout-delivery-card #customer_address { min-height: 68px; resize: vertical; }
@media (max-width: 639px) {
  #checkoutDeliveryZones .delivery-option { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; padding: 9px 8px; border-radius: 12px; }
  #checkoutDeliveryZones .delivery-option > div { min-width: 0; gap: 6px; }
  #checkoutDeliveryZones .delivery-option input { flex-shrink: 0; }
  #checkoutDeliveryZones .delivery-option > span { padding-left: 22px; }
}
.storefront-logo { display: block; flex-shrink: 0; object-fit: contain; }
.storefront-logo-mobile { width: 150px; height: 50px; }
.storefront-logo-desktop { width: 200px; height: 66px; }
.storefront-logo-sidebar { width: 180px; height: 60px; }
.storefront-logo-footer { width: 220px; height: auto; padding: 8px 12px; border-radius: 12px; background: #fff; }
@media (min-width: 768px) and (max-width: 1023px) { .storefront-logo-desktop { width: 180px; height: 60px; } }
@media (max-width: 360px) { .storefront-logo-mobile { width: 128px; height: 44px; } }
.storefront-desktop-nav a { flex-shrink: 0; white-space: nowrap; }
.detail-variant-options { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.detail-variant-btn {
  flex: 0 1 auto; min-width: 52px; max-width: 100%; min-height: 40px;
  padding: 8px 14px; border: 1px solid #dce6e0; border-radius: 9px;
  background: #fff; color: #475569; font-size: 13px; font-weight: 600;
  line-height: 1.6; text-align: center; white-space: normal; overflow-wrap: anywhere;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.detail-variant-btn:hover { border-color: #0f8564; }
.detail-variant-btn[aria-pressed="true"] { border-color: #0f8564; background: #eefbf5; color: #0c6a52; box-shadow: inset 0 0 0 1px #0f8564; }
.detail-variant-btn:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
.detail-purchase-actions { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
.detail-quantity { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; align-items: stretch; border: 1px solid #dce6e0; border-radius: 10px; overflow: hidden; background: #f6faf8; }
.detail-quantity button { min-height: 46px; padding: 0; font-size: 18px; color: #0c6a52; cursor: pointer; }
.detail-quantity input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; text-align: center; font-size: 14px; font-weight: 600; appearance: textfield; -moz-appearance: textfield; }
.detail-quantity input::-webkit-inner-spin-button, .detail-quantity input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.detail-purchase-actions > button, .detail-contact-actions a { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 48px; padding: 8px; border: 1px solid #0c6a52; border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.6; cursor: pointer; }
.detail-purchase-actions svg, .detail-contact-actions svg { flex-shrink: 0; }
.detail-cart-action { color: #0c6a52; background: #eefbf5; }
.detail-purchase-actions .detail-buy-action {
  position: relative; overflow: hidden; isolation: isolate;
  border-color: #e6b644; color: #fff; background: linear-gradient(120deg, #15966d, #075840);
  box-shadow: 0 4px 16px #0c6a5240; transform-origin: center;
  animation: detail-buy-attention 2.4s ease-in-out infinite;
}
.detail-buy-action::before {
  content: ''; position: absolute; inset: -30% auto -30% -60%; width: 35%; pointer-events: none;
  background: linear-gradient(90deg, transparent, #fff4bd70, transparent);
  transform: skewX(-20deg); animation: detail-buy-shine 2.4s ease-in-out infinite;
}
.detail-buy-action > * { position: relative; z-index: 1; }
.detail-buy-action svg { color: #fde68a; animation: detail-buy-bolt 1.2s ease-in-out infinite; }
@keyframes detail-buy-attention {
  0%, 30%, 100% { transform: translateY(0) rotate(0); box-shadow: 0 4px 16px #0c6a5240, 0 0 0 0 #fbbf2400; }
  5%, 15% { transform: translateY(-3px) rotate(-1.2deg) scale(.97); }
  10%, 20% { transform: translateY(-3px) rotate(1.2deg) scale(.97); }
  50% { transform: translateY(0) rotate(0); box-shadow: 0 5px 22px #0c6a5260, 0 0 0 5px #fbbf2430; }
}
@keyframes detail-buy-bolt {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.18); }
}
@keyframes detail-buy-shine {
  0%, 65% { transform: translateX(0) skewX(-20deg); }
  90%, 100% { transform: translateX(600%) skewX(-20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .detail-purchase-actions .detail-buy-action, .detail-buy-action::before, .detail-buy-action svg { animation: none; }
  .detail-buy-action::before { display: none; }
}
.detail-action-short { display: none; }
.detail-contact-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 12px; }
.detail-contact-actions .detail-whatsapp-action { background: #eafaf0; border-color: #b6e6c9; color: #167344; }
.detail-contact-actions .detail-call-action { background: #fff; border-color: #dce6e0; color: #0c6a52; }
.detail-purchase-actions button:hover, .detail-contact-actions a:hover { filter: brightness(.96); }
.detail-purchase-actions :focus-visible, .detail-contact-actions a:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
@media (max-width: 540px), (min-width: 768px) and (max-width: 1023px) {
  .detail-purchase-actions { grid-template-columns: 80px minmax(0, .8fr) minmax(0, 1.2fr); gap: 6px; }
  .detail-quantity { grid-template-columns: 26px minmax(0, 1fr) 26px; }
  .detail-purchase-actions > button { font-size: 12px; padding: 8px 5px; gap: 4px; }
  .detail-purchase-actions > button svg { width: 16px; height: 16px; }
  .detail-action-long { display: none; }
  .detail-action-short { display: inline; }
}
@media (max-width: 540px) { .detail-variant-btn { padding: 8px; font-size: 12px; } }
@media (max-width: 360px) {
  .detail-purchase-actions .detail-buy-action { font-size: 11px; gap: 3px; padding-inline: 3px; }
}
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 45;
  display: grid; place-items: center; width: 46px; height: 46px;
  padding: 0; border: 1px solid #ffffff80; border-radius: 50%;
  background: #0c6a52; color: #fff; box-shadow: 0 6px 20px #0a453733;
  cursor: pointer; transition: background .15s, transform .15s;
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: #0a4537; transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
@media (max-width: 767px) {
  .back-to-top { right: 16px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .back-to-top { transition: none; }
}
.variant-dialog {
  width: min(520px, calc(100% - 32px)); max-width: none; max-height: none;
  margin: auto; padding: 0; border: 0; border-radius: 24px;
  color: #1e293b; background: #fff; box-shadow: 0 24px 80px #0a453740;
}
.variant-dialog::backdrop { background: #0f172a99; backdrop-filter: blur(4px); }
.variant-dialog[open] { animation: variant-enter .18s ease-out; }
.variant-dialog [hidden] { display: none !important; }
.variant-panel { display: flex; flex-direction: column; max-height: min(760px, calc(100dvh - 48px)); }
.variant-header { display: flex; align-items: center; gap: 14px; padding: 22px; border-bottom: 1px solid #e8efeb; flex-shrink: 0; }
.variant-image { width: 64px; height: 64px; object-fit: contain; border: 1px solid #e8efeb; border-radius: 14px; background: #f6faf8; flex-shrink: 0; }
.variant-heading { min-width: 0; flex: 1; }
.variant-eyebrow { margin: 0 0 5px; color: #0f8564; font-size: 12px; font-weight: 600; }
.variant-heading h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.variant-close { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; align-self: flex-start; border: 1px solid #e2e8e5; border-radius: 50%; background: #f6faf8; color: #475569; font-size: 25px; line-height: 1; cursor: pointer; }
.variant-form { display: flex; flex-direction: column; min-height: 0; margin: 0; }
.variant-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 22px 24px; }
#variantInstructions { margin: 0 0 14px; font-size: 13px; color: #64746d; line-height: 1.7; }
.variant-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.variant-option { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 14px 12px; border: 1px solid #dce6e0; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.variant-option:hover { border-color: #0f8564; background: #f6faf8; }
.variant-option:has(input:checked) { border-color: #0f8564; background: #eefbf5; box-shadow: inset 0 0 0 1px #0f8564; }
.variant-option input { width: 17px; height: 17px; margin: 4px 0 0; accent-color: #0f8564; flex-shrink: 0; }
.variant-option-copy { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.variant-option-name { font-size: 13px; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.variant-option-price { font-size: 14px; font-weight: 700; color: #0c6a52; line-height: 1.6; }
.variant-footer { flex-shrink: 0; padding: 16px 22px 22px; border-top: 1px solid #e8efeb; background: #fff; }
.variant-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.variant-summary-label { font-size: 11px; color: #64746d; }
.variant-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-top: 3px; }
.variant-prices strong { font-size: 23px; line-height: 1.6; color: #0c6a52; font-weight: 700; }
.variant-prices del { font-size: 13px; color: #94a3b8; }
.variant-cod { font-size: 11px; color: #64746d; }
.variant-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.variant-actions button { min-height: 48px; padding: 12px 8px; border-radius: 12px; font-size: 13px; font-weight: 600; line-height: 1.7; cursor: pointer; }
.variant-cart { border: 1px solid #0c6a52; color: #0c6a52; background: #fff; }
.variant-buy { border: 1px solid #0c6a52; color: #fff; background: #0c6a52; }
.variant-actions button:hover { filter: brightness(.95); }
.variant-actions button:disabled { opacity: .55; cursor: wait; }
.variant-dialog :focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
.variant-error { margin: 14px 0 0; padding: 12px; border-radius: 10px; color: #9f1239; background: #fff1f2; font-size: 13px; line-height: 1.7; }
@media (max-width: 540px) {
  .variant-dialog { width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .variant-panel { max-height: calc(100dvh - 20px); }
  .variant-header { padding: 18px 16px; gap: 10px; }
  .variant-heading h2 { font-size: 15px; }
  .variant-image { width: 54px; height: 54px; }
  .variant-body { padding: 16px; }
  .variant-footer { padding: 14px 16px max(18px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) { .variant-options { grid-template-columns: minmax(0, 1fr); } .variant-cod { display: none; } }
@keyframes variant-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .variant-dialog[open] { animation: none; } }

/* Automatic shake and green highlight for checkout actions. */
.order-cta {
  position: relative;
  animation: order-cta-shake 3.2s ease-in-out infinite, order-cta-glow 1.8s ease-in-out infinite;
}
.order-cta:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
.order-cta:disabled { animation: none; cursor: wait; opacity: .65; }
@keyframes order-cta-shake {
  0%, 24%, 100% { translate: 0; rotate: 0deg; scale: 1; }
  4%, 12%, 20% { translate: -2px; rotate: -.5deg; scale: 1.015; }
  8%, 16% { translate: 2px; rotate: .5deg; scale: 1.015; }
}
@keyframes order-cta-glow {
  0%, 100% { box-shadow: 0 5px 15px #0c6a5240, 0 0 0 0 #10b98155; }
  50% { box-shadow: 0 8px 26px #0c6a5266, 0 0 0 6px #10b98100; }
}
@media (prefers-reduced-motion: reduce) {
  .order-cta { animation: none; }
}
