:root {
  --gd: #1a4d2e;
  --gm: #1f6035;
  --ga: #2e7d4f;
  --gl: #a8d5b5;
  --gp: #cde8d4;
  --wh: #ffffff;
  --bg: #f3f8f5;
  --bdr: #dce9e1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Avenir Next";
  font-weight: 400;
  letter-spacing: 0.2px;
  background: var(--bg);
  color: #1a1a1a;
  overflow-x: hidden;
  letter-spacing: 0.2px;
}


/* ══════════════════════════════════════
   TOP BAR — Shared across all pages
   (index.css is loaded globally via master.blade.php)
══════════════════════════════════════ */
.top-bar {
  background: var(--gd);
  font-size: 13px;
  padding: 25px 0;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 8000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar-inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo-pill {
  position: fixed;
  left: 50%;
  top: 42px;
  /* Vertically centered within the top bar (25px padding + ~15px half-content) */
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  z-index: 10000;
  text-decoration: none;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-pill:hover {
  transform: translate(-50%, -50%) scale(1.1);
  text-decoration: none;
}

.logo-pill img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.steps {
  display: flex;
  align-items: center;
  gap: 5px;
}

.step-arrow {
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  font-size: 11px;
  margin: 0 2px;
  gap: 0px;
}

.step-arrow::before {
  content: "";
  display: block;
  width: 1.5px;
  height: 8px;
  background: currentColor;
  margin-right: -1px;
}

.step-arrow.active {
  color: #fff;
}

.step {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  transition: opacity 0.3s ease;
  opacity: 0.5;
}

.step.active,
.step.completed {
  opacity: 1;
}

.step span {
  transform: translateY(1px);
}

.step-n {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  transition: all 0.3s;
}

.step.active .step-n {
  border-color: #fff;
  background: #fff;
  color: var(--gd);
  font-weight: 400;
}

.step.completed .step-n {
  border-color: #fff;
  background: #fff;
  color: var(--gd);
}

.step.completed .step-n::after {
  content: '✓';
  font-weight: 400;
  font-size: 9px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-phone {
  display: flex;
  align-items: center;
  gap: 0;
  color: #fff;
  text-decoration: none;
  position: relative;
}

.custom-phone-icon {
  position: relative;
  height: 30px;
  width: auto;
  top: 1px;
  margin-right: -13px;
  margin-top: -4px;
}

.phone-text {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
}

.wishlist-link {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.wishlist-link:hover {
  color: #ffb3c1;
}

.wishlist-icon {
  width: 26px;
  height: 26px;
  transition: fill 0.2s;
}

.wishlist-link:hover .wishlist-icon {
  fill: #ffb3c1;
  stroke: #ffb3c1;
}

/* ── Top Bar Search ── */
.topbar-search-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

.topbar-search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 4px 10px;
  gap: 6px;
  transition: background 0.2s, width 0.3s;
  width: 160px;
}

.topbar-search-box:focus-within {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  width: 220px;
}

.topbar-search-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.8);
}

.topbar-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  font-weight: 400;
}

.topbar-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.topbar-search-clear {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: none;
  flex-shrink: 0;
}

.topbar-search-clear.visible {
  display: block;
}

.topbar-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 280px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 20000;
  display: none;
}

.topbar-search-dropdown.open {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  text-decoration: none;
  color: #1a1a1a;
  transition: background 0.15s;
  border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f3f8f5;
}

.search-result-img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-price {
  font-size: 12px;
  color: #2e7d4f;
  font-weight: 400;
  margin-top: 2px;
}

.search-no-results {
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

.search-loading {
  padding: 12px 14px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

/* Mobile: hide search on very small screens */
@media (max-width: 480px) {
  .topbar-search-wrap { display: none; }
}

.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-cart-icon {
  height: 30px;
  width: auto;
}

.cart-count {
  position: absolute;
  top: 7px;
  left: 60%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 9px;
  font-weight: 400;
}

.btn-login {
  border: 1.5px solid #fff;
  color: #fff;
  background: transparent;
  padding: 4px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-login:hover {
  background: #fff;
  color: var(--gd);
}

/* ── Top Bar Responsive (Mobile/Tablet) ── */
@media (max-width: 991px) {
  .logo-pill {
    top: 40px;
    width: 70px;
    height: 70px;
    z-index: 10000;
  }

  .steps {
    display: none !important;
  }

  .top-bar-inner {
    padding: 0 20px;
  }

  .top-right {
    width: 100%;
    gap: 0;
    justify-content: space-between;
  }

  .cart-link { order: 2; }
  .btn-login {
    order: 3;
    margin-left: 10px;
    margin-right: 0;
    padding: 4px 10px;
    font-size: 11px;
  }
  .top-phone {
    order: 1;
    margin-right: auto;
    font-size: 11px;
  }
  .custom-phone-icon { margin-left: 0; height: 32px; }
  .phone-text { font-size: 13px; }
  .cart-text { font-size: 13px; }
  .custom-cart-icon { height: 26px; }
  .cart-count { top: 6px; font-size: 8px; }
}

@media (max-width: 480px) {
  .phone-text { font-size: 11px; }
  .cart-text { display: none; }
  .custom-phone-icon { height: 28px; }
  .custom-cart-icon { height: 28px; }
  .cart-count { top: 6.5px; font-size: 7.5px; }
  .top-right { gap: 8px; }
  .cart-link { font-size: 0; }
  .top-phone { font-size: 10px; }
}


.cat-slider-wrap {
  /* Hard split 50/50 Background (Transparent Top, Solid Body Color Bottom) */
  background: linear-gradient(to bottom, transparent 50%, var(--bg) 50%);
  /* 3-Way Mask: Vanishes Top, Left, and Right edges */
  border-radius: 0px;
  position: sticky;
  top: 51px;
  width: 100%;
  overflow: hidden;
  margin: -32px 0 3px 0;
  padding: 7.5px 0;
  z-index: 9500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cat-slider-wrap.cat-slider-auth {
  margin: 18px 0 3px 0 !important;
}

/* Gradient mask to suggest more content on sides */
.cat-slider-wrap::before,
.cat-slider-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 5;
  pointer-events: none;
}

/* .cat-slider-wrap::before {
  left: 0;
  background: linear-gradient(to right, #f3f8f5, rgba(243, 248, 245, 0));
}

.cat-slider-wrap::after {
  right: 0;
  background: linear-gradient(to left, #f3f8f5, rgba(243, 248, 245, 0));
} */

.cat-container {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  padding: 5px 0px;
  /* Padding for the mask areas */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  /* Single row */
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
}

/* Guard elements to maintain 40px left-alignment on overflow while centering by default */
.cat-container::before,
.cat-container::after {
  content: '';
  flex: 1;
  min-width: 0;
  display: block;
  visibility: hidden;
}

.cat-container::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}



/* ══════════════════════════════════════
   RESPONSIVENESS (MOBILE/TABLET)
══════════════════════════════════════ */
@media (max-width: 991px) {
  .steps {
    display: none !important;
  }

  .top-bar-inner {
    padding: 0 20px;
  }

  .top-right {
    width: 100%;
    gap: 0;
    justify-content: space-between;
  }

  /* Flex ordering to swap sides on mobile */
  .cart-link {
    order: 2;
    /* Right side */
  }

  .btn-login {
    order: 3;
    /* Right side, next to cart */
    margin-left: 10px;
    margin-right: 0;
    padding: 4px 10px;
    font-size: 11px;
  }

  .top-phone {
    order: 1;
    margin-right: auto;
    /* Pushes other items to the far right */
    font-size: 11px;
  }

  .custom-phone-icon {
    margin-left: 0;
    height: 32px;
  }

  .logo-pill {
    width: 70px;
    height: 70px;
    z-index: 10000;
    /* Ensure centered logo stays above side elements if they nudge it */
  }

  .phone-text { font-size: 13px; }
  .cart-text { font-size: 13px; }
  .custom-cart-icon { height: 26px; }
  .cart-count { top: 6px; font-size: 8px; }

  /* On very small devices, hide cart text label to save space */
  @media (max-width: 480px) {
    .phone-text { font-size: 11px; }
    .cart-text { display: none; }
    .custom-phone-icon { height: 28px; }
    .custom-cart-icon { height: 28px; }
    .cart-count { top: 6.5px; font-size: 7.5px; }
    .top-right { gap: 8px; }
    .cart-link { font-size: 0; }
    .top-phone { font-size: 10px; }
  }

  /* Category Pill Resizing for Tablet */
  .c-pill {
    padding: 8px 16px;
    min-width: 100px;
    font-size: 12px;
  }

}

/* ══════════════════════════════════════
   BANNER SLIDER
══════════════════════════════════════ */
.banner-wrap {
  margin: 2px 0 0;
  position: relative;
  display: flex;
  height: 400px;
  gap: 15px; /* Spacing between sections */
}

.banner-wrap.full-slider {
  gap: 0;
}

.banner-left {
  flex: 0 0 72%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 2px; /* Individual rounding */
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.12);
  transition: flex 0.3s ease;
}

.banner-wrap.full-slider .banner-left {
  flex: 0 0 100%;
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.18, 1);
}

.banner-right {
  flex: 1;
  background: #1a4d2e; /* Solid brand green as per image */
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 2px; /* Individual rounding */
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.12);
  overflow: hidden; /* Ensure image doesn't bleed out */
}

.br-dynamic {
  width: 100%;
  height: 100%;
  position: relative;
}

.br-dynamic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.br-header {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  margin-bottom: 20px;
  padding: 0 20px;
}

.br-header-badge {
  background: #154026;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 20px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  /* Simple badge-like style */
}

.br-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.br-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  transition: background 0.3s;
}

.br-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.br-icon {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  padding: 6px;
}

.br-icon svg {
  width: 100%;
  height: 100%;
}

.br-content h4 {
  margin: 0 0 3px 0;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
}

.br-content p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sl-1 {
  background: linear-gradient(135deg, #1a4d2e, #2e7d4f);
}

.sl-2 {
  background: linear-gradient(135deg, #1a3a4d, #30a07e);
}

.sl-3 {
  background: linear-gradient(135deg, #4d2a1a, #be7040);
}

.slide-inner {
  text-align: center;
  color: #fff;
  z-index: 2;
}

.sl-title {
  font-family: "Avenir Next";
  font-size: clamp(16px, 3.5vw, 38px);
  line-height: 1.1;
  max-width: 90%;
  margin: 0 auto;
}

.sl-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(10px, 1.5vw, 14px);
}

/* ══════════════════════════════════════
   CATEGORY PILLS
══════════════════════════════════════ */
.c-pill {
  background: #fff;
  color: var(--gd);
  padding: 8px 20px;
  min-width: 115px;
  /* Unified button size for all categories */
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.c-pill.active,
.c-pill:hover {
  background: var(--ga);
  color: #fff;
}

/* Flash effect for category pills - sweeps sequentially */
.c-pill::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -150%;
  width: 40%;
  height: 200%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.45) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(25deg);
  z-index: 2;
  animation: offerFlash 6s infinite;
  animation-delay: calc(var(--i, 0) * 0.2s);
  pointer-events: none;
}

/* ══════════════════════════════════════
   BREADCRUMB & OFFER TAB
══════════════════════════════════════ */
/* ══════════════════════════════════════
   MAIN CONTENT CARD (Header + Products)
══════════════════════════════════════ */
.main-content-card {
  background: #fff;
  border-radius: 0px 0px 10px 10px;
  /* removed overflow: hidden to allow sticky header */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin: 0 auto 60px;
  /* Seamless stacking */
  position: relative;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

/* Branded Flush Header (Breadcrumbs) */
.nav-breadcrumb-wrap {
  background: #0d421d;
  padding: 8px 20px;
  position: sticky;
  /* Sticky behavior as requested */
  top: 113px;
  /* Stacks perfectly below category slider */
  z-index: 9000;
  display: flex;
  align-items: center;
  margin: 0 !important;
  width: 100%;
  order: -1;
}

.bc-strip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ══════════════════════════════════════
   MAIN CONTENT CARD (Product Area Only)
══════════════════════════════════════ */
/* Cleaned up redundant card block */

.offer-tab {
  position: absolute;
  top: 100%;
  /* Centered on the boundary line from image */
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(to bottom, #16b95c 0%, #27bb6e 100%) padding-box,
    linear-gradient(to bottom, #ffffff 50%, transparent 50%) border-box;
  padding: 6px 20px;
  border: 3px solid transparent;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1850;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 400;
  font-size: 15px;
  cursor: pointer;
  overflow: hidden;
  min-width: 140px;
  letter-spacing: 0.5px;
}

.offer-tab span {
  position: relative;
  z-index: 5;
}

/* Glassy Bottom Highlight */
.offer-tab::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 120%;
  height: 100%;
  background: #05ac59;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

/* Moving Flash Effect */
.offer-tab::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -150%;
  /* Start outside */
  width: 40%;
  height: 200%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.45) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(25deg);
  z-index: 2;
  animation: offerFlash 3.5s infinite;
  pointer-events: none;
}

@keyframes offerFlash {
  0% {
    left: -150%;
  }

  30% {
    left: 150%;
  }

  /* Sweep across */
  100% {
    left: 150%;
  }

  /* Pause on the other side */
}

/* Removing old glint element as it's now handled by the animated pseudo-element */
.offer-glint {
  display: none;
}

.bc-text {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
}

.crumb-dim {
  color: rgba(255, 255, 255, 0.6);
  /* Grey/subtle parent categories */
}

.crumb-active {
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  /* Large bold white active category */
  letter-spacing: 0.5px;
}

.bc-text span.arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  margin: 0 4px;
}

.pure-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  margin-left: auto;
  /* Ensures it floats to the far right */
  letter-spacing: 0.3px;
}

.chk-circle {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* ══════════════════════════════════════
   PRODUCT SECTION
══════════════════════════════════════ */
.prod-wrap {
  padding: 20px 20px 20px;
  /* Internal padding to create the horizontal space seen in the image */
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.prod-grid-area {
  flex: 1;
}

.prod-grid {
  display: flex;
  flex-direction: column;
}

.prod-grid-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 25px;
  row-gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e8edea;
  margin-bottom: 30px;
}

.prod-grid-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 5px;
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .banner-wrap {
    height: 340px !important;
    gap: 12px !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .banner-wrap {
    height: 270px !important;
    gap: 12px !important;
  }
}
/* Tablet Banner (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .banner-wrap {
    height: 270px !important;
    gap: 12px !important;
  }

  .banner-left {
    flex: 0 0 65% !important;
  }

  .banner-right {
    display: flex !important;
    flex: 1 !important;
  }
}

/* Mobile Responsive Optimizations */
@media (max-width: 767px) {
  /* Hide wishlist in top bar on mobile */
  .wishlist-link {
    display: none !important;
  }

  /* Compact Offer Today Button */
  .offer-tab {
    min-width: 120px;
    height: 38px;
    padding: 3px;
    top: 100% !important;
    transform: translate(-50%, -30%);
    /* Almost fully hanging on mobile for more breathing room */
    background: linear-gradient(to bottom, #16b95c 0%, #2dcb7a 100%) padding-box,
      linear-gradient(to bottom, #ffffff 30%, transparent 30%) border-box;
  }

  /* Compact Category Pills */
  .c-pill {
    padding: 7px 15px;
    /* Decreased height/width */
    min-width: 90px;
    font-size: 12px;
  }

  .offer-tab::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -10%;
    width: 120%;
    height: 100%;
    background: #05ac59;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
  }

  /* Fixed 200px Mobile Banner */
  .banner-wrap {
    height: 230px !important;
    display: flex;
    gap: 0 !important; /* No gap for single element */
  }

  .banner-left {
    flex: 0 0 100% !important; /* Full width */
    border-radius: 5px !important;
  }

  .banner-right {
    display: none !important; /* Hide on mobile as requested */
  }

  .br-header {
    margin-bottom: 8px !important;
  }

  .br-header-badge {
    font-size: 11px !important;
    padding: 3px 10px !important;
  }

  .br-list {
    gap: 4px !important;
  }

  .br-item {
    padding: 4px !important;
    gap: 6px !important;
  }

  .br-icon {
    width: 22px !important;
    height: 22px !important;
    padding: 4px !important;
  }

  .br-content h4 {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }

  .br-content p {
    display: none !important; /* Hide descriptions on small screens for readability */
  }

  .slide-inner {
    padding: 15px 10px !important;
  }

  .sl-title {
    font-size: 18px !important;
    line-height: 1.1 !important;
  }

  .sl-sub {
    font-size: 11px !important;
  }



  /* Responsive Breadcrumb Bar */
  .nav-breadcrumb-wrap {
    padding: 9px 15px;
    min-height: auto;
    top: 108px;
    /* Alignment for mobile header */
  }

  .bc-text {
    font-size: 12px;
    gap: 4px;
  }

  .crumb-active {
    font-size: 12px;
  }

  .pure-badge {
    font-size: 11px;
    gap: 6px;
  }

  .chk-circle {
    width: 16px;
    height: 16px;
  }
}

/* Extra Small Devices (Phone) */
@media (max-width: 480px) {
  .nav-breadcrumb-wrap {
    padding: 8px 10px;
    height: auto;
    top: 106px;
  }

  .bc-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .bc-text {
    font-size: 12px;
    gap: 2px;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .pure-badge {
    font-size: 9px;
    margin-left: 5px;
    flex-shrink: 0;
  }

  .offer-tab {
    min-width: 100px;
    font-size: 11px;
    height: 32px;
    transform: translate(-50%, -30%);
    /* Maintain low position on extra small screens */
  }

  .cat-slider-wrap {
    top: 50px;
  }

  /* Extra Small Category Pills */
  .c-pill {
    padding: 7px 15px;
    min-width: 78px;
    font-size: 11px;
  }
}

/* Skip animation during cart/qty updates */
.prod-grid.no-animate .p-card {
  animation: none !important;
  transition: none !important;
}

.p-card-wrapper {
  position: relative;
  margin-top: 15px;
  /* Entrance Animation */
  animation: cardEntrance 0.6s ease backwards;
}

/* Staggered entrance for the grid */
.p-card-wrapper:nth-child(1) {
  animation-delay: 0.05s;
}

.p-card-wrapper:nth-child(2) {
  animation-delay: 0.1s;
}

.p-card-wrapper:nth-child(3) {
  animation-delay: 0.15s;
}

.p-card-wrapper:nth-child(4) {
  animation-delay: 0.2s;
}

.p-card-wrapper:nth-child(5) {
  animation-delay: 0.25s;
}

/* Support for subsequent rows */
.p-card-wrapper:nth-child(n+6) {
  animation-delay: 0.3s;
}

.p-card {
  width: 225px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--bdr);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  /* Smoother transition */
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.p-card-wrapper:hover .p-card {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(26, 77, 46, 0.12);
}

.p-card-wrapper:hover .c-name {
  background: var(--gm);
}

.p-card-wrapper:hover .q-btn {
  border-color: var(--gd);
}

.p-card-wrapper:hover .add-btn {
  background: var(--gm);
}

/* Button Hover states */
.q-btn:hover {
  background: var(--gd) !important;
  color: #fff !important;
  transform: scale(1.1);
}

.rem-btn:hover {
  background: #a03030 !important;
  transform: scale(1.05);
}

.add-btn:hover {
  background: var(--ga) !important;
  transform: scale(1.05);
}

.p-card-wrapper:hover .img-ph {
  background: #f0f0f0;
  transform: scale(1.02);
}

.img-ph {
  transition: all 0.5s ease;
}

.p-card-wrapper:hover .c-name {
  border-color: var(--gl);
}

.c-img-area {
  padding: 0;
  background: #fafafa;
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-ph {
  width: 100%;
  aspect-ratio: 1/1;
  background: #eee;
  border-radius: 8px;
}

.c-header-wrap {
  position: relative;
  width: 100%;
}

.card-wishlist-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3CAD58;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  padding: 0;
}

.card-wishlist-btn:hover {
  color: #ffb3c1;
  transform: scale(1.1);
}

.card-wishlist-btn.active {
  color: #ffb3c1;
  fill: #ffb3c1;
}

.card-wishlist-btn svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
  transition: all 0.3s;
}

.card-wishlist-btn.active svg {
  fill: #ffb3c1;
}

/* Low stock warning badge — shown when ≤ 5 units remain */
.stock-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: #dc3545;
  color: #fff;
  font-size: 10px;
  font-weight: 400;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(220,53,69,0.35);
  z-index: 5;
}


.c-name {
  background: var(--gd);
  color: #fff;
  padding: 8px;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.6px;
}


.c-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  padding: 0px;
  border-bottom: 1px solid #f0f0f0;
}

.m-item {
  text-align: center;
  padding: 5px;
}

.m-lbl {
  display: block;
  color: var(--gd);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 2px;
  letter-spacing: 0.3px;
}

.m-val {
  color: #555;
  font-size: 12px;
  font-weight: 400;
}

.m-sep {
  height: 26px;
  background: #ddd;
  width: 1px;
}

.c-ctrls {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  /* Increased gap specifically between the two primary action buttons */
}

.qty-wrap {
  display: flex;
  align-items: center;
  gap: 0px;
}


.q-btn {
  background: transparent;
  color: var(--gd);
  border: 1px solid rgba(26, 77, 46, 0.35);
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 400;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.q-val {
  border: none;
  width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--gd);
  background: none;
}

.rem-btn,
.add-btn {
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 6px 18px;
  font-size: 10px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.btn-icon {
  display: none;
}

.rem-btn {
  background: #d04040;
}

.add-btn {
  background: var(--gd);
}

@media (max-width: 767px) {
  .c-ctrls {
    padding: 6px 8px;
  }

  .btn-text {
    display: none;
  }

  .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .rem-btn,
  .add-btn {
    width: 30px;
    height: 30px;
    padding: 15px 15px 15px 15px;
    border-radius: 50%;
  }

  .p-card-wrapper {
    width: 170px;
  }

  .p-card {
    width: 100%;
  }

  .c-name {
    padding: 6px 6px;
    font-size: 13px;
  }

  .m-item {
    padding: 2px 4px;
  }
}

/* ══════════════════════════════════════
   SIDEBAR CART (FLOATING)
══════════════════════════════════════ */
.cart-sidebar {
  width: 280px;
  background: #fff;
  border-radius: 30px 0 0 30px;
  border: 1px solid #00a046;
  border-right: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 20000;
  box-shadow: -5px 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-height: 90vh;
  transform-origin: right center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) scale(0);
  transition:
    opacity    0.35s cubic-bezier(0.4, 0, 0.8, 0),
    visibility 0s    0.35s,
    transform  0.35s cubic-bezier(0.4, 0, 1, 1);
}

.cart-sidebar.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
  transition:
    opacity    0.45s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s    0s,
    transform  0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-head {
  background: #00a046;
  color: #fff;
  padding: 6px 16px;
  border-radius: 0 0 8px 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  width: fit-content;
  margin: 0 auto 12px;
}

.cart-list {
  padding: 0 15px;
  margin-bottom: 10px;
  max-height: 45vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: #00a046 transparent;
}

.cart-list::-webkit-scrollbar {
  width: 4px;
}

.cart-list::-webkit-scrollbar-track {
  background: transparent;
}

.cart-list::-webkit-scrollbar-thumb {
  background: #00a046;
  border-radius: 4px;
}

.c-cart-item {
  display: flex;
  gap: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 8px 12px;
  background: #fff;
}

.c-cart-img-wrap {
  width: 50px;
  height: 50px;
  border: 1px solid #eee;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.c-cart-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.c-cart-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.c-cart-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.c-cart-name {
  color: var(--gd);
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
}

.c-cart-remove {
  background: none;
  border: none;
  color: #ff4d4d;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
}

.c-cart-controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.c-qty-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.c-qty-btn {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 3px;
  background: #00a046;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
}

.c-qty-btn i {
  pointer-events: none;
}

.c-qty-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--gd);
  min-width: 16px;
  text-align: center;
}

.c-cart-price-calc {
  font-size: 14px;
  color: var(--gd);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.cart-bottom {
  margin-top: auto;
  padding: 10px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cart-total-area {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--gd);
}

.currency-icon {
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
}

.total-amount {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.checkout-btn {
  background: #00a046;
  color: white;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 24px;
  border-radius: 40px;
  width: 100%;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 160, 70, 0.3);
  position: relative;
  overflow: hidden;
}

.checkout-btn:hover {
  background: #008a3c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 160, 70, 0.4);
}

.checkout-btn.btn-disabled,
.cart-link.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(1);
  cursor: not-allowed;
}

/* Shimmer Effect Animation */
.checkout-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(30deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -60%;
  }

  30% {
    left: 120%;
  }

  100% {
    left: 120%;
  }
}

@media (max-width: 1199px) {
  .p-card {
    width: 190px;
  }

  .cart-sidebar {
    position: fixed;
    bottom: 20px;
    top: auto;
    right: 20px;
    /* No translateY here — sidebar anchors to bottom edge, not viewport centre */
    transform: scale(0);
  }

  .cart-sidebar.show {
    transform: scale(1);
  }
}


@media (max-width: 575px) {
  .prod-wrap {
    padding: 20px 0px 20px 0px;
    gap: 15px;
  }

  .prod-grid-row {
    column-gap: 15px;
    row-gap: 10px;
  }

  .p-card-wrapper {
    width: calc(50% - 5px);
    max-width: 160px;
  }

  .p-card {
    width: 100%;
  }

  .steps {
    display: none;
  }

  .cart-sidebar {
    display: none;
  }

  .c-qty-val {
    font-size: 12px;
  }

  .c-qty-btn {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
}

/* ══════════════════════════════════════
   CART ICON PREMIUM ANIMATIONS
══════════════════════════════════════ */

/* Glow ring layer on the icon-wrap */
.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid transparent;
  pointer-events: none;
}

/* ── Absorb animation: fires when the sidebar collapses back into the button ── */
@keyframes cart-absorb-bounce {
  0%   { transform: scale(1)    rotate(0deg); }
  18%  { transform: scale(1.35) rotate(-12deg); }
  35%  { transform: scale(0.88) rotate(8deg); }
  55%  { transform: scale(1.18) rotate(-5deg); }
  72%  { transform: scale(0.95) rotate(3deg); }
  88%  { transform: scale(1.06) rotate(-1deg); }
  100% { transform: scale(1)    rotate(0deg); }
}

@keyframes cart-absorb-glow {
  0%   { box-shadow: 0 0 0px  0px  rgba(168, 213, 181, 0);   border-color: transparent; }
  20%  { box-shadow: 0 0 18px 8px  rgba(168, 213, 181, 0.75); border-color: rgba(255,255,255,0.7); }
  55%  { box-shadow: 0 0 10px 4px  rgba(168, 213, 181, 0.45); border-color: rgba(255,255,255,0.45); }
  100% { box-shadow: 0 0 0px  0px  rgba(168, 213, 181, 0);   border-color: transparent; }
}

/* @keyframes cart-absorb-shimmer {
  0%   { left: -80%; opacity: 0; }
  15%  { opacity: 1; }
  60%  { left: 120%; opacity: 0; }
  100% { left: 120%; opacity: 0; }
} */

/* Shimmer sweep overlay on the icon-wrap */
/* .cart-icon-wrap::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 35%;
  height: 200%;
  background: linear-gradient(to right,
    rgba(255,255,255,0)   0%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0)   100%);
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0;
  z-index: 5;
} */

/* ── Active class added by JS ── */
.cart-icon-absorbing .custom-cart-icon {
  animation: cart-absorb-bounce 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

.cart-icon-absorbing::after {
  animation: cart-absorb-glow 0.5s ease forwards;
}

.floating-cart-absorbing {
  /* Removed shake animation as requested */
}

.floating-cart-absorbing::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: cart-absorb-glow 0.5s ease forwards;
  pointer-events: none;
}

/* ── Add-to-cart "pop" on badge ── */
@keyframes badge-pop {
  0%   { transform: translateX(-50%) scale(1); }
  40%  { transform: translateX(-50%) scale(1.7); }
  70%  { transform: translateX(-50%) scale(0.85); }
  100% { transform: translateX(-50%) scale(1); }
}

.cart-count.badge-popping {
  animation: badge-pop 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

/* ══════════════════════════════════════
   FLY-TO-CART CLONE (Mobile)
   A ghost copy of the product image that
   flies from the card to the cart icon.
══════════════════════════════════════ */
.cart-fly-clone {
  position: fixed;     /* fixed relative to viewport to accurately target floating header */
  z-index: 99999;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 77, 46, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.7);
  pointer-events: none;
  will-change: transform, opacity;
  /* initial state — JS overrides transition & final transform */
  transform: translate(0, 0) scale(1);
  opacity: 1;
}


/* ══════════════════════════════════════
   MOBILE BOTTOM NAVIGATION BAR
   Visible only on screens ≤ 767px
══════════════════════════════════════ */
.mob-bottom-nav,
.mob-cart-overlay,
.mob-cart-sidebar {
  display: none;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 60px;
  }

  .mob-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--gd);
    z-index: 19000;
    box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.18);
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 8.5px;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 4px 2px;
    border-radius: 10px;
    transition: color 0.18s ease, background 0.18s ease, transform 0.15s ease;
    position: relative;
  }

  .mob-nav-item i,
  .mob-nav-icon {
    font-size: 18px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.85;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .mob-nav-item.active i,
  .mob-nav-item:hover i,
  .mob-nav-item.active .mob-nav-icon,
  .mob-nav-item:hover .mob-nav-icon {
    opacity: 1;
  }

  .mob-nav-item:hover,
  .mob-nav-item.active {
    color: #ffffff;
    transform: translateY(0px);
  }

  .mob-nav-item:hover i,
  .mob-nav-item.active i,
  .mob-nav-item:hover .mob-nav-icon,
  .mob-nav-item.active .mob-nav-icon {
    transform: scale(1.12);
  }

  .mob-cart-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mob-cart-badge {
    position: absolute;
    top: -6px;
    right: -7px;
    background: #fff;
    color: var(--gd);
    font-size: 8px;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
  }

  .mob-cart-badge.zero {
    display: none;
  }

  @keyframes mob-badge-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.6); }
    70%  { transform: scale(0.88); }
    100% { transform: scale(1); }
  }

  .mob-cart-badge.badge-pop {
    animation: mob-badge-pop 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
  }

  /* ══════════════════════════════════════
     MOBILE CART SIDEBAR
  ══════════════════════════════════════ */
  .mob-cart-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .mob-cart-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .mob-cart-sidebar {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    background: #FAFAFA;
    z-index: 99999;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  .mob-cart-sidebar.show {
    right: 0;
  }

  .mob-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
  }
  .mob-cart-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
  }
  .mob-cart-close {
    background: none;
    border: none;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mob-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #fff;
  }

  /* Promo Banner */
  .mob-cart-promo {
    background: var(--gp);
    border: 1px solid var(--bdr);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    margin-bottom: 24px;
    overflow: hidden;
  }
  .mob-cart-promo::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: promo-shine 8s infinite;
  }
  .promo-icon {
    width: 32px;
    height: 32px;
    background: var(--gd);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
  }
  .promo-text {
    flex: 1;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
  }
  .promo-text p {
    margin: 0;
    color: #777;
  }
  .promo-text strong {
    color: var(--gd);
  }
  .promo-text a {
    text-decoration: none;
    color: inherit;
  }
  .promo-text a:hover {
    text-decoration: none;
  }
  .promo-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #F0F0F0;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #888;
  }

  /* Cart Items */
  .mob-cart-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .m-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 12px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  }
  .m-cart-img {
    width: 50px;
    height: 50px;
    border: 1px solid #eee;
    border-radius: 6px;
    object-fit: contain;
    padding: 4px;
  }
  .m-cart-details {
    flex: 1;
  }
  .m-cart-name {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    padding-right: 20px; /* space for close btn */
  }
  .m-cart-controls {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .m-qty-btn-group {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    height: 28px;
  }
  .m-qty-btn {
    background: none;
    border: none;
    width: 28px;
    height: 100%;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .m-qty-val {
    width: 28px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    line-height: 28px;
  }
  .m-cart-price-calc {
    font-size: 13px;
    color: #555;
  }
  .m-cart-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 14px;
    color: #999;
  }

  /* Footer Section */
  .mob-cart-footer {
    background: #FAFAFA;
    padding: 16px 20px;
    border-top: 1px solid #eee;
  }
  .mob-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
  }
  .mob-cart-grand-total {
    font-weight: 700;
  }
  .btn-mob-checkout {
    display: block;
    width: 100%;
    background: var(--gd);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
    animation: checkout-shake 3s ease-in-out infinite;
  }
  .btn-mob-checkout:hover {
    background: var(--ga);
    color: #fff;
  }
}

/* ══════════════════════════════════════
   FLOATING CART (Right Side)
══════════════════════════════════════ */
.floating-cart {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--gd);
  color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  width: auto;
  padding: 0 5px;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  border: 6px solid #fff;
  border-right: none;
  box-shadow: 0 0 0 2px #0ba360;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, opacity 0.3s, visibility 0.3s;
}

.floating-cart.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(20px);
}

.floating-cart:hover {
  transform: translateY(-50%) translateX(-3px);
  background-color: var(--gm);
  color: #fff;
}

.fc-top {
  padding: 12px 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.fc-icon {
  padding: 5px 0px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-count {
  position: absolute;
  top: 45%;
  left: 60%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.fc-divider {
  width: 100%;
  height: 2px;
  background: #0ba360; /* Slightly lighter green for the separator */
  margin: 0;
}

.fc-bottom {
  padding: 8px 5px 12px;
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.fc-currency {
  font-size: 15px;
}

@media (max-width: 767px) {
  .floating-cart {
    min-width: 40px;
    width: auto;
    padding: 0 4px;
    border-width: 3px;
    top: auto;
    bottom: 350px; /* User preferred position */
    transform: none;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    box-shadow: 0 0 0 1.5px #0ba360;
  }

  .floating-cart:hover {
    transform: translateX(-2px);
  }

  .floating-cart.hide {
    transform: translateX(100%);
    opacity: 0;
  }

  .fc-icon img {
    width: 28px !important;
  }

  .fc-count {
    font-size: 8px;
    top: 45%;
  }

  .fc-count.badge-popping {
    animation: none !important;
  }

  .fc-divider {
    height: 1.5px;
  }

  .fc-bottom {
    padding: 3px 2px 6px;
    font-size: 8px;
    gap: 1px;
    font-weight: 600;
  }

  .fc-currency {
    font-size: 10px;
  }
}

/* ── Shake animation for mobile checkout button ── */
@keyframes checkout-shake {
  0%, 85%, 100% { transform: translateX(0); }
  87% { transform: translateX(-3px) rotate(-1deg); }
  89% { transform: translateX(3px) rotate(1deg); }
  91% { transform: translateX(-3px) rotate(-1deg); }
  93% { transform: translateX(3px) rotate(1deg); }
  95% { transform: translateX(0); }
}

@keyframes promo-shine {
  0% { left: -150%; }
  25% { left: 150%; }
  100% { left: 150%; }
}
