/* Shared layout for category / shop pages (not homepage) */
html:not(.category-ready) #list {
  visibility: hidden;
  min-height: 55vh;
}

html.category-ready #list {
  visibility: visible;
}

#list.shop-cat-switching .shop-main {
  opacity: 0.35;
  transition: opacity 0.18s ease;
}

#list.shop-cat-switching .shop-sidebar-col {
  opacity: 1;
}

#list.shop-cat-switching .shop-main .product-grid {
  transition: opacity 0.18s ease;
}

html.category-ready #list:not(.shop-cat-switching) .shop-main {
  opacity: 1;
  transition: opacity 0.22s ease;
}

:root {
  --font-product-en: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ui-mixed: "Hind Siliguri", "Inter", system-ui, sans-serif;
}

/* ----------------------------------------------------------------------
   SECTION: পেজ-লেভেল বেসিক লেআউট (body.shop-page, ফন্ট সেটআপ)
   ---------------------------------------------------------------------- */
body.shop-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  font-family: var(--font-ui-mixed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* প্রোডাক্টের ইংরেজি নাম/লেবেল — স্পষ্ট ল্যাটিন ফন্ট */
body.shop-page :lang(en),
body.shop-page [lang="en"] {
  font-family: var(--font-product-en);
  font-variant-ligatures: none;
  font-feature-settings: "kern" 1, "liga" 0;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.shop-page .card-title-text,
body.shop-page .pqv-related-name,
body.shop-page .pqv-related-price,
body.shop-page .premium-card .card-price,
body.shop-page .pqv-opt-btn,
body.shop-page .pqv-type-opt,
body.shop-page .pqv-related-head h3,
body.shop-page .pqv-tab,
body.shop-page .pqv-panel-back,
body.shop-page .pqv-field-label,
body.shop-page .pqv-stock,
body.shop-page .premium-card .card-spec-v,
body.shop-page .premium-card .card-spec-chip,
body.shop-page .premium-card-detail .detail-content h3,
body.shop-page .premium-card-detail .detail-price,
body.shop-page .muslim-abaya-btn,
body.shop-page .muslim-abaya-btn-cart,
body.shop-page .muslim-abaya-btn-msg,
body.shop-page .muslim-abaya-btn-buy {
  font-family: var(--font-product-en);
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.shop-page .muslim-abaya-btn-buy {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.shop-page .muslim-abaya-btn-cart,
body.shop-page .muslim-abaya-btn-msg,
body.shop-page .pqv-act-cart,
body.shop-page .pqv-act-msg {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.shop-page .pqv-title {
  font-family: Georgia, "Times New Roman", "Noto Serif Bengali", serif;
}

body.shop-page .pqv-price {
  font-family: var(--font-product-en);
  font-variant-numeric: lining-nums tabular-nums;
}

body.shop-page .card-title-text {
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.shop-page .wrap,
body.shop-page > main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 16px 36px;
  box-sizing: border-box;
}

body.shop-page #list {
  width: 100%;
}

a.card-img-link {
  display: block;
  line-height: 0;
  color: inherit;
  text-decoration: none;
}

a.card-img-link img {
  width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------------------------------------------------
   SECTION: "এই ক্যাটাগরিতে প্রোডাক্ট নেই" খালি স্টেট
   ---------------------------------------------------------------------- */
.shop-empty-soon {
  max-width: 520px;
  margin: 32px auto 48px;
  padding: 28px 24px;
  text-align: center;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 12px;
}

.shop-empty-soon-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.shop-empty-soon-text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: #555;
}

.shop-empty-soon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.shop-empty-soon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.shop-empty-soon-btn--dark {
  background: #111;
  border-color: #111;
  color: #fff;
}

body.shop-page #site-footer-mount {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@media (max-width: 768px) {
  body.shop-page #site-footer-mount {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

body.shop-page .shop-breadcrumb {
  margin-top: 4px;
}

body.shop-page .shop-breadcrumb--mobile {
  padding-left: 2px;
}

/* ============================================================================
   SECTION ★★: ORDER ACTIONS — Add to Cart বামে, Send Message ডানে
   ============================================================================
   দুটো বাটন সবসময় এক সারিতে পাশাপাশি (কখনো উপরে-নিচে নয়)।
   Send Message গাঢ় ধূসর, কোনো বাটনেই বর্ডার নেই।
   ============================================================================ */
body.shop-page .card-actions-muslim-abaya {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  margin-top: 16px;
  margin-bottom: 24px;
  width: 100%;
}
/* কার্ডের সামনের গ্রিডে কোয়ান্টিটি স্টেপার দেখানো হয় না (শুধু quick-view/
   ডিটেইল পেজে দেখা যায়) */
body.shop-page .card-actions-muslim-abaya .ma-qty-stepper { display: none; }

body.shop-page .card-actions-muslim-abaya .muslim-abaya-btn-cart,
body.shop-page .card-actions-muslim-abaya .muslim-abaya-btn-msg {
  flex: 1 1 0 !important;
  width: 0 !important;
  max-width: none !important;
  min-width: 0 !important;
  border: none !important;
  box-shadow: none;
}

body.shop-page .muslim-abaya-btn-cart {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0;
  padding: 0 8px;
  min-height: 48px;
  height: 48px;
  background: #111111;
  color: #fff;
  font-family: "Inter", "Hind Siliguri", system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 250ms ease, color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}
body.shop-page .card-actions-muslim-abaya .muslim-abaya-btn-cart .muslim-abaya-btn-ico {
  display: inline-flex;
  margin: 0;
}
body.shop-page .muslim-abaya-btn-cart .muslim-abaya-btn-ico svg {
  stroke: #fff;
}
@media (hover: hover) {
  body.shop-page .muslim-abaya-btn-cart:hover:not(:disabled):not(.is-oos) {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.18);
  }
}
body.shop-page .muslim-abaya-btn-cart:disabled,
body.shop-page .muslim-abaya-btn-cart.is-oos {
  background: #f0f0f0;
  color: #8a8a8a;
  cursor: not-allowed;
}
body.shop-page .muslim-abaya-btn-cart:disabled .muslim-abaya-btn-ico svg,
body.shop-page .muslim-abaya-btn-cart.is-oos .muslim-abaya-btn-ico svg {
  stroke: #8a8a8a;
}
body.shop-page .muslim-abaya-btn-cart:disabled:hover,
body.shop-page .muslim-abaya-btn-cart.is-oos:hover {
  background: #f0f0f0;
}

/* Send Message — Add to Cart এর ডান পাশে, গাঢ় ধূসর, বর্ডার নেই */
body.shop-page .muslim-abaya-btn-msg {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  padding: 0 8px;
  min-height: 48px;
  height: 48px;
  background: #4a4a4a;
  color: #fff;
  font-family: "Inter", "Hind Siliguri", system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background 250ms ease, color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}
@media (hover: hover) {
  body.shop-page .muslim-abaya-btn-msg:hover {
    background: #3a3a3a;
    color: #fff;
  }
}
body.shop-page .muslim-abaya-btn-cart:focus-visible,
body.shop-page .muslim-abaya-btn-msg:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}
body.shop-page .muslim-abaya-btn-cart .ah-btn-spin {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: ah-spin 0.55s linear infinite;
}
body.shop-page .muslim-abaya-btn-cart.is-adding .ah-btn-spin { opacity: 1; }
body.shop-page .muslim-abaya-btn-cart.is-adding .muslim-abaya-btn-ico,
body.shop-page .muslim-abaya-btn-cart.is-adding [data-cart-label] { opacity: 0; }
@keyframes ah-spin {
  to { transform: rotate(360deg); }
}

body.shop-page .muslim-abaya-btn-cart:active,
body.shop-page .muslim-abaya-btn-msg:active,
body.shop-page .muslim-abaya-btn-buy:active {
  transform: scale(.98);
  transition-duration: .08s;
}

/* সিঙ্গেল-প্রোডাক্ট ডিটেইল পেজের তৃতীয় বাটন (Buy Now) — একমাত্র কালো/সলিড
   বাটন হিসেবে থাকে যাতে সেটাই প্রাইমারি অ্যাকশন মনে হয় */
body.shop-page .muslim-abaya-btn-buy {
  position: relative;
  z-index: 1;
  border-radius: 0;
  padding: 13px 0;
  min-height: 48px;
  height: 48px;
  border: none;
  background: #111;
  color: #fff;
  font-weight: 700;
  transition: background 0.2s ease;
}
body.shop-page .muslim-abaya-btn-buy:hover {
  background: #000;
}

/* কোয়ান্টিটি স্টেপার (quick-view-এ) — সাদা পিল স্টাইল */
body.shop-page .card-actions-muslim-abaya .ma-qty-stepper {
  position: relative;
  z-index: 1;
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 0 !important;
  overflow: hidden;
}
body.shop-page .card-actions-muslim-abaya .ma-qty-stepper__value,
body.shop-page .card-actions-muslim-abaya .ma-qty-stepper__input,
body.shop-page .card-actions-muslim-abaya .ma-qty-stepper__btn {
  background: transparent !important;
  color: #111 !important;
  border: none !important;
}
body.shop-page .card-actions-muslim-abaya .ma-qty-stepper__btn:hover {
  background: #f0f0f0 !important;
}
body.shop-page .card-actions-muslim-abaya .ma-qty-stepper__btn:disabled {
  color: #bbb !important;
}

@media (max-width: 640px) {
  body.shop-page .card-actions-muslim-abaya {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.shop-page .muslim-abaya-btn-cart,
  body.shop-page .muslim-abaya-btn-msg {
    flex: 1 1 0 !important;
    width: 0 !important;
    max-width: none !important;
    box-sizing: border-box;
    min-height: 48px;
    height: 48px;
    font-size: 14px;
    padding: 0 8px;
  }

  body.shop-page .muslim-abaya-btn-cart.is-oos,
  body.shop-page .muslim-abaya-btn-cart:disabled {
    background: #f4f4f4;
    color: #8a8a8a;
  }
}

/* ================================================================
   Body Size field — shown alongside Length Size (kept visible).
================================================================ */
