/**
 * Final brand layer — load LAST after Bootstrap + style.css.
 * Uses html + !important so these tokens always win over Bootstrap’s :root.
 */

html {
  /* Distinct from default template lime (#81C408) — deep agri / trust green */
  --brand-primary: #14532d;
  --brand-primary-soft: #dcfce7;
  --brand-secondary: #c2410c;
  --brand-secondary-soft: #ffedd5;
  --brand-ink: #1c1917;

  --bs-primary: #14532d !important;
  --bs-secondary: #c2410c !important;
  --bs-primary-rgb: 20, 83, 45 !important;
  --bs-secondary-rgb: 194, 65, 12 !important;
  --bs-dark: #1c1917 !important;
  --bs-dark-rgb: 28, 25, 23 !important;

  --bs-link-color: #166534 !important;
  --bs-link-hover-color: #14532d !important;
  --bs-focus-ring-color: rgba(20, 83, 45, 0.35) !important;

  --bs-light: #f7f9f6 !important;
  --bs-light-rgb: 247, 249, 246 !important;
  --bs-border-color: rgba(28, 25, 23, 0.12) !important;
}

body {
  background-color: rgb(var(--bs-light-rgb)) !important;
  color: var(--bs-dark) !important;
}

::selection {
  background: rgba(var(--bs-secondary-rgb), 0.25);
  color: var(--bs-dark);
}

/* Top bar: gradient instead of flat theme green */
.topbar.bg-primary {
  background: linear-gradient(
    100deg,
    #14532d 0%,
    #0f3d22 45%,
    #134e2e 100%
  ) !important;
}

/* Full-width top bar — edge-to-edge white strip; horizontal inset comes from .navbar padding */
.site-navbar-bar {
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  z-index: 1030;
}

/* Mobile menu (hamburger): no grey border, no tap/focus layout jump */
.shop-nav-toggler {
  border: none !important;
  background-color: transparent !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  flex-shrink: 0;
  line-height: 1;
  transition: none !important;
  -webkit-tap-highlight-color: transparent;
}

.shop-nav-toggler:focus,
.shop-nav-toggler:focus-visible,
.shop-nav-toggler:active {
  box-shadow: none !important;
}

.shop-nav-toggler:focus {
  outline: none;
}

.shop-nav-toggler:focus-visible {
  outline: 2px solid rgba(var(--bs-primary-rgb), 0.45);
  outline-offset: 2px;
}

.shop-nav-toggler:active {
  transform: none;
  opacity: 1;
}

/* Navbar separation from hero */
.navbar.navbar-light.bg-white {
  box-shadow: 0 6px 24px rgba(20, 83, 45, 0.08);
  border-bottom: 1px solid rgba(20, 83, 45, 0.1);
}

/* Primary buttons: slightly richer hover */
.btn-primary {
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(20, 83, 45, 0.2);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-outline-primary {
  border-width: 2px;
}

/* Secondary / accent pills */
.bg-secondary {
  background-color: var(--bs-secondary) !important;
}

.text-primary {
  color: var(--bs-primary) !important;
}

.text-secondary {
  color: var(--bs-secondary) !important;
}

/* Hero product carousel — same slot every slide (no jump on slide change) */
#carouselId .carousel-inner {
  min-height: clamp(220px, 42vw, 400px);
}

#carouselId .carousel-item img {
  width: 100%;
  height: clamp(220px, 42vw, 400px);
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Product title overlay — bottom strip (darker blackish panel + soft shadow) */
#carouselId .carousel-item a {
  top: auto;
  bottom: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  font-size: clamp(0.8rem, 2.2vw, 1.35rem);
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  background: linear-gradient(
    rgba(12, 12, 14, 0.78),
    rgba(12, 12, 14, 0.78)
  ) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* “Enterprises” — entrance + subtle living gradient (professional, not flashy) */
.brand-enterprises {
  position: relative;
  display: inline-block;
  padding-bottom: 1px;
  background-image: linear-gradient(
    110deg,
    #0f3d22 0%,
    #14532d 22%,
    #1a6b3a 42%,
    #166534 55%,
    #14532d 78%,
    #0f3d22 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: brandEntrReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both,
    brandEntrShimmer 9s ease-in-out infinite 0.9s;
  will-change: transform, opacity, background-position;
}

.brand-enterprises::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(20, 83, 45, 0.35),
    rgba(194, 65, 12, 0.45),
    rgba(20, 83, 45, 0.35),
    transparent
  );
  transform: scaleX(0);
  transform-origin: left;
  animation: brandEntrUnderline 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.navbar-brand:hover .brand-enterprises {
  filter: brightness(1.06);
  transition: filter 0.35s ease;
}

.navbar-brand:hover .brand-enterprises::after {
  opacity: 0.85;
  transition: opacity 0.35s ease;
}

@keyframes brandEntrReveal {
  from {
    opacity: 0;
    transform: translate3d(-10px, 4px, 0);
    letter-spacing: 0.08em;
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    letter-spacing: normal;
  }
}

@keyframes brandEntrShimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

@keyframes brandEntrUnderline {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-enterprises {
    animation: none;
    background: none;
    color: var(--bs-primary) !important;
    -webkit-text-fill-color: currentColor;
    will-change: auto;
  }

  .brand-enterprises::after {
    animation: none;
    transform: scaleX(1);
    opacity: 0.4;
    height: 1px;
  }
}

/* Mobile: left drawer (offcanvas) — app-style nav */
.shop-nav-drawer.offcanvas {
  display: flex;
  flex-direction: column;
  width: min(300px, 88vw) !important;
  max-height: 100dvh;
  border: none;
  box-shadow: 8px 0 32px rgba(20, 83, 45, 0.15);
}

.shop-nav-drawer .offcanvas-header {
  flex-shrink: 0;
}

.shop-nav-drawer .offcanvas-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.shop-nav-drawer-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.shop-nav-drawer-footer {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.shop-nav-drawer-cta {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.shop-drawer-link {
  color: var(--bs-dark) !important;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.shop-drawer-link:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.08);
  color: var(--bs-primary) !important;
}

.shop-drawer-link.active {
  background-color: rgba(var(--bs-primary-rgb), 0.12);
  color: var(--bs-primary) !important;
}

.offcanvas-backdrop.show {
  opacity: 0.45;
}

/* Shop category tabs — one compact row on mobile (scroll), desktop unchanged */
.fruite .shop-product-tabs-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.fruite .shop-product-tabs-scroll::-webkit-scrollbar {
  display: none;
}

@media (max-width: 991.98px) {
  .fruite .shop-product-tabs-scroll {
    margin-left: calc(-0.5 * var(--bs-gutter-x, 0.75rem));
    margin-right: calc(-0.5 * var(--bs-gutter-x, 0.75rem));
    padding-left: calc(0.5 * var(--bs-gutter-x, 0.75rem));
    padding-right: calc(0.5 * var(--bs-gutter-x, 0.75rem));
  }

  .fruite .shop-product-tabs-scroll .nav-pills > .nav-item > a {
    min-height: 2.25rem;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }

  .fruite .shop-product-tab-label {
    font-size: 0.8125rem;
    line-height: 1.2;
  }
}

@media (min-width: 992px) {
  .fruite .shop-product-tabs-scroll {
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .fruite .shop-product-tab-label {
    font-size: 1rem;
    line-height: 1.5;
  }
}


/* ─── Shop category filter (sidebar + mobile chips) ─── */
.shop-category-chips-wrap {
  margin-bottom: 0.5rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.shop-category-chips-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0.65rem 0.75rem;
}

.shop-category-chips-scroll::-webkit-scrollbar {
  display: none;
}

.shop-category-chip--has-img {
  padding-left: 0.45rem;
}

.shop-category-chip-img {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.shop-category-chip.is-active .shop-category-chip-img {
  border-color: rgba(255, 255, 255, 0.35);
}

.shop-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.shop-category-chip:hover {
  border-color: #cbd5e1;
  background: #f3f4f6;
  color: #111827;
}

.shop-category-chip.is-active {
  border-color: #252a78;
  background: linear-gradient(180deg, #2e3192 0%, #252a78 100%);
  color: #fff;
}

.shop-category-chip-count {
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

.shop-category-chip:not(.is-active) .shop-category-chip-count {
  background: #e5e7eb;
  color: #4b5563;
}

.shop-category-sidebar-col {
  position: sticky;
  top: 5.5rem;
  align-self: flex-start;
}

.shop-category-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.shop-category-panel-head {
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid #f3f4f6;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.shop-category-panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.shop-category-panel-sub {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.shop-category-all-link {
  display: flex;
  align-items: center;
  margin: 0.65rem 0.75rem 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.shop-category-all-link:hover {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #111827;
}

.shop-category-all-link.is-active {
  background: rgba(37, 42, 120, 0.08);
  border-color: rgba(37, 42, 120, 0.22);
  color: #252a78;
}

.shop-category-panel-body {
  padding: 0.5rem 0.75rem 0.75rem;
  max-height: min(70vh, 640px);
  overflow-y: auto;
}

.shop-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.shop-category-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.shop-category-row:hover {
  background: #f9fafb;
  border-color: #eef0f3;
}

.shop-category-row.is-active {
  background: rgba(37, 42, 120, 0.08);
  border-color: rgba(37, 42, 120, 0.18);
}

.shop-category-row-main {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
}

.shop-category-row-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
  background: #f3f4f6;
  color: #252a78;
  font-size: 0.75rem;
  overflow: hidden;
}

.shop-category-row-icon--img {
  background: #fff;
  border: 1px solid #e5e7eb;
}

.shop-category-row-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-category-row.is-active .shop-category-row-icon:not(.shop-category-row-icon--img) {
  background: #252a78;
  color: #fff;
}

.shop-category-row.is-active .shop-category-row-icon--img {
  border-color: #252a78;
  box-shadow: 0 0 0 1px rgba(37, 42, 120, 0.2);
}

.shop-category-row-text {
  min-width: 0;
}

.shop-category-row-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1f2937;
}

.shop-category-row-desc {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  line-height: 1.25;
  color: #6b7280;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.shop-category-count {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
}

.shop-category-row.is-active .shop-category-count,
.shop-category-all-link.is-active .shop-category-count {
  background: rgba(37, 42, 120, 0.12);
  color: #252a78;
}

.shop-category-sublist {
  margin: 0.15rem 0 0.35rem 2rem;
  padding-left: 0.5rem;
  border-left: 2px solid #e5e7eb;
}

.shop-category-list-item--sub .shop-category-row {
  padding: 0.4rem 0.5rem;
}

.shop-category-list-item--sub .shop-category-row-icon {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.65rem;
}

.shop-category-list-item--sub .shop-category-row-name {
  font-size: 0.8125rem;
  font-weight: 500;
}

.shop-category-empty {
  font-size: 0.875rem;
  padding: 0.5rem 0.25rem;
}

/* ─── Home: featured categories + products section ─── */
.home-products-section .home-products-header {
  padding: 0 0.75rem 1rem;
  text-align: left;
}

.home-products-title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
}

.home-products-sub {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.home-category-nav {
  margin-bottom: 1.25rem;
}

.home-category-chips {
  display: block;
  background: #fff;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.home-category-chips-scroll {
  padding: 0.65rem 0.75rem;
}

.home-category-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  padding: 0 0.75rem;
}

.home-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 0.85rem 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.home-category-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.home-category-card.is-active {
  border-color: #252a78;
  box-shadow: 0 0 0 1px rgba(37, 42, 120, 0.35);
  background: linear-gradient(180deg, #fff 0%, rgba(37, 42, 120, 0.04) 100%);
}

.home-category-card-media {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.5rem;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-category-card:has(.home-category-card-img) .home-category-card-media {
  background: #fff;
  border: 1px solid #e5e7eb;
}

.home-category-card.is-active:has(.home-category-card-img) .home-category-card-media {
  border-color: #252a78;
  box-shadow: 0 0 0 1px rgba(37, 42, 120, 0.25);
}

.home-category-card.is-active:not(:has(.home-category-card-img)) .home-category-card-media {
  background: #252a78;
}

.home-category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-category-card-icon {
  font-size: 1.15rem;
  color: #252a78;
}

.home-category-card.is-active .home-category-card-icon {
  color: #fff;
}

.home-category-card-body {
  min-width: 0;
  width: 100%;
}

.home-category-card-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1f2937;
}

.home-category-card-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6b7280;
}

.home-category-card.is-active .home-category-card-name {
  color: #252a78;
}

.home-products-grid-wrap {
  padding-top: 0.25rem;
}

.home-products-empty {
  border-color: #e5e7eb !important;
  color: #4b5563;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .home-category-chips {
    display: none;
  }

  .home-category-grid {
    display: grid;
  }

  .home-category-nav {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .home-products-section .home-products-header {
    padding-bottom: 0.75rem;
  }

  .home-category-nav {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0.75rem;
  }

  .home-category-chips-scroll {
    margin-left: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ─── Shop product grid (mobile: Flipkart / Amazon marketplace) ─── */
.shop-products-section {
  overflow-x: clip;
}

.shop-products-section .shop-products-header {
  padding-inline: 0.75rem;
}

.shop-products-section .shop-products-inner {
  width: 100%;
}

.shop-product-grid {
  margin-inline: 0;
}

/* Shared tile */
.shop-product-tile-link {
  outline: none;
}

.shop-product-tile-media {
  position: relative;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-product-tile-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.shop-product-category-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 1;
  max-width: calc(100% - 0.75rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.15rem 0.4rem;
  border-radius: 0.2rem;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
}

.shop-product-tile-title {
  margin: 0;
  font-weight: 500;
  color: #1f2937;
  word-break: break-word;
}

.shop-product-tile-excerpt {
  margin: 0;
  color: #6b7280;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.shop-product-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.shop-product-price {
  font-weight: 700;
  color: #111827;
}

.shop-product-mrp {
  font-size: 0.8125rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.shop-product-discount {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #15803d;
}

.shop-product-tile-cta {
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--bs-secondary);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--bs-primary);
}

/* Mobile: edge-to-edge 2-col divider grid */
@media (max-width: 767.98px) {
  .shop-products-section.fruite {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .shop-products-section > .container,
  .shop-products-section .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .shop-products-section .shop-products-header {
    padding-inline: 0.75rem;
    text-align: start !important;
  }

  .shop-product-grid {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
    padding: 0.5rem;
    background: #f3f4f6;
  }

  .shop-product-grid > [class*="col-"] {
    padding: calc(var(--bs-gutter-x) * 0.5);
  }

  .fruite .shop-product-tile.fruite-item {
    height: 100%;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    box-shadow: none !important;
    overflow: hidden;
    background: #fff;
    transition:
      border-color 0.12s ease,
      background-color 0.12s ease;
  }

  .fruite .shop-product-tile.fruite-item:hover {
    box-shadow: none !important;
    border-color: #d1d5db !important;
    background: #fff;
  }

  .shop-product-tile-media.fruite-img {
    height: clamp(148px, 44vw, 210px);
    border-radius: 0.375rem 0.375rem 0 0 !important;
    background: #fff;
  }

  .fruite .shop-product-tile .fruite-img img:hover,
  .shop-product-tile-img:hover {
    transform: none;
  }

  .shop-product-tile-body {
    padding: 0.5rem 0.55rem 0.65rem;
    background: #fff;
  }

  .shop-product-tile-title {
    font-size: 0.8125rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .shop-product-tile-excerpt {
    display: none !important;
  }

  .shop-product-category-badge {
    font-size: 0.5625rem;
    padding: 0.1rem 0.35rem;
  }

  .shop-product-price {
    font-size: 0.9375rem;
  }

  .shop-product-mrp {
    font-size: 0.75rem;
  }

  .shop-product-discount {
    margin-top: 0.1rem;
    font-size: 0.6875rem;
  }

  .shop-product-tile-cta {
    display: none !important;
  }
}

/* Tablet+ */
@media (min-width: 768px) {
  .shop-product-grid {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }

  .fruite .shop-product-tile.fruite-item {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }

  .fruite .shop-product-tile.fruite-item:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  }

  .shop-product-tile-media.fruite-img {
    height: clamp(160px, 28vw, 220px);
    border-radius: 0.5rem 0.5rem 0 0;
  }

  .shop-product-tile-body {
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .shop-product-tile-title {
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .shop-product-tile-excerpt {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 0.5rem;
  }

  .shop-product-tile-pricing {
    margin-top: auto;
  }

  .shop-product-price {
    font-size: 1.15rem;
  }
}

@media (min-width: 992px) {
  .shop-products-section .shop-products-inner {
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 0.75rem;
  }

  .shop-products-section > .container,
  .shop-products-section .container {
    max-width: 100%;
    padding-inline: 0;
  }

  .shop-product-grid {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
  }

  .shop-product-tile-media.fruite-img {
    height: clamp(180px, 22vw, 240px);
  }
}

/* Legacy fruite cards (if any remain without .shop-product-tile) */
.fruite-img {
  background-color: white !important;
}

.fruite .fruite-item:not(.shop-product-tile) .fruite-img {
  height: clamp(160px, 30vw, 240px);
  background-color: rgba(var(--bs-light-rgb), 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fruite .fruite-item:not(.shop-product-tile) .fruite-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.fruite .fruite-item:not(.shop-product-tile) h4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.35;
  font-size: clamp(0.85rem, 2.4vw, 1.25rem);
}

/* ─── Product detail page (PDP) ─── */
.product-detail-page {
  max-width: 100%;
}

.product-detail-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(520px, 85vw);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.product-detail-gallery-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
}

.product-detail-gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.product-detail-gallery-thumb {
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
  padding: 0.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.product-detail-gallery-thumb.is-active {
  border-color: #252a78;
  box-shadow: 0 0 0 1px rgba(37, 42, 120, 0.35);
}

.product-detail-buybox {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.product-detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.product-detail-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
}

.product-detail-badge--featured {
  background: rgba(37, 42, 120, 0.1);
  color: #252a78;
}

.product-detail-badge--category {
  background: #f3f4f6;
  color: #374151;
}

.product-detail-badge--category:hover {
  background: #e5e7eb;
  color: #111827;
}

.product-detail-stock {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.product-detail-stock--in {
  background: #dcfce7;
  color: #166534;
}

.product-detail-stock--out {
  background: #fee2e2;
  color: #991b1b;
}

.product-detail-stock--low {
  background: #fef3c7;
  color: #92400e;
}

.product-detail-stock--neutral {
  background: #f3f4f6;
  color: #4b5563;
}

.product-detail-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
}

.product-detail-sku {
  font-size: 0.8125rem;
  color: #6b7280;
}

.product-detail-sku span {
  color: #374151;
  font-weight: 600;
}

.product-detail-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.65rem;
  margin: 1rem 0;
  padding: 0.85rem 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}

.product-detail-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
}

.product-detail-mrp {
  font-size: 1rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-detail-discount {
  font-size: 0.875rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
}

.product-detail-tax-note {
  flex: 1 1 100%;
  font-size: 0.75rem;
  color: #6b7280;
}

.product-detail-short-desc {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.product-detail-attributes {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f9fafb;
  border: 1px solid #eef0f3;
  border-radius: 0.375rem;
}

.product-detail-attributes-title {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.product-detail-attribute-group + .product-detail-attribute-group {
  margin-top: 0.55rem;
}

.product-detail-attribute-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}

.product-detail-attribute-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.product-detail-attribute-pill {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1f2937;
}

.product-detail-meta-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-detail-meta-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.product-detail-meta-list i {
  width: 1rem;
  margin-top: 0.15rem;
  color: #252a78;
  text-align: center;
}

.product-detail-verified {
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #15803d;
}

.product-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 576px) {
  .product-detail-actions {
    flex-direction: row;
    align-items: flex-end;
  }
}

.product-detail-qty-wrap {
  flex-shrink: 0;
}

.product-detail-qty-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.product-detail-qty-input {
  width: 5.5rem;
  border-color: #d1d5db;
}

.product-detail-cta-wrap {
  flex: 1;
  min-width: min(100%, 16rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-detail-enquiry-btn {
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(37, 42, 120, 0.25);
}

.product-detail-contact-link {
  font-size: 0.8125rem;
  color: #6b7280;
  text-align: center;
  text-decoration: none;
}

.product-detail-contact-link:hover {
  color: #252a78;
  text-decoration: underline;
}

.product-detail-cta-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
}

.product-detail-tabs {
  margin-top: 0.5rem;
}

.product-detail-tab-nav {
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.product-detail-tab-nav .nav-link {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
  background: #f3f4f6;
  border: 1px solid transparent;
}

.product-detail-tab-nav .nav-link:hover {
  color: #252a78;
  background: #eef0ff;
}

.product-detail-tab-nav .nav-link.active {
  background: linear-gradient(180deg, #2e3192 0%, #252a78 100%);
  color: #fff;
}

.product-detail-tab-panels {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.product-detail-panel-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #252a78;
}

.product-detail-spec-table th {
  width: 32%;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  vertical-align: top;
  border-color: #eef0f3;
}

.product-detail-spec-table td {
  font-size: 0.875rem;
  color: #1f2937;
  border-color: #eef0f3;
}

.product-detail-category-note {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.product-detail-shipping-list {
  padding-left: 1.15rem;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.55;
}

.product-detail-shipping-list li + li {
  margin-top: 0.5rem;
}

@media (max-width: 991.98px) {
  .product-detail-buybox {
    margin-top: 0.25rem;
  }
}

/* PDP: longDescription HTML from API (CKEditor / rich text) */
.product-detail-html p {
  margin-bottom: 0.75rem;
}
.product-detail-html p:last-child {
  margin-bottom: 0;
}
.product-detail-html ul,
.product-detail-html ol {
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
}
.product-detail-html li {
  margin-bottom: 0.35rem;
}

/* Shop mobile OTP modal — marketplace-style (login popup) */
.shop-phone-otp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.72);
}

.shop-phone-otp-card {
  width: 100%;
  max-width: 28rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.38);
}

.shop-phone-otp-head {
  background: linear-gradient(180deg, #0a3d62 0%, #052c48 100%);
  color: #fff;
  text-align: center;
  padding: 1.75rem 1.35rem 1.45rem;
}

.shop-phone-otp-head h2 {
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  font-weight: 700;
  margin: 0 0 0.45rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.shop-phone-otp-head .shop-phone-otp-tagline {
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 400;
  opacity: 0.93;
  line-height: 1.35;
}

.shop-phone-otp-body {
  padding: 1.5rem 1.35rem 0.75rem;
}

.shop-phone-otp-alert {
  font-size: 0.875rem;
  border-radius: 0.375rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 1rem;
  background: #fff8e6;
  border: 1px solid #f5d78e;
  color: #7c5c00;
}

.shop-phone-otp-phone-row {
  display: flex;
  align-items: stretch;
  background: #f1f5f9;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.shop-phone-otp-cc {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155;
  white-space: nowrap;
  background: #e8eef5;
}

.shop-phone-otp-cc .shop-phone-otp-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.shop-phone-otp-phone-row input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  color: #0f172a;
}

.shop-phone-otp-phone-row input:focus {
  outline: none;
  box-shadow: none;
}

.shop-phone-otp-phone-row input::placeholder {
  color: #94a3b8;
}

.shop-phone-otp-trust {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: #64748b;
  font-style: italic;
}

.shop-phone-otp-trust .shop-phone-otp-trust-icon {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  flex-shrink: 0;
}

.shop-phone-otp-btn-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.35rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 0.35rem;
  background: #3d8b8d;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s ease, transform 0.1s ease;
}

.shop-phone-otp-btn-continue:hover:not(:disabled) {
  background: #357a7c;
  color: #fff !important;
}

.shop-phone-otp-btn-continue:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.shop-phone-otp-btn-continue .fa-play {
  font-size: 0.65rem;
  opacity: 0.95;
}

.shop-phone-otp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.35rem 1.25rem;
  gap: 1rem;
}

.shop-phone-otp-skip {
  background: none;
  border: none;
  padding: 0;
  color: #64748b;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

.shop-phone-otp-skip:hover {
  color: #334155;
  text-decoration: underline;
}

.shop-phone-otp-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
}

.shop-phone-otp-brand img {
  height: 28px;
  width: auto;
}

.shop-phone-otp-brand-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-primary, #14532d);
  letter-spacing: -0.02em;
}

.shop-phone-otp-otp-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.5rem;
}

.shop-phone-otp-otp-input {
  width: 100%;
  text-align: center;
  letter-spacing: 0.45em;
  font-size: 1.25rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #f8fafc;
}

.shop-phone-otp-otp-input:focus {
  outline: none;
  border-color: #3d8b8d;
  box-shadow: 0 0 0 3px rgba(61, 139, 141, 0.2);
}

.shop-phone-otp-back-top {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0;
  border: none;
  background: none;
  color: #64748b;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}

.shop-phone-otp-back-top:hover {
  color: #334155;
}

/* ─── Shop header: marketplace-style dark bar (IndiaMART-inspired) ─── */
.shop-layout-body {
  padding-top: 5rem;
}

@media (min-width: 992px) {
  .shop-layout-body {
    padding-top: 3rem;
  }
}

.shop-mega-nav {
  background: linear-gradient(180deg, #2e3192 0%, #252a78 100%);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.shop-mega-brand .shop-mega-logo {
  max-height: 44px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.shop-mega-wordmark {
  color: #fff !important;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.shop-nav-search-max {
  max-width: 34rem;
  width: 100%;
}

.shop-nav-search-cluster {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  min-height: 44px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.shop-nav-search-form--compact .shop-nav-search-cluster {
  min-height: 40px;
}

.shop-nav-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.75rem;
  border: none;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.shop-nav-loc-pin {
  color: #64748b;
  font-size: 0.95rem;
}

.shop-nav-loc-chevron {
  color: #14b8a6;
  font-size: 0.55rem;
}

.shop-nav-search-rule {
  width: 1px;
  flex-shrink: 0;
  background: #e2e8f0;
  align-self: stretch;
}

.shop-nav-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #0f172a;
}

.shop-nav-search-input:focus {
  outline: none;
  box-shadow: none;
}

.shop-nav-search-input::placeholder {
  color: #94a3b8;
}

.shop-nav-cam {
  flex-shrink: 0;
  border: none;
  background: #fff;
  padding: 0 0.65rem;
  color: #0d9488;
  font-size: 1rem;
}

.shop-nav-cam:hover {
  color: #0f766e;
}

.shop-nav-search-submit {
  flex-shrink: 0;
  border: none;
  background: #00a699;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  padding: 0 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-transform: none;
}

.shop-nav-search-submit:hover {
  background: #009688;
  color: #fff !important;
}

.shop-mega-cta {
  background: #fff !important;
  color: #252a78 !important;
  font-weight: 800;
  font-size: 0.8125rem;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  text-decoration: none !important;
  line-height: 1.2;
}

.shop-mega-cta:hover {
  filter: brightness(1.06);
  color: #1e1f5c !important;
}

.shop-nav-util-icon {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
  opacity: 0.95;
}

.shop-nav-util-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.shop-nav-signin.dropdown-toggle::after {
  margin-left: 0.15rem;
  vertical-align: 0.12em;
  border-top-color: rgba(255, 255, 255, 0.85);
}

.shop-nav-signin:focus {
  box-shadow: none !important;
}

.shop-mega-nav .shop-nav-toggler--on-dark:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}
