/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* =====================================================================
   RA SUPERSHOP - Dropdown (child category) menu design
   এই পুরো কোড child theme-এর style.css ফাইলের একদম নিচে বসান
   ===================================================================== */

:root {
  --ra-navy: #141C2B;
  --ra-cyan: #0A8FD6;
  --ra-gold: #FFB800;
  --ra-text: #1F2937;
  --ra-soft: #EAF6FD;
}

/* ---------- ১. মূল মেনু (parent) - হোভারে হলুদ আন্ডারলাইন ---------- */
.whb-header .wd-nav-main > li > a,
.whb-header .wd-nav > li > a {
  position: relative;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: color .25s ease;
}
.whb-header .wd-nav-main > li > a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ra-cyan), var(--ra-gold));
  transform: translateX(-50%);
  transition: width .3s ease;
}
.whb-header .wd-nav-main > li:hover > a::before,
.whb-header .wd-nav-main > li.wd-opened > a::before,
.whb-header .wd-nav-main > li.current-menu-item > a::before {
  width: 70%;
}
.whb-header .wd-nav-main > li:hover > a,
.whb-header .wd-nav-main > li.wd-opened > a { color: var(--ra-gold) !important; }

/* ---------- ২. ড্রপডাউন বক্স ---------- */
.wd-nav > li > .wd-dropdown-menu,
.wd-nav-main > li > .wd-dropdown-menu {
  min-width: 290px;
  margin-top: 0 !important;            /* মাউস নামার সময় গ্যাপ থাকবে না */
  padding: 10px !important;
  border: 0 !important;
  border-radius: 0 0 16px 16px !important;
  background: #fff !important;
  box-shadow: 0 22px 50px rgba(13, 19, 31, .28), 0 4px 14px rgba(13, 19, 31, .10) !important;
  border-top: 4px solid transparent !important;
  border-image: linear-gradient(90deg, var(--ra-cyan), var(--ra-gold)) 1 !important;
  overflow: visible;

  /* অ্যানিমেশন: নিচ থেকে উঠে আসবে */
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(16px) !important;
  /* বন্ধ হওয়ার সময় একটু দেরি, যাতে মাউস সরলে হঠাৎ বন্ধ না হয় */
  transition: opacity .28s ease .12s, transform .28s ease .12s, visibility 0s linear .40s !important;
  pointer-events: none;
}
.wd-nav > li:hover > .wd-dropdown-menu,
.wd-nav > li:focus-within > .wd-dropdown-menu,
.wd-nav > li.wd-opened > .wd-dropdown-menu,
.wd-nav-main > li:hover > .wd-dropdown-menu,
.wd-nav-main > li.wd-opened > .wd-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  transition-delay: 0s !important;
  pointer-events: auto;
}

/* Hover bridge + arrow: pointer-events none => they NEVER block clicks on the parent link */
.wd-nav > li.menu-item-has-children > .wd-dropdown-menu::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: -14px;
  height: 14px;
  background: transparent;
  pointer-events: none;
}
.wd-nav > li.menu-item-has-children > .wd-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 28px;
  width: 16px;
  height: 16px;
  background: var(--ra-cyan);
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
  z-index: -1;
  pointer-events: none;
}

/* Parent link always stays clickable */
.whb-header .wd-nav-main > li > a,
.whb-header .wd-nav > li > a {
  z-index: 5;
  pointer-events: auto;
}

/* ---------- ৩. ভেতরের তালিকা ---------- */
.wd-dropdown-menu .container { padding: 0 !important; width: 100% !important; max-width: 100% !important; }
.wd-dropdown-menu .wd-sub-menu {
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  list-style: none;
}

/* ৮টির বেশি আইটেম থাকলে অটো ২ কলাম (যেমন ইলেকট্রনিক্স, মুদি আইটেম) */
.wd-dropdown-menu .wd-sub-menu:has(> li:nth-child(9)) {
  grid-template-columns: 1fr 1fr;
  column-gap: 8px;
}
.wd-nav > li > .wd-dropdown-menu:has(.wd-sub-menu > li:nth-child(9)) { min-width: 600px; }

.wd-dropdown-menu .wd-sub-menu > li { margin: 0 !important; padding: 0 !important; }

.wd-dropdown-menu .wd-sub-menu > li > a {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 11px 14px 11px 16px !important;
  border-radius: 10px;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.4;
  color: var(--ra-text) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  overflow: hidden;
  transition: background .25s ease, color .25s ease, padding .25s ease, transform .25s ease;
}

/* বাম পাশের ছোট ডট */
.wd-dropdown-menu .wd-sub-menu > li > a::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ra-cyan);
  opacity: .45;
  transition: transform .25s ease, background .25s ease, opacity .25s ease;
}

/* ডান পাশের তীর (হোভারে আসবে) */
.wd-dropdown-menu .wd-sub-menu > li > a::after {
  content: "\203A";
  margin-left: auto;
  font-size: 22px;
  line-height: 1;
  color: var(--ra-cyan);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .25s ease, transform .25s ease;
}

/* হোভার ইফেক্ট */
.wd-dropdown-menu .wd-sub-menu > li > a:hover,
.wd-dropdown-menu .wd-sub-menu > li > a:focus-visible,
.wd-dropdown-menu .wd-sub-menu > li.current-menu-item > a {
  background: linear-gradient(90deg, var(--ra-soft), #FFF8E1) !important;
  color: var(--ra-cyan) !important;
  padding-left: 20px !important;
}
.wd-dropdown-menu .wd-sub-menu > li > a:hover::before,
.wd-dropdown-menu .wd-sub-menu > li > a:focus-visible::before {
  background: var(--ra-gold);
  opacity: 1;
  transform: scale(1.5);
}
.wd-dropdown-menu .wd-sub-menu > li > a:hover::after,
.wd-dropdown-menu .wd-sub-menu > li > a:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}
.wd-dropdown-menu .wd-sub-menu > li > a:focus-visible { outline: 2px solid var(--ra-cyan); outline-offset: -2px; }

/* ---------- ৪. আইটেমগুলো একে একে আসার অ্যানিমেশন ---------- */
@keyframes raItemIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wd-nav > li:hover > .wd-dropdown-menu .wd-sub-menu > li,
.wd-nav > li.wd-opened > .wd-dropdown-menu .wd-sub-menu > li {
  animation: raItemIn .4s cubic-bezier(.22, .8, .3, 1) both;
}
.wd-sub-menu > li:nth-child(1)  { animation-delay: .02s !important; }
.wd-sub-menu > li:nth-child(2)  { animation-delay: .05s !important; }
.wd-sub-menu > li:nth-child(3)  { animation-delay: .08s !important; }
.wd-sub-menu > li:nth-child(4)  { animation-delay: .11s !important; }
.wd-sub-menu > li:nth-child(5)  { animation-delay: .14s !important; }
.wd-sub-menu > li:nth-child(6)  { animation-delay: .17s !important; }
.wd-sub-menu > li:nth-child(7)  { animation-delay: .20s !important; }
.wd-sub-menu > li:nth-child(8)  { animation-delay: .23s !important; }
.wd-sub-menu > li:nth-child(9)  { animation-delay: .26s !important; }
.wd-sub-menu > li:nth-child(10) { animation-delay: .29s !important; }
.wd-sub-menu > li:nth-child(11) { animation-delay: .32s !important; }
.wd-sub-menu > li:nth-child(12) { animation-delay: .35s !important; }
.wd-sub-menu > li:nth-child(n+13) { animation-delay: .38s !important; }

/* ---------- ৫. ট্যাবলেট ছোট স্ক্রিনে ড্রপডাউন ---------- */
@media (max-width: 1199px) {
  .wd-nav > li:has(.wd-sub-menu > li:nth-child(9)) > .wd-dropdown-menu,
  .wd-nav > li > .wd-dropdown-menu:has(.wd-sub-menu > li:nth-child(9)) { min-width: 520px; }
}

/* ---------- ৬. মোবাইল মেনু (সাইড ড্রয়ার) ---------- */
.wd-nav-mobile > li > a,
.mobile-nav .wd-nav-mobile > li > a {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  text-transform: none !important;
}
.wd-nav-mobile .wd-sub-menu {
  margin: 0 0 8px 14px !important;
  padding: 4px 0 4px 12px !important;
  border-left: 3px solid var(--ra-cyan);
  background: rgba(10, 143, 214, .05);
  border-radius: 0 10px 10px 0;
}
.wd-nav-mobile .wd-sub-menu > li > a {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 10px 8px !important;
  text-transform: none !important;
  transition: color .2s ease, padding .2s ease;
}
.wd-nav-mobile .wd-sub-menu > li > a:hover,
.wd-nav-mobile .wd-sub-menu > li.current-menu-item > a {
  color: var(--ra-cyan) !important;
  padding-left: 14px !important;
}

/* অ্যানিমেশন কমাতে চাইলে (accessibility) */
@media (prefers-reduced-motion: reduce) {
  .wd-nav > li > .wd-dropdown-menu,
  .wd-sub-menu > li,
  .wd-sub-menu > li > a { animation: none !important; transition: none !important; }
}

/* =====================================================================
   RA SUPERSHOP - Product & shop buttons (Bangla, Hind Siliguri)
   ===================================================================== */

/* ---------- Base: all main buttons ---------- */
.add_to_cart_button,
.single_add_to_cart_button,
.product_type_variable,
.product_type_grouped,
.product_type_external,
.wd-buy-now-btn,
.wc-proceed-to-checkout .checkout-button,
.woocommerce #payment #place_order,
.woocommerce button[name="update_cart"],
.woocommerce button[name="apply_coupon"],
.woocommerce a.button.wc-forward,
.woocommerce .return-to-shop .button,
.woocommerce .woocommerce-message .button {
  position: relative;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px !important;
  border: 2px solid transparent !important;
  border-radius: 10px !important;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(20, 28, 43, .14);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease !important;
}

/* ---------- 1. Add to cart (gold) ---------- */
.add_to_cart_button,
.single_add_to_cart_button,
.product_type_simple {
  background: linear-gradient(135deg, #FFB800, #FFCE4A) !important;
  color: #141C2B !important;
}
.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.product_type_simple:hover {
  background: #141C2B !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 28, 43, .28);
}

/* shine sweep on hover */
.add_to_cart_button::after,
.single_add_to_cart_button::after,
.wd-buy-now-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.add_to_cart_button:hover::after,
.single_add_to_cart_button:hover::after,
.wd-buy-now-btn:hover::after {
  left: 130%;
  transition: left .6s ease;
}

/* ---------- 2. Select options / View products / External (cyan outline) ---------- */
.product_type_variable,
.product_type_grouped,
.product_type_external {
  background: #fff !important;
  color: #0A8FD6 !important;
  border-color: #0A8FD6 !important;
  box-shadow: none;
}
.product_type_variable:hover,
.product_type_grouped:hover,
.product_type_external:hover {
  background: #0A8FD6 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(10, 143, 214, .35);
}

/* ---------- 3. Buy now (navy) ---------- */
.wd-buy-now-btn {
  background: #141C2B !important;
  color: #fff !important;
}
.wd-buy-now-btn:hover {
  background: #0A8FD6 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(10, 143, 214, .35);
}

/* ---------- 4. Cart & checkout ---------- */
.wc-proceed-to-checkout .checkout-button,
.woocommerce #payment #place_order {
  width: 100%;
  min-height: 54px;
  font-size: 18px !important;
  background: linear-gradient(135deg, #0A8FD6, #0673A8) !important;
  color: #fff !important;
}
.wc-proceed-to-checkout .checkout-button:hover,
.woocommerce #payment #place_order:hover {
  background: linear-gradient(135deg, #FFB800, #FFCE4A) !important;
  color: #141C2B !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 184, 0, .4);
}
.woocommerce button[name="update_cart"],
.woocommerce button[name="apply_coupon"],
.woocommerce a.button.wc-forward,
.woocommerce .return-to-shop .button,
.woocommerce .woocommerce-message .button {
  background: #fff !important;
  color: #141C2B !important;
  border-color: #141C2B !important;
  box-shadow: none;
}
.woocommerce button[name="update_cart"]:hover,
.woocommerce button[name="apply_coupon"]:hover,
.woocommerce a.button.wc-forward:hover,
.woocommerce .return-to-shop .button:hover,
.woocommerce .woocommerce-message .button:hover {
  background: #141C2B !important;
  color: #fff !important;
}

/* ---------- 5. Round icon buttons (quick view, wishlist, compare) ---------- */
.wd-action-btn > a,
.product-grid-item .wd-buttons .wd-action-btn > a {
  width: 40px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: #fff !important;
  color: #141C2B !important;
  box-shadow: 0 6px 16px rgba(20, 28, 43, .16);
  transition: background .25s ease, color .25s ease, transform .2s ease !important;
}
.wd-action-btn > a:hover {
  background: #0A8FD6 !important;
  color: #fff !important;
  transform: translateY(-2px) scale(1.06);
}
.wd-action-btn.wd-style-icon > a::before,
.wd-action-btn > a::before { margin: 0 !important; }

/* tooltip text font */
.wd-tooltip-label,
.wd-action-btn > a span {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
  text-transform: none !important;
}

/* ---------- 6. States ---------- */
.add_to_cart_button:active,
.single_add_to_cart_button:active,
.wd-buy-now-btn:active,
.product_type_variable:active { transform: scale(.97); }

.add_to_cart_button:focus-visible,
.single_add_to_cart_button:focus-visible,
.wd-buy-now-btn:focus-visible,
.wc-proceed-to-checkout .checkout-button:focus-visible,
.product_type_variable:focus-visible {
  outline: 3px solid rgba(10, 143, 214, .5);
  outline-offset: 3px;
}

.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled,
.add_to_cart_button.disabled {
  background: #E5E7EB !important;
  color: #9CA3AF !important;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.add_to_cart_button.loading,
.single_add_to_cart_button.loading { opacity: .85; }

/* "কার্ট দেখুন" link shown after adding */
a.added_to_cart {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
  font-weight: 600 !important;
  text-transform: none !important;
  color: #0A8FD6 !important;
}

/* ---------- 7. Single product page layout ---------- */
.single_add_to_cart_button { min-width: 190px; min-height: 50px; font-size: 17px !important; }
.wd-buy-now-btn { min-height: 50px; min-width: 150px; }

/* sticky add-to-cart bar */
.wd-sticky-btn .single_add_to_cart_button { min-height: 44px; min-width: 150px; }

/* ---------- 8. Mobile ---------- */
@media (max-width: 767px) {
  .add_to_cart_button,
  .product_type_variable,
  .product_type_grouped,
  .product_type_external {
    min-height: 42px;
    padding: 8px 10px !important;
    font-size: 14px !important;
    border-radius: 9px !important;
  }
  .single_add_to_cart_button,
  .wd-buy-now-btn { flex: 1 1 100%; width: 100%; min-height: 50px; font-size: 16px !important; }
  .wd-action-btn > a { width: 36px !important; height: 36px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .add_to_cart_button, .single_add_to_cart_button, .wd-buy-now-btn, .wd-action-btn > a { transition: none !important; }
  .add_to_cart_button::after, .single_add_to_cart_button::after, .wd-buy-now-btn::after { display: none; }
}


/* =====================================================================
   Product cards: equal height + two buttons (Add to cart / অর্ডার করুন)
   ===================================================================== */

/* Equal-height cards */
.products .product,
.wd-products .wd-product { display: flex; }
.products .product .product-wrapper,
.wd-products .wd-product .product-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.product-wrapper .product-element-top { flex: none; }
.product-wrapper .product-element-bottom {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* Same image ratio for every product */
.products .product .product-image-link,
.wd-products .wd-product .product-image-link { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.products .product .product-image-link img,
.wd-products .wd-product .product-image-link img { width: 100%; height: 100%; object-fit: cover; }

/* Title: always 2 lines */
.products .wd-entities-title {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  text-transform: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.45em * 2);
}
/* Category line: always 1 line */
.products .wd-product-cats,
.products .product-element-bottom .wd-product-cats {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.6em;
}
/* Price area keeps the same height */
.products .price { min-height: 1.9em; }

/* Buttons stay at the bottom, full width, stacked */
.products .wd-add-btn,
.products .product-element-bottom .wd-add-btn { margin-top: auto; width: 100%; }
.products .wd-add-btn > a,
.products .add_to_cart_button,
.products .product_type_variable,
.products .product_type_grouped { width: 100% !important; margin: 0 !important; }

.ra-buy-now {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 2px solid #141C2B;
  border-radius: 10px;
  background: #141C2B;
  color: #fff !important;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(20, 28, 43, .16);
  transition: background .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease;
}
.ra-buy-now svg { color: #FFB800; transition: transform .25s ease; }
.ra-buy-now:hover {
  background: #0A8FD6;
  border-color: #0A8FD6;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(10, 143, 214, .35);
}
.ra-buy-now:hover svg { transform: scale(1.2) rotate(-8deg); color: #fff; }
.ra-buy-now:active { transform: scale(.97); }
.ra-buy-now:focus-visible { outline: 3px solid rgba(10, 143, 214, .5); outline-offset: 3px; }

/* The "View cart" link is not needed in listings (customer stays on page) */
.products a.added_to_cart { display: none !important; }

@media (max-width: 767px) {
  .ra-buy-now { min-height: 42px; font-size: 14px; padding: 8px 8px; border-radius: 9px; margin-top: 6px; }
  .ra-buy-now svg { width: 16px; height: 16px; }
  .products .wd-entities-title { font-size: 14.5px !important; }
}

/* Buttons never overflow the card */
.products .wd-add-btn,
.products .wd-add-btn > a,
.products .add_to_cart_button,
.products .product_type_variable,
.products .product_type_grouped,
.ra-buy-now { box-sizing: border-box; max-width: 100%; }


/* =====================================================================
   LONG CATEGORY MENUS (up to 50+ child categories)
   - 1 to 8 items   : 1 column
   - 9 to 24 items  : 2 columns
   - 25 to 40 items : 3 columns
   - 41+ items      : 4 columns
   - Always scrollable inside the dropdown, never taller than the screen
   - Never wider than the screen (JS in functions.php shifts it back inside)
   ===================================================================== */

/* never outside the screen + horizontal shift set by JS */
.wd-nav > li > .wd-dropdown-menu {
  max-width: calc(100vw - 32px);
  margin-left: calc(var(--ra-shift, 0px) * -1) !important;
}
.wd-nav > li.menu-item-has-children > .wd-dropdown-menu::before {
  left: calc(28px + var(--ra-shift, 0px));
}

/* scroll inside the dropdown */
.wd-nav > li > .wd-dropdown-menu .wd-sub-menu {
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 6px !important;
  scrollbar-width: thin;
  scrollbar-color: #0A8FD6 #EAF6FD;
}
.wd-nav > li > .wd-dropdown-menu .wd-sub-menu::-webkit-scrollbar { width: 8px; }
.wd-nav > li > .wd-dropdown-menu .wd-sub-menu::-webkit-scrollbar-track { background: #EAF6FD; border-radius: 8px; }
.wd-nav > li > .wd-dropdown-menu .wd-sub-menu::-webkit-scrollbar-thumb { background: #0A8FD6; border-radius: 8px; }
.wd-nav > li > .wd-dropdown-menu .wd-sub-menu::-webkit-scrollbar-thumb:hover { background: #FFB800; }

/* 9 - 24 items: 2 columns */
.wd-nav > li > .wd-dropdown-menu:has(.wd-sub-menu > li:nth-child(9)) { min-width: min(600px, calc(100vw - 32px)); }

/* 25 - 40 items: 3 columns */
.wd-nav > li > .wd-dropdown-menu:has(.wd-sub-menu > li:nth-child(25)) { min-width: min(900px, calc(100vw - 32px)); }
.wd-dropdown-menu .wd-sub-menu:has(> li:nth-child(25)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 8px;
}

/* 41+ items: 4 columns */
.wd-nav > li > .wd-dropdown-menu:has(.wd-sub-menu > li:nth-child(41)) { min-width: min(1120px, calc(100vw - 32px)); }
.wd-dropdown-menu .wd-sub-menu:has(> li:nth-child(41)) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 6px;
}

/* compact rows for long lists */
.wd-dropdown-menu .wd-sub-menu:has(> li:nth-child(25)) > li > a {
  padding: 9px 12px 9px 14px !important;
  font-size: 14.5px !important;
  gap: 8px;
}

/* medium laptops: fewer columns so text stays readable */
@media (max-width: 1399px) {
  .wd-nav > li > .wd-dropdown-menu:has(.wd-sub-menu > li:nth-child(41)) { min-width: min(900px, calc(100vw - 32px)); }
  .wd-dropdown-menu .wd-sub-menu:has(> li:nth-child(41)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  .wd-nav > li > .wd-dropdown-menu:has(.wd-sub-menu > li:nth-child(25)) { min-width: min(640px, calc(100vw - 32px)); }
  .wd-dropdown-menu .wd-sub-menu:has(> li:nth-child(25)),
  .wd-dropdown-menu .wd-sub-menu:has(> li:nth-child(41)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* mobile side drawer: long lists scroll nicely */
.wd-nav-mobile .wd-sub-menu {
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}


/* =====================================================================
   SINGLE PRODUCT PAGE - eye-catchy design + WhatsApp / Call box
   ===================================================================== */

/* Image gallery card */
.single-product .woocommerce-product-gallery {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 36px rgba(20, 28, 43, .10);
}

/* Title */
.single-product .product_title {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  color: #141C2B;
}

/* Price */
.single-product .summary .price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 6px 0 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EAF6FD, #FFF8E1);
  border-left: 5px solid #FFB800;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #0A8FD6;
  width: fit-content;
  max-width: 100%;
}
.single-product .summary .price del { font-size: 20px; font-weight: 500; color: #9CA3AF; }
.single-product .summary .price ins { text-decoration: none; color: #0A8FD6; }
.single-product .summary .price .amount { color: inherit; }

/* Labels (sale / hot) */
.single-product .product-label.onsale { background: #E63946 !important; color: #fff; }
.single-product .product-label.hot { background: #141C2B !important; color: #FFB800; }

/* Quantity */
.single-product .summary .quantity {
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.single-product .summary .quantity input.qty { font-weight: 700; color: #141C2B; border: 0; }
.single-product .summary .quantity :is(.minus, .plus) { font-weight: 700; color: #141C2B; transition: background .2s ease, color .2s ease; }
.single-product .summary .quantity :is(.minus, .plus):hover { background: #0A8FD6; color: #fff; }

/* Add to cart row */
.single-product .summary form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Categories as pills */
.single-product .product_meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #D1D5DB;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}
.single-product .product_meta .posted_in a,
.single-product .product_meta .tagged_as a {
  display: inline-block;
  margin: 3px 4px 3px 0;
  padding: 3px 12px;
  border-radius: 20px;
  background: #EAF6FD;
  color: #0A8FD6;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}
.single-product .product_meta .posted_in a:hover,
.single-product .product_meta .tagged_as a:hover { background: #0A8FD6; color: #fff; }

/* ---------- WhatsApp + Call box ---------- */
.ra-contact-box {
  margin: 22px 0 8px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #F4FAFF, #FFF8E6);
  border: 1px solid #D8ECFA;
  box-shadow: 0 12px 28px rgba(20, 28, 43, .08);
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}
.ra-contact-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 700;
  color: #141C2B;
  line-height: 1.4;
}
.ra-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .6);
  animation: raDot 1.8s infinite;
}
@keyframes raDot {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); }
  70%  { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.ra-contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ra-wa-btn,
.ra-call-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.ra-wa-btn svg,
.ra-call-btn svg { flex: none; width: 24px; height: 24px; }

.ra-wa-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
}
.ra-wa-btn svg { fill: #fff; }
.ra-wa-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(37, 211, 102, .5); color: #fff !important; }

.ra-call-btn {
  background: #fff;
  color: #0A8FD6 !important;
  border: 2px solid #0A8FD6;
}
.ra-call-btn small { display: block; font-size: 13px; font-weight: 500; opacity: .85; }
.ra-call-btn:hover {
  background: #0A8FD6;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(10, 143, 214, .35);
}
.ra-wa-btn:active,
.ra-call-btn:active { transform: scale(.97); }
.ra-wa-btn:focus-visible,
.ra-call-btn:focus-visible { outline: 3px solid rgba(10, 143, 214, .5); outline-offset: 3px; }

.ra-trust-row {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ra-trust-row li {
  margin: 0;
  padding: 7px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .75);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #374151;
}
.ra-trust-row li::before { content: "\2713"; margin-right: 5px; color: #0A8FD6; font-weight: 700; }

/* ---------- Delivery charge info (inside the contact box) ---------- */
.ra-delivery-info {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ra-delivery-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed #D8ECFA;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #141C2B;
}
.ra-delivery-info li svg { flex: none; width: 22px; height: 22px; }
.ra-delivery-info li strong { font-weight: 700; }

.ra-delivery-info .ra-delivery-free { border-color: #25D366; background: #F0FDF4; }
.ra-delivery-info .ra-delivery-free svg,
.ra-delivery-info .ra-delivery-free strong { color: #128C7E; }

.ra-delivery-info .ra-delivery-paid { border-color: #FFB800; background: #FFF8E1; }
.ra-delivery-info .ra-delivery-paid svg,
.ra-delivery-info .ra-delivery-paid strong { color: #B45309; }

/* Checkout page: delivery charge box above payment methods */
.ra-checkout-delivery {
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #F4FAFF, #FFF8E6);
  border: 1px solid #D8ECFA;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}
.ra-checkout-delivery-title {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 700;
  color: #141C2B;
}
.ra-checkout-delivery .ra-delivery-info { margin-top: 10px; grid-template-columns: 1fr; }

@media (max-width: 767px) {
  .single-product .product_title { font-size: 24px; }
  .single-product .summary .price { font-size: 26px; }
  .single-product .summary form.cart { gap: 10px; }
}
@media (max-width: 560px) {
  .ra-contact-actions { grid-template-columns: 1fr; }
  .ra-trust-row { grid-template-columns: 1fr 1fr; }
  .ra-contact-title { font-size: 16px; }
  .ra-delivery-info { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ra-dot { animation: none; }
  .ra-wa-btn, .ra-call-btn { transition: none; }
}

/* Hide sidebar on all normal pages and make content full width */
body.page .sidebar-container,
body.page .wd-sidebar {
  display: none !important;
}
body.page .site-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

/* =====================================================================
   FIX: delivery list + truck icons (theme CSS cannot enlarge them)
   ===================================================================== */
.ra-contact-box ul.ra-delivery-info,
.ra-checkout-delivery ul.ra-delivery-info {
  list-style: none !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
}
.ra-contact-box ul.ra-delivery-info > li,
.ra-checkout-delivery ul.ra-delivery-info > li {
  list-style: none !important;
  margin: 0 !important;
}
.ra-contact-box ul.ra-delivery-info > li::before,
.ra-checkout-delivery ul.ra-delivery-info > li::before { content: none !important; }
.ra-delivery-info > li > svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  min-width: 22px;
  flex: none !important;
}