/* Sodaiora additions on top of the Hatbazar template CSS. Keep this small. */

/* Brand logo (3:1) inside the template's logo slots */
.main-header .logo-box img,
.mobile-menu .nav-logo img,
.category-menu .nav-logo img,
.main-footer .footer-logo img {
  height: 48px;
  width: auto;
  max-width: 100%;
}

/* Bangla option in the language picker (template only ships DE/EN/FR/IT flags) */
.language-picker__flag--bangla::before {
  background-image: radial-gradient(circle at 45% 50%, #f42a41 0 32%, transparent 33%);
  background-color: #006a4e;
}

/* Lightbox used for .lightbox-image links (replaces fancybox) */
.sodaiora-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.sodaiora-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  background: #fff;
  border-radius: 6px;
}
.sodaiora-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
}

/* Small "added to cart" message */
.sodaiora-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 99999;
  background: var(--title-color, #111);
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: sodaiora-toast-in 0.25s ease-out;
}
@keyframes sodaiora-toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Product image placeholder keeps the card height when a product has no photo yet */
.sodaiora-noimg {
  background: #f4f6f4;
  object-fit: contain;
}
.shop-block-one .option-list button:disabled,
.shop-block-three .cart-btn button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.product-stock.out-of-stock {
  color: #d9534f;
}
.shop-details .product-info li a,
.shop-details .bread-crumb a {
  color: inherit;
}
.shop-details .product-info li a:hover {
  color: var(--theme-color);
}

/* Shop forms, alerts and summaries (cart, checkout, account) */
.sodaiora-error {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #d93025;
}
.sodaiora-success {
  color: var(--theme-color);
  font-weight: 600;
}
.sodaiora-muted {
  color: var(--text-color);
  font-size: 14px;
}
.sodaiora-alert {
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff4e5;
  border: 1px solid #ffcf8a;
  color: #7a4a00;
  font-size: 15px;
}
.sodaiora-success-box {
  padding: 20px 24px;
  border-radius: 10px;
  background: rgba(38, 156, 83, 0.08);
  border: 1px solid rgba(38, 156, 83, 0.3);
}
.sodaiora-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--theme-color);
  text-decoration: underline;
  cursor: pointer;
}
.sodaiora-summary li,
.sodaiora-timeline li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #e5e5e5;
}
.sodaiora-timeline li span {
  color: var(--text-color);
  font-size: 13px;
}
.sodaiora-form .form-group {
  margin-bottom: 18px;
}
.sodaiora-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.sodaiora-form input,
.sodaiora-form select {
  width: 100%;
  background: #fff;
  height: 50px;
  padding: 10px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}
.checkout-section textarea {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}
button.theme-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Home hero: real photos instead of cut-out PNGs — photo fills the right side and fades into the colour so the text stays readable. */
.banner-content-one .inner-box .image-box {
  top: 0;
  bottom: 0 !important;
  right: 0;
  width: 55%;
  margin: 0;
}
.banner-content-one .inner-box .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%);
  mask-image: linear-gradient(to right, transparent 0, #000 45%);
}
.banner-content-one .inner-box > *:not(.image-box):not(.parallax-scene) {
  position: relative;
  z-index: 1;
}
@media (max-width: 1199px) {
  .banner-content-one .inner-box .image-box { width: 70%; opacity: 0.35; }
}

/* Home feature boxes: same photo-fade as the hero. */
.ads-block-one .inner-box { overflow: hidden; }
.ads-block-one .inner-box .image {
  top: 0;
  bottom: 0 !important;
  right: 0;
  width: 55%;
  margin: 0;
}
.ads-block-one .inner-box .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 50%);
  mask-image: linear-gradient(to right, transparent 0, #000 50%);
}
.ads-block-one .inner-box > span,
.ads-block-one .inner-box > h2,
.ads-block-one .inner-box > h4,
.ads-block-one .inner-box > a { position: relative; z-index: 1; }

/* Free-delivery strip and "Super discount" strip: photos sit at both ends and fade towards the text. */
.cta-section .inner-container,
.cta-style-two .inner-container { overflow: hidden; }
.cta-section .image-layer .image,
.cta-style-two .image-layer .image {
  top: 0 !important;
  bottom: 0 !important;
  width: 30%;
  margin: 0;
}
.cta-section .image-layer .image:first-child,
.cta-style-two .image-layer .image:first-child { left: 0 !important; right: auto !important; }
.cta-section .image-layer .image:last-child,
.cta-style-two .image-layer .image:last-child { right: 0 !important; left: auto !important; }
.cta-section .image-layer .image img,
.cta-style-two .image-layer .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-section .image-layer .image:first-child img,
.cta-style-two .image-layer .image:first-child img {
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 55%);
  mask-image: linear-gradient(to left, transparent 0, #000 55%);
}
.cta-section .image-layer .image:last-child img,
.cta-style-two .image-layer .image:last-child img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 55%);
  mask-image: linear-gradient(to right, transparent 0, #000 55%);
}
.cta-section .content-box,
.cta-style-two .content-box { position: relative; z-index: 2; }

/* Category promo boxes next to the product rows: photo fills the bottom and fades up into the colour. */
.shop-style-three .ads-column figure.image {
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  margin: 0;
}
.shop-style-three .ads-column figure.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 45%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 45%);
}

/* Category row banner: as tall as the product row, with a dark fade so the white title reads on any photo. */
@media (min-width: 992px) {
  .shop-style-four .ads-block { height: auto; bottom: 0; }
}
@media (max-width: 991px) {
  .shop-style-four .ads-block { height: 260px; }
}
.shop-style-four .ads-block .bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1) 70%);
}
.shop-style-four .ads-block h2 { position: relative; z-index: 1; }

/* Checkout: Bangla QR box */
.sodaiora-qr {
  margin: 6px 0 14px;
  padding: 18px;
  border: 1px dashed var(--theme-color, #269c53);
  border-radius: 10px;
  text-align: center;
  background: #fff;
}
.sodaiora-qr img {
  width: 220px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #eee;
}
.sodaiora-qr-name { margin: 10px 0 0; font-weight: 600; color: #222; }
.sodaiora-qr-amount { margin: 6px 0; font-size: 18px; }
.sodaiora-qr-amount strong { color: var(--theme-color, #269c53); }
.sodaiora-qr-note { font-size: 13px; line-height: 20px; color: #666; margin-bottom: 14px; }
.sodaiora-qr .form-group { text-align: left; margin-bottom: 12px; }
.sodaiora-qr .form-group label { display: block; font-size: 14px; margin-bottom: 4px; color: #222; }
.sodaiora-qr .form-group input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 15px;
}
.sodaiora-qr .form-group input:focus { border-color: var(--theme-color, #269c53); outline: none; }

/* Wishlist: header count (same look as the cart count) and the heart on product cards */
.main-header .menu-right-content .info-list li.sodaiora-wish-link a { position: relative; }
.sodaiora-count {
  position: absolute;
  display: inline-block;
  min-width: 19px;
  height: 19px;
  line-height: 19px;
  padding: 0 4px;
  background: var(--secondary-color);
  text-align: center;
  border-radius: 10px;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  top: -5px;
  right: -8px;
}
.sodaiora-wish {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.shop-block-one .inner-box .image-box .option-list li button.sodaiora-wish.is-saved { color: #e53935; }
.shop-block-one .inner-box .image-box .option-list li button.sodaiora-wish.is-saved:hover { color: #fff; }
.sodaiora-wish-big {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #e5e5e5;
  border-radius: 30px;
  width: auto;
  height: auto;
  font-size: 15px;
}
.sodaiora-wish-big.is-saved { border-color: #e53935; color: #e53935; }
.product-details-content .addto-cart-box ul li.like-btn button.sodaiora-wish { width: 50px; height: 50px; }
.product-details-content .addto-cart-box ul li.like-btn button.sodaiora-wish.is-saved { color: #e53935; border-color: #e53935; }
.product-details-content .addto-cart-box ul li.like-btn button.sodaiora-wish.is-saved:hover { color: #fff; }

/* Footer newsletter result */
.sodaiora-newsletter-ok,
.sodaiora-newsletter-err { margin: 8px 0 0; font-size: 14px; line-height: 20px; }
.sodaiora-newsletter-ok { color: var(--theme-color, #269c53); }
.sodaiora-newsletter-err { color: #e53935; }
.main-footer .sodaiora-newsletter-ok { color: #9be3b4; }

/* Blog article */
.sodaiora-post-body h3 { margin: 30px 0 14px; font-size: 24px; line-height: 34px; }
.sodaiora-post-body p { margin-bottom: 20px; }
.sodaiora-post-body .list-style-one { margin-bottom: 24px; }
.sodaiora-post-body .list-style-one li { margin-bottom: 8px; }
.sodaiora-post-body figure img { width: 100%; border-radius: 10px; }
.sodaiora-post-nav { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid #e5e5e5; }
.sodaiora-post-nav a { max-width: 48%; color: var(--title-color); font-weight: 600; line-height: 24px; }
.sodaiora-post-nav a span { display: block; font-weight: 400; font-size: 14px; color: var(--text-color); }
.sodaiora-post-nav a:hover { color: var(--theme-color); }

/* About: review without a photo */
.sodaiora-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--theme-color, #269c53);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
}

/* Popups (Admin → Popups) */
.sodaiora-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  animation: sodaiora-fade 0.25s ease;
}
.sodaiora-popup {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: sodaiora-pop 0.3s ease;
}
.sodaiora-popup.has-image { max-width: 760px; flex-direction: row; }
.sodaiora-popup-image { flex: 0 0 45%; }
.sodaiora-popup-image img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
.sodaiora-popup-content { flex: 1; padding: 40px 32px 32px; display: flex; flex-direction: column; justify-content: center; }
.sodaiora-popup-content h3 { font-size: 26px; line-height: 34px; margin-bottom: 12px; }
.sodaiora-popup-content p { margin-bottom: 22px; white-space: pre-line; }
.sodaiora-popup-content .theme-btn { align-self: flex-start; }
.sodaiora-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  cursor: pointer;
}
.sodaiora-popup-close:hover { background: var(--theme-color, #269c53); color: #fff; }
@media (max-width: 640px) {
  .sodaiora-popup.has-image { flex-direction: column; max-width: 420px; }
  .sodaiora-popup-image img { min-height: 0; max-height: 220px; }
  .sodaiora-popup-content { padding: 24px 22px 26px; }
}
@keyframes sodaiora-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sodaiora-pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- Product colours ---------- */
.sodaiora-colors h6 { font-size: 16px; margin-bottom: 12px; }
.sodaiora-colors h6 span { font-weight: 400; color: var(--text-color, #666); }
.sodaiora-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sodaiora-swatch {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 6px 14px 6px 8px;
  border: 1px solid #e3e3e3; border-radius: 40px; background: #fff;
  font-size: 14px; color: #222; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.sodaiora-swatch:not(:has(.dot)) { padding-left: 14px; }
.sodaiora-swatch .dot { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; }
.sodaiora-swatch:hover { border-color: var(--theme-color, #269c53); }
.sodaiora-swatch.is-active { border-color: var(--theme-color, #269c53); box-shadow: 0 0 0 2px var(--theme-color, #269c53) inset; font-weight: 600; }
.sodaiora-swatch:focus-visible { outline: 2px solid var(--theme-color, #269c53); outline-offset: 2px; }
.sodaiora-line-color { color: var(--theme-color, #269c53); }

/* ---------- Product page: variant picker ---------- */
.sd-variants { margin: 0 0 28px; padding: 18px 0 4px; border-top: 1px solid #eee; }
.sd-variant-group + .sd-variant-group { margin-top: 18px; }
.sd-variant-label { margin-bottom: 10px; font-size: 14px; color: var(--text-color, #777); letter-spacing: .01em; }
.sd-variant-label strong { color: var(--title-color, #222); font-weight: 600; }
.sd-variant-options { display: flex; flex-wrap: wrap; gap: 10px; }

.sd-swatch, .sd-chip {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #e1e4e2; background: #fff; color: #222; text-decoration: none; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.sd-swatch:hover, .sd-chip:hover { border-color: var(--theme-color, #269c53); }
.sd-swatch:focus-visible, .sd-chip:focus-visible { outline: 2px solid var(--theme-color, #269c53); outline-offset: 2px; }
.sd-swatch.is-active, .sd-chip.is-active { border-color: var(--theme-color, #269c53); box-shadow: 0 0 0 1px var(--theme-color, #269c53); }

/* colour dot */
.sd-swatch { width: 40px; height: 40px; padding: 3px; border-radius: 50%; }
.sd-swatch-color {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12); font-size: 13px; font-weight: 600; color: #555;
}
/* colour with picture */
.sd-swatch--image { flex-direction: column; width: 84px; height: auto; padding: 6px 6px 7px; border-radius: 10px; gap: 5px; }
.sd-swatch-img { position: relative; display: block; width: 70px; height: 70px; border-radius: 6px; background: #f6f7f6; overflow: hidden; }
.sd-swatch-img img { width: 100%; height: 100%; object-fit: contain; }
.sd-swatch-dot { position: absolute; right: 4px; bottom: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.sd-swatch-name { max-width: 100%; font-size: 12px; line-height: 1.25; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-swatch--image.is-active .sd-swatch-name { font-weight: 600; }

/* size chip */
.sd-chip { flex-direction: column; min-width: 64px; min-height: 42px; padding: 7px 16px; border-radius: 8px; line-height: 1.2; }
.sd-chip-label { font-size: 14px; font-weight: 500; }
.sd-chip-price { margin-top: 2px; font-size: 12px; color: var(--text-color, #777); }
.sd-chip.is-active .sd-chip-label { font-weight: 700; }
.sd-chip.is-active .sd-chip-price { color: var(--theme-color, #269c53); }

/* sold out: crossed out, still clickable */
.sd-swatch.is-soldout, .sd-chip.is-soldout { color: #9aa09c; background-color: #fafafa; }
.sd-swatch.is-soldout:not(.is-active) .sd-swatch-color, .sd-swatch.is-soldout:not(.is-active) .sd-swatch-img { opacity: .45; }
.sd-chip.is-soldout .sd-chip-label { text-decoration: line-through; }
.sd-swatch.is-soldout::after {
  content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1.5px; background: #b5bab7;
  transform: translateX(-50%) rotate(45deg); pointer-events: none;
}
/* size not made in the chosen colour: opens another colour */
.sd-chip.is-unavailable { border-style: dashed; color: #8a908c; }

@media (max-width: 575px) {
  .sd-swatch--image { width: 74px; }
  .sd-swatch-img { width: 60px; height: 60px; }
}

/* ---------- Checkout: delivery area ---------- */
.sodaiora-select {
  display: block !important; width: 100%; height: 50px; padding: 0 44px 0 20px;
  border: 1px solid #e5e5e5; border-radius: 30px; font-size: 15px; color: #222; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 20px center;
}
.sodaiora-select:focus { border-color: var(--theme-color, #269c53); outline: none; }
.sodaiora-hint { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--text-color, #777); }

/* My account: profile photo picker and address rows */
.sodaiora-form .sd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sodaiora-form .sd-row .sd-wide { grid-column: 1 / -1; }
@media (max-width: 575px) { .sodaiora-form .sd-row { grid-template-columns: 1fr; } }
.sodaiora-form h4.sd-sub { font-size: 18px; margin: 10px 0 14px; }
.sd-photo { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.sd-photo img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 1px solid #e5e5e5; background: #f6f6f6; }
.sd-photo .sd-photo-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-photo button { border: 1px solid #e5e5e5; background: #fff; border-radius: 6px; padding: 6px 12px; font-size: 14px; }
.sd-photo button.sd-danger { color: #c62828; }
.sd-photo small { display: block; color: #777; margin-top: 4px; }
.account-info .author-box .thumb-box img { width: 140px; height: 140px; max-width: 100%; border-radius: 50%; object-fit: cover; margin: 0 auto; }

/* Bangla: Lato / Quicksand have no Bangla letters, so those fall back to Hind Siliguri. */
:root {
  --text-font: "Lato", "Hind Siliguri", sans-serif;
  --title-font: "Quicksand", "Hind Siliguri", sans-serif;
}
html[lang="bn"] body { line-height: 1.75; }
/* Language switch in the phone menu */
.sd-lang-switch { display: flex; gap: 6px; padding: 16px 25px 0; }
.sd-lang-switch button { flex: 1; height: 40px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-weight: 600; }
.sd-lang-switch button.is-active { background: var(--theme-color); border-color: var(--theme-color); }

/* ---- Location: nearest branch ---------------------------------------- */
.sd-locate-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #e5e7eb; background: #fff; color: var(--theme-color); border-radius: 50px; height: 38px; min-width: 38px; padding: 0 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.sd-locate-btn:hover:not(:disabled) { background: var(--theme-color); color: #fff; border-color: var(--theme-color); }
.sd-locate-btn:disabled { opacity: .7; cursor: progress; }
.sd-locate-btn span { font-size: 14px; }
.menu-right-content .currency-box { display: flex; align-items: center; gap: 8px; }
.sd-locate-header { margin-left: 2px; }
.sd-spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: sd-spin .7s linear infinite; }
@keyframes sd-spin { to { transform: rotate(360deg); } }
.sd-phone-branch { padding: 16px 25px 0; }
.sd-phone-branch label { display: block; color: rgba(255,255,255,.7); font-size: 13px; margin-bottom: 6px; }
.sd-phone-branch-row { display: flex; gap: 8px; }
.sd-phone-branch select { flex: 1; min-width: 0; height: 40px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; padding: 0 10px; font-weight: 600; }
.sd-phone-branch select option { color: #111; }
.sd-phone-branch .sd-locate-btn { height: 40px; border-radius: 8px; background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.sd-nearest-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; border-radius: 10px; background: #fff7e6; border: 1px solid #ffd591; }
.sd-nearest-note p { margin: 0; flex: 1 1 260px; color: #5c3d00; }
.sd-nearest-note .theme-btn { padding: 8px 18px; }
.sd-nearest-note.is-quiet { background: #f3faf6; border-color: #cfe9d9; }
.sd-nearest-note.is-quiet p { color: #1f4d33; }
.sd-loc-toast { cursor: pointer; width: max-content; max-width: min(92vw, 520px); bottom: 84px; border-radius: 14px; text-align: center; line-height: 1.5; }
.sd-loc-toast i { margin-right: 4px; }

/* ---------- Shop page (/shop, category, offers…) ---------- */
.sd-shop-title h1 { font-size: 32px; line-height: 1.25; margin: 14px 0 0; }

/* Product grid: real CSS grid, lines between cards, 4 → 3 → 2 columns. */
.sd-shop .wrapper .inner-container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; }
.sd-shop .wrapper .inner-container::after { display: none; }
.sd-shop .wrapper .inner-container .shop-block-one { float: none; width: auto; min-width: 0; }
.sd-shop .wrapper .inner-container .shop-block-one .inner-box { height: 100%; box-shadow: 1px 0 0 #E5E5E5, 0 1px 0 #E5E5E5; }
.sd-shop .shop-block-one .inner-box .image-box .image { max-width: none; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.sd-shop .shop-block-one .inner-box .image-box .image a { display: block; width: 100%; height: 100%; }
.sd-shop .shop-block-one .inner-box .image-box .image img { width: 100%; height: 100%; object-fit: contain; }
.sd-shop .shop-block-one .inner-box .lower-content h4 { overflow-wrap: anywhere; }

/* Page numbers */
.sd-shop .pagination { flex-wrap: wrap; row-gap: 8px; }
.sd-shop .pagination li a.current { background: var(--theme-color); border-color: var(--theme-color); }
.sd-shop .pagination li a[aria-disabled='true'] { opacity: .4; pointer-events: none; }
.sd-shop .pagination li.sd-gap::before { content: '…'; margin-right: 10px; color: #7c7c7c; }

/* Filters: sidebar on big screens, drawer below 992px */
.sd-filter-btn, .sd-filter-head, .sd-filter-foot { display: none; }
@media (max-width: 1199px) {
  .sd-shop .wrapper .inner-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .sd-shop .row > .sidebar-side { order: -1; }
  .sd-shop .row > .sidebar-side, .sd-shop .row > .content-side { width: 100%; }
  .sd-filter-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 9px 18px;
    border: 1px solid #E5E5E5; border-radius: 30px; background: #fff; font-weight: 600; color: var(--title-color);
  }
  .sd-filter-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--theme-color); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
  .sd-filter-drawer {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1050; width: min(360px, 88vw);
    display: flex; flex-direction: column; background: #fff; box-shadow: 0 0 40px rgba(0,0,0,.2);
    transform: translateX(-105%); transition: transform .3s ease; visibility: hidden;
  }
  .sd-filter-drawer.open { transform: none; visibility: visible; }
  .sd-filter-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #E5E5E5; font-size: 18px; }
  .sd-filter-head button { border: 0; background: none; font-size: 28px; line-height: 1; color: var(--title-color); }
  .sd-filter-body { flex: 1; overflow-y: auto; padding: 18px; }
  .sd-filter-body .shop-sidebar { margin: 0 !important; }
  .sd-filter-foot { display: block; padding: 12px 18px; border-top: 1px solid #E5E5E5; }
  .sd-filter-foot .theme-btn { width: 100%; justify-content: center; }
  .sd-filter-backdrop { position: fixed; inset: 0; z-index: 1049; background: rgba(0,0,0,.45); }
}
@media (max-width: 767px) {
  .sd-shop-title h1 { font-size: 24px; }
  .sd-shop .wrapper .inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-shop .item-shorting { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; text-align: left; padding: 10px 14px; margin-bottom: 20px !important; }
  .sd-shop .item-shorting .right-column { display: flex; }
  .sd-shop .item-shorting .right-column .short-box { margin-right: 12px !important; }
  .sd-shop .item-shorting .right-column .menu-box p { display: none; }
  .sd-shop .shop-block-one .inner-box .lower-content { padding: 0 12px 54px !important; }
  .sd-shop .shop-block-one .inner-box .lower-content .text { margin-bottom: 6px; font-size: 12px; }
  .sd-shop .shop-block-one .inner-box .lower-content h4 { font-size: 15px; line-height: 20px; margin-bottom: 4px; }
  .sd-shop .shop-block-one .inner-box .lower-content h5 { font-size: 15px; }
  .sd-shop .shop-block-one .inner-box .lower-content h5 del { margin-right: 6px !important; }
  .sd-shop .shop-block-one .inner-box .lower-content h5 small { display: block; font-size: 12px; }
  .sd-shop .shop-block-one .inner-box .lower-content .product-stock { position: absolute; left: 12px; bottom: 18px; font-size: 12px; }
  .sd-shop .shop-block-one .inner-box .decore { right: 10px !important; bottom: 10px !important; width: 34px; height: 34px; line-height: 38px; }
  .sd-shop .shop-block-one .inner-box .item-quantity-selector { display: none; }
  .sd-shop .shop-block-one .inner-box .image-box .option-list { top: 8px; right: 8px; }
  .sd-shop .shop-block-one .inner-box .image-box .option-list li a,
  .sd-shop .shop-block-one .inner-box .image-box .option-list li button { width: 34px; height: 34px; line-height: 34px; font-size: 13px; }
  .sd-shop .shop-block-one .inner-box .image-box .discount-product,
  .sd-shop .shop-block-one .inner-box .image-box .hot-product { top: 8px !important; font-size: 11px; padding: 0 8px; }
}
/* The green "+" on product cards adds one to the cart (phones have no hover). */
.shop-block-one .inner-box button.decore { border: 0; padding: 0; cursor: pointer; }
.shop-block-one .inner-box button.decore:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 767px) {
  .sd-shop .shop-block-one .inner-box:hover .decore { opacity: 1; transform: none; }
  .sd-shop .shop-block-one .inner-box:hover .image-box .image img { transform: none; }
}
.sd-shop .item-shorting { margin-bottom: 24px !important; }
.sd-shop .wrapper .inner-container .shop-block-one .inner-box .image-box { border-radius: 0; }

/* ---------- Category lists (header dropdown + phone drawer) ----------
   Category pictures are shown as a small thumbnail next to the name, never behind the text. */
.main-header .outer-box .category-box .category-list > li .icon,
.category-menu .category-list li .icon {
  width: 28px; height: 28px; overflow: hidden; border-radius: 6px; background: #f3f5f4;
  top: 50%; transform: translateY(-50%); pointer-events: none;
}
.main-header .outer-box .category-box .category-list > li .icon img,
.category-menu .category-list li .icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.main-header .outer-box .category-box .category-list > li > a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-header .outer-box .category-box .category-list > li > .icon { z-index: 2; }
/* phone drawer: the icon sits on the first line (sub-lists open below it) */
.category-menu .category-list li .icon { left: 18px; top: 6px; transform: none; }
.category-menu .category-list.product-category li > a { padding-left: 56px; line-height: 28px; }

/* ---------- Dark mode switch (header) ---------- */
.sd-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--title-color); vertical-align: middle; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.sd-theme-toggle:hover { background: rgba(38, 156, 83, .12); color: var(--theme-color); }
.sd-theme-toggle .sd-sun { display: none; }
html[data-theme="dark"] .sd-theme-toggle .sd-sun { display: inline-flex; }
html[data-theme="dark"] .sd-theme-toggle .sd-moon { display: none; }
.sd-theme-toggle span { display: inline-flex; }
.main-header .menu-right-content .info-list li.sd-theme-li { margin-right: 12px; }
.sd-theme-switch { margin-top: 10px; }

/* Featured category names on the home page (template left them as plain blue links). */
.single-featured a { color: var(--title-color); }
.single-featured a:hover { color: var(--theme-color); }

/* ---------- Customer order updates (shop header bell + account tab) ---------- */
.sd-cbell { position: relative; }
.main-header .menu-right-content .info-list li.sd-cbell { margin-right: 14px; }
.sd-cbell-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--title-color); vertical-align: middle; cursor: pointer; }
.sd-cbell-btn:hover { background: rgba(38, 156, 83, .12); color: var(--theme-color); }
.sd-cbell-count { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e53935; color: #fff; font-size: 11px; line-height: 18px; font-weight: 700; text-align: center; }
.sd-cbell-panel {
  position: absolute; top: calc(100% + 12px); right: -60px; z-index: 1100; width: 360px; max-width: calc(100vw - 24px);
  background: #fff; border: 1px solid #e5e5e5; border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.16); overflow: hidden; text-align: left;
}
.sd-cbell-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #e5e5e5; font-size: 15px; line-height: 1.3; color: var(--title-color); }
.sd-cbell-head button, .sd-link-btn { border: 0; background: none; padding: 0; color: var(--theme-color); font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.sd-cbell-list { max-height: min(60vh, 420px); overflow-y: auto; }
.sd-cbell-empty { margin: 0; padding: 22px 18px; font-size: 14px; line-height: 1.5; color: var(--text-color); }
.sd-cbell-all { display: block; padding: 10px 16px; border-top: 1px solid #e5e5e5; text-align: center; font-size: 14px; font-weight: 600; color: var(--theme-color) !important; }
.sd-calert { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid #f0f0f0; background: none; text-align: left; color: inherit; cursor: pointer; }
.sd-calert:last-child { border-bottom: 0; }
.sd-calert:hover { background: rgba(38, 156, 83, .06); }
.sd-calert.is-new { background: rgba(38, 156, 83, .07); }
.sd-calert-icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(38, 156, 83, .12); color: var(--theme-color); }
.sd-calert-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.sd-calert-text strong { font-size: 14px; color: var(--title-color); font-weight: 600; }
.sd-calert.is-new .sd-calert-text strong { font-weight: 700; }
.sd-calert-text span { font-size: 13px; color: var(--text-color); }
.sd-calert-text small { font-size: 12px; color: #9a9a9a; }
.sd-calert-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--theme-color); }
.sd-updates-list { border: 1px solid #e5e5e5; border-radius: 12px; overflow: hidden; }
.sd-updates-list:empty { display: none; }
.sd-tab-count { display: inline-block; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 10px; background: #e53935; color: #fff; font-size: 12px; line-height: 20px; text-align: center; vertical-align: 2px; }
@media (max-width: 767px) {
  .sd-cbell-panel { position: fixed; top: 76px; left: 12px; right: 12px; width: auto; max-width: none; }
  .main-header .menu-right-content .info-list li.sd-cbell { margin-right: 8px; }
}
/* The bell sits in the header icon list: keep the template's icon-link styles off the panel. */
.main-header .menu-right-content .info-list li .sd-cbell-panel a.sd-cbell-all { display: block; font-size: 14px; line-height: 1.4; padding: 11px 16px; }
.main-header .menu-right-content .info-list li .sd-cbell-panel a.sd-cbell-all::before,
.main-header .menu-right-content .info-list li .sd-cbell-panel a.sd-cbell-all::after { display: none; }
.sd-cbell-panel .sd-cbell-list .sd-calert:last-child { border-bottom: 0; }

/* Home header (style five): last row of the open category list opens the full drawer. */
.main-header .outer-box .category-box .category-list > li.sd-more-categories .icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; top: 13px; font-size: 16px; color: var(--theme-color, #269c53); }
.main-header .outer-box .category-box .category-list > li.sd-more-categories > a { color: var(--theme-color, #269c53); font-weight: 600; }

/* ---------- Home banner (banner-style-five): picture slots at the template's sizes ---------- */
.banner-style-five .image-layer .image { overflow: hidden; }
.banner-style-five .image-layer .sd-hero-left { width: min(374px, 27%); aspect-ratio: 374 / 452; }
.banner-style-five .image-layer .sd-hero-right { width: min(360px, 26%); aspect-ratio: 360 / 446; }
.banner-style-five .image-layer .sd-hero-left img,
.banner-style-five .image-layer .sd-hero-right img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
/* A full photo (not a cut-out PNG): fill the whole height and fade its inner edge into the grey card. */
.banner-style-five .image-layer .sd-hero-photo { top: 0; height: 100%; aspect-ratio: auto; }
.banner-style-five .image-layer .sd-hero-left.sd-hero-photo img { object-position: center; -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%); mask-image: linear-gradient(to right, #000 55%, transparent 100%); }
.banner-style-five .image-layer .sd-hero-right.sd-hero-photo img { object-position: center; -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%); mask-image: linear-gradient(to left, #000 55%, transparent 100%); }
/* Keep the text readable on the narrower desktop widths. */
.banner-style-five .content-box { position: relative; z-index: 2; max-width: 46%; margin: 0 auto; }
@media (max-width: 991px) { .banner-style-five .content-box { max-width: none; } }
