/* ==========================================================
   SWAADESH X2  -  the only custom stylesheet.
   Load AFTER bootstrap.min.css (v4). No now-ui-kit, no style.css.
   ========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --dark: #222;
  --light: #fff;
  --gray: #f5f5f5;
  --blue: #4285f4;
  --yellow: #f4b400;
  --red: #cf0007;
  --header-bg: linear-gradient(121deg, rgba(237, 109, 46, .993), #fff, green);

  /* Pulled from the header gradient, reused site-wide so sections feel related */
  --brand-orange: #ed6d2e;
  --brand-green: #2e8b3d;
  --brand-pink: #dd0152;
  --card-accent-grad: linear-gradient(90deg, var(--brand-orange), var(--brand-pink) 55%, var(--brand-green));

  /* Single color for every section heading, button and badge site-wide.
     Sky blue. --primary-text pairs it with --dark rather than white —
     white text on this lighter blue only hits ~2.6:1 contrast (hard to
     read); --dark gets ~6:1, well past the readability threshold. */
  --primary: #2ca8ff;
  --primary-text: var(--dark);
}

/* ---------- 2. Base (Bootstrap's Reboot already does the reset) ---------- */
body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--dark);
  background: var(--light);
}
img { max-width: 100%; height: auto; }

/* ---------- 3. Header / navbar ---------- */
.site-header {
  background: var(--header-bg);
  border-radius: 0 0 6px 6px;
  z-index: 1030; /* stay above any leftover overlay so the toggler is always tappable */
}
.site-header .navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: lowercase;
  color: var(--dark);
}
.site-header .navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 600;
}
.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link:focus {
  color: #000;
  text-decoration: underline;
}
/* Mobile dropdown panel */
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    background: rgba(255, 255, 255, .96);
    border-radius: 6px;
    margin-top: .5rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
  }
  /* Center the menu items when the hamburger is open */
  .site-header .navbar-nav {
    text-align: center;
    padding: .25rem 0;
  }
  .site-header .navbar-nav .nav-link {
    padding: .7rem 1rem;
  }
}

/* ---------- 4. Quick menu (Offer / Category / Shops / e-Mandi) ---------- */
.quick-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  padding: .6rem .6rem .4rem;
  background: var(--light);
}
.quick-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 62px;
  padding: .5rem .25rem;
  background: var(--gray);
  border-radius: 10px;
  color: var(--dark);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  transition: background .15s ease, transform .1s ease;
}
.quick-menu a:hover,
.quick-menu a:focus { background: #ffe9a8; color: var(--dark); text-decoration: none; }
.quick-menu a:active { transform: scale(.96); }
.quick-menu svg {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quick-menu a:nth-child(1) svg { color: #ff365b; }
.quick-menu a:nth-child(2) svg { color: var(--blue); }
.quick-menu a:nth-child(3) svg { color: #ed6d2e; }
.quick-menu a:nth-child(4) svg { color: #2e8b3d; }
@media (min-width: 768px) {
  .quick-menu { max-width: 720px; margin: 0 auto; }
  .quick-menu a { flex-direction: row; gap: 8px; font-size: 1rem; }
}

/* ---------- 5. Search ---------- */
.search-bar {
  margin: 0;
  padding: .4rem .6rem .8rem;
  background: var(--light);
}
.search-box {
  display: flex;
  max-width: 720px;
  margin: 0 auto;
  border: 2px solid var(--dark);
  border-radius: 10px;
  overflow: hidden;
  background: var(--light);
}
.search-box:focus-within { border-color: var(--blue); }
.top-search {
  flex: 1;
  min-width: 0;
  padding: .55rem .9rem;
  border: 0;
  outline: 0;
  font-size: 1rem;
  background: transparent;
}
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  border: 0;
  background: var(--yellow);
  color: var(--dark);
  cursor: pointer;
}
.search-btn:hover { background: #e0a400; }
.search-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

/* ---------- 6. Customer service bar ---------- */
.top-service-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: 8px 12px;
  background: var(--blue);
  color: var(--light);
  font-weight: 600;
}
.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .3rem .8rem;
  background: var(--light);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.call-btn:hover,
.call-btn:focus { background: #e8f0fe; color: var(--blue); text-decoration: none; }
.call-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 7. Carried over from style.css (only what is safe) ---------- */
.cntr   { text-align: center; }
.alignR { text-align: right; }
.alignL { text-align: left; }

/* Product tiles: Bootstrap 4 has no .thumbnail, so keep it here */
.thumbnail {
  position: relative;
  background: var(--light);
  border: 1px solid #eee;
  padding: 4px;
  text-align: center;
}
.thumbnail:hover { border-color: #ccc; }
.thumbnail img { max-width: 100%; }
.thumbnail h4 { line-height: 42px; }

/* "New" ribbon on products */
.tag {
  position: absolute;
  top: -4px;
  right: -18px;
  display: block;
  width: 48px;
  height: 48px;
  background: url(../img/new.png) no-repeat 0 0;
}

/* Footer links */
#footerSection a {
  display: block;
  padding: 0 13px;
  font-size: 11px;
  line-height: 24px;
  color: #444;
}
#footerSection a:hover { background: #eee; }
#footerSection #socialMedia a {
  display: inline;
  min-width: 25px;
  margin-right: 6px;
  text-align: center;
}
#footerSection #socialMedia a:hover { background: none; }

/* ---------- 8. Hero banner slider (banner.php) ---------- */
.hero-banner {
  padding: 2px;
  background-color: #dd0152;
  background-image: linear-gradient(45deg, rgba(20, 20, 0, 0), rgba(25, 25, 0, .25));
}
.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}
/* Arrows: round, semi-transparent, white icon */
.hero-banner .carousel-control-prev-icon,
.hero-banner .carousel-control-next-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(0, 0, 0, .45);
  background-size: 50%;
  border-radius: 50%;
}
.hero-banner .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-banner .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, .7);
}
/* Indicators: small dots */
.hero-banner .carousel-indicators { margin-bottom: .4rem; }
.hero-banner .carousel-indicators li {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .6);
}
.hero-banner .carousel-indicators .active { background-color: #fff; }

/* ---------- 9. Supplier / shop grid (supplier_shops.php) ---------- */
/* Reusable for every section heading on the site: same class, same color,
   so headings look consistent instead of each section picking its own color. */
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  /* Breathing room above AND below — without this, back-to-back homepage
     sections (Shops, then Category, then City) sat with their heading bars
     almost touching the content/heading right above them. */
  margin: 40px 0 18px;
  background: var(--primary);
  color: var(--primary-text);
  text-align: left;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 8px;
}
.section-heading:first-child { margin-top: 16px; }
.section-heading svg {
  flex: none;
  width: 30px;
  height: 30px;
  stroke: var(--primary-text);
}
.section-heading .section-heading-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading .view-all {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary-text);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1.5px solid var(--primary-text);
  padding-bottom: 1px;
}
.section-heading .view-all:hover,
.section-heading .view-all:focus { color: var(--primary-text); text-decoration: none; }
.section-heading .view-all svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 480px) {
  .section-heading { font-size: 1.2rem; }
  .section-heading svg { width: 24px; height: 24px; }
}

.shop-card {
  position: relative;
  display: block;
  color: var(--dark);
  background: var(--light);
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow .18s ease, transform .12s ease, border-color .18s ease;
}
/* Thin brand-gradient rail on the left instead of a generic shadow-on-everything card */
.shop-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--card-accent-grad);
  opacity: 0;
  transition: opacity .18s ease;
}
.shop-card:hover,
.shop-card:focus {
  color: var(--dark);
  text-decoration: none;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(44, 168, 255, .22);
  transform: translateY(-3px);
}
.shop-card:hover::before,
.shop-card:focus::before { opacity: 1; }

.shop-card-img {
  aspect-ratio: 3 / 2;
  background: var(--gray);
  overflow: hidden;
}
.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.shop-card:hover .shop-card-img img { transform: scale(1.06); }

.shop-card-body {
  padding: .6rem .7rem .75rem;
}
.shop-name {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Category as a small colored pill instead of plain gray text */
.shop-category {
  display: inline-block;
  margin: 0;
  padding: 2px 10px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(44, 168, 255, .12);
  border-radius: 999px;
}

/* ---------- 10. Category strip (top-cat.php) ---------- */
.category-panel {
  background: var(--light);
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
}
.category-panel .section-heading {
  border-radius: 0; /* flush with the panel's own rounded corners below */
  /* Override .section-heading's new 40px/18px spacing — this heading sits
     INSIDE a bordered white panel (and on category-page-hero, right at the
     top of the page), so it must stay flush with zero margin, not float
     away from the panel's own edges. */
  margin: 0;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 14px;
  padding: 18px 12px;
}
@media (min-width: 768px) {
  .category-grid {
    /* Sizes columns to however many categories actually exist, instead of a
       fixed 6 that shrinks icons when you only have a few */
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    max-width: 640px;
    margin: 0 auto;
  }
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  text-decoration: none;
}
.category-item:hover,
.category-item:focus { color: var(--dark); text-decoration: none; }
.category-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gray);
  transition: border-color .15s ease, transform .12s ease;
}
@media (min-width: 768px) {
  .category-thumb { width: 120px; height: 120px; }
}
.category-item:hover .category-thumb {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.category-label {
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- 10b. Category drill-down (garmi_cat_secndstep.php) ---------- */
.category-step-heading { padding: 0; overflow: hidden; }
.category-step-back {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  color: var(--primary-text);
  text-decoration: none;
}
.category-step-back:hover,
.category-step-back:focus { color: var(--primary-text); text-decoration: none; }
.category-step-back svg { flex: none; width: 24px; height: 24px; }

.category-sub-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}
a.category-sub-pill {
  text-decoration: none;
  display: inline-block;
}
a.category-sub-pill:hover,
a.category-sub-pill:focus { text-decoration: none; }

/* ---------- 11. New Arrival product grid (product-card.php) ---------- */
.product-row { margin-top: 4px; }

.product-card {
  display: block;
  color: var(--dark);
  background: var(--light);
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow .18s ease, transform .12s ease;
}
.product-card:hover,
.product-card:focus {
  color: var(--dark);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .1);
  transform: translateY(-3px);
}
.product-card-img {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: var(--gray);
  overflow: hidden;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-body { padding: .6rem .7rem .75rem; }

.product-name {
  margin: 0 0 4px;
  font-size: .95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-desc {
  margin: 0 0 6px;
  font-size: .78rem;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.product-price { font-weight: 700; font-size: .95rem; }
.product-off { font-size: .78rem; font-weight: 600; color: #1a7f37; }

/* Shown on a product card instead of the real price when the visitor isn't
   logged in — the price itself is never sent to a guest's browser (see
   cat_final_api.php), this is just how that locked state looks. */
.product-price-locked {
  font-weight: 600;
  font-size: .82rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.product-price-locked::before {
  content: "";
  width: 11px;
  height: 11px;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: .78rem;
  font-weight: 700;
  color: #1a7f37;
  background: rgba(26, 127, 55, .1);
  border-radius: 999px;
}
.product-rating svg {
  width: 12px;
  height: 12px;
  fill: #1a7f37;
}

/* ---------- 12. Customer testimonials (testimonials.php) ---------- */
.testimonials { padding: 48px 16px; }

.testimonial-head { text-align: center; margin-bottom: 40px; }
.testimonial-head h1 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.testimonial-head p {
  font-size: .95rem;
  color: #777;
  max-width: 520px;
  margin: 0 auto;
}
.testimonial-underline {
  display: block;
  width: 56px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: var(--primary);
}

/* Carousel: an arrow on each side + a clipped viewport whose inner track
   slides via transform (driven by testimonial.php's own script). */
.testimonial-carousel {
  display: flex;
  align-items: center;
  gap: 8px;
}
.testimonial-viewport {
  flex: 1 1 auto;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform .35s ease;
}

.testimonial-arrow {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e2e2e2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  cursor: pointer;
}
.testimonial-arrow svg { width: 19px; height: 19px; }
.testimonial-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-text);
}
.testimonial-arrow:disabled { opacity: .35; cursor: default; pointer-events: none; }
@media (max-width: 480px) {
  .testimonial-arrow { width: 32px; height: 32px; }
  .testimonial-arrow svg { width: 16px; height: 16px; }
}

.testimonial-card {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .testimonial-card { flex: 0 0 33.3333%; max-width: 33.3333%; }
}
.avatar {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 16px;
}
.avatar-primary { background: var(--primary); color: var(--primary-text); }
.avatar-orange  { background: var(--brand-orange); }
.avatar-green   { background: var(--brand-green); }

.testimonial-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
}
.testimonial-text {
  font-size: .9rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* ---------- 13. Footer (footer.php) ---------- */
.site-footer {
  margin-top: 40px;
  padding-top: 28px;
  background: #555;
  color: #eee;
}
.site-footer .container-fluid { padding-left: 24px; padding-right: 24px; }
.footer-heading {
  text-transform: uppercase;
  font-size: .95rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 12px;
}
.footer-tagline { color: #ccc; margin: 0; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 6px; }
.footer-links a {
  color: #ddd;
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a:focus {
  color: var(--primary);
  text-decoration: underline;
}
.footer-copyright {
  text-align: center;
  padding: 14px 12px;
  margin-top: 20px;
  background: rgba(0, 0, 0, .15);
  font-size: .85rem;
  color: #ddd;
}
.footer-copyright a {
  color: var(--light);
  font-weight: 600;
  text-decoration: none;
}
.footer-copyright a:hover,
.footer-copyright a:focus { text-decoration: underline; }

/* ---------- 14. Floating WhatsApp button (whatsapp-btn.php) ---------- */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.whatsapp-fab:hover,
.whatsapp-fab:focus {
  transform: scale(1.07);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.whatsapp-fab svg {
  width: 30px;
  height: 30px;
  fill: var(--light);
}
@media (max-width: 480px) {
  .whatsapp-fab { width: 50px; height: 50px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

/* ---------- 15. FAQ accordion (faq.php) ---------- */
.faq-section { max-width: 760px; }

.faq-accordion {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
}
.faq-item + .faq-item { border-top: 1px solid #eee; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: var(--light);
  border: 0;
  text-align: left;
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
}
.faq-question:hover,
.faq-question:focus { background: var(--gray); }

.faq-chevron {
  flex: none;
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  transition: transform .2s ease;
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: .88rem;
  line-height: 1.6;
  color: #555;
}

.faq-contact {
  margin-top: 16px;
  text-align: center;
  font-size: .9rem;
  color: #666;
}
.faq-contact a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.faq-contact a:hover,
.faq-contact a:focus { text-decoration: underline; }

/* ---------- 16. Contact page (contact.php) ---------- */
.contact-page { max-width: 900px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 20px;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1.4fr; }
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.contact-info-item svg {
  flex: none;
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
  margin-top: 2px;
}
.contact-info-item h6 {
  margin: 0 0 2px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #888;
}
.contact-info-item a,
.contact-info-item span {
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
}
.contact-info-item a:hover { color: var(--primary); }

.contact-form {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--gray);
  border-radius: 10px;
}
.contact-form label {
  font-size: .8rem;
  font-weight: 600;
  margin: 10px 0 4px;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form textarea {
  padding: .55rem .7rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: .9rem;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--primary);
}
.btn-send {
  margin-top: 16px;
  padding: .6rem 1rem;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 700;
  cursor: pointer;
}
.btn-send:hover { filter: brightness(0.95); }

/* ---------- 17. About Us page (about-us.php) ---------- */
.about-page { max-width: 900px; }

.about-intro {
  margin: 20px 0 28px;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}
.about-intro strong { color: var(--dark); }

.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .about-values { grid-template-columns: repeat(3, 1fr); }
}
.about-value {
  padding: 18px;
  background: var(--gray);
  border-radius: 10px;
  text-align: center;
}
.about-value svg {
  width: 30px;
  height: 30px;
  stroke: var(--primary);
  fill: none;
  margin-bottom: 10px;
}
.about-value h6 {
  font-weight: 700;
  margin-bottom: 6px;
}
.about-value p {
  font-size: .85rem;
  color: #666;
  margin: 0;
}

/* ---------- 18. About Us page (about-us.php) ---------- */
.about-hero {
  position: relative;
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray); /* shows while/if the photo is missing */
}
.about-hero-overlay {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
}
.about-hero-overlay h1 {
  color: var(--light);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 0;
}

.about-page { max-width: 820px; }

.about-who { margin: 28px 0; text-align: center; }
.about-who h2 {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 12px;
}
.about-who p {
  font-size: .95rem;
  line-height: 1.7;
  color: #555;
  max-width: 640px;
  margin: 0 auto 10px;
}
.about-who-line { font-weight: 600; color: var(--dark) !important; }

.about-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: .55rem 1.1rem;
  background: #25d366;
  color: var(--light);
  font-weight: 700;
  font-size: .9rem;
  border-radius: 999px;
  text-decoration: none;
}
.about-whatsapp:hover,
.about-whatsapp:focus { color: var(--light); text-decoration: none; filter: brightness(0.96); }
.about-whatsapp svg { width: 18px; height: 18px; fill: var(--light); }

.about-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 32px 0 12px;
}
@media (min-width: 768px) {
  .about-pillars { grid-template-columns: repeat(3, 1fr); }
}
.about-pillar {
  padding: 20px;
  background: var(--gray);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
}
.about-pillar-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--primary);
  margin-bottom: 8px;
}
.about-pillar p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.6;
  color: #444;
}

/* ---------- 19. Product detail page (product_details.php) ---------- */
.product-detail { max-width: 1000px; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start; /* don't stretch the (shorter) gallery to match the taller info column */
  gap: 28px;
}
@media (min-width: 768px) {
  .product-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 576px) {
  .pd-gallery { flex-direction: row; }
}

.pd-main-img {
  order: 2;
  flex: 1;
  min-width: 0;
  aspect-ratio: 1 / 1;
  max-height: 480px; /* hard cap so it can never balloon past its column */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--gray);
  border-radius: 12px;
  overflow: hidden;
}
.pd-main-img img { width: 100%; height: 100%; object-fit: contain; }

.pd-thumbs {
  order: 1;
  display: flex;
  flex-direction: row;
  gap: 8px;
}
@media (min-width: 576px) {
  .pd-thumbs { flex-direction: column; }
}
.pd-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  padding: 4px;
  background: var(--gray);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}
.pd-thumb.active { border-color: var(--primary); }

/* Colour / size pill selectors */
.pd-option-group { margin-bottom: 16px; }
.pd-option-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
}
.pd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-pill {
  padding: .4rem .9rem;
  border: 1.5px solid #ddd;
  border-radius: 999px;
  background: var(--light);
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
}
.pd-pill:hover { border-color: var(--primary); }
.pd-pill.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-text);
}

.pd-info { min-width: 0; }

.pd-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.pd-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: .82rem;
  font-weight: 700;
  color: #1a7f37;
  background: rgba(26, 127, 55, .1);
  border-radius: 999px;
  margin-bottom: 14px;
}
.pd-rating svg { width: 13px; height: 13px; fill: #1a7f37; }

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.pd-price { font-size: 1.4rem; font-weight: 700; color: var(--dark); }
.pd-mrp { font-size: .95rem; color: #999; text-decoration: line-through; }
.pd-off { font-size: .85rem; font-weight: 700; color: #1a7f37; }

.pd-desc {
  font-size: .92rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}

.pd-qty {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: .9rem;
  font-weight: 600;
}
.pd-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}
.pd-qty-stepper button {
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--gray);
  font-size: 1.1rem;
  cursor: pointer;
}
.pd-qty-stepper input {
  width: 40px;
  border: 0;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-weight: 600;
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pd-btn {
  flex: 1;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .7rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.pd-btn-cart {
  background: var(--primary);
  color: var(--primary-text);
}
.pd-btn-cart:hover { filter: brightness(0.95); }
.pd-btn-whatsapp {
  background: #25d366;
  color: var(--light);
}
.pd-btn-whatsapp:hover,
.pd-btn-whatsapp:focus { color: var(--light); filter: brightness(0.95); }
.pd-btn-whatsapp svg { width: 18px; height: 18px; fill: var(--light); }

/* ---------- 20. Product detail extras (product_details.php) ---------- */

/* Supplier info block (replaces the old orange shop-name header) */
.pd-supplier {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: var(--gray);
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark);
}
.pd-supplier:hover,
.pd-supplier:focus { color: var(--dark); text-decoration: none; background: #eee; }
.pd-supplier > svg:first-child {
  flex: none;
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}
.pd-supplier span {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.pd-supplier small {
  font-size: .7rem;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
}
.pd-supplier strong {
  font-size: .92rem;
  font-weight: 700;
}
.pd-supplier-arrow {
  flex: none;
  width: 16px;
  height: 16px;
  stroke: #999;
}

.pd-save {
  margin: -6px 0 14px;
  font-size: .85rem;
  color: #1a7f37;
  font-weight: 600;
}

/* "Sold in sets of N" — badge near the price, and the smaller inline note
   next to the Quantity label inside the Add to Cart popup. */
.pd-pack-badge {
  display: inline-block;
  margin: -4px 0 14px;
  padding: .25rem .65rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary, #cf0007);
  background: rgba(207, 0, 7, .08);
  border-radius: 6px;
}
.pd-pack-note {
  display: inline-block;
  margin-left: 8px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: none;
  color: #888;
}

.pd-specs {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: .88rem;
}
.pd-specs li {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
}
.pd-specs li span {
  min-width: 110px;
  font-weight: 700;
  color: #777;
}

.pd-stock { font-size: .88rem; font-weight: 600; margin-bottom: 14px; }
.pd-stock-out { color: #cf0007; }
.pd-stock-low { color: #cf0007; }

.pd-desc-block { margin-bottom: 18px; }
.pd-desc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.pd-readmore {
  border: 0;
  background: none;
  color: var(--primary);
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  padding: 0;
}

.pd-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  font-size: .8rem;
  color: #777;
}
.pd-trust li { padding: 2px 0; }

/* section-heading used here with just a title (no icon/view-all) still
   needs the title wrapper to size correctly */
.section-heading .section-heading-title { font-size: inherit; }

/* ---------- 21. Image zoom / nav arrows (product_details.php) ---------- */
.pd-main-img { position: relative; cursor: zoom-in; }

.pd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  cursor: pointer;
}
.pd-nav:hover { background: var(--light); }
.pd-nav svg { width: 18px; height: 18px; stroke: var(--dark); }
.pd-nav-prev { left: 10px; }
.pd-nav-next { right: 10px; }

.pd-zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1060;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .85);
  padding: env(safe-area-inset-top, 0px) 16px env(safe-area-inset-bottom, 0px);
}
.pd-zoom-overlay.open { display: flex; }
.pd-zoom-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  cursor: zoom-out;
}
.pd-zoom-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: var(--light);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.pd-zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  cursor: pointer;
}
.pd-zoom-nav:hover { background: rgba(255, 255, 255, .3); }
.pd-zoom-nav svg { width: 22px; height: 22px; stroke: var(--light); }
.pd-zoom-prev { left: 16px; }
.pd-zoom-next { right: 16px; }

/* ---------- 22. Add to Cart popup (product_details.php) ---------- */
.pd-cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1065;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, .5);
}
.pd-cart-overlay.open { display: flex; }
@media (min-width: 576px) {
  .pd-cart-overlay { align-items: center; }
}

.pd-cart-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--light);
  border-radius: 16px 16px 0 0;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 576px) {
  .pd-cart-box { border-radius: 16px; }
}

/* ---------- Login / signup (user_login_page.php, user_signup.php) ----------
   These two pages use their own minimal shell (auth_top.php) instead of
   top.php — no site nav, no search bar, no footer, just this plain black
   bar + the form card below, on a flat gray screen instead of the site's
   usual white. Functionality is untouched; this is styling only, same as
   every other section in this file. */
.auth-body { background: #696969; }

.auth-topbar {
  background: #000;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-topbar-brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: #fff;
}
.auth-topbar-nav {
  display: flex;
  gap: 20px;
}
.auth-topbar-link {
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.auth-topbar-link:hover,
.auth-topbar-link:focus { color: #fff; opacity: .85; }
.auth-topbar-link.active { border-bottom-color: #fff; }

.auth-page { display: flex; justify-content: center; }
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--light);
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px 24px;
}
.auth-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 18px;
  text-align: center;
  color: var(--dark);
}
.auth-switch-link {
  margin: 18px 0 0;
  font-size: .9rem;
  text-align: center;
  color: var(--dark);
}
.auth-switch-link a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-switch-link a:hover,
.auth-switch-link a:focus { text-decoration: underline; }

.pd-cart-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
}
.pd-cart-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 2px; }
.pd-cart-product { font-size: .85rem; color: #777; margin: 0 0 16px; }

.pd-cart-contact-note {
  font-size: .8rem;
  color: #666;
  background: var(--gray);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.pd-cart-input {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: .9rem;
  font-family: inherit;
}
.pd-cart-input:focus { outline: 0; border-color: var(--primary); }

/* Country-code + phone number pair (Add to Cart popup, checkout, catalog
   request) — dial code select sits beside the number input, same height. */
.pd-phone-row {
  display: flex;
  gap: 8px;
}
.pd-dial-select {
  flex: 0 0 auto;
  width: auto;
  max-width: 132px;
  background: #fff;
  cursor: pointer;
}
.pd-phone-row .pd-cart-input:not(.pd-dial-select) {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 420px) {
  .pd-dial-select { max-width: 108px; font-size: .82rem; padding-left: .5rem; padding-right: .3rem; }
}

.pd-cart-error {
  min-height: 18px;
  margin: 4px 0 10px;
  font-size: .8rem;
  color: #cf0007;
}
.pd-cart-submit { width: 100%; margin-top: 4px; }

/* ---------- 23. Guest name / logout in navbar (header.php) ---------- */
.nav-item-guest {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-guest-name {
  font-weight: 600;
  padding-right: 0 !important;
}
.nav-logout {
  font-size: .8rem;
  color: #888;
  text-decoration: underline;
}
.nav-logout:hover,
.nav-logout:focus { color: var(--primary); }
@media (min-width: 992px) {
  .nav-item-guest { padding: 0 1rem; }
}

/* ---------- 24. Cart popup validation state ---------- */
.pd-cart-input.pd-input-error {
  border-color: #cf0007;
  background: #fff5f5;
}

/* ---------- 25. Cart page (user_cart.php) ---------- */
.cart-page { max-width: 960px; }

.cart-empty {
  text-align: center;
  padding: 50px 20px;
  color: #777;
}
.cart-empty p { margin-bottom: 16px; font-size: 1rem; }

.cart-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid #eee;
  border-radius: 10px;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.cart-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--gray);
  font-size: .78rem;
  text-transform: uppercase;
  color: #777;
  white-space: nowrap;
}
.cart-table td {
  padding: 10px 12px;
  border-top: 1px solid #f0f0f0;
  vertical-align: middle;
}
.cart-prod-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}
.cart-prod-cell img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: var(--gray);
  border-radius: 6px;
  padding: 4px;
}
.cart-prod-cell span { font-weight: 600; }

.cart-qty-stepper { width: 110px; }
.cart-qty-stepper input { width: 36px; }

.cart-remove-btn {
  border: 0;
  background: none;
  color: #cf0007;
  cursor: pointer;
  padding: 4px;
}
.cart-remove-btn svg { width: 18px; height: 18px; stroke: currentColor; }

.cart-summary {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
  font-size: 1.1rem;
}
.cart-summary strong { font-size: 1.3rem; color: var(--dark); }

.cart-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}
.cart-actions .pd-btn { flex: none; min-width: 160px; text-align: center; }


/* ---------- 27. Checkout & payment pages (checkout.php, user_payment.php) ---------- */
.checkout-page, .payment-page { max-width: 900px; }

.checkout-errors {
  background: #fff5f5;
  border: 1px solid #f3b4b4;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.checkout-errors p { margin: 2px 0; font-size: .85rem; color: #cf0007; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .checkout-grid { grid-template-columns: 1.3fr 1fr; }
}

.checkout-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.checkout-form textarea.pd-cart-input { resize: vertical; }
.checkout-submit { width: 100%; margin-top: 10px; }

.checkout-summary {
  background: var(--gray);
  border-radius: 10px;
  padding: 18px;
  align-self: start;
}
.checkout-items {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.checkout-items li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: .85rem;
}
.checkout-item-name small { color: #888; font-weight: 400; }
.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 8px;
  font-size: 1rem;
}
.checkout-total strong { font-size: 1.2rem; }

/* Payment / thank-you page */
.payment-success {
  text-align: center;
  padding: 30px 16px;
  background: var(--gray);
  border-radius: 12px;
  margin-bottom: 24px;
}
.payment-success svg { width: 52px; height: 52px; stroke: #1a7f37; margin-bottom: 10px; }
.payment-success h1 { font-size: 1.3rem; margin-bottom: 6px; }
.payment-success p { font-size: .9rem; color: #555; margin: 4px 0; }
.payment-note { margin-bottom: 18px !important; }
.payment-whatsapp-btn { display: inline-flex; max-width: 320px; margin: 0 auto; }
.payment-continue {
  display: block;
  margin-top: 14px;
  font-size: .85rem;
  color: #777;
  text-decoration: underline;
}
.payment-address {
  margin-top: 10px;
  font-size: .82rem;
  color: #666;
}

/* ---------- 28. Fee breakdown + Assurance popup (user_cart.php) ---------- */
.cart-summary-breakdown {
  flex-direction: column;
  align-items: stretch;
  background: var(--gray);
  border-radius: 10px;
  padding: 16px 18px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
  padding: 4px 0;
}
.cart-summary-row span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cart-summary-total {
  border-top: 1px solid #ddd;
  margin-top: 6px;
  padding-top: 10px;
  font-size: 1rem;
}
.cart-summary-total strong { font-size: 1.25rem; }

.cart-info-btn {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #999;
  background: none;
  color: #777;
  font-size: .68rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.cart-info-btn:hover { border-color: var(--primary); color: var(--primary); }

.cart-info-box {
  display: none;
  background: var(--light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 8px 0;
}
.cart-info-box.open { display: block; }
.cart-info-box p { margin: 0 0 8px; font-size: .8rem; color: #555; line-height: 1.5; }
.cart-info-box p:last-child { margin-bottom: 0; font-style: italic; color: #777; }

.cart-fee-nudge {
  font-size: .78rem;
  color: var(--primary);
  background: rgba(44, 168, 255, .08);
  border-radius: 6px;
  padding: 7px 10px;
  margin: 4px 0 8px;
}
.cart-transport-note {
  font-size: .78rem;
  color: #888;
  margin: 6px 0 0;
  text-align: right;
}

/* Assurance popup */
.cart-assurance-box { text-align: center; max-width: 380px; }
.cart-assurance-icon { margin-bottom: 10px; }
.cart-assurance-icon svg {
  width: 44px;
  height: 44px;
  stroke: var(--primary);
}
.cart-assurance-text {
  font-size: .85rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 18px;
}
.cart-assurance-yes {
  display: block;
  width: 100%;
  padding: .7rem 1rem;
  margin-bottom: 10px;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 700;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
}
.cart-assurance-yes:hover,
.cart-assurance-yes:focus { color: var(--primary-text); text-decoration: none; filter: brightness(0.95); }
.cart-assurance-yes small { font-weight: 600; opacity: .85; }
.cart-assurance-no {
  display: block;
  font-size: .85rem;
  color: #888;
  text-decoration: underline;
}
.cart-assurance-no:hover,
.cart-assurance-no:focus { color: #666; }

/* ---------- 29. Checkout assurance badge (checkout.php) ---------- */
.checkout-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.checkout-assurance-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(44, 168, 255, .12);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  border-radius: 999px;
}
.checkout-assurance-badge svg { width: 13px; height: 13px; stroke: var(--primary); }

/* ---------- 30. Full-page category hero (products.php only) ---------- */
.category-page-hero {
  padding: 10px 0 40px;
  background: linear-gradient(180deg, rgba(44, 168, 255, .06), transparent 220px);
}
.category-page-hero .category-panel {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}
.category-page-hero .section-heading {
  font-size: 1.9rem;
  padding: 22px 20px;
}
.category-page-hero .section-heading svg {
  width: 36px;
  height: 36px;
}
.category-page-hero .category-grid {
  padding: 32px 20px 36px;
}
.category-page-hero .category-thumb {
  width: 120px;
  height: 120px;
  border-width: 3px;
}
.category-page-hero .category-label {
  font-size: .95rem;
  margin-top: 2px;
}
@media (min-width: 768px) {
  .category-page-hero .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    max-width: 820px;
  }
  .category-page-hero .category-thumb {
    width: 160px;
    height: 160px;
  }
}
.category-page-hero .category-item:hover .category-thumb {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 18px rgba(44, 168, 255, .25);
}

/* ---------- 31. Single shop page (Shopkepper_cat.php) ---------- */

/* Banner: the photo only, nothing written on top of it. A fixed aspect
   ratio keeps the layout stable across very wide or very narrow uploads;
   object-fit:cover crops rather than distorts. If a shop hasn't uploaded
   a cover photo yet, it's just an empty gray strip — no broken-image icon. */
.shop-hero-banner {
  width: 100%;
  aspect-ratio: 4 / 1;
  background: var(--gray);
  overflow: hidden;
}
.shop-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 576px) {
  .shop-hero-banner { aspect-ratio: 2 / 1; }
}

/* Name / category / description / follow button live in a card that
   floats up over the bottom of the banner — a shop's own signboard
   mounted over its shutter, not just a plain strip of text under a
   photo. The brand gradient rail along the top ties it back to the
   same accent used on shop/product cards elsewhere on the site. */
.shop-header-wrap {
  background: var(--light);
}
.shop-header-info {
  position: relative;
  margin-top: -34px;
  padding: 20px 22px 16px;
  background: var(--light);
  border-radius: 18px 18px 10px 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
  z-index: 2;
}
.shop-header-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: var(--card-accent-grad);
}
.shop-header-name {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--dark);
  margin: 6px 0 0;
}
/* Pill, same treatment as .shop-category on the shop listing cards, so a
   shop looks consistent whether you're browsing it in a grid or on its
   own page. */
.shop-header-category {
  display: inline-block;
  margin: 6px 0 0;
  padding: 3px 11px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(44, 168, 255, .12);
  border-radius: 999px;
}
/* Capped to a character length in PHP so the signboard stays scannable —
   "Read more" swaps in the full text in place, no reload. */
.shop-header-desc {
  margin: 10px 0 0;
  font-size: .88rem;
  line-height: 1.55;
  color: #555;
}
.shop-desc-hidden { display: none; }
.shop-desc-toggle {
  display: inline;
  margin-left: 2px;
  border: 0;
  background: none;
  padding: 0;
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}
.shop-desc-toggle:hover,
.shop-desc-toggle:focus { text-decoration: underline; }
@media (max-width: 576px) {
  .shop-header-info {
    margin-top: -22px;
    padding: 16px 16px 14px;
    border-radius: 14px 14px 8px 8px;
  }
  .shop-header-name { font-size: 1.35rem; }
}

/* "Follow this shop" — bell + count, same interaction pattern as a
   familiar subscribe button: solid pill when not following, flips to a
   muted "already following" pill once tapped. */
.shop-sub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.shop-sub-count {
  color: #777;
  font-size: .8rem;
  font-weight: 600;
}
.shop-sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .4rem .95rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.shop-sub-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
}
.shop-sub-btn:disabled { opacity: .6; cursor: default; }
.shop-sub-btn-active {
  background: var(--gray);
  color: var(--dark);
}
.shop-sub-btn-active svg { fill: currentColor; }

.shop-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* Small count badge inside a category/subcategory pill, e.g. the "8" in
   "Women's Fashion (8)" */
.pd-pill-count {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  font-size: .75rem;
  font-weight: 700;
}
.pd-pill.active .pd-pill-count {
  background: rgba(255,255,255,.3);
}

/* Subcategory row — hidden until its parent category pill is clicked */
.shop-subcat-row {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--gray);
  border-radius: 10px;
}
.pd-pill-sub {
  padding: .3rem .75rem;
  font-size: .8rem;
}

/* ---------- Shop's own navbar (Shopkepper_cat.php) ----------
   Flat and thin on purpose: a plain strip of text links with a hairline
   border, no card shadow, no button-style active state — the shop's own
   page shouldn't look like another layer of platform chrome stacked on
   top of the real site navbar. Active link gets a thin underline only.
   Pins directly under the site navbar once scrolled past the hero, so it
   never scrolls out of reach. --navbar-height is set by JS to the real
   rendered navbar height, so this never overlaps it even if the navbar
   wraps to two lines on a small screen. */
.shop-navbar {
  position: sticky;
  top: var(--navbar-height, 56px);
  z-index: 1020; /* just under .site-header's 1030, so the navbar always wins */
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-top: 12px;
}
.shop-navbar-inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.shop-nav-link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #777;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.shop-nav-link:hover,
.shop-nav-link:focus {
  color: var(--dark);
  text-decoration: none;
}
.shop-nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Full label by default; the short one is swapped in on narrow screens
   below instead of the strip scrolling — scrolling is how "Catalog
   Request" ended up hidden off-screen on a phone in the first place. */
.shop-nav-short { display: none; }

/* On a phone, every link gets an equal share of the strip's width (flex:1)
   and a short label ("Info" / "Reviews" / "Catalog") so all four tabs are
   visible and tappable at once — no swipe needed to reach the one that
   matters most for the business (Catalog Request). */
@media (max-width: 480px) {
  .shop-navbar-inner { gap: 0; }
  .shop-nav-link {
    flex: 1 1 0;
    padding: 10px 4px;
    font-size: .7rem;
    letter-spacing: 0;
  }
  .shop-nav-full { display: none; }
  .shop-nav-short { display: inline; }
}

/* ---------- Pic & Reviews tab ---------- */
.shop-photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.shop-photo-gallery img {
  width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.shop-reviews-placeholder {
  margin-top: 10px;
  padding: 24px 16px;
  background: var(--gray);
  border-radius: 10px;
}

/* Little tactile pulse on a pill when it's clicked */
@keyframes pdPillPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.pd-pill-pulse {
  animation: pdPillPulse .3s ease;
}

/* Product cards fade + rise in whenever the filtered/sorted set changes */
@keyframes shopItemIn {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.shop-anim-in {
  animation: shopItemIn .35s ease both;
}

/* ---------- Price range + sort bar, sits just above the product grid ---------- */
.shop-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: flex-end;
  background: var(--gray);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
}
.shop-filter-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 8px;
}
.shop-price-filter { flex: 1 1 240px; min-width: 220px; }
.shop-sort-filter { flex: 0 0 200px; }
.shop-sort-filter select { cursor: pointer; }

/* Dual-handle price slider: two native <input type="range"> stacked on
   top of each other, each with a transparent track and only its thumb
   clickable, over a shared visual track + a highlighted "selected" fill. */
.shop-range-slider {
  position: relative;
  height: 26px;
}
.shop-range-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: #ddd;
  border-radius: 999px;
  transform: translateY(-50%);
}
.shop-range-fill {
  position: absolute;
  top: 50%;
  height: 4px;
  background: var(--primary);
  border-radius: 999px;
  transform: translateY(-50%);
}
.shop-range-slider input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 26px;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.shop-range-slider input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
  height: 26px;
}
.shop-range-slider input[type="range"]::-moz-range-track {
  background: transparent;
  height: 26px;
}
.shop-range-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  cursor: pointer;
  margin-top: 4px;
}
.shop-range-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  cursor: pointer;
}
.shop-range-values {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 6px;
}

.tab-content { padding-top: 20px; }

.shop-about-card {
  max-width: 560px;
  background: var(--gray);
  border-radius: 10px;
  padding: 20px;
}
.shop-about-card h2 { font-size: 1.2rem; margin-bottom: 14px; }
.shop-about-list { list-style: none; margin: 0; padding: 0; }
.shop-about-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: .9rem;
}
.shop-about-list li span { font-weight: 700; color: #777; }

.shop-catalog-form {
  max-width: 500px;
  background: var(--gray);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.shop-catalog-form h2 { font-size: 1.1rem; margin-bottom: 6px; }
.shop-catalog-form p { font-size: .85rem; color: #666; margin-bottom: 16px; }

/* ---------- 32. City-wise marketplace (citywise.php) ---------- */
.city-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 20px 10px 8px;
}
.city-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  text-decoration: none;
  width: 92px;
}
.city-item:hover,
.city-item:focus { color: var(--dark); text-decoration: none; }
.city-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  /* Deliberately var(--dark) (#222), not var(--primary) — keeps these
     circles visually distinct from the navy section-heading bars above
     them on the same page, rather than blending into one same-color block. */
  background: var(--dark);
  transition: transform .15s ease, box-shadow .15s ease;
}
.city-circle svg {
  width: 34px;
  height: 34px;
  stroke: var(--light);
}
.city-item:hover .city-circle {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(34, 34, 34, .3);
}
.city-label {
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
}
.city-count {
  font-size: .72rem;
  color: #888;
  text-align: center;
}

.citywise-page { max-width: 980px; }
.citywise-intro {
  color: #666;
  font-size: .92rem;
  margin: -4px 0 6px;
}

/* shop-card-meta: small city tag shown on a shop card only when the grid
   isn't already filtered to one city (Shops.php with no ?value=) */
.shop-card-meta {
  display: inline-block;
  margin-left: 6px;
  font-size: .72rem;
  color: #999;
}

/* ---------- 35. All Products catalog (all_products.php) ---------- */
.all-products-page { max-width: 1200px; }
.all-products-count {
  color: #777;
  font-size: .85rem;
  margin: 8px 2px 14px;
}

/* Hero banner — this is the busiest page on the site (every "View all"
   on the whole site lands here eventually), so it gets its own proper
   header instead of the plain .section-heading strip. */
.all-products-hero {
  background: var(--header-bg);
  padding: 34px 0 30px;
  text-align: center;
  border-radius: 0 0 18px 18px;
  margin-bottom: 18px;
}
.all-products-hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.all-products-hero-sub {
  color: #333;
  font-size: .95rem;
  max-width: 520px;
  margin: 0 auto 14px;
}
.all-products-hero-count {
  display: inline-block;
  background: rgba(255, 255, 255, .85);
  color: var(--primary-text);
  font-weight: 700;
  font-size: .82rem;
  padding: 5px 16px;
  border-radius: 999px;
}
@media (max-width: 480px) {
  .all-products-hero { padding: 26px 0 22px; }
  .all-products-hero-title { font-size: 1.6rem; }
}
.all-products-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary-text);
  text-decoration: none;
  border-bottom: 1.5px solid var(--primary-text);
  padding-bottom: 1px;
}
.all-products-hero-link:hover,
.all-products-hero-link:focus { color: var(--primary-text); text-decoration: none; }
.all-products-hero-link svg { width: 16px; height: 16px; }

/* Sticky filter bar — stays reachable while scrolling a long catalog
   instead of needing a trip back to the top on every adjustment. Same
   sticky offset convention as .shop-navbar (just under the site header). */
.all-products-filter-bar {
  position: sticky;
  top: var(--navbar-height, 56px);
  z-index: 1015;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

/* "Load more" — a deliberate manual action rather than infinite scroll,
   so the grid never grows out of control on its own and the person
   always knows exactly how much more is on this page. */
.all-products-load-more {
  display: inline-flex;
  min-width: 180px;
  background: var(--primary);
  color: var(--primary-text);
}
.all-products-load-more:hover { filter: brightness(0.95); }
.all-products-load-more:disabled { opacity: .6; cursor: default; }

/* Loading skeleton — shown in place of the grid while a filter/sort/
   Load-more request is in flight, so the page never looks like it just
   went blank while waiting on the network. */
.all-product-skeleton-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eee;
  padding-bottom: 10px;
}
.all-product-skeleton-img,
.all-product-skeleton-line {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
  animation: all-products-shimmer 1.4s ease infinite;
}
.all-product-skeleton-img { width: 100%; aspect-ratio: 1 / 1; }
.all-product-skeleton-line {
  height: 11px;
  margin: 8px 10px 0;
  border-radius: 4px;
}
@keyframes all-products-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------- 34. Post Requirement page (post_requirement.php) ---------- */
.post-req-page { max-width: 980px; }

.post-req-hero {
  padding: 8px 0 22px;
}
.post-req-hero-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--dark);
  margin: 0 0 8px;
}
.post-req-hero-sub {
  font-size: .95rem;
  line-height: 1.6;
  color: #555;
  max-width: 640px;
  margin: 0;
}

/* Info column (how it works + trust points) sits above the form on
   mobile (source order already puts it first) and beside it on wider
   screens — the form is the main event, so it gets the wider column. */
.post-req-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 900px) {
  .post-req-layout { grid-template-columns: .85fr 1.15fr; }
}

.post-req-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.post-req-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-req-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--light);
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px;
}
.post-req-step-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 700;
  font-size: .8rem;
}
.post-req-step strong {
  display: block;
  font-size: .9rem;
  margin-bottom: 2px;
}
.post-req-step p {
  margin: 0;
  font-size: .8rem;
  color: #777;
  line-height: 1.45;
}

.post-req-trust {
  background: var(--light);
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 18px;
}
.post-req-trust h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.post-req-trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-req-trust li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  font-size: .84rem;
  color: #555;
  border-top: 1px solid #f0f0f0;
}
.post-req-trust li:first-child { border-top: 0; }
.post-req-trust svg {
  flex: none;
  width: 15px;
  height: 15px;
  stroke: #1a7f37;
  margin-top: 2px;
}

/* The form itself — sectioned (What / Delivery & timing / Contact) rather
   than one long undifferentiated stack of fields, same reason a proper
   enquiry form on a serious B2B site is broken into stages instead of
   dumped as 10 inputs in a row. */
.post-req-form {
  background: var(--gray);
  border-radius: 14px;
  padding: 22px 20px;
}
.post-req-form textarea.pd-cart-input { resize: vertical; }
.post-req-section + .post-req-section { margin-top: 22px; }
.post-req-section-title {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e3ddd0;
}
.post-req-submit { width: 100%; margin-top: 4px; }

/* ---------- 33. Search results page (index_search.php) ---------- */
.search-page { max-width: 1000px; }
.search-page-bar {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 10px;
}
.search-page-bar .pd-cart-input { flex: 1; }
.search-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}
.search-empty a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

/* ===== Vendor dashboard (admin_index.php) ===== */
body.vdash-body { padding-bottom: 68px; background: #f5f6f8; }

/* Topbar height is untouched on purpose — only visual polish below, same padding/line-height as before. */
.vdash-topbar {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  flex-wrap: wrap;
  gap: .5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.vdash-shopname {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55vw;
  letter-spacing: -.01em;
}
.vdash-nav { display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }
.vdash-nav a {
  position: relative;
  color: #555;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  padding: .2rem 0;
  transition: color .15s ease;
}
.vdash-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .15s ease;
}
.vdash-nav a.active, .vdash-nav a:hover { color: var(--primary); }
.vdash-nav a.active::after, .vdash-nav a:hover::after { transform: scaleX(1); }
.vdash-nav-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e3362b;
  margin-left: 4px;
  vertical-align: top;
}
.vdash-nav a.vdash-logout {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: #b5392f;
  margin-left: .35rem;
  padding-left: 1.1rem;
  border-left: 1px solid #e9ecef;
}
.vdash-nav a.vdash-logout:hover { color: #8e241c; }
.vdash-nav a.vdash-logout::after { display: none; }
.vdash-nav a.vdash-logout svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.vdash-mini-list { list-style: none; padding: 0; margin: 0; }
.vdash-mini-list li { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; border-bottom: 1px solid #f0f0f0; font-size: .85rem; }
.vdash-mini-list li:last-child { border-bottom: none; }
.vdash-mini-rank { font-weight: 700; color: var(--primary); margin-right: .4rem; }
.vdash-mini-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: .5rem; }
.vdash-mini-thumb {
  width: 26px; height: 26px; object-fit: cover; border-radius: 6px;
  vertical-align: middle; margin-right: .4rem; flex: none;
  border: 1px solid #eee;
}
.vdash-mini-empty { color: #888; font-size: .85rem; padding: .5rem 0; }

.vdash-section-title { font-weight: 700; margin: 1.4rem 1rem .6rem; font-size: 1rem; color: var(--dark); letter-spacing: -.01em; }
.vdash-product-list { background: #fff; margin: 0 1rem; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.vdash-product-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .9rem; border-bottom: 1px solid #f0f0f0;
  text-decoration: none; color: inherit;
  transition: background .12s ease;
}
.vdash-product-row:last-child { border-bottom: none; }
.vdash-product-row:hover { background: #fafbfc; }
.vdash-product-row img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #f0f0f0; }
.vdash-product-info { flex: 1; min-width: 0; }
.vdash-product-name { font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dark); }
.vdash-product-meta { font-size: .8rem; color: #777; display: flex; flex-wrap: wrap; gap: .4rem .7rem; margin-top: 2px; }
.vdash-product-price { font-weight: 700; color: var(--dark); }
.vdash-show-more {
  display: block; margin: .8rem 1rem 1rem; text-align: center;
  padding: .7rem; border-radius: 12px; background: #fff; color: var(--dark);
  text-decoration: none; font-weight: 600; font-size: .9rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: color .15s ease, box-shadow .15s ease;
}
.vdash-show-more:hover { color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.09); }

.vdash-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid #e9ecef;
  display: flex; justify-content: space-around; padding: .5rem 0 .4rem;
  z-index: 30;
  box-shadow: 0 -1px 4px rgba(0,0,0,.04);
}
.vdash-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .62rem; background: #000 ;color: #ffffff; text-decoration: none; flex: 1; transition: color .15s ease; }
.vdash-bottom-nav a.active, .vdash-bottom-nav a:hover { color: var(--primary); }
.vdash-bottom-nav svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ===== Vendor dashboard v2 — stacked insight sections (replaces carousel) ===== */
.vdash-insight-stack { display: flex; flex-direction: column; gap: .8rem; margin: 1rem; }
.vdash-insight-card {
  background: #fff; border-radius: 14px; padding: 1rem 1.1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); text-decoration: none; color: inherit; display: block;
  border: 1px solid #f0f1f3;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.vdash-insight-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transform: translateY(-1px);
  border-color: #e4e6ea;
}
.vdash-insight-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .55rem; }
.vdash-insight-title { font-weight: 700; font-size: .92rem; color: var(--dark); letter-spacing: -.01em; }
.vdash-insight-arrow { color: #b5b9c0; font-size: 1.1rem; transition: transform .15s ease, color .15s ease; }
.vdash-insight-card:hover .vdash-insight-arrow { color: var(--primary); transform: translateX(2px); }
.vdash-insight-body { font-size: .82rem; color: #777; }
.vdash-insight-stat { font-size: 1.5rem; font-weight: 700; color: var(--dark); line-height: 1; letter-spacing: -.01em; }

.vdash-linechart { width: 100%; height: 70px; display: block; }
.vdash-linechart path.vdash-line { fill: none; stroke: var(--primary); stroke-width: 2; }
.vdash-linechart path.vdash-area { fill: var(--primary); opacity: .08; stroke: none; }
.vdash-linechart circle { fill: var(--primary); }

/* Each metric gets its own color instead of every chart being the same
   blue — reusing colors already established elsewhere in the dashboard
   (revenue=green matches vdash-stat-revenue, orders=brand orange, store
   views=purple matches the "shipped" status color, followers=brand pink)
   so a metric means the same color everywhere it appears, not a new
   palette invented just for charts. */
.vdash-linechart-blue path.vdash-line   { stroke: #2ca8ff; }
.vdash-linechart-blue path.vdash-area   { fill: #2ca8ff; }
.vdash-linechart-blue circle            { fill: #2ca8ff; }
.vdash-linechart-green path.vdash-line  { stroke: #1f8a4c; }
.vdash-linechart-green path.vdash-area  { fill: #1f8a4c; }
.vdash-linechart-green circle           { fill: #1f8a4c; }
.vdash-linechart-orange path.vdash-line { stroke: #ed6d2e; }
.vdash-linechart-orange path.vdash-area { fill: #ed6d2e; }
.vdash-linechart-orange circle          { fill: #ed6d2e; }
.vdash-linechart-purple path.vdash-line { stroke: #5a35b5; }
.vdash-linechart-purple path.vdash-area { fill: #5a35b5; }
.vdash-linechart-purple circle          { fill: #5a35b5; }
.vdash-linechart-pink path.vdash-line   { stroke: #dd0152; }
.vdash-linechart-pink path.vdash-area   { fill: #dd0152; }
.vdash-linechart-pink circle            { fill: #dd0152; }

/* Live/last-visitor badge (admin_analytics.php's Store views card,
   admin_product_details.php's header) */
.vdash-live-row { display: flex; align-items: center; gap: .4rem; margin: .3rem 0 .4rem; }
.vdash-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1f8a4c;
  flex: 0 0 auto;
  animation: vdashLivePulse 1.6s ease-in-out infinite;
}
@keyframes vdashLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31,138,76,.4); }
  50% { box-shadow: 0 0 0 4px rgba(31,138,76,0); }
}
.vdash-live-text { font-size: .8rem; font-weight: 600; color: #1f8a4c; }
.vdash-live-text-muted { font-weight: 500; color: #8a8378; }

/* ===== Vendor dashboard forms (admin_add_product.php and friends) ===== */
.vdash-form-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid #f0f1f3;
  max-width: 560px;
  margin: 0 auto;
}
.vdash-form-title { font-size: 1.15rem; font-weight: 700; color: var(--dark); letter-spacing: -.01em; margin: 0 0 1rem; }
.vdash-form-success {
  background: #eaf7ee; color: #1e7a37; border: 1px solid #cdedd6;
  border-radius: 10px; padding: .7rem .9rem; font-size: .88rem; margin-bottom: 1rem;
}
.vdash-form-success a { color: #1e7a37; text-decoration: underline; font-weight: 600; }
.vdash-form-errors {
  background: #fbeceb; color: #b5392f; border: 1px solid #f3cfcc;
  border-radius: 10px; padding: .7rem .9rem; font-size: .88rem; margin-bottom: 1rem;
}
.vdash-field-error { color: #b5392f; font-size: .78rem; margin-top: .3rem; }

.vdash-size-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.vdash-size-row .pd-cart-input { margin-bottom: 0; }
.vdash-size-row input[name="size[]"] { flex: 1.1; }
.vdash-size-row input[name="size_qty[]"] { flex: 1; }
.vdash-size-remove {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  background: #fff;
  color: #b5392f;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.vdash-size-remove:hover { background: #fbeceb; border-color: #f3cfcc; }
.vdash-add-size {
  display: inline-block;
  margin-top: .15rem;
  padding: .5rem .9rem;
  border-radius: 8px;
  border: 1px dashed #c9cdd3;
  background: #fafbfc;
  color: var(--primary);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.vdash-add-size:hover { background: #f0f3ff; border-color: var(--primary); }

/* Colour-variant builder (admin_add_product.php / admin_product_details.php)
   — one card per colour: colour name + sets-qty on top, a wrapped row of
   size tick-boxes below, then a live piece-count hint. */
.vdash-variant-legacy-note {
  font-size: .82rem; line-height: 1.6; color: #6b7280;
  background: #f8f9fb; border: 1px dashed #d8dce3; border-radius: 10px;
  padding: .7rem .9rem; margin-bottom: .9rem;
}
.vdash-variant-help {
  font-size: .82rem; color: #6b7280; line-height: 1.5;
  margin: -.2rem 0 .8rem;
}
.vdash-variant-row {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: .8rem .9rem;
  margin-bottom: .7rem;
  background: #fafbfc;
}
.vdash-variant-row-top {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .6rem;
}
.vdash-variant-row-top { align-items: flex-end; flex-wrap: wrap; }
.vdash-variant-row-top .pd-cart-input { margin-bottom: 0; }
.vdash-variant-field { flex: 1.1 1 140px; display: flex; flex-direction: column; gap: .25rem; }
.vdash-variant-field-qty { flex: .8 1 100px; }
.vdash-variant-field-label {
  font-size: .72rem; font-weight: 600; color: #6b7280;
  text-transform: uppercase; letter-spacing: .02em;
}

/* Sizes "tag chips" input — typed sizes become small removable pills
   instead of one run-on comma string. */
.vdash-tags-input {
  border: 1px solid #ced4da; border-radius: 8px; background: #fff;
  padding: .3rem .4rem; cursor: text; min-height: 2.5rem;
  display: flex; align-items: center;
}
.vdash-tags-chips { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; width: 100%; }
.vdash-tag-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #eef1ff; color: var(--primary); border-radius: 6px;
  padding: .2rem .55rem; font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.vdash-tag-remove {
  border: none; background: none; color: var(--primary); cursor: pointer;
  font-size: .95rem; line-height: 1; padding: 0;
}
.vdash-tags-typer {
  border: none; outline: none; flex: 1 1 70px; min-width: 70px;
  font-size: .85rem; padding: .2rem;
}
.vdash-variant-row-top > .vdash-size-remove { margin-bottom: 1px; }
.vdash-variant-hint {
  font-size: .78rem;
  color: var(--primary);
  font-weight: 600;
}

/* Panel-sectioned forms (admin_add_product.php) — several stacked cards
   instead of one long card, each one topic (Product info / Media /
   Organization / Pricing / Variants). */
.vdash-panel-stack { display: flex; flex-direction: column; gap: .9rem; max-width: 560px; margin: 0 auto; }
.vdash-panel {
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid #f0f1f3;
}
.vdash-panel-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -.01em;
  margin: 0 0 .85rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #f0f1f3;
}

/* Media dropzone (admin_add_product.php) — click or drag-and-drop photo
   upload with a removable thumbnail grid, replacing the old fixed
   Picture 1/2/3 fields. */
.vdash-media-drop {
  border: 1.5px dashed #c9cdd3;
  border-radius: 12px;
  background: #fafbfc;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.vdash-media-drop:hover, .vdash-media-drop.vdash-media-drop-over {
  border-color: var(--primary);
  background: #f5f7ff;
}
.vdash-media-drop-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  color: #888;
  pointer-events: none;
}
.vdash-media-drop-label svg { color: #b5b9c0; }
.vdash-media-drop-label span { font-weight: 600; color: var(--dark); font-size: .92rem; }
.vdash-media-drop-label small { font-size: .76rem; color: #999; max-width: 320px; }

.vdash-media-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: .6rem;
  margin-top: .8rem;
}
.vdash-media-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid #e9ecef;
}
.vdash-media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vdash-media-primary {
  position: absolute; left: 4px; bottom: 4px;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: .62rem; font-weight: 600;
  padding: 1px 6px; border-radius: 6px;
}
.vdash-media-remove {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px;
  border: none; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: .85rem; line-height: 1;
  cursor: pointer;
}
.vdash-media-remove:hover { background: #b5392f; }

/* My catalog (admin_products.php) */
.vdash-catalog-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.vdash-catalog-filter-actions { display: flex; align-items: center; gap: .75rem; }
.vdash-catalog-filter-actions .pd-btn { white-space: nowrap; }
.vdash-catalog-clear { font-size: .85rem; color: #888; text-decoration: underline; }
.vdash-catalog-clear:hover { color: var(--primary); }

.vdash-catalog-count {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  font-size: 0.84rem;
  color: #0f172a;
  margin: 0.25rem 0.2rem 0 !important;
  padding: 8px 16px;
  border-radius: 999px; /* Change to 10px for a soft rectangular bar */
  border: 2px solid transparent;

  /* Crisp surface + Green-to-Light-Blue gradient border */
  background:
    linear-gradient(#f8fafc, #f0fdf4) padding-box,
    linear-gradient(120deg, #10b981 0%, #38bdf8 55%, #7dd3fc 100%) border-box;

  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.14), 0 2px 6px rgba(56, 189, 248, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vdash-catalog-count:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.22), 0 3px 10px rgba(56, 189, 248, 0.24);
}

.vdash-catalog-count b {
  color: #059669;
  font-weight: 700;
}

.vdash-catalog-count a {
  color: var(--primary, #0284c7);
  font-weight: 600;
  text-decoration: none;
}

.vdash-catalog-count a:hover {
  text-decoration: underline;
  color: #0369a1;
}


/* Catalog pages get more breathing room than the narrow 560px form
   panels — a grid of product photos needs it, a search bar doesn't mind
   it. */
.vdash-panel-stack-wide { max-width: 1040px; }

/* Catalog grid — deliberately mirrors the real buyer-facing .product-card
   (same 1:1 image box, same name/price layout) so a vendor looking at
   "My catalog" is looking at something close to what a buyer actually
   sees, with vendor-only info (stock, views, an Edit affordance) layered
   on top rather than replacing it. */
.vdash-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.vdash-catalog-card {
  display: block;
  background: #fff;
  border: 1px solid #f0f1f3;
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .15s ease, transform .15s ease;
}
.vdash-catalog-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
  transform: translateY(-2px);
  color: inherit;
}
.vdash-catalog-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f5f6f8;
  overflow: hidden;
}
.vdash-catalog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.vdash-catalog-card:hover .vdash-catalog-card-img img { transform: scale(1.04); }

.vdash-catalog-cat-badge {
  position: absolute; left: .5rem; top: .5rem;
  background: rgba(255,255,255,.92); color: var(--primary);
  font-size: .64rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  white-space: nowrap; max-width: 75%; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.vdash-catalog-stock-flag {
  position: absolute; right: .5rem; top: .5rem;
  font-size: .64rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  color: #fff;
}
.vdash-catalog-stock-out { background: #b5392f; }
.vdash-catalog-stock-low { background: #b8860b; }

.vdash-catalog-edit-hint {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: .4rem 0;
  font-size: .72rem; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
}
.vdash-catalog-card:hover .vdash-catalog-edit-hint,
.vdash-catalog-card:focus .vdash-catalog-edit-hint { opacity: 1; transform: translateY(0); }

.vdash-catalog-card-body { padding: .65rem .75rem .8rem; }
.vdash-catalog-card-name {
  font-weight: 700; font-size: .88rem; color: var(--dark);
  margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  min-height: 2.2em;
}
.vdash-catalog-card-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.vdash-catalog-card-off { font-size: .74rem; font-weight: 600; color: #1a7f37; }
.vdash-catalog-card-stats { display: flex; gap: .6rem; font-size: .74rem; color: #888; }

/* Send catalog (send_catalog.php) — picker cards reuse .vdash-catalog-card
   exactly (same image box, same body layout) so a vendor recognizes it as
   the same catalog they just saw, just with a checkbox instead of an
   Edit link. */
.vdash-pick-card { cursor: pointer; position: relative; }
.vdash-pick-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.vdash-pick-check {
  position: absolute; right: .5rem; top: .5rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.85);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  transition: background .12s ease, border-color .12s ease;
}
.vdash-pick-check svg { opacity: 0; transition: opacity .12s ease; }
.vdash-pick-checkbox:checked ~ .vdash-catalog-card-img .vdash-pick-check {
  background: var(--primary); border-color: var(--primary);
}
.vdash-pick-checkbox:checked ~ .vdash-catalog-card-img .vdash-pick-check svg { opacity: 1; }
.vdash-pick-checkbox:checked ~ .vdash-catalog-card-img { outline: 2px solid var(--primary); outline-offset: -2px; }

.vdash-share-result { border-color: #d7e8ff; background: #f6faff; }
.vdash-share-link-row { display: flex; gap: .6rem; margin-bottom: .8rem; }
.vdash-share-link-row input { flex: 1; }
.vdash-whatsapp-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #25D366; color: #fff;
  font-weight: 600; font-size: .9rem;
  padding: .6rem 1.1rem; border-radius: 10px;
  text-decoration: none;
  transition: filter .15s ease;
}
.vdash-whatsapp-btn:hover { filter: brightness(.95); color: #fff; }

/* Product edit page (admin_product_details.php) */
.vdash-existing-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid #e9ecef;
  cursor: pointer;
  display: block;
}
.vdash-existing-photo input { position: absolute; opacity: 0; width: 0; height: 0; }
.vdash-existing-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s ease; }
.vdash-existing-photo-overlay {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  background: rgba(181,57,47,.82); color: #fff;
  font-size: .78rem; font-weight: 700;
}
.vdash-existing-photo input:checked ~ img { opacity: .35; }
.vdash-existing-photo input:checked ~ .vdash-existing-photo-overlay { display: flex; }

.vdash-danger-zone { border-color: #f3cfcc; }
.vdash-delete-btn {
  background: #fff;
  border: 1px solid #e3a9a4;
  color: #b5392f;
  font-weight: 600;
  font-size: .88rem;
  padding: .6rem 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.vdash-delete-btn:hover { background: #fbeceb; border-color: #b5392f; }

/* ---- Shared catalog page (share_catalog.php) — its own minimal header
   and footer, deliberately NOT the full site top.php shell. Just the
   shop's name/logo, nothing that points anywhere else on the site. ---- */
.share-catalog-body { background: #f7f5f2; }
.share-header {
  background: #fff;
  border-bottom: 1px solid #ece7e0;
  padding: .9rem 0;
}
.share-header-inner { display: flex; align-items: center; }
.share-header-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #1f1f1f;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.share-header-brand span { line-height: 1.2; }
.share-header-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ece7e0;
}
.share-footer {
  text-align: center;
  padding: 1.6rem 1rem 2.2rem;
  color: #8a8378;
  font-size: .82rem;
}

/* ---- Shared catalog — quick-view + pick (qty/colour) + "send to vendor
   on WhatsApp" bar. The product card itself never navigates anywhere —
   tapping it opens the quick-view right here on the page; Add/qty/colour
   controls live below it on the card. ---- */
.share-pick-card {
  background: #fff;
  border: 1px solid #ece7e0;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.share-pick-card .product-card { border: 0; border-radius: 0; box-shadow: none; }

.share-colour-row {
  display: flex; flex-wrap: wrap; gap: .35rem;
  padding: 0 .7rem .5rem;
}
.share-colour-chip {
  background: #f5f3ee;
  border: 1px solid #e4dfd5;
  border-radius: 999px;
  padding: .2rem .65rem;
  font-size: .74rem;
  color: #5a5447;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.share-colour-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.share-card-footer {
  display: flex; align-items: center; justify-content: center;
  padding: .55rem .7rem .75rem;
  margin-top: auto;
}
.share-add-btn {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: .86rem;
  padding: .45rem .8rem;
  border-radius: 9px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.share-add-btn:hover { background: var(--primary); color: #fff; }
.share-qty-stepper {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--primary);
  border-radius: 9px;
  overflow: hidden;
}
.share-qty-stepper button {
  background: transparent; border: 0; color: #fff;
  font-size: 1.1rem; font-weight: 700;
  width: 38px; height: 34px;
  cursor: pointer;
}
.share-qty-stepper span { color: #fff; font-weight: 700; font-size: .9rem; }

.share-pick-bar {
  position: sticky; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid #ece7e0;
  border-radius: 12px;
  padding: .8rem 1rem;
  margin: .5rem 0 1.5rem;
  box-shadow: 0 -4px 14px rgba(0,0,0,.08);
  z-index: 20;
}
.share-pick-bar span { font-weight: 600; color: #4a443c; font-size: .92rem; }

/* ---- Quick-view modal ---- */
.share-qv-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20,18,14,.55);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.share-qv-overlay.open { display: flex; }
.share-qv-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-wrap: wrap;
}
.share-qv-close {
  position: absolute; top: .6rem; right: .7rem; z-index: 5;
  background: rgba(255,255,255,.9);
  border: 0; border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.share-qv-body { display: flex; flex-wrap: wrap; width: 100%; }
.share-qv-loading { padding: 3rem; text-align: center; color: #8a8378; width: 100%; }

.share-qv-gallery { flex: 1 1 380px; min-width: 300px; background: #f7f5f2; }
.share-qv-main { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.share-qv-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .15s ease;
  cursor: zoom-in;
}
.share-qv-img.active { opacity: 1; }
.share-qv-img.zoomed { object-fit: contain; cursor: zoom-out; background: #fff; }
.share-qv-thumbs { display: flex; gap: .4rem; padding: .6rem; flex-wrap: wrap; }
.share-qv-thumb {
  width: 52px; height: 52px; border-radius: 8px; object-fit: cover;
  cursor: pointer; opacity: .6; border: 2px solid transparent;
}
.share-qv-thumb.active { opacity: 1; border-color: var(--primary); }

.share-qv-info { flex: 1 1 320px; min-width: 280px; padding: 1.3rem 1.4rem 1.6rem; }
.share-qv-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 .4rem; color: #231f16; }
.share-qv-price-row { margin-bottom: .7rem; }
.share-qv-price { font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.share-qv-desc { color: #5a5447; font-size: .9rem; line-height: 1.5; margin-bottom: 1rem; }
.share-qv-field { margin-bottom: .8rem; }
.share-qv-label { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #8a8378; margin-bottom: .3rem; }
.share-qv-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.share-qv-badge {
  background: #f5f3ee; border: 1px solid #e4dfd5; border-radius: 8px;
  padding: .25rem .6rem; font-size: .8rem; color: #4a443c;
}
.share-qv-cta { margin-top: 1.2rem; }

/* ---- catalog_enquiry.php — the "here's what I picked" confirmation
   page a shopper lands on before sending to the vendor on WhatsApp.
   Everything inside .enquiry-summary-card doubles as the content that
   gets turned into the shareable PNG (html2canvas captures this element
   directly), so it's deliberately self-contained — its own white
   background, its own padding — rather than just page content. ---- */
.enquiry-summary-card {
  background: #fff;
  border: 1px solid #ece7e0;
  border-radius: 14px;
  padding: 1.1rem 1.1rem 1rem;
}
.enquiry-summary-head {
  display: flex; align-items: center; gap: .7rem;
  padding-bottom: .8rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid #ece7e0;
}
.enquiry-summary-logo {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; border: 1px solid #ece7e0; flex-shrink: 0;
}
.enquiry-summary-shop { font-weight: 700; font-size: 1rem; color: #231f16; margin: 0; }
.enquiry-summary-sub { font-size: .78rem; color: #8a8378; margin: 0; }
.enquiry-summary-greeting { font-size: .88rem; color: #4a443c; margin: 0 0 .8rem; }
.enquiry-summary-link { font-size: .72rem; color: #8a8378; word-break: break-all; margin: .7rem 0 0; }
.enquiry-summary-footer { text-align: center; font-size: .72rem; color: #b5ac9c; margin: .6rem 0 0; }
.enquiry-item-list { display: flex; flex-direction: column; gap: .7rem; margin: 0 0 1rem; }
.enquiry-item {
  display: flex; align-items: center; gap: .8rem;
  background: #fff;
  border: 1px solid #ece7e0;
  border-radius: 10px;
  padding: .6rem .8rem;
}
.enquiry-item img {
  width: 56px; height: 56px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0;
  background: #f3f1ec;
}
.enquiry-item-name { font-weight: 600; font-size: .92rem; color: #2a2a2a; margin: 0 0 .15rem; }
.enquiry-item-price { color: #5a5447; font-weight: 500; font-size: .84rem; }
.enquiry-item-line-total { color: var(--primary); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.enquiry-total-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #f7f5f2;
  border: 1px solid #ece7e0;
  border-radius: 10px;
  padding: .8rem 1rem;
  font-weight: 700;
  color: #2a2a2a;
}
.enquiry-total-amount { color: var(--primary); font-size: 1.1rem; }
.enquiry-link-btn {
  background: none; border: 0; padding: 0;
  color: var(--primary);
  font-size: .84rem;
  cursor: pointer;
  text-decoration: underline;
}
.enquiry-link-btn:disabled { color: #b5ac9c; text-decoration: none; cursor: default; }

/* ---- Vendor orders.php — one card per order, this shop's own lines
   only. ---- */
.vdash-order-card { margin-bottom: 1rem; }
.vdash-order-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
  padding-bottom: .7rem;
  margin-bottom: .7rem;
  border-bottom: 1px solid #ece7e0;
}
.vdash-order-id { font-weight: 700; color: #231f16; }
.vdash-order-date { color: #8a8378; font-size: .82rem; margin-left: .5rem; }
.vdash-order-status-form { margin: 0; }
.vdash-order-status-select {
  border: 1px solid #e4dfd5;
  border-radius: 999px;
  padding: .3rem .9rem .3rem .7rem;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  background: #f5f3ee;
  color: #5a5447;
}
.vdash-order-status-pending   { background: #fff4e0; color: #9a6a00; }
.vdash-order-status-confirmed { background: #e6f0ff; color: #2456b5; }
.vdash-order-status-shipped   { background: #eee6ff; color: #5a35b5; }
.vdash-order-status-delivered { background: #e3f6e9; color: #1f8a4c; }
.vdash-order-status-cancelled { background: #fbeceb; color: #b5392f; }

.vdash-order-location {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .85rem;
  color: #6b6459;
  margin-bottom: .8rem;
}
.vdash-order-location::before {
  content: "";
  width: 14px; height: 14px;
  flex: 0 0 auto;
  background: #6b6459;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M21 10c0 7-9 12-9 12s-9-5-9-12a9 9 0 0 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M21 10c0 7-9 12-9 12s-9-5-9-12a9 9 0 0 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>") center / contain no-repeat;
}
.vdash-order-location-none { color: #b0a99c; font-style: italic; }

.vdash-order-items { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .8rem; }
.vdash-order-item { display: flex; align-items: center; gap: .7rem; }
.vdash-order-item img {
  width: 48px; height: 48px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0; background: #f3f1ec;
}
.vdash-order-item-info { flex: 1; min-width: 0; }
.vdash-order-item-name { font-weight: 600; font-size: .88rem; color: #2a2a2a; margin: 0; }
.vdash-order-item-variant {
  display: inline-block;
  background: #f5f3ee;
  border-radius: 6px;
  padding: .05rem .4rem;
  font-size: .72rem;
  color: #5a5447;
  margin: .15rem .4rem .15rem 0;
}
.vdash-order-item-qty { font-size: .78rem; color: #8a8378; }
.vdash-order-item-total { font-weight: 700; color: var(--primary); font-size: .86rem; white-space: nowrap; }

.vdash-order-subtotal {
  display: flex; align-items: center; justify-content: space-between;
  background: #f7f5f2;
  border-radius: 10px;
  padding: .6rem .9rem;
  font-weight: 700;
  font-size: .88rem;
  color: #4a443c;
}
.vdash-order-subtotal-amount { color: var(--primary); font-size: 1rem; }

/* Status "spine" down the left edge of each order card — the same read
   a vendor gets from the status pill, but visible while scanning down a
   long list without reading every badge individually. Colors match the
   existing status badge text colors 1:1 (vdash-order-status-* above), so
   the two never disagree. */
.vdash-order-card { border-left: 4px solid #d8d3c8; }
.vdash-order-card-pending   { border-left-color: #c6900a; }
.vdash-order-card-confirmed { border-left-color: #2456b5; }
.vdash-order-card-shipped   { border-left-color: #5a35b5; }
.vdash-order-card-delivered { border-left-color: #1f8a4c; }
.vdash-order-card-cancelled { border-left-color: #b5392f; }

/* Order id / item-count / piece-count row (vdash-order-meta-chips, built
   but never styled until now — was rendering as plain inline text). */
.vdash-order-meta-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.vdash-order-meta-chip {
  display: inline-block;
  background: #f5f3ee;
  border: 1px solid #e4dfd5;
  border-radius: 999px;
  padding: .15rem .6rem;
  font-size: .72rem;
  font-weight: 600;
  color: #5a5447;
}

/* Stat tiles at the top of orders.php (vdash-order-stats, also built but
   never styled). A thin top accent per tile echoes that status's badge
   color, so "Waiting: 3" reads as the same amber as a pending order's
   pill further down the page. Revenue gets a soft green wash — the one
   tile a vendor actually wants to linger on, everything else stays flat. */
.vdash-order-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: .65rem;
  margin: 1rem 0;
}
.vdash-stat-tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f0f1f3;
  border-top: 3px solid var(--primary);
  border-radius: 12px;
  padding: .75rem .9rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
a.vdash-stat-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  text-decoration: none;
}
.vdash-stat-num { font-size: 1.3rem; font-weight: 800; color: var(--dark); line-height: 1.15; }
/* When a tile has zero of something, its number is replaced with the
   text "No orders" instead of a bare "0" — too long to sit at the
   numeric size/weight, so this variant steps it down to something
   that reads as an empty state rather than a stat. */
.vdash-stat-num-empty { font-size: .92rem; font-weight: 700; color: #b0a99c; line-height: 1.3; }
.vdash-stat-label { font-size: .72rem; font-weight: 600; color: #8a8378; margin-top: .15rem; }
.vdash-stat-pending   { border-top-color: #c6900a; }
.vdash-stat-confirmed { border-top-color: #2456b5; }
.vdash-stat-admin     { border-top-color: #5a35b5; }
.vdash-stat-delivered { border-top-color: #1f8a4c; }
.vdash-stat-cancelled { border-top-color: #b5392f; }
.vdash-stat-revenue {
  border-top-color: #1f8a4c;
  background: linear-gradient(180deg, #f1faf4, #fff 70%);
}
.vdash-stat-revenue .vdash-stat-num { color: #1f8a4c; }

/* Pagination footer (vdash-pagination, also unstyled until now). */
.vdash-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin-top: 1.1rem;
}
.vdash-page-link {
  border: 1px solid #e4dfd5;
  border-radius: 999px;
  padding: .4rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--dark);
  background: #fff;
  text-decoration: none;
  transition: border-color .12s ease, color .12s ease;
}
.vdash-page-link:hover { border-color: var(--primary); color: var(--primary); }
.vdash-page-current { font-size: .82rem; font-weight: 600; color: #8a8378; }

/* orders.php's own empty state — same base .vdash-mini-empty other vendor
   pages use, plus an icon and friendlier copy specific to this page. */
.vdash-orders-empty-icon {
  width: 38px; height: 38px;
  margin: 0 auto .6rem;
  stroke: #c9cdd3;
  fill: none;
  stroke-width: 1.6;
}

/* ---------- Inquiry table (inquiry.php) ---------- */
.vdash-inquiry-wrap { padding: 0; overflow-x: auto; }
.vdash-inquiry-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.vdash-inquiry-table th {
  text-align: left;
  padding: .85rem 1rem;
  background: #faf9f6;
  color: #8a8378;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  border-bottom: 1px solid #f0f1f3;
  white-space: nowrap;
}
.vdash-inquiry-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid #f5f4f0;
  color: #4a443c;
  vertical-align: middle;
}
.vdash-inquiry-table tbody tr:last-child td { border-bottom: none; }
.vdash-inquiry-table tbody tr:hover { background: #fbfaf7; }
/* Already-opened inquiries fade to grey text on a flat grey row, so a
   fresh (not yet seen) inquiry visibly stands out in the normal white/dark
   text further up the list — the row itself is the signal, not a label. */
.vdash-inquiry-row-seen { background: #f7f6f3; }
.vdash-inquiry-row-seen td { color: #a39c8f; }
.vdash-inquiry-row-seen a { color: #8a8378; }
.vdash-inquiry-row-seen:hover { background: #f2f0eb; }
.vdash-inquiry-new-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #e3362b;
  margin-left: 5px;
  vertical-align: middle;
}
.vdash-inquiry-thumb {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #f0f1f3;
  display: block;
}
.vdash-inquiry-noimg { color: #b0a99c; font-size: .78rem; font-style: italic; }
.vdash-inquiry-reply {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .85rem;
  font-size: .8rem;
  white-space: nowrap;
}
.vdash-inquiry-reply svg { width: 15px; height: 15px; }

/* Below ~720px: the table becomes a stack of labeled rows-as-cards
   instead of scrolling sideways — each <td>'s own data-label (set in the
   PHP) becomes its visible heading via ::before, and the real <thead> is
   hidden since its job is now done by those labels. */
@media (max-width: 720px) {
  .vdash-inquiry-table thead { display: none; }
  .vdash-inquiry-table, .vdash-inquiry-table tbody, .vdash-inquiry-table tr, .vdash-inquiry-table td {
    display: block;
    width: 100%;
  }
  .vdash-inquiry-table tr {
    padding: .9rem 1rem;
    border-bottom: 8px solid #faf9f6;
  }
  .vdash-inquiry-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: .4rem 0;
    border-bottom: none;
    text-align: right;
  }
  .vdash-inquiry-table td::before {
    content: attr(data-label);
    font-size: .72rem;
    font-weight: 700;
    color: #8a8378;
    text-align: left;
    flex: 0 0 auto;
  }
}

/* admin_product_preview.php — vendor's own "see it like a buyer does"
   view. Wraps the real buyer-page markup (which reuses product-detail-
   grid/pd-* classes above unchanged) alongside a small views-count side
   panel, without touching those shared rules at all. */
.pd-preview-topbar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.pd-preview-topbar > a { font-weight: 600; color: var(--primary); text-decoration: none; }
.pd-preview-flag {
  font-size: .82rem; color: #6b7280; background: #f8f9fb;
  border: 1px dashed #d8dce3; border-radius: 8px; padding: .35rem .7rem;
}
.pd-preview-wrap { display: flex; gap: 1.2rem; align-items: flex-start; }
.pd-preview-main { flex: 1; min-width: 0; }
.pd-preview-side { width: 220px; flex: none; display: flex; flex-direction: column; gap: .8rem; }
.pd-preview-views-card {
  border: 1px solid #e9ecef; border-radius: 12px; padding: 1.1rem;
  text-align: center; background: #fff;
}
.pd-preview-views-num { font-size: 1.9rem; font-weight: 700; color: #2ca8ff; line-height: 1; }
.pd-preview-views-label { font-size: .8rem; color: #6b7280; margin-top: .35rem; }
@media (max-width: 900px) {
  .pd-preview-wrap { flex-direction: column; }
  .pd-preview-side { width: 100%; flex-direction: row; }
  .pd-preview-views-card { flex: 1; }
}