/* Deshi Drop — category menu (smooth filter, hover + before/after effects) */
.hero-inner { grid-template-columns: 1fr !important; justify-items: center; }
.hero-art { width: 100%; max-width: 560px; }
.hero { padding-top: 18px; }

.cat-menu { margin: 0 auto; max-width: 760px; padding: 10px; border-radius: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  background: linear-gradient(120deg, #e6f2e9 0%, #fff 55%, #fbe9ea 100%); border: 1px solid rgba(28,107,60,.2); box-shadow: 0 8px 22px rgba(20,79,44,.1); }
.cat-menu .cat-pill {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 8px 10px;
  border: 1.5px solid rgba(28,107,60,.28); border-radius: 16px; background: #fff; color: var(--fm-charcoal); font: 700 13.5px/1.2 'Inter', sans-serif; text-align: center; cursor: pointer;
  transition: color .3s ease, border-color .3s ease, transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
  -webkit-tap-highlight-color: transparent;
}
/* before: colour that sweeps in from the left (hover/active) */
.cat-menu .cat-pill::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, var(--fm-accent) 0%, var(--fm-accent-dark) 100%); transform: scaleX(0); transform-origin: left center; transition: transform .38s cubic-bezier(.2,.8,.2,1); }
/* after: little glowing bar that grows under the label */
.cat-menu .cat-pill::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 0; height: 3px; margin-left: 0; border-radius: 3px; background: var(--fm-red); transition: width .35s ease, margin-left .35s ease; }
.cat-menu .cat-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(20,79,44,.18); border-color: var(--fm-accent); }
.cat-menu .cat-pill:hover::before { transform: scaleX(1); }
.cat-menu .cat-pill:hover, .cat-menu .cat-pill.active { color: #fff; }
.cat-menu .cat-pill.active { background: var(--fm-accent-dark); border-color: var(--fm-accent-dark); box-shadow: 0 8px 18px rgba(20,79,44,.3); }
.cat-menu .cat-pill.active::before { transform: scaleX(1); }
.cat-menu .cat-pill.active::after { width: 26px; margin-left: -13px; }
.cat-menu .cat-pill:active { transform: scale(.96); }
.cat-menu .cat-pill:focus-visible { outline: 3px solid var(--fm-accent-dark); outline-offset: 2px; }
.cat-menu .cat-pill.soon { border-style: dashed; color: #4b5a50; }
.cat-menu .cat-pill.soon:hover::before { background: linear-gradient(135deg, #7a8a80 0%, #4b5a50 100%); }
.cat-menu .cat-pill.soon.active::before { background: linear-gradient(135deg, #5f6f65 0%, #3f4d44 100%); }
.cat-menu .cat-pill.soon.active { background: #3f4d44; border-color: #3f4d44; }
.cp-soon { padding: 2px 6px; border-radius: 999px; background: var(--fm-red); color: #fff; font: 800 9px/1.2 'Inter', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
:lang(ar) .cp-soon, :lang(bn) .cp-soon { letter-spacing: 0; text-transform: none; }
@media (min-width: 700px) { .cat-menu { display: flex; justify-content: center; gap: 10px; padding: 12px 14px; } .cat-menu .cat-pill { flex: 1 1 0; min-height: 50px; font-size: 14.5px; } }
@media (max-width: 360px) { .cat-menu .cat-pill { font-size: 12.5px; padding: 8px 6px; } .cp-soon { display: none; } }

/* product grid swap + coming-soon panel */
#product-grid { transition: opacity .22s ease, transform .22s ease; }
#product-grid.swapping { opacity: 0; transform: translateY(8px); }
.soon-panel { position: relative; overflow: hidden; max-width: 560px; margin: 8px auto 4px; padding: 38px 24px 34px; text-align: center; border-radius: 24px;
  background: linear-gradient(135deg, #e6f2e9 0%, #fff 60%, #fbe9ea 100%); border: 2px dashed rgba(28,107,60,.4); }
.soon-panel[hidden] { display: none; }
.soon-panel::before, .soon-panel::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 2px solid rgba(28,107,60,.18); }
.soon-panel::before { top: -60px; left: -50px; } .soon-panel::after { bottom: -70px; right: -50px; border-color: rgba(200,32,47,.18); }
.soon-ico { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #fff; color: var(--fm-accent-dark); box-shadow: 0 6px 16px rgba(20,79,44,.2); }
.soon-panel h3 { position: relative; margin: 0 0 4px; font: 800 22px/1.2 'Manrope', sans-serif; }
.soon-panel .soon-cat { position: relative; margin: 0 0 8px; font-weight: 800; color: var(--fm-accent-dark); }
.soon-panel p { position: relative; margin: 0 0 18px; color: var(--fm-muted); font-size: 14px; }
.soon-panel .btn { position: relative; }
:lang(ar) .soon-panel h3, :lang(bn) .soon-panel h3 { font-family: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .soon-panel:not([hidden]) { animation: soonIn .45s cubic-bezier(.2,.8,.2,1) both; }
  .soon-panel:not([hidden]) .soon-ico { animation: soonBob 2.6s ease-in-out infinite; }
  @keyframes soonIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes soonBob { 50% { transform: translateY(-5px); } }
}
@media (prefers-reduced-motion: reduce) { .cat-menu .cat-pill, .cat-menu .cat-pill::before, .cat-menu .cat-pill::after, #product-grid { transition: none; } }
#product-grid[hidden] { display: none; }
.cat-menu .cat-pill.soon:hover, .cat-menu .cat-pill.soon.active { color: #fff; }
.cat-menu .cat-pill .cp-t { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 699px) {
  .cat-menu .cat-pill { flex-direction: column; gap: 3px; min-height: 58px; padding: 8px 4px 11px; font-size: 12.5px; line-height: 1.15; }
  .cat-menu .cat-pill.soon { padding-bottom: 12px; }
  .cp-soon { display: inline-block !important; font-size: 8.5px; padding: 2px 6px; }
  .cat-menu .cat-pill::after { bottom: 4px; height: 2px; }
}
.cat-menu .cat-pill .cp-t { white-space: normal; max-width: 100%; }
@media (max-width: 380px) { .cat-menu { padding: 8px; gap: 6px; } .cat-menu .cat-pill { font-size: 11.5px; } }

/* ===== Deals section + sale cards ===== */
.deal-list { padding-top: 22px; padding-bottom: 8px; }
.deal-list[hidden] { display: none; }
.deal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 12px 16px; border-radius: 20px;
  background: linear-gradient(120deg, #fbe9ea 0%, #fff 60%, #e6f2e9 100%); border: 1px solid rgba(200,32,47,.22); }
.deal-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; }
.deal-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fm-red); color: #fff; box-shadow: 0 4px 10px rgba(200,32,47,.35); }
.deal-count { font: 600 13px/1.2 'Inter', sans-serif; color: #5a5a54; }
.deal-count b { color: var(--fm-red); font-size: 16px; }
.deal-ribbon { position: absolute; left: 0; bottom: 12px; z-index: 3; padding: 5px 12px 5px 10px; background: var(--fm-red); color: #fff; font: 800 13px/1 'Manrope', sans-serif;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%); filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
html[dir="rtl"] .deal-ribbon { left: auto; right: 0; padding: 5px 10px 5px 12px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%); }
.price.has-deal { display: flex; flex-direction: column; line-height: 1.15; }
.price.has-deal .was { font-size: 12px; font-weight: 600; color: #8a8a82; text-decoration: line-through; }
.price.has-deal .now { color: var(--fm-red); }
@media (min-width: 760px) { .deal-grid { grid-template-columns: repeat(3, 1fr); } .deal-head h2 { font-size: 26px; } }
@media (min-width: 1000px) { .deal-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== Deals pager ===== */
.deal-pager { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.deal-pager[hidden] { display: none; }
.pg-row { display: inline-flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 999px; background: #fff; border: 1.5px solid rgba(200,32,47,.28); box-shadow: 0 6px 18px rgba(200,32,47,.1); }
.pg-nums { display: inline-flex; align-items: center; gap: 6px; }
.pg-arrow, .pg-num { position: relative; isolation: isolate; overflow: hidden; min-width: 40px; height: 40px; border-radius: 999px; border: 0; background: #f6f1ea; color: var(--fm-charcoal);
  font: 800 15px/1 'Manrope', sans-serif; cursor: pointer; display: grid; place-items: center; transition: transform .2s ease, background .25s ease, color .25s ease, box-shadow .25s ease; -webkit-tap-highlight-color: transparent; }
.pg-arrow:hover:not(:disabled), .pg-num:hover:not(.on) { background: #fbe9ea; color: var(--fm-red); transform: translateY(-2px); }
.pg-arrow:active:not(:disabled), .pg-num:active { transform: scale(.92); }
.pg-arrow:disabled { opacity: .35; cursor: default; }
.pg-num.on { background: var(--fm-red); color: #fff; box-shadow: 0 6px 14px rgba(200,32,47,.4); min-width: 46px; }
.pg-arrow:focus-visible, .pg-num:focus-visible { outline: 3px solid var(--fm-accent-dark); outline-offset: 2px; }
.pg-info { margin: 0; font: 600 12.5px/1.3 'Inter', sans-serif; color: #5a5a54; }
.deal-grid { transition: opacity .2s ease; }
@media (prefers-reduced-motion: no-preference) {
  .deal-grid.pg-next .card, #product-grid.pg-next .card { animation: pgInNext .5s cubic-bezier(.2,.8,.2,1) both; }
  .deal-grid.pg-prev .card, #product-grid.pg-prev .card { animation: pgInPrev .5s cubic-bezier(.2,.8,.2,1) both; }
  .deal-grid .card:nth-child(2) { animation-delay: .05s !important; } .deal-grid .card:nth-child(3) { animation-delay: .1s !important; } .deal-grid .card:nth-child(4) { animation-delay: .15s !important; }
  @keyframes pgInNext { from { opacity: 0; transform: translateX(34px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes pgInPrev { from { opacity: 0; transform: translateX(-34px) scale(.97); } to { opacity: 1; transform: none; } }
  .pg-num.on { animation: pgPop .4s cubic-bezier(.2,1.4,.4,1); }
  @keyframes pgPop { from { transform: scale(.8); } to { transform: scale(1); } }
}
@media (min-width: 760px) { .deal-grid { grid-template-columns: repeat(4, 1fr); } }

/* sold-out products (set "in stock" off in the dashboard) */
.card.sold-out .card-img { filter: grayscale(.85); opacity: .75; }
.sold-tag { padding: 5px 10px; border-radius: 999px; background: #eee8dd; color: #5a5a54; font: 700 11.5px/1 'Inter', sans-serif; }

/* ---- category menu pinned while the customer is in the product area (and normal everywhere else) ---- */
#cat-sentinel { height: 1px; margin-bottom: -1px; pointer-events: none; }
body:not(.no-sticky) #categories { position: sticky; top: var(--hdr-h, 0px); z-index: 45; transition: top .25s ease; }
#categories .cat-menu { transition: box-shadow .3s ease, background .3s ease, padding .3s ease, border-radius .3s ease; }
#categories.is-stuck { padding-top: 6px; padding-bottom: 6px; margin-bottom: var(--cat-gap, 0px); }
#categories.is-stuck .cat-menu { display: flex; gap: 6px; padding: 6px; border-radius: 18px; overflow-x: auto; scrollbar-width: none; box-shadow: 0 10px 26px rgba(20,79,44,.22); background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#categories.is-stuck .cat-menu::-webkit-scrollbar { display: none; }
#categories.is-stuck .cat-pill { flex: 1 0 auto; min-height: 38px; padding: 6px 12px; font-size: 12.5px; border-radius: 12px; white-space: nowrap; }
#categories.is-stuck .cp-soon { display: none !important; }
@media (prefers-reduced-motion: reduce) { #categories, #categories .cat-menu { transition: none; } }
