/* Natural Plate — small additions on top of the reference theme */
.header .logo img { max-height: 52px; width: auto; }
.footer-logo img { width: auto; }
.np-float-contact { position: fixed; right: 20px; bottom: 90px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 992px) { .np-float-contact { bottom: 24px; } }
.np-float-contact a:hover { color: #fff; }
.cart-dropdown .dropdown-box .cart-action .theme-btn { display: block; text-align: center; padding: 12px; border-radius: 6px; background: var(--primary-color); color: #fff; font-weight: 600; }
.sidebar-cart-bottom { padding: 0 20px 20px; }
.np-alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.np-alert.error { background: #fdecec; color: #b42318; border: 1px solid #f5c2c0; }
.np-alert.success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.np-alert.info { background: #eff8ff; color: #175cd3; border: 1px solid #b2ddff; }
.np-page-content { background: #fff; padding: 30px; border-radius: 8px; margin: 30px 0; line-height: 1.8; font-size: 15px; }
.np-page-content h1 { font-size: 26px; margin-bottom: 20px; }
.np-page-content ul, .np-page-content ol { padding-left: 20px; list-style: revert; }
.product-tabs-content ul { list-style: disc; padding-left: 22px; }
.np-empty { text-align: center; padding: 60px 15px; }
.np-empty img { max-width: 160px; margin-bottom: 15px; }
.product.style-6 .open-quantity-btn:disabled { opacity: .6; cursor: not-allowed; }
.page-item a.page-link { cursor: pointer; }
.swiper-navigation-icon { display: none !important; }

/* swiper-wrapper must not clip: slides are moved by translating the wrapper */
.swiper .swiper-wrapper { overflow: visible !important; }
.hero.style-7 .swiper { overflow: hidden; border-radius: 8px; }

/* ---------- never leave one side empty: center short rows ---------- */
/* shop / collection grid: same columns as the theme, but flex so the last row is centered */
.product-wrapper.category-product-all { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 16px; }
.product-wrapper.category-product-all > .product { width: calc((100% - 48px) / 4); min-width: 0 !important; }
@media (min-width: 992px) and (max-width: 1199px) { .product-wrapper.category-product-all > .product { width: calc((100% - 32px) / 3); } }
@media (max-width: 991px) {
  .product-wrapper.category-product-all { gap: 12px; }
  .product-wrapper.category-product-all > .product { width: calc((100% - 12px) / 2); }
}
/* "Just for you" row grid */
.recommended_product_section { justify-content: center; }
/* top selling: an odd last card sits in the middle */
@media (min-width: 768px) { .tp-product-wrapper > .tp-product-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); } }
/* wishlist grid */
.ud-full-body .np-wish { grid-template-columns: repeat(auto-fit, minmax(190px, 230px)); justify-content: center; }

/* ---------- floating contact launcher ---------- */
.np-float-contact { display: none !important; }
.np-contact { position: fixed; right: 20px; bottom: 24px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.np-contact-btn {
  position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: var(--primary-color); box-shadow: 0 8px 24px rgba(46, 125, 50, .45); display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.np-contact-btn:hover { transform: scale(1.06); }
.np-contact:not(.open) .np-contact-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary-color); animation: np-ping 2.2s ease-out infinite;
}
@keyframes np-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.np-contact-pill {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #fff; color: var(--title-color);
  font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 99px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); pointer-events: none;
}
.np-contact-panel {
  width: 270px; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); padding: 14px; transform-origin: bottom right;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.96); transition: opacity .18s, transform .18s, visibility .18s;
}
.np-contact.open .np-contact-panel { opacity: 1; visibility: visible; transform: none; }
.np-contact-title { font-size: 14px; font-weight: 700; color: var(--title-color); padding: 2px 6px 10px; border-bottom: 1px solid #f0f0f0; margin-bottom: 6px; }
.np-contact-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; transition: background .15s; }
.np-contact-item:hover { background: #f9fafb; }
.np-contact-ic { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.np-contact-txt b { display: block; font-size: 14px; color: var(--title-color); line-height: 1.3; }
.np-contact-txt small { font-size: 12px; color: #6b7280; }
/* keep the scroll-to-top button clear of the launcher */
#scroll-top.scroll-top { bottom: 96px !important; right: 27px !important; }
@media (max-width: 991px) {
  .np-contact { bottom: 84px; right: 14px; }
  .np-contact-btn { width: 52px; height: 52px; }
  .np-contact-pill { display: none; }
  #scroll-top.scroll-top { bottom: 146px !important; right: 20px !important; }
}
/* the launcher container must never block clicks on the page underneath */
.np-contact { pointer-events: none; }
.np-contact-btn { pointer-events: auto; }
.np-contact.open .np-contact-panel { pointer-events: auto; }
.np-contact:not(.open) .np-contact-panel { display: none; }
body.np-contact-open .fixed-add-to-cart { opacity: 0; pointer-events: none; transition: opacity .15s; }

/* ---------- chat bot ---------- */
.np-bot {
  position: fixed; right: 20px; bottom: 24px; z-index: 1001; width: 370px; height: min(600px, calc(100vh - 48px));
  background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .22); display: flex; flex-direction: column; overflow: hidden;
  animation: np-bot-in .2s ease-out;
}
@keyframes np-bot-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.np-bot-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; background: var(--primary-color); color: #fff; }
.np-bot-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.np-bot-title { flex: 1; min-width: 0; }
.np-bot-title b { display: block; font-size: 15px; line-height: 1.3; }
.np-bot-title span { font-size: 12px; opacity: .92; display: flex; align-items: center; gap: 6px; }
.np-bot-title span i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; }
.np-bot-reset, .np-bot-x { background: rgba(255, 255, 255, .18); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
.np-bot-reset { font-size: 17px; }
.np-bot-reset:hover, .np-bot-x:hover { background: rgba(255, 255, 255, .3); }
.np-bot-body { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: #f7f7f8; display: flex; flex-direction: column; gap: 10px; }
.np-bot-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 88%; }
.np-bot-row.me { align-self: flex-end; align-items: flex-end; }
.np-bot-bubble { padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: #fff; color: #1f2937; font-size: 14px; line-height: 1.6; white-space: pre-line; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.np-bot-row.me .np-bot-bubble { background: var(--primary-color); color: #fff; border-radius: 14px 14px 4px 14px; }
.np-bot-typing { display: flex; gap: 4px; padding: 13px 14px; }
.np-bot-typing i { width: 7px; height: 7px; border-radius: 50%; background: #c4c4c8; animation: np-dot 1s infinite; }
.np-bot-typing i:nth-child(2) { animation-delay: .15s; } .np-bot-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes np-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.np-bot-cards { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.np-bot-card { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 8px; color: #1f2937; transition: border-color .15s; }
.np-bot-card:hover { border-color: var(--primary-color); color: #1f2937; }
.np-bot-card img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.np-bot-card b { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; }
.np-bot-card em { font-style: normal; font-size: 13px; color: var(--primary-color); font-weight: 700; }
.np-bot-card em del { color: #9ca3af; font-weight: 400; margin-left: 4px; }
.np-bot-handoff { display: inline-flex; align-items: center; gap: 6px; background: #25d366; color: #fff !important; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 99px; }
.np-bot-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; background: #f7f7f8; border-top: 1px solid #efefef; justify-content: center; }
.np-bot-quick button { border: 1px solid var(--primary-color); color: var(--primary-color); background: #fff; border-radius: 99px; padding: 6px 11px; font-size: 13px; cursor: pointer; }
.np-bot-quick button:hover { background: var(--primary-color); color: #fff; }
.np-bot-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #efefef; background: #fff; }
.np-bot-input input { flex: 1; height: 42px; border: 1.5px solid #e5e7eb; border-radius: 99px; padding: 0 16px; font-size: 14px; outline: none; }
.np-bot-input input:focus { border-color: var(--primary-color); }
.np-bot-input button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--primary-color); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.np-bot-input button:disabled { opacity: .5; cursor: default; }
@media (max-width: 575px) {
  .np-bot { right: 0; left: 0; bottom: 0; top: 0; width: auto; height: auto; border-radius: 0; z-index: 2000; }
}

.np-bot { z-index: 1010200 !important; }

/* ---------- shop price range (two-handle slider, reference-style) ---------- */
.np-price { padding: 10px 6px 16px 6px !important; }
.np-price-readout { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: #444; }
.np-price-track { position: relative; height: 22px; margin: 0 9px; }
.np-price-track::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 6px; border-radius: 4px; background: #eee; border: 1px solid #ddd; }
.np-price-fill { position: absolute; top: 8px; height: 6px; border-radius: 6px; background: var(--primary-color); }
.np-price-track input[type=range] { position: absolute; left: -9px; width: calc(100% + 18px); top: 0; height: 22px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.np-price-track input[type=range]::-webkit-slider-runnable-track { background: none; border: 0; }
.np-price-track input[type=range]::-moz-range-track { background: none; border: 0; }
.np-price-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-color); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: grab; margin-top: 1px; }
.np-price-track input[type=range]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primary-color); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: grab; }
.np-price-track input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid rgba(46, 125, 50, .35); }

/* shop filter button: only on phones/tablets (theme d-lg-none rules are inverted) */
.np-filter-toggle { display: none !important; }
@media (max-width: 991px) { .np-filter-toggle { display: inline-flex !important; align-items: center; gap: 6px; } .toolbox .np-filter-toggle span { display: inline !important; } }
/* while the filter drawer is open, nothing may cover it */
body.sidebar-active .sticky-footer, body.sidebar-active .fixed-add-to-cart, body.sidebar-active .np-contact, body.sidebar-active #scroll-top { display: none !important; }

/* reference "Clear All Filters" button */
.np-clear-filters { width: 100%; padding: 9px 12px; background: linear-gradient(135deg, #ff4444, #cc0000); color: #fff; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; font-weight: 600; letter-spacing: .3px; box-shadow: 0 2px 8px rgba(255,68,68,.3); }
.np-clear-filters:hover { opacity: .85; }
.np-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* round badge logo: size by height (theme sizes for a wide logo) */
.header .logo img { height: 74px !important; width: auto !important; max-width: none !important; max-height: none !important; }
.footer.style-3 .footer-logo img, .footer-logo img { height: 110px !important; max-height: none !important; width: auto !important; max-width: none !important; }
@media (max-width: 991px) { .header .logo img { height: 58px !important; } }

/* optional notice bar (admin → হেডার ও ফুটার), off by default */
.np-notice { background: var(--primary-color); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 7px 12px; line-height: 1.4; }
.np-notice a { color: #fff; text-decoration: underline; }
.np-order-policy { margin-top: 14px; padding: 10px 12px; border: 1px dashed #e5c9a6; background: #fff9f2; border-radius: 6px; font-size: 13px; color: #555; }
.np-order-policy p:last-child { margin-bottom: 0; }

/* ---- responsive polish (phones) ---- */
/* theme rows overhang the container by 2-3px on phones → no sideways wobble */
body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.sc-related-products .sc-rel-product-btn { font-size: 12px !important; }
@media (max-width: 575px) {
  .sticky-footer p { font-size: 11px !important; }
}
@media (max-width: 575px) {
  .product-wrap .flag-name, .product .flag-name, .flag-name, .save-label, .save-price { font-size: 11px !important; }
}
/* checkout district select looks like the other fields (reference uses a white bordered select2 box) */
.checkout-address .select-style-2 select.form-control {
  height: 40px; border: 1px solid rgba(136, 136, 136, 0.68); border-radius: 8px; background-color: #fff;
  font-size: 12px; color: #1e1e1e; padding: 0 12px;
}
.phone-group input[name="phone"] { padding-left: 48px !important; }
/* ---- phones: footer must clear the fixed bottom menu (copyright was hidden behind it, reference keeps it visible) ---- */
@media (max-width: 991px) {
  .footer-wrapper { padding-bottom: 64px; }
  .np-contact-btn { width: 46px; height: 46px; }
  .np-contact-btn svg { width: 22px; height: 22px; }
}
/* testimonial dots were touching each other — give them the reference spacing */
.testimonial .swiper-pagination-bullet { margin: 0 5px !important; }
/* cart drawer: subtotal on its own line above the checkout button (was squeezed beside it) */
.cart-dropdown .cart-action { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.cart-dropdown .cart-action .sidebar-cart-subtotal { width: 100%; font-size: 15px; }
/* nothing floats over the open mobile menu */
body.mmenu-active .fixed-add-to-cart, body.mmenu-active .np-contact, body.mmenu-active #scroll-top { opacity: 0; pointer-events: none; }
/* ---- phones: footer link columns spread evenly — same space at the left edge, between the columns and at the right edge ---- */
@media (max-width: 767px) {
  .footer .footer-top > .row { display: grid; grid-template-columns: auto auto; justify-content: space-evenly; column-gap: 16px; margin-left: 0; margin-right: 0; }
  .footer .footer-top > .row > .col-12 { grid-column: 1 / -1; width: 100%; max-width: none; padding-left: 0; padding-right: 0; contain: inline-size; }
  .footer .footer-top > .row > .col-6 { width: max-content !important; max-width: 100% !important; flex: none !important; padding-left: 0; padding-right: 0; }
}
@media (max-width: 767px) {
  body.np-at-footer .fixed-add-to-cart { opacity: 0; pointer-events: none; transition: opacity .2s; }
  .footer-wrapper { padding-bottom: 116px !important; }
}
/* rating breakdown: real star glyphs (the theme's "filled" overlay uses a glyph its font lacks → boxes) */
.ratings-list .np-stars { display: flex; gap: 3px; flex: 0 0 auto; margin-right: 12px; font-size: 13px; color: #ffb03d; }
.ratings-list .np-stars .far { color: #d5d5d5; }
/* product cards: reserve two lines for the name so prices and buttons line up across a row */
.product.style-6 .product-name { line-height: 1.35; min-height: 2.7em; }
/* hero slider dots: centred at the bottom (they sat on top of the banner's button at the left) */
.hero .swiper-pagination { left: 0 !important; right: 0 !important; width: 100% !important; text-align: center !important; justify-content: center !important; display: flex; bottom: 8px !important; }
/* green theme: flag badges (বেস্ট সেলিং, অফার…) in the logo's gold so they differ from the green "ছাড়" badge */
.product.style-6 .flag-name { background: #f2b705 !important; color: #1b3a1d !important; }
/* green theme: white text on the green order button */
.checkout-order-review-button .theme-btn, #place_order_btn { color: #fff !important; }
