/* Homepage of the Premium theme (Settings > Theme). Loaded on the home page only. Header and fonts: premium-header.css.
   Colours come from the settings, so the page matches the rest of the site. */

.theme-premium {
  --ac: var(--theme-color, #e6007e); --ac2: color-mix(in srgb, var(--ac) 85%, #000);
  --pbg: var(--background-color, #fbf7f9); --sf: var(--content-box-color, #fff); --sf2: color-mix(in srgb, var(--pbg) 94%, var(--tx)); --tx: var(--primary-font-color, #1a1218); --ln: color-mix(in srgb, var(--tx) 14%, transparent);
  --fh: Manrope, 'Hind Siliguri', sans-serif; --fb: 'Hind Siliguri', Manrope, sans-serif;
  --pw: 1280px; --pp: 32px;
}
.pm svg, .theme-premium .pm-slider svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- notice ---- */
.pm-notice { background: var(--pm-nb, var(--ac)); color: var(--pm-nc, #fff); font: 500 13px/1.5 var(--fb); text-align: center; padding: 8px 16px; }
.pm-notice b { font-weight: 600; }
.pm-notice__dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #4ade80; vertical-align: 1px; }
.pm-notice.is-close .pm-notice__dot { background: #fca5a5; }

/* ---- page ---- */
.pm { font-family: var(--fb); }
.pm a { color: inherit; text-decoration: none; font-family: inherit; }
.pm p { font-family: inherit; }
.pm-w { width: 100%; max-width: var(--pw); margin: 0 auto; padding: 0 var(--pp); box-sizing: border-box; }
.pm-top { padding-top: 28px; }
.pm-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pm-mut { font-size: 13px; color: color-mix(in srgb, var(--tx) 68%, transparent); }
.pm :focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }

/* banner: the banners are 3.6 : 1, like this box, so nothing is cut off */
.pm-slider { position: relative; aspect-ratio: 1216 / 340; border: 1px solid var(--ln); border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--ac) 16%, var(--pbg)); }
.pm-slider__track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pm-slider__track::-webkit-scrollbar, .pm-tabs::-webkit-scrollbar, .pm-rev__list::-webkit-scrollbar, .pm-grid.is-slide::-webkit-scrollbar { display: none; }
.pm-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.pm-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A banner of another shape is shown whole, over a blurred copy of itself (class set by premium-home.js). */
.pm-slide.is-fit { position: relative; overflow: hidden; }
.pm-slide.is-fit::before { content: ''; position: absolute; inset: -24px; background: var(--pm-img) center / cover; filter: blur(16px) brightness(.7); }
.pm-slide.is-fit img { position: relative; object-fit: contain; }
.theme-premium .pm-slider__nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 1px solid var(--ln); border-radius: 50%; background: var(--sf); color: var(--tx); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: color .2s, border-color .2s; }
.theme-premium .pm-slider__nav:hover { color: var(--ac); border-color: var(--ac); }
.pm-slider__nav svg { width: 20px; height: 20px; }
.theme-premium .pm-slider__nav.is-prev { left: 16px; } .theme-premium .pm-slider__nav.is-next { right: 16px; }
.pm-slider__dots { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; padding: 0 5px; border-radius: 999px; background: rgba(255, 255, 255, .8); }
.pm-slider__dots button { padding: 6px 4px; border: 0; background: none; line-height: 0; cursor: pointer; }
.pm-slider__dots i { display: block; width: 6px; height: 6px; border-radius: 3px; background: var(--tx); opacity: .35; transition: width .25s, background .25s, opacity .25s; }
.pm-slider__dots .is-on i { width: 26px; background: var(--ac); opacity: 1; }

/* category tabs */
.pm-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 20px 0 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.theme-premium .pm-tab { flex: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--ln); border-radius: 8px; background: var(--sf); color: var(--tx); font: 500 14px var(--fb); white-space: nowrap; cursor: pointer; transition: border-color .2s; -webkit-tap-highlight-color: transparent; }
.theme-premium .pm-tab:hover { border-color: var(--ac); }
.theme-premium .pm-tab.is-on { background: var(--ac); border-color: var(--ac); color: #fff; }

/* sections */
.pm-sec { padding-top: 36px; }
.pm [hidden] { display: none !important; }
#topup, #review { scroll-margin-top: 80px; }
.pm-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--ac); }
.pm-h2 { margin: 0; padding: 0; font: 800 21px/1.3 var(--fh); letter-spacing: -.01em; text-transform: uppercase; color: var(--tx); }
.pm-hd > a { flex: none; padding: 6px 0; color: var(--ac2); font: 700 14px/1.4 var(--fh); }
.pm-hd > a:hover { text-decoration: underline; }

/* product cards */
.pm-grid { display: grid; }
.pm-grid.is-big { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.pm-grid.is-small { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px 14px; }
.pm-p { display: block; min-width: 0; }
.pm-slot { position: relative; display: block; aspect-ratio: 1; border: 1px solid var(--ln); border-radius: 10px; background: var(--sf2); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.pm-slot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pm-p:hover .pm-slot { border-color: var(--ac); box-shadow: 0 8px 20px color-mix(in srgb, var(--ac) 14%, transparent); }
@media (hover: hover) { .pm-p:hover .pm-slot img { transform: scale(1.04); } }
.pm-bd { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 4px; background: var(--ac); color: #fff; font: 700 11px/1.45 var(--fb); letter-spacing: .06em; text-transform: uppercase; }
.pm-nm { margin: 10px 0 0; padding: 0; font: 700 14px/1.3 var(--fh); color: var(--tx); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-p:hover .pm-nm { color: var(--ac2); }

/* recent orders */
.theme-premium .pm-refresh { flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--ln); border-radius: 8px; background: var(--sf); color: var(--ac2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pm-refresh svg { width: 17px; height: 17px; }
.pm-refresh.is-busy svg { animation: pm-spin .8s linear infinite; }
@keyframes pm-spin { to { transform: rotate(360deg); } }
.pm-recent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-height: 80px; }
.pm-recent .recent_order_item { min-width: 0; margin: 0 !important; padding: 14px 16px !important; gap: 12px; border: 1px solid var(--ln); border-radius: 10px; background: var(--sf); box-shadow: none !important; }
.pm-recent > .recent_order_item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pm-recent .recent_order_item > img { width: 42px; height: 42px; flex: none; object-fit: cover; }
.pm-recent .recent_order_item > .flex-1 { min-width: 0; }
.pm-recent .recent_order_item .text-base { font: 700 14px/1.4 var(--fh); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-recent .recent_order_item .text-sm { font-size: 13px; line-height: 1.45; color: color-mix(in srgb, var(--tx) 68%, transparent); overflow-wrap: anywhere; }
.pm-recent .recent_order_item > div:last-child { flex: none; }
.pm-recent svg { width: auto; }

/* reviews */
.pm-rev { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.pm-rv { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--ln); border-radius: 10px; background: var(--sf); }
.pm-score { align-items: center; justify-content: center; text-align: center; }
.pm-score__n { font: 800 48px/1.3 var(--fh); color: var(--ac2); }
.pm-score .pm-mut { margin-top: 6px; }
.theme-premium .pm-score .pm-btn { width: 100%; margin-top: 16px; padding: 0 10px; }
.pm-stars { color: #d97706; font-size: 16px; line-height: 1.5; letter-spacing: 2px; }
.pm-stars i { font-style: normal; color: #e7dde2; }
.pm-rev__list { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.pm-rev__list > * { scroll-snap-align: start; }
.pm-rv__t { margin: 10px 0; font-size: 15px; line-height: 1.6; color: var(--tx); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.pm-rv__photo { width: 100%; max-height: 160px; margin: 6px 0 10px; border-radius: 8px; object-fit: cover; }
.pm-rv__f { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.pm-rv__f .pm-mut { min-width: 0; line-height: 1.5; }
.pm-rv__f b { font-weight: 600; color: var(--tx); overflow-wrap: anywhere; }
.pm-rv__f span.pm-ok { display: block; }
.pm-vote { flex: none; display: flex; gap: 6px; }
.theme-premium .pm-vote button { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border: 1px solid var(--ln); border-radius: 6px; background: var(--sf); color: color-mix(in srgb, var(--tx) 62%, transparent); font: 600 12px var(--fh); cursor: pointer; }
.pm-vote svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.theme-premium .pm-vote button:hover, .theme-premium .pm-vote .is-on { border-color: var(--ac); color: var(--ac2); }
.pm-vote button:disabled { opacity: .5; }
.theme-premium .pm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border: 1px solid var(--ac); border-radius: 8px; background: var(--ac); color: #fff !important; font: 700 14px var(--fh); cursor: pointer; text-decoration: none; }
.theme-premium .pm-btn:hover { background: var(--ac2); border-color: var(--ac2); }
.theme-premium .pm-btn.is-line { border-color: var(--ln); background: var(--sf); color: var(--tx) !important; }
.pm-modal { border-radius: 12px; font-family: var(--fb); }
.pm-lb { display: block; margin-bottom: 6px; font-weight: 600; }
.pm-rate { display: flex; margin-bottom: 14px; }
.pm-rate button { padding: 0 4px 0 0; border: 0; background: none; color: #e0e0e0; font-size: 32px; line-height: 1.2; cursor: pointer; }
.pm-rate .is-on { color: #d97706; }

/* promos keep their own look, only the width follows the page */
.theme-premium .promo-sec { margin: 24px 0 0 !important; }
.theme-premium .promo-sec > .container { max-width: none; width: 100%; margin: 0 !important; }
.pm-top .promo-sec { margin-top: 20px !important; }
.pm-last { padding-bottom: 4px; }
.theme-premium footer.footer-bg { margin-top: 40px; }

/* ---- sizes ---- */
@media (max-width: 1279px) {
  .pm-grid.is-small { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .theme-premium { --pp: 20px; }
  .pm-grid.is-big, .pm-grid.is-small { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 12px; }
  .pm-rev { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pm-score { display: grid; grid-template-columns: auto auto 1fr; column-gap: 14px; justify-items: start; text-align: left; padding: 14px 16px; }
  .pm-score__n { grid-row: span 2; font-size: 38px; }
  .pm-score .pm-mut { grid-column: 2; margin: 0; }
  .theme-premium .pm-score .pm-btn { grid-column: 3; grid-row: 1 / span 2; justify-self: end; width: auto; margin: 0; padding: 0 16px; }
  .pm-rev__list { grid-auto-columns: calc((100% - 16px) / 2.1); }
}
@media (max-width: 767px) {
  .theme-premium { --pp: 14px; }
  .pm-notice { font-size: 12px; padding: 7px 14px; }
  .pm-top { padding-top: 14px; }
  /* Phones: a taller banner. It fills the box, so nothing is cut off the sides (2.5 : 1, between the banner's own shape and Classic's 2 : 1). */
  .pm-slider { aspect-ratio: 5 / 2; border-radius: 10px; }
  .pm-slide img, .pm-slide.is-fit img { object-fit: fill; }
  .pm-slide.is-fit::before { display: none; }
  .theme-premium .pm-slider__nav { display: none; }
  .pm-slider__dots { bottom: 4px; padding: 0 3px; }
  .pm-slider__dots button { padding: 4px 3px; }
  .pm-slider__dots i { width: 5px; height: 5px; } .pm-slider__dots .is-on i { width: 16px; }
  .pm-tabs { gap: 8px; margin: 0 calc(var(--pp) * -1); padding: 14px var(--pp) 2px; }
  .theme-premium .pm-tab { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
  .pm-sec { padding-top: 26px; }
  .pm-hd { margin-bottom: 12px; padding-left: 10px; border-left-width: 3px; }
  .pm-h2 { font-size: 18px; }
  .pm-hd > a { font-size: 13px; }
  .pm-grid.is-big, .pm-grid.is-small { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  /* "Slide" sections: two rows to swipe, the next column peeks in. */
  .pm-grid.is-slide { grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 3.25); align-content: start; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; margin-right: calc(var(--pp) * -1); padding-right: var(--pp); }
  .pm-grid.is-slide > * { scroll-snap-align: start; }
  .pm-bd { top: 6px; left: 6px; padding: 2px 6px; font-size: 9.5px; }
  .pm-nm { margin-top: 8px; font-size: 12.5px; }
  .pm-recent { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pm-rev__list { grid-auto-columns: 86%; gap: 12px; margin-right: calc(var(--pp) * -1); padding-right: var(--pp); }
  .pm-rv { padding: 16px; }
}
/* Large phones and small tablets */
@media (min-width: 600px) and (max-width: 767px) {
  .pm-grid.is-big, .pm-grid.is-small { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pm-grid.is-slide { grid-template-columns: none; grid-auto-columns: calc((100% - 60px) / 6.25); }
}
@media (prefers-reduced-motion: reduce) { .pm *, .pm *::before { transition: none !important; animation: none !important; } }

/* review form */
.theme-premium .pm-modal .modal-title { font: 800 18px/1.4 var(--fh); }
.theme-premium .pm-modal textarea { display: block; width: 100%; height: 130px; margin: 0; padding: 10px 12px; border: 1px solid var(--ln); border-radius: 8px; background: var(--sf); color: var(--tx); font: 400 15px/1.5 var(--fb); box-sizing: border-box; }
.theme-premium .pm-modal textarea:focus { border-color: var(--ac); box-shadow: none; outline: 0; }
