/*
 * SUUQ Product List — Stage 2A cached stylesheet
 * Extracted from the existing product_list.html without redesigning the UI.
 * Keeping catalogue CSS in a static asset lets WebView/browser cache it across
 * visits instead of downloading/parsing the same ~50 KB inline CSS every time.
 */

body {font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;margin:0;padding:0;}
.main-container-wrapper{display:flex;flex-direction:column;min-height:100vh;padding-top:71px;box-sizing:border-box;}
.main-container{margin-left:210px;width:calc(100% - 210px);padding:5px;flex-grow:1;overflow-y:auto;overflow-x:hidden;}
@media (max-width:768px){#sidebarMenu{display:none}.main-container{margin-left:0!important;width:100%!important;}}

/* Hide the placeholder container until an ad is injected */
#floating-ad-area:empty { display:none; }

/* ----- PRODUCT GRID ----- */
.product-grid-wrapper{position:relative;width:100%;}
.product-grid{display:flex;flex-wrap:wrap;gap:15px;justify-content:flex-start;margin:0;padding:0;}
@media (max-width:768px){.product-grid{justify-content:center;}}
.product-item{flex:0 0 calc(16.66% - 15px);}
@media (max-width:1400px){.product-item{flex:0 0 calc(20% - 15px);}}
@media (max-width:1100px){.product-item{flex:0 0 calc(25% - 15px);}}
@media (max-width:900px){ .product-item{flex:0 0 calc(33.33% - 15px);}}
@media (max-width:600px){ .product-item{flex:0 0 calc(50% - 15px);}}

/* ----- CARD LOOK & FEEL ----- */
.card{border:none;border-radius:0.8rem;overflow:hidden;display:flex;flex-direction:column;}
.product-image{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  object-position:center;
  background:linear-gradient(135deg,#f8fafc 0%,#eef2f7 55%,#f8fafc 100%);
  border-top-left-radius:0.8rem;
  border-top-right-radius:0.8rem;
}
.card-body{flex:1 1 auto;display:flex;flex-direction:column;padding:0;}
.card-body a,
.card-body a:visited,
.card-body a:hover{ text-decoration:none; }

.card-title,.price-text{text-align:left;}
.card-title{font-size:1rem;font-weight:500;margin:.5rem 0 .3rem;color:#000;overflow:hidden;word-wrap:break-word;hyphens:auto;}
.price-text{font-size:1.1rem;font-weight:700;color:#ff5f2e;margin:0 0 .5rem;}
.card:hover{box-shadow:0 2px 4px rgba(0,0,0,.2);transform:translateY(-5px);transition:.3s;}

/* ----- SECTION HEADERS & BADGES (unchanged) ----- */
.section-header-wrapper{width:100%;position:relative;padding-top:20px;margin-top:60px;border-top:1px solid #B0E0E6;}
.section-header{font-size:1.2rem;font-weight:550;margin-bottom:1.5rem;padding-top:10px;color:#333;font-family:'Poppins',sans-serif;padding-bottom:0px;width:100%;box-sizing:border-box;}
.badge-perishables{background:#c8e6c9;color:#388e3c;padding:.25em .75em;font-size:.8rem;border-radius:.2rem;font-weight:bold;}
.badge-perishables+.card-body a{margin-top:10px;}

.weee-cart-capsule {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #FF6600;
  box-shadow: 0 2px 10px rgba(255,110,10,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.3rem;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid #FF6600;
  transition: width 0.25s cubic-bezier(.7,.3,.2,1), border-radius 0.22s, background 0.22s, color 0.2s;
  z-index: 6;
}
.weee-cart-capsule .weee-add-label {
  opacity: 0;
  width: 0;
  margin-left: 0;
  overflow: hidden;
  color: #FF6600;
  font-size: 1.03rem;
  font-weight: 500;
  transition: opacity .17s, width .19s, margin-left .18s;
  white-space: nowrap;
}
.weee-cart-capsule .weee-cart-plus {
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #FF6600;
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  line-height: 28px;
  transition: background 0.17s, color 0.16s;
}

.weee-cart-capsule:hover,
.weee-cart-capsule:focus {
  width: 140px;
  border-radius: 28px;
  background: #FF6600;
  color: #fff;
  outline: none;
}
.weee-cart-capsule:hover .weee-cart-plus,
.weee-cart-capsule:focus .weee-cart-plus {
  background: #fff;
  color: #FF6600;
}
.weee-cart-capsule:hover .weee-add-label,
.weee-cart-capsule:focus .weee-add-label {
  opacity: 1;
  width: 85px;
  margin-left: 8px;
  color: #fff;
}

.weee-cart-capsule.in-cart {
  width: 115px;
  border-radius: 26px;
  background: #FF6600;
  color: #fff;
  box-shadow: 0 2px 12px rgba(255,110,10,0.11);
  padding-left: 0; padding-right: 0;
}
.weee-cart-capsule.in-cart .weee-qty-controls {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.weee-cart-capsule.in-cart .weee-qty-btn {
  background: #fff;
  color: #FF6600;
  border: none;
  font-size: 1.2rem;
  border-radius: 50%;
  width: 28px; height: 28px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(255,110,10,0.08);
  transition: background .16s, color .13s;
}
.weee-cart-capsule.in-cart .weee-qty-btn:hover {
  background: #ffe3cc;
}
.weee-cart-capsule.in-cart .weee-qty-num {
  min-width: 22px; text-align: center; font-size: 1.07rem; font-weight: bold; color: #fff;
}



@media (max-width: 600px) {
  .weee-cart-capsule { top: 7px; right: 8px; width: 39px; height: 39px; }
  .weee-cart-capsule:hover, .weee-cart-capsule:focus { width: 105px; }
  .weee-cart-capsule.in-cart { width: 95px; }
}


@media (max-width: 600px) {
  .weee-cart-capsule .weee-add-label {
    display: none !important;
  }
}

.subcat-bar{
  display:flex; flex-wrap:wrap; gap:12px;
  margin-top:-10px;            /* snug under the H2 */
}
.subcat-pill{
  padding:6px 14px;
  background:#f5f5f5;
  border-radius:20px;
  font-size:.87rem;
  color:#333; text-decoration:none;
  transition:background .22s,color .22s;
}
.subcat-pill:hover{ background:#e68900; color:#fff; }
.subcat-pill.active{ background:#e68900; color:#fff; }
.sortbar{ margin:0; }   /* or margin:2px 0 4px; */

@media (max-width:768px){
  .subcat-bar{
    display:flex;
    flex-wrap:nowrap !important;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    padding-bottom:6px;
    gap:10px;
    scroll-behavior:auto;
    scroll-padding-inline:12px;
    overscroll-behavior-x:contain;
  }

  .subcat-bar::-webkit-scrollbar{
    display:none;
  }

  .subcat-bar{
  }

  .subcat-pill{
    flex:0 0 auto;
    scroll-snap-align:center;
  }
}

/* --- instant feedback for category/subcategory clicks --- */
.subcat-pill,
.mobile-category-link{
  position: relative;
}

.subcat-pill.is-loading,
.mobile-category-link.is-loading{
  pointer-events: auto;
}

.subcat-pill.is-loading{
  background:#e68900 !important;
  color:#fff !important;
  opacity:.96;
}

.subcat-pill.is-loading::after{
  content:"";
  display:inline-block;
  width:12px;
  height:12px;
  margin-left:8px;
  border:2px solid rgba(255,255,255,.45);
  border-top-color:#fff;
  border-radius:50%;
  animation:suuq-spin .65s linear infinite;
  vertical-align:-2px;
}

.mobile-category-link.is-loading .mobile-category-name{
  color:#e68900;
  font-weight:600;
}

#product-list.is-loading .product-grid-wrapper,
#product-list.is-loading .sponsored-strip,
#product-list.is-loading .sortbar,
#product-list.is-loading .section-header,
#product-list.is-loading .subcat-bar{
  opacity:.55;
  transition:opacity .12s ease;
}

#product-list.is-loading .product-grid{
  pointer-events:none;
}

@keyframes suuq-spin{
  to{ transform:rotate(360deg); }
}


/* container under price */
.vendor-line{
  margin:.25rem 0 0;
  display:flex;
  align-items:center;
}

/* small green chip like “verified” */
.verified-chip{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:2px 8px;
  border-radius:9999px;
  background:#ecfdf5;            /* minty bg */
  border:1px solid #a7f3d0;       /* soft green border */
  color:#065f46;                  /* deep green text */
  font-weight:600;
  font-size:.85rem;
  line-height:1;
}
.verified-chip .v-icon{
  width:14px; height:14px; flex:0 0 14px;
}

/* keep it tidy on very small screens */
@media (max-width: 600px){
  .verified-chip{ font-size:.82rem; padding:2px 6px; }
  .verified-chip .v-icon{ width:13px; height:13px; }
}

.price-text small{ color:#666; font-weight:500; }



/* ----- MOBILE CATEGORY PILL BAR (unchanged) ----- */
.mobile-category-scroller-wrapper{display:none;}
@media (max-width:768px){
  .mobile-category-scroller-wrapper{display:block;position:fixed;top:54px;left:0;right:0;z-index:1100;background:#f8f9fa;}
  .main-container-wrapper{padding-top:120px!important;}
  .mobile-category-marquee{width:100%;overflow-x:auto;white-space:nowrap;padding:8px 0 8px;overflow-y:hidden;}
  .mobile-category-marquee::-webkit-scrollbar{display:none;}
  .mobile-category-track{display:inline-flex;align-items:center;}
  .mobile-category-item{display:inline-flex;align-items:center;background:#fff;border-radius:25px;padding:6px 12px;margin-right:20px;box-shadow:0 2px 4px rgba(0,0,0,.1);transition:transform .3s;color:inherit;text-decoration:none;white-space:nowrap;}
  .mobile-category-item:hover{transform:scale(1.03);}
  .mobile-category-link{display:inline-flex;align-items:center;color:inherit;text-decoration:none;}
  .mobile-category-icon{width:40px;height:40px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;margin-right:8px;box-shadow:0 1px 3px rgba(0,0,0,.2);}
  .mobile-category-icon i{font-size:1.2rem;color:#333;}
  .mobile-category-name{font-size:.8rem;line-height:1.2;color:#333;font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
}

/* Pagination theme tweak */
.pagination .page-link{color:#28a745;border-color:#28a745;}
.pagination .page-link:hover{background:rgba(40,167,69,.1);}
.pagination .page-item.active .page-link{background:#28a745;border-color:#28a745;color:#fff;}

/* Horizontal scroll section */
.product-grid-scroll{display:flex;flex-wrap:wrap;gap:15px;margin:0;padding:0;}
@media (max-width:768px){
  .product-grid-scroll{flex-wrap:nowrap;overflow-x:auto;padding-inline:15px;scroll-snap-type:x mandatory;scroll-padding-inline:15px;}
  .product-grid-scroll::-webkit-scrollbar{display:none;}
  .product-grid-scroll .product-item{flex:0 0 50%;max-width:50%;scroll-snap-align:start;margin:0;}
}


/* Normalize tile width across breakpoints */
.product-grid { display:flex; flex-wrap:wrap; align-items:stretch; gap:15px; }
.product-grid .product-item { flex:0 0 calc(20% - 15px); max-width:calc(20% - 15px); }
@media (max-width:1200px){ .product-grid .product-item{ flex-basis:calc(25% - 15px); max-width:calc(25% - 15px);} }
@media (max-width:900px){  .product-grid .product-item{ flex-basis:calc(33.333% - 15px); max-width:calc(33.333% - 15px);} }
@media (max-width:600px){  .product-grid .product-item{ flex-basis:calc(50% - 15px); max-width:calc(50% - 15px);} }

/* Clamp image height and keep them square-ish */
.product-image{
  aspect-ratio:1/1;          /* square tiles like before */
  max-height:210px;          /* stop “super tall” images */
  width:100%;
  object-fit:cover;
  object-position:center;
}


    /* Only change the ON_DEMAND badge (the one that had bg-info).
   Leave green "In stock • Kampala" alone. */
    .badge-market.bg-info {
    background: transparent !important;   /* no blue pill */
    color: #111 !important;               /* solid black text */
    padding: 0 !important;                /* remove badge padding */
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-weight: 550;
    }

    /* Optional: make it look like normal inline text */
    .badge-market.bg-info.badge {
    display: inline;
    }

/* make the inline sponsored block occupy a full row inside .product-grid (flex) */
.product-item--sponsor-block{
  flex: 0 0 100%;
  max-width: 100%;
}

/* Remove the inner white circle on mobile category chips */
@media (max-width: 768px){
  .mobile-category-icon{
    background: transparent !important;  /* no white ring */
    box-shadow: none !important;          /* no shadow ring */
    padding: 0 !important;
    width: 40px; height: 40px;            /* keep same footprint */
    border-radius: 50%;
  }
}

/* Make the image fill the whole chip */
.mobile-category-icon img{
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 0 !important;                   /* remove thin gray border */
  display: block;
}


/* Make mobile category images look bigger without changing pill size */
:root{
  --mobile-cat-icon: 40px;     /* holder size (keep the pill unchanged) */
  --mobile-cat-scale: 1.30;    /* how much bigger the image looks */
}

@media (max-width: 768px){
  .mobile-category-icon{
    width: var(--mobile-cat-icon);
    height: var(--mobile-cat-icon);
    border-radius: 50%;
    overflow: hidden;           /* crop the scaled image */
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .mobile-category-icon img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(var(--mobile-cat-scale)); /* enlarge inside the holder */
    transform-origin: center;
    border: 0 !important;
    display: block;
  }

  /* (optional) a tiny hover pop, still within the pill */
  .mobile-category-link:hover .mobile-category-icon img{
    transform: scale(1.20);
  }
}


/* Optional: fallback emoji sizing to match */
.mobile-cat-emoji{ display:inline-block; width:34px; text-align:center; }
.mobile-cat-fallback-icon{
  width:28px;
  height:28px;
  color:#12C25B;
}

/* Black pill for Sponsored badge to match your “plan” badge position */
.badge--sponsored{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:28px;
  padding:0 7px;
  border-radius:10px;

  background:linear-gradient(135deg,#fff7ed 0%, #ffedd5 100%);
  border:1px solid rgba(255,102,0,.38);
  color:#ff6600;

  box-shadow:0 4px 12px rgba(255,102,0,.18);
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);

  font-weight:700;
  font-size:.95rem;
  line-height:1;
  z-index:3;
}

/* Optional: tighten spacing for sponsored strips that use product-grid */
.sponsored-strip{ margin-top:.25rem; }

.product-grid.sponsored-strip {
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}
/* Extra space if another grid follows immediately */
.product-grid.sponsored-strip + .product-grid {
  margin-top: 12px;
}

.sortbar { display:flex; justify-content:flex-end; margin: 6px 0 12px; }
.sort-dd { position: relative; font-size: .95rem; }
.sort-dd > summary { list-style: none; cursor: pointer; display:flex; align-items:center; gap:.4rem; }
.sort-dd > summary::-webkit-details-marker { display:none; }
.sort-dd .lbl { color:#555; }
.sort-dd .val { font-weight:600; }
.sort-dd .chev { opacity:.6; }
.sort-dd[open] .chev { transform: rotate(180deg); }

.sort-dd .menu {
  position:absolute; right:0; top: 120%;
  min-width: 220px; padding: 8px 0; background:#fff; border:1px solid #e6e6e6;
  border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.08);
  z-index: 50;
}
.sort-dd .menu a {
  display:block; padding:10px 14px; text-decoration:none; color:#222;
}
.sort-dd .menu a:hover { background:#f7f7f7; }


/* Robust multi-line clamp for product titles */
.title-wrap{
  /* visual */
  margin:.5rem 0 .35rem;
  font-size:1rem; font-weight:500; color:#000;

  /* default: 3 lines; override with inline --lines if needed */
  --lines:3;
  line-height:1.22;
  overflow:hidden;

  /* universal height clamp */
  max-height:calc(var(--lines) * 1.22em);
  display:block;

  /* wrapping that never collapses to just "…" */
  word-break:break-word;
  overflow-wrap:anywhere;
  hyphens:auto;
}

/* WebKit multi-line clamp (Chrome/Safari) */
@supports (-webkit-line-clamp:1){
  .title-wrap{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:var(--lines);
    line-clamp:var(--lines);
    max-height:none; /* WebKit handles the clamping */
  }
}

/* make sure the title area can shrink in flex layout */
.product-list-page .product-grid .card-body,
.product-list-page .product-grid .product-link,
.product-list-page .product-grid .title-wrap{ min-width:0 !important; }

/* if some old rule added an artificial ellipsis, kill it */
.card-title::after, .title-wrap::after{ content:none !important; }

/* ---- Price typography (grid + anywhere .price-text) ---- */
:root{
  --price-font: "Inter", system-ui, -apple-system, "Segoe UI",
                "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

.price-text{
  font-family: var(--price-font);
  font-weight: 600;
  font-size: 1.1rem;
  color: #FF6600;
  margin: 0 0 .14rem;
  line-height: 1.15;

  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;

  letter-spacing: -0.2px;
}

/* Optional: if you split currency + amount (see HTML option below) */
.price-text .cur{
  font-weight: 500;
  opacity: .85;
  letter-spacing: .2px;
  margin-right: .25rem;
}
.price-text .amt{
  font-weight: 800;
}

/* Slightly larger on mobile if you want */
@media (max-width: 600px){
  .price-text{ font-size: 1.15rem; }
}

/* Compact location line under the price */
.location-text{
  font-size: .9rem;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 .18rem;
  line-height: 1.2;
}

.location-text i{
  font-size: .9rem;
  color: #6b7280;
}


/* === Location pill (Region + City) === */
.region-filter{
  padding:4px 14px;
  background:#fff;
  border-radius:999px;
  border:1px solid #e5e7eb;
  box-shadow:0 4px 12px rgba(15,23,42,.06);
  display:flex;
  align-items:center;
  gap:12px;
  font-size:.9rem;
}

.region-filter label{
  margin:0;
  color:#6b7280;          /* light grey “Location” */
  font-size:.85rem;
}

.region-filter select{
  border-radius:999px;
  border:1px solid transparent;
  background:#f9fafb;
  padding:4px 12px;
  font-size:.9rem;
  color:#111;
  box-shadow:none;
  min-width:150px;
}

.region-filter select:focus{
  outline:none;
  border-color:#f97316;   /* SUUQ orange-ish focus */
  box-shadow:0 0 0 1px rgba(249,115,22,.15);
}

/* little gap between Region and City selects */
.region-filter select + select{
  margin-left:4px;
}

/* ✅ Mobile only: make Location filter stack nicely (desktop unchanged) */
@media (max-width: 576px){

  /* if your Location filter sits inside .sortbar */
  .sortbar{
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .region-filter{
    /* change shape only on mobile */
    border-radius: 18px;
    padding: 10px 12px;
    flex-wrap: wrap;
  }

  /* label becomes its own line */
  .region-filter label{
    flex: 0 0 100%;
    font-size: .75rem;
    margin-bottom: 2px;
  }

  /* select becomes full width and clean */
  .region-filter select{
    flex: 1 1 100%;
    width: 100%;
    max-width: none;

    background: #fff;
    border: 1px solid #e5e7eb;     /* give it a real input border on phones */
    padding: 10px 12px;
    border-radius: 14px;
  }
}

.vendor-line{
  margin: .08rem 0 .35rem;
  display:flex;
  align-items:center;
  gap:.45rem;
  flex-wrap:nowrap;
  min-width:0;
}

/* Green Verified chip */
.verified-chip{
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  padding:2px 8px 2px 4px;   /* a touch more vertical padding */
  border-radius:999px;
  background:#ecfdf3;
  border:1px solid #16a34a;
  color:#15803d;
  font-size:.7rem;
  font-weight:600;
  white-space:nowrap;
  line-height:1;
  /* 🔸 no fixed height – let padding control it */
}

.verified-chip .v-icon{
  width:14px;
  height:14px;
  flex-shrink:0;
}

/* === Alibaba-style deal slot (right side) === */
.deal-flags{
  margin-left:auto;              /* push to the right of Verified */
  display:flex;
  align-items:center;
}

.deal-flags-inner{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  /* keep the slot size stable */
  overflow:hidden;               /* hide sliding pills outside the slot */
  min-width:100px;
  min-height:26px;               /* about pill height */
}

/* Base orange pill – HIDDEN by default.
   JS will mark one as .is-entering to show it. */
.deal-flag{
  position:absolute;
  top:0;
  left:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(248,250,252,.96);
  border:1px solid rgba(249,115,22,.7);
  color:#f97316;
  font-size:.7rem;
  font-weight:600;
  white-space:nowrap;
  box-shadow:0 4px 10px rgba(249,115,22,.18);

  opacity:0;
  transform:translateY(100%);    /* wait just below the slot */
}

/* Enter / leave animations */
.deal-flag.is-entering{
  animation: dealIn .22s ease forwards;
}
.deal-flag.is-leaving{
  animation: dealOut .22s ease forwards;
}

@keyframes dealIn{
  from{ transform:translateY(100%);  opacity:0; }
  to  { transform:translateY(0);     opacity:1; }
}
@keyframes dealOut{
  from{ transform:translateY(0);     opacity:1; }
  to  { transform:translateY(-100%); opacity:0; }
}

/* Slight lift on hover (only for the visible one) */
.product-item:hover .deal-flag.is-entering,
.product-item:focus-within .deal-flag.is-entering{
  box-shadow:0 8px 20px rgba(249,115,22,.26);
}

/* keep tidy on very small screens */
@media (max-width: 600px){
  .verified-chip{ font-size:.82rem; padding:2px 6px; }
  .verified-chip .v-icon{ width:13px; height:13px; }
  .deal-flag{ font-size:.73rem; }
}

/* === App-only lightweight shop rail (Flutter home) === */
.app-shop-rail-wrap{
  margin: 8px 0 18px;
}

.app-shop-rail-head{
  margin-bottom: 10px;
}

.app-shop-rail-title{
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.app-shop-rail-sub{
  margin: 0;
  font-size: .86rem;
  color: #64748b;
}

.app-shop-rail{
  display:flex;
  gap:12px;
  overflow-x:auto;
  overflow-y:hidden;
  /* one shop at a time */
  scroll-snap-type:x mandatory;
  scroll-padding-inline:12px;
  scroll-behavior:smooth;

  /* keep page vertical scroll natural */
  overscroll-behavior-x:auto;

  padding-inline:2px;
  padding-top:6px;
  padding-bottom:8px;

  /* important: do not trap vertical gestures */
  touch-action:auto;
}

.app-shop-rail::-webkit-scrollbar{
  display:none;
}

.app-shop-card{
  flex: 0 0 290px;
  max-width: 290px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
  scroll-snap-align: start;
  scroll-snap-stop: always;

  transition: transform .18s ease, box-shadow .18s ease;
}

.app-shop-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15,23,42,.10);
}

.app-shop-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.app-shop-plan{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}

.app-shop-verified{
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #15803d;
  font-size: .74rem;
  font-weight: 700;
  white-space: nowrap;
}

.app-shop-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-shop-logo{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
  background: #f8fafc;
  flex: 0 0 56px;
}

.app-shop-logo--fallback{
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

.app-shop-copy{
  min-width: 0;
}

.app-shop-name{
  font-size: .98rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-shop-tagline{
  font-size: .82rem;
  color: #64748b;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp:2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-shop-meta{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: .8rem;
  color: #475569;
}

.app-shop-open{
  color: #ff6600;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 768px){
  .app-shop-rail-wrap{
    margin-top: 6px;
  }

  .app-shop-rail-title{
    font-size: 1rem;
  }

  .app-shop-rail-sub{
    font-size: .8rem;
  }

  .app-shop-card{
    flex:0 0 88%;
    max-width:88%;
    scroll-snap-align:start;
    scroll-snap-stop:always;
  }
}


/* === Product click feedback: makes app feel instant === */
.suuq-page-loader{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.58);
  -webkit-backdrop-filter:blur(3px);
  backdrop-filter:blur(3px);
}

.suuq-page-loader.is-visible{
  display:flex;
}

.suuq-loader-card{
  min-width:190px;
  padding:14px 18px;
  border-radius:18px;
  background:#111827;
  color:#fff;
  box-shadow:0 16px 45px rgba(15,23,42,.25);
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:600;
  font-size:.95rem;
}

.suuq-loader-spin{
  width:18px;
  height:18px;
  border-radius:50%;
  border:3px solid rgba(255,255,255,.35);
  border-top-color:#ff6600;
  animation:suuq-spin .65s linear infinite;
}

.product-item.is-opening,
.product-card.is-opening,
.absec-product.is-opening,
.promo-card.is-opening{
  transform:scale(.985);
  opacity:.72;
  transition:transform .08s ease, opacity .08s ease;
}


/* Keep category bars usable while products are loading */
#product-list.is-loading .subcat-bar,
#product-list.is-loading .mobile-category-scroller-wrapper{
  opacity: 1 !important;
  pointer-events: auto !important;
}

#product-list.is-loading .subcat-pill,
#product-list.is-loading .mobile-category-link{
  pointer-events: auto !important;
}

@media (max-width:768px){
  .mobile-category-link.active .mobile-category-name{
    color:#e68900;
    font-weight:700;
  }

  .mobile-category-link.active .mobile-category-icon{
    outline:2px solid #e68900;
    outline-offset:2px;
  }

  .mobile-category-link.active .mobile-category-item{
    box-shadow:0 4px 12px rgba(230,137,0,.18);
  }
}

@media (max-width:768px){
  .section-header{
    scroll-margin-top:149px;
    padding-top:16px;
  }
}

/* === Product-card details: compact, aligned and mobile-safe === */
.product-grid .product-item .price-text{
  display:flex;
  align-items:baseline;
  flex-wrap:nowrap;
  gap:.22rem;
  min-width:0;
  margin:0 0 .18rem;
  font-size:1rem;
  line-height:1.12;
  white-space:nowrap;
}

.product-grid .product-item .price-text .cur{
  flex:0 0 auto;
  margin-right:0;
  font-size:.74em;
  font-weight:650;
  letter-spacing:.01em;
}

.product-grid .product-item .price-text .amt{
  min-width:0;
  font-size:.96em;
  font-weight:780;
  letter-spacing:-.02em;
}

.product-grid .product-item .location-text{
  display:grid;
  grid-template-columns:14px minmax(0,1fr);
  align-items:start;
  column-gap:3px;
  margin:0 0 .22rem;
  font-size:.84rem;
  line-height:1.18;
}

/* Use SUUQ's shop/store symbol instead of the map pin on product cards. */
.product-grid .product-item .location-text i{
  width:14px;
  margin:.1em 0 0 !important;
  color:#f97316;
  font-size:.8rem;
  line-height:1;
  text-align:center;
}

.product-grid .product-item .location-text i::before{
  content:"\f54e" !important;
  font-family:"Font Awesome 6 Free","Font Awesome 5 Free","FontAwesome";
  font-weight:900;
}

.product-grid .product-item .vendor-line{
  width:100%;
  min-width:0;
  min-height:22px;
  gap:.3rem;
  margin:.05rem 0 .35rem;
  overflow:hidden;
}

.product-grid .product-item .verified-chip{
  flex:0 0 auto;
}

.product-grid .product-item .deal-flags{
  flex:1 1 0;
  min-width:0;
  justify-content:flex-end;
  overflow:hidden;
}

.product-grid .product-item .deal-flags-inner{
  width:100%;
  min-width:0;
  min-height:22px;
}

.product-grid .product-item .deal-flag{
  right:0;
  left:auto;
  max-width:100%;
  padding:2px 7px;
  overflow:hidden;
  text-overflow:ellipsis;
}

@media (max-width:600px){
  /* Equal information rows keep neighbouring two-column cards aligned. */
  .product-grid .product-item .title-wrap{
    --lines:2 !important;
    min-height:2.4em;
    max-height:2.4em;
    margin:.42rem 0 .25rem;
    line-height:1.2;
  }

  .product-grid .product-item .price-text{
    gap:.18rem;
    margin-bottom:.16rem;
    font-size:.94rem;
  }

  .product-grid .product-item .price-text .cur{
    font-size:.7em;
  }

  .product-grid .product-item .price-text .amt{
    font-size:.96em;
    letter-spacing:-.025em;
  }

  .product-grid .product-item .location-text{
    grid-template-columns:12px minmax(0,1fr);
    column-gap:2px;
    min-height:2.3em;
    max-height:2.3em;
    margin-bottom:.16rem;
    overflow:hidden;
    font-size:.78rem;
    line-height:1.15;
  }

  .product-grid .product-item .location-text i{
    width:12px;
    margin:.12em 0 0 !important;
    font-size:.7rem;
  }

  .product-grid .product-item .vendor-line{
    min-height:20px;
    gap:2px;
    margin:.04rem 0 .28rem;
  }

  .product-grid .product-item .verified-chip{
    gap:2px;
    padding:2px 5px 2px 2px;
    font-size:.64rem;
  }

  .product-grid .product-item .verified-chip .v-icon{
    width:11px;
    height:11px;
    flex-basis:11px;
  }

  .product-grid .product-item .deal-flags-inner{
    min-height:20px;
  }

  .product-grid .product-item .deal-flag{
    padding:2px 5px;
    font-size:.62rem;
    box-shadow:none;
  }
}

/* =========================================================
   SUUQ PREMIUM MARKETPLACE HOME — AUGUST 2026
   Brand system: SUUQ green, SUUQ orange and white.
   Pills are reserved for true filters/status; cards and CTAs stay structured.
   ========================================================= */
:root{
  --suuq-green:#12C25B;
  --suuq-green-ink:#087A3B;
  --suuq-orange:#FF6600;
  --suuq-ink:#101914;
  --suuq-white:#FFFFFF;
}

/* Compact marketplace campaign strip. 8px spacing rhythm throughout. */
.marketplace-showcase{
  box-sizing:border-box;
  display:grid;
  grid-template-columns:minmax(360px,.82fr) minmax(560px,1.18fr);
  align-items:stretch;
  gap:16px;
  height:152px;
  margin:8px 0 16px;
  padding:16px;
  overflow:hidden;
  overflow-anchor:none;
  background:#EAF8EF;
  border:1px solid #C9EBD5;
  border-radius:16px;
}

.marketplace-showcase__copy{
  min-width:0;
  align-self:center;
}

.marketplace-showcase__kicker{
  margin:0 0 4px;
  color:var(--suuq-green-ink);
  font-size:.6875rem;
  font-weight:700;
  line-height:1.35;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.marketplace-showcase__title{
  max-width:28ch;
  margin:0;
  color:var(--suuq-ink);
  font-size:1.5rem;
  font-weight:750;
  line-height:1.15;
  letter-spacing:-.03em;
}

.marketplace-showcase__actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:8px;
}

.marketplace-showcase__primary{
  min-height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:4px 12px;
  color:#FFFFFF;
  background:#075F35;
  border:1px solid #075F35;
  border-radius:8px;
  font-size:.75rem;
  font-weight:700;
  line-height:1.25;
  text-decoration:none;
  transition:background-color .16s ease,border-color .16s ease;
}

.marketplace-showcase__primary:hover,
.marketplace-showcase__primary:focus-visible{
  color:#FFFFFF;
  background:#054A2A;
  border-color:#054A2A;
  text-decoration:none;
}

.marketplace-showcase__secondary{
  min-height:32px;
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:#A84400;
  font-size:.75rem;
  font-weight:700;
  line-height:1.25;
  text-decoration:none;
}

.marketplace-showcase__secondary:hover,
.marketplace-showcase__secondary:focus-visible{
  color:#7D3200;
  text-decoration:underline;
  text-underline-offset:4px;
}

.marketplace-showcase__secondary svg,
.marketplace-showcase__primary svg{
  width:14px;
  height:14px;
  flex:0 0 14px;
}

.marketplace-showcase__categories{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  min-width:0;
  opacity:1;
  transition:opacity .16s ease;
}

.marketplace-showcase__categories.is-changing{
  opacity:0;
}

.marketplace-showcase__category{
  position:relative;
  min-width:0;
  overflow:hidden;
  background:#FFFFFF;
  border:4px solid #FFFFFF;
  border-radius:12px;
  color:var(--suuq-ink);
  text-decoration:none;
}

.marketplace-showcase__category:hover,
.marketplace-showcase__category:focus-visible{
  color:var(--suuq-ink);
  border-color:var(--suuq-orange);
  text-decoration:none;
}

.marketplace-showcase__category-visual{
  width:100%;
  height:100%;
  min-height:112px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  color:var(--suuq-green-ink);
  background:#F7FBF8;
  border-radius:8px;
}

.marketplace-showcase__category-visual img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.marketplace-showcase__category-visual i,
.marketplace-showcase__category-visual svg{
  width:32px;
  height:32px;
  font-size:1.5rem;
}

.marketplace-showcase__category-name{
  position:absolute;
  right:4px;
  bottom:4px;
  left:4px;
  padding:4px;
  overflow:hidden;
  color:#193B29;
  background:rgba(255,255,255,.96);
  border-radius:4px;
  font-size:.625rem;
  font-weight:700;
  line-height:1.25;
  text-align:center;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.marketplace-showcase__empty{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.marketplace-showcase__promise{
  min-height:112px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px;
  color:#31513F;
  background:#FFFFFF;
  border-radius:8px;
  font-size:.6875rem;
  font-weight:650;
  line-height:1.35;
  text-align:center;
}

.marketplace-showcase__promise svg{
  width:24px;
  height:24px;
  color:var(--suuq-green-ink);
}

@media (max-width:1100px) and (min-width:769px){
  .marketplace-showcase{
    grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);
  }

  .marketplace-showcase__title{
    font-size:1.25rem;
  }

}

/* Shop discovery rail */
.app-shop-rail-wrap{
  margin:0 0 24px;
}

.app-shop-rail-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}

.app-shop-rail-heading{
  min-width:0;
}

.app-shop-rail-kicker{
  display:block;
  margin-bottom:3px;
  color:var(--suuq-orange);
  font-size:.68rem;
  font-weight:850;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.app-shop-rail-title{
  margin:0;
  color:var(--suuq-ink);
  font-size:1.08rem;
  font-weight:780;
  line-height:1.25;
  letter-spacing:-.015em;
}

.app-shop-rail-sub{
  margin:4px 0 0;
  color:#425148;
  font-size:.83rem;
  line-height:1.4;
}

.app-shop-rail-cue{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
  color:var(--suuq-green-ink);
  font-size:.76rem;
  font-weight:750;
}

.app-shop-rail-cue svg{
  width:17px;
  height:17px;
}

.app-shop-rail{
  gap:12px;
  padding:2px 2px 10px;
  scroll-snap-type:x proximity;
  scroll-padding-inline:2px;
}

.app-shop-card{
  flex:0 0 306px;
  max-width:306px;
  min-height:148px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:15px;
  color:var(--suuq-ink);
  background:var(--suuq-white);
  border:1px solid rgba(18,194,91,.22);
  border-radius:15px;
  box-shadow:0 7px 20px rgba(18,194,91,.07);
}

.app-shop-card:hover,
.app-shop-card:focus-visible{
  color:var(--suuq-ink);
  border-color:rgba(18,194,91,.55);
  box-shadow:0 12px 28px rgba(18,194,91,.12);
  outline:none;
  text-decoration:none;
}

.app-shop-brand{
  align-items:center;
  gap:12px;
}

.app-shop-logo{
  width:58px;
  height:58px;
  flex-basis:58px;
  border:1px solid rgba(18,194,91,.18);
  border-radius:13px;
  background:var(--suuq-white);
}

.app-shop-logo--fallback{
  color:var(--suuq-white);
  background:var(--suuq-green);
  border-color:var(--suuq-green);
  font-size:1.22rem;
  letter-spacing:-.02em;
}

.app-shop-copy{
  flex:1 1 auto;
  min-width:0;
}

.app-shop-name-row{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}

.app-shop-name{
  min-width:0;
  margin:0;
  color:var(--suuq-ink);
  font-size:.98rem;
  font-weight:780;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.app-shop-verified-mark{
  width:17px;
  height:17px;
  flex:0 0 17px;
  color:var(--suuq-green);
}

.app-shop-tagline{
  margin-top:4px;
  color:#425148;
  font-size:.79rem;
  line-height:1.35;
  -webkit-line-clamp:2;
  line-clamp:2;
}

.app-shop-open-mark{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--suuq-orange);
  background:var(--suuq-white);
  border:1px solid rgba(255,102,0,.42);
  border-radius:9px;
}

.app-shop-open-mark svg{
  width:16px;
  height:16px;
}

.app-shop-meta{
  min-height:28px;
  margin-top:14px;
  padding-top:10px;
  border-top:1px solid rgba(18,194,91,.13);
  color:#34443B;
  font-size:.76rem;
}

.app-shop-listings,
.app-shop-tier{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0;
  color:#34443B;
  font-weight:680;
}

.app-shop-listings svg,
.app-shop-tier svg{
  width:15px;
  height:15px;
  flex:0 0 15px;
}

.app-shop-tier{
  color:var(--suuq-green-ink);
}

.app-shop-tier--master{
  color:var(--suuq-orange);
}


/* =========================================================
   SUUQ SHOP DISCOVERY — COMPACT PREMIUM RAIL
   Keeps the existing shop rail logic, but uses much less space.
   ========================================================= */
.app-shop-rail-wrap{
  margin:0 0 18px;
}

.app-shop-rail-head{
  margin-bottom:8px;
}

.app-shop-rail{
  gap:9px;
  padding:1px 1px 7px;
  scroll-padding-inline:1px;
}

/* Smaller, denser shop card */
.app-shop-card{
  flex:0 0 238px;
  max-width:238px;
  min-height:104px;
  padding:10px;
  border-radius:13px;
  box-shadow:0 5px 15px rgba(18,194,91,.055);
}

.app-shop-card:hover,
.app-shop-card:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 8px 19px rgba(18,194,91,.09);
}

/* Brand row */
.app-shop-brand{
  gap:9px;
}

.app-shop-logo{
  width:44px;
  height:44px;
  flex-basis:44px;
  border-radius:11px;
}

.app-shop-logo--fallback{
  font-size:1rem;
}

.app-shop-name-row{
  gap:4px;
}

.app-shop-name{
  font-size:.88rem;
  font-weight:790;
  line-height:1.16;
}

.app-shop-verified-mark{
  width:14px;
  height:14px;
  flex-basis:14px;
}

/* The shop motto/tagline is intentionally removed from this discovery rail. */
.app-shop-tagline{
  display:none !important;
}

/* Compact open-shop arrow */
.app-shop-open-mark{
  width:30px;
  height:30px;
  flex-basis:30px;
  border-radius:8px;
}

.app-shop-open-mark svg{
  width:14px;
  height:14px;
}

/* Package + listing count sit in one shallow footer */
.app-shop-meta{
  min-height:22px;
  margin-top:8px;
  padding-top:7px;
  gap:8px;
  font-size:.68rem;
}

.app-shop-listings,
.app-shop-tier{
  gap:4px;
}

.app-shop-listings svg,
.app-shop-tier svg{
  width:13px;
  height:13px;
  flex-basis:13px;
}

/* Live action occupies the same compact space as the normal arrow. */
.app-shop-live-action{
  flex:0 0 auto;
  min-height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0 9px;
  border-radius:9px;
  background:#ef3340;
  color:#fff;
  border:1px solid #ef3340;
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.045em;
  line-height:1;
  box-shadow:0 5px 12px rgba(239,51,64,.18);
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}

.app-shop-live-action:hover,
.app-shop-live-action:focus-visible{
  color:#fff;
  background:#d92535;
  border-color:#d92535;
  outline:none;
}

.app-shop-live-dot{
  width:6px;
  height:6px;
  flex:0 0 6px;
  border-radius:50%;
  background:#fff;
  animation:suuqShopLivePulse 1.25s ease-in-out infinite;
}

@keyframes suuqShopLivePulse{
  50%{opacity:.4;transform:scale(.82);}
}

@media (max-width:768px){
  .app-shop-rail-head{
    margin-bottom:8px;
  }

  .app-shop-rail-sub{
    margin-top:3px;
    font-size:.74rem;
  }

  /* About 1.7 cards are visible on a normal phone instead of one huge card. */
  .app-shop-card{
    flex:0 0 min(58vw,220px);
    max-width:min(58vw,220px);
    min-height:101px;
    padding:9px;
    border-radius:12px;
  }

  .app-shop-logo{
    width:42px;
    height:42px;
    flex-basis:42px;
    border-radius:10px;
  }

  .app-shop-name{
    font-size:.84rem;
  }

  .app-shop-open-mark{
    width:28px;
    height:28px;
    flex-basis:28px;
  }

  .app-shop-meta{
    margin-top:7px;
    padding-top:6px;
    font-size:.65rem;
  }

  .app-shop-live-action{
    min-height:28px;
    padding:0 8px;
    border-radius:8px;
    font-size:.61rem;
  }
}


/* Package emblems preserve the existing package identities as line icons.
   Master uses an award mark instead of the old crown emoji. */
.plan-mark{
  position:absolute;
  top:8px;
  left:8px;
  z-index:5;
  width:31px;
  height:31px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--suuq-green-ink);
  background:rgba(255,255,255,.96);
  border:1px solid rgba(18,194,91,.42);
  border-radius:9px;
  box-shadow:0 4px 12px rgba(16,25,20,.12);
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
}

.plan-mark--master{
  color:var(--suuq-orange);
  border-color:rgba(255,102,0,.5);
}

.plan-mark svg{
  width:17px;
  height:17px;
}

.promotion-label{
  position:absolute;
  top:8px;
  right:8px;
  z-index:5;
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:4px 7px;
  color:#28342D;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(18,194,91,.28);
  border-radius:7px;
  box-shadow:0 3px 10px rgba(16,25,20,.09);
  font-size:.62rem;
  font-weight:750;
  line-height:1;
}

/* Product cards: disciplined two-column mobile grid and consistent card heights. */
.product-grid{
  gap:16px;
  align-items:stretch;
}

.product-grid .product-item{
  padding:6px 8px 9px;
  overflow:hidden;
  background:var(--suuq-white);
  border:1px solid rgba(18,194,91,.14);
  border-radius:15px;
  box-shadow:0 5px 15px rgba(18,194,91,.055);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.product-grid .product-item:hover,
.product-grid .product-item:focus-within{
  transform:translateY(-2px);
  border-color:rgba(18,194,91,.38);
  box-shadow:0 10px 24px rgba(18,194,91,.11);
}

.product-grid .product-item .card{
  overflow:visible;
  border-radius:11px;
  box-shadow:none;
  transform:none;
}

.product-grid .product-item .card:hover{
  box-shadow:none;
  transform:none;
}

.product-grid .product-item .product-image{
  max-height:none;
  border-radius:11px;
}

.product-grid .product-item .title-wrap{
  margin:.62rem 1px .32rem;
  color:var(--suuq-ink);
  font-size:.91rem;
  font-weight:590;
  line-height:1.28;
}

.product-grid .product-item .price-text{
  margin-inline:1px;
  color:var(--suuq-orange);
}

.product-grid .product-item .location-text{
  margin-inline:1px;
  color:#435148;
}

.product-grid .product-item .location-text i{
  color:var(--suuq-orange);
}

.product-grid .product-item .verified-chip{
  gap:4px;
  padding:0;
  color:var(--suuq-green-ink);
  background:transparent;
  border:0;
  border-radius:0;
  font-weight:700;
}

.product-grid .product-item .deal-flag{
  padding:0;
  color:var(--suuq-orange);
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}

/* Filters are allowed to be chips; the location control is a real field, not a pill. */
.region-filter{
  padding:7px 8px 7px 11px;
  background:var(--suuq-white);
  border:1px solid rgba(18,194,91,.34);
  border-radius:12px;
  box-shadow:none;
}

.region-filter label{
  color:var(--suuq-green-ink);
  font-weight:700;
}

.region-filter select{
  min-height:36px;
  color:var(--suuq-ink);
  background:var(--suuq-white);
  border:1px solid rgba(18,194,91,.22);
  border-radius:9px;
}

.region-filter select:focus{
  border-color:var(--suuq-orange);
  box-shadow:0 0 0 3px rgba(255,102,0,.10);
}

.section-header{
  margin:8px 0 12px;
  padding:0;
  color:var(--suuq-ink);
  font-size:1.16rem;
  font-weight:780;
  letter-spacing:-.015em;
}

@media (max-width:768px){
  .marketplace-showcase{
    grid-template-columns:1fr;
    gap:12px;
    height:auto;
    min-height:208px;
    margin:0 0 16px;
    padding:12px;
    border-radius:12px;
  }

  .marketplace-showcase__title{
    max-width:28ch;
    font-size:1.25rem;
  }

  .marketplace-showcase__actions{
    margin-top:8px;
  }

  .marketplace-showcase__categories{
    gap:4px;
  }

  .marketplace-showcase__category{
    border-width:4px;
    border-radius:8px;
  }

  .marketplace-showcase__category-visual{
    min-height:72px;
    border-radius:4px;
  }

  .marketplace-showcase__category-name{
    padding:4px;
    font-size:.5625rem;
  }

  .marketplace-showcase__promise{
    min-height:72px;
    padding:8px;
    font-size:.625rem;
  }

  .app-shop-rail-head{
    align-items:center;
    margin-bottom:10px;
  }

  .app-shop-rail-sub{
    font-size:.77rem;
  }

  .app-shop-rail-cue span{
    display:none;
  }

  .app-shop-card{
    flex:0 0 min(81vw,292px);
    max-width:min(81vw,292px);
    min-height:144px;
    padding:13px;
    border-radius:14px;
  }

  .app-shop-logo{
    width:54px;
    height:54px;
    flex-basis:54px;
  }

  .section-header{
    scroll-margin-top:149px;
    margin-top:6px;
    padding-top:0;
    font-size:1.08rem;
  }
}

@media (max-width:600px){
  .product-grid{
    gap:10px;
    justify-content:stretch;
  }

  .product-grid .product-item{
    flex:0 0 calc(50% - 5px);
    max-width:calc(50% - 5px);
    padding:5px 6px 8px;
    border-radius:12px;
  }

  .product-grid .product-item .product-image,
  .product-grid .product-item .card{
    border-radius:9px;
  }

  .product-grid .product-item .title-wrap{
    margin:.48rem 1px .24rem;
    font-size:.84rem;
  }

  .plan-mark{
    top:7px;
    left:7px;
    width:28px;
    height:28px;
    border-radius:8px;
  }

  .plan-mark svg{
    width:15px;
    height:15px;
  }

  .promotion-label{
    top:7px;
    right:7px;
    min-height:22px;
    padding:3px 5px;
    font-size:.56rem;
  }

  .region-filter{
    padding:10px;
    border-radius:12px;
  }

  .region-filter select{
    border-color:rgba(18,194,91,.28);
    border-radius:9px;
  }
}

@media (prefers-reduced-motion:reduce){
  .marketplace-showcase__primary,
  .marketplace-showcase__categories,
  .app-shop-card,
  .product-grid .product-item{
    transition:none;
  }
}

/* =========================================================
   SUUQ SHOP DISCOVERY — COMPACT TILE V2
   Final override: intentionally placed LAST so older mobile
   shop-card rules cannot enlarge these tiles again.
   ========================================================= */

.app-shop-rail-wrap{
  margin-bottom:14px;
}

.app-shop-rail{
  gap:8px;
  padding:1px 1px 6px;
  scroll-padding-inline:1px;
}

/* Small marketplace tile */
.app-shop-card{
  flex:0 0 176px !important;
  max-width:176px !important;
  min-height:112px !important;
  padding:8px !important;
  border-radius:11px !important;
  justify-content:flex-start !important;
  box-shadow:0 4px 12px rgba(18,194,91,.05) !important;
}

/*
  New visual structure, without changing the existing HTML:
  [ logo                         arrow/live ]
  [ shop name + verified                   ]
  [ package                       listings ]
*/
.app-shop-brand{
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr) auto;
  grid-template-rows:42px auto;
  grid-template-areas:
    "logo spacer action"
    "name name name";
  align-items:center !important;
  gap:5px 7px !important;
  min-width:0;
}

.app-shop-logo{
  grid-area:logo;
  width:42px !important;
  height:42px !important;
  flex-basis:42px !important;
  border-radius:9px !important;
}

.app-shop-copy{
  grid-area:name;
  min-width:0;
  width:100%;
}

.app-shop-name-row{
  width:100%;
  min-width:0;
  gap:4px !important;
}

.app-shop-name{
  flex:1 1 auto;
  min-width:0;
  margin:0 !important;
  font-size:.76rem !important;
  font-weight:760 !important;
  line-height:1.15 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.app-shop-verified-mark{
  width:12px !important;
  height:12px !important;
  flex:0 0 12px !important;
}

.app-shop-tagline{
  display:none !important;
}

.app-shop-open-mark,
.app-shop-live-action{
  grid-area:action;
  justify-self:end;
  align-self:center;
}

.app-shop-open-mark{
  width:26px !important;
  height:26px !important;
  flex-basis:26px !important;
  border-radius:7px !important;
}

.app-shop-open-mark svg{
  width:12px !important;
  height:12px !important;
}

.app-shop-live-action{
  min-height:25px !important;
  padding:0 7px !important;
  border-radius:7px !important;
  font-size:.56rem !important;
}

/* Very shallow footer */
.app-shop-meta{
  min-height:18px !important;
  margin-top:6px !important;
  padding-top:5px !important;
  gap:5px !important;
  font-size:.58rem !important;
}

.app-shop-listings,
.app-shop-tier{
  gap:3px !important;
  min-width:0;
  white-space:nowrap;
}

.app-shop-listings svg,
.app-shop-tier svg{
  width:11px !important;
  height:11px !important;
  flex-basis:11px !important;
}

/* Mobile: show comfortably more than two shops across the rail. */
@media (max-width:768px){
  .app-shop-rail-head{
    margin-bottom:7px !important;
  }

  .app-shop-card{
    flex:0 0 148px !important;
    max-width:148px !important;
    min-height:106px !important;
    padding:7px !important;
    border-radius:10px !important;
  }

  .app-shop-brand{
    grid-template-columns:38px minmax(0,1fr) auto;
    grid-template-rows:38px auto;
    gap:4px 6px !important;
  }

  .app-shop-logo{
    width:38px !important;
    height:38px !important;
    flex-basis:38px !important;
    border-radius:8px !important;
  }

  .app-shop-name{
    font-size:.70rem !important;
  }

  .app-shop-verified-mark{
    width:11px !important;
    height:11px !important;
    flex-basis:11px !important;
  }

  .app-shop-open-mark{
    width:24px !important;
    height:24px !important;
    flex-basis:24px !important;
  }

  .app-shop-live-action{
    min-height:24px !important;
    padding:0 6px !important;
    font-size:.53rem !important;
  }

  .app-shop-meta{
    margin-top:5px !important;
    padding-top:4px !important;
    font-size:.55rem !important;
  }

  .app-shop-listings svg,
  .app-shop-tier svg{
    width:10px !important;
    height:10px !important;
    flex-basis:10px !important;
  }
}

/* Product-page typography: readable interface copy with deliberate headings. */
button,
input,
select,
textarea,
.mobile-category-name,
.app-shop-name,
.product-grid .card-title,
.product-grid .title-wrap {
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-header,
.marketplace-showcase__title,
.app-shop-rail-title {
  font-family:"Poppins",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
