/* ==================== Body & Text ==================== */
#shop {
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #3b1f1f;
  padding-top: 80px; /* ✅ FIX FOR FIXED NAVBAR */
}

/* ✅ EXTRA SAFETY FOR SMALL PHONES (PORTRAIT) */
@media (max-width: 480px) {
  .category-sidebar {
    top: 140px;
    height: calc(100vh - 140px);
    width: 180px !important;
  }
}

/* ================= HERO ================= */
.hero {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px 0 60px 0;
  position: relative;
  z-index: 1;
}

.hero-slider {
  width: 100%;
  max-width: 1280px;
  min-height: 50vh;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* ================= MOBILE HERO ================= */
@media (max-width: 480px) {
  .hero {
    padding: 10px 12px;   /* corrected units */
    margin: 10px 0 40px 0; /* keeps vertical spacing */
    box-sizing: border-box; /* ensures padding doesn't push content out */
  }

  .hero-slider {
    width: 99%;
    margin: 0 auto;
    min-height: 25vh;
    border-radius: 14px;
    display: block; /* ensures it respects margin: auto */
  }
}
.hero-slide img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
}

/* ================= MOBILE CART – SIDE PANEL (NOT FULL SCREEN) ================= */
#cart {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;

  width: 360px;          /* desktop */
  max-width: 100%;

  background: #fff;
  z-index: 9999;

  /* fully hidden */
  transform: translateX(100%);
  transition: transform 0.35s ease;

  pointer-events: none;
  overflow-y: auto;
}

/* OPEN STATE */
#cart.active {
  transform: translateX(0);
  pointer-events: auto;
}

/* Lock page scroll */
body.cart-open {
  overflow: hidden;
}

/* Header label */
#cart::before {
  content: "Your Cart";
  font-size: 18px;
  font-weight: 600;
  padding: 15px;
  display: block;
  border-bottom: 1px solid #eee;
}

/* ================= MOBILE WIDTH REDUCTION ================= */
@media (max-width: 480px) {
  #cart {
    width: 70vw;        /* ✅ NOT full screen */
    max-width: 78vw;
  }
}


/* ================= HEADER ================= */
.cart-container::before {
  content: "Your Cart";
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

.cart-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #f1921f;
  transition: 0.2s;
}

.cart-close-btn:hover {
  color:  #791617;
  transform: scale(1.1);
}

/* ================= CART ITEMS ================= */
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.cart-item span {
  font-weight: 500;
}

.cart-item span:last-child {
  font-weight: bold;
}

.cart-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
  flex-shrink: 0;
}

.cart-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 10px;
}

.cart-name {
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-price {
  font-size: 13px;
  color: #333;
}

.cart-qty {
  font-size: 12px;
  color: #777;
}

/* Remove button */
.cart-item button.remove-item {
  background: #f1921f;
  border: none;
  color: #fff;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 12px;
  transition: 0.25s;
}

.cart-item button.remove-item:hover {
  background:  #791617;
  transform: scale(1.05);
}

/* ================= TOTAL ================= */
  .cart-total {
  margin-top: 20px; /* was auto, now fixed spacing */
  padding-top: 18px;
  font-weight: bold;
  font-size: 18px;
  text-align: right;
  border-top: 2px solid #eee;
}

/* ================= CART ACTION BUTTONS ================= */
.cart-actions {
  margin-top: 15px; /* space between total and buttons */
  display: flex;
  gap: 10px;
}

.clear-cart-btn,
.checkout-btn {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

/* Clear cart */
.clear-cart-btn {
  background: #e6e6e6;
  color: #333;
}

.clear-cart-btn:hover {
  background: #ccc;
  transform: scale(1.03);
}

/* Checkout */
.checkout-btn {
  background: #f1921f;
  color: #fff;
}

.checkout-btn:hover {
  filter: brightness(1.05);
  transform: scale(1.03);
  background:  #791617;
}

/* ================= EMPTY MESSAGE ================= */
.cart-container p {
  text-align: center;
  margin-top: 60px;
  font-size: 16px;
  color: #777;
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
  .cart-container {
    width: 100%;
  }
}
/* Show cart icon in the center when empty */
.cart-container.empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url('flour/ajab.jpeg') no-repeat center center;
  background-size: 80px 80px; /* adjust size */
}

.cart-container.empty p {
  margin-top: 100px; /* space between icon and text */
  font-size: 16px;
  color: #777;
}

/* ===============GLOBAL ADD TO CART BUTTON================ */
.add-to-cart-btn {
  margin-left: 40px;
  margin-top: 10px;
  padding: 10px 16px;
  width: 50% !important;
  background: #ffffff;      /* white background */
  color: #C91600;           /* red text */
  font-weight: 700;
  font-size: 14px;
  border: 1px solid #C91600; /* red border */
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.3s ease; /* smooth hover transition */
}

.add-to-cart-btn:hover {
  background: #C91600;      /* red background on hover */
  color: #ffffff;           /* text becomes white */
  border: 1px solid #C91600; /* keep border consistent */
}


/* ==================== Container ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* margin from page edges */
}

/* ==================== MAIN NAVBAR ==================== */
.main-nav {
  width: 100%;
  height: 190px;
  background: linear-gradient(to bottom, #fff);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 0 40px 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  color: #fff;
      /* 🔹 Shadow added */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Wrapper for the promo text, sitting above main navbar content */
.nav-promo-wrapper {
  position: absolute;      /* sit above other navbar content */
  top: 20px;                  /* stick to top of navbar */
  left: 50%;               /* horizontal centering trick */
  transform: translateX(-50%); /* truly center it */
  width: auto;             /* adjust width as needed */
  text-align: center;
  z-index: 101;            /* above other navbar items */
  padding: 5px 10px;       /* small spacing */
}

/* Promo text itself */
.nav-promo {
  color: #C91600;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;     /* prevent wrapping */
}

/* ==================== TOP ROW ==================== */
.nav-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 75px;
  padding-bottom: 10px;
  position: relative;
}

.nav-top-wrapper {
  position: absolute;
  top: 15px;
  left: 2px;
  display: flex;        /* places boxes side by side */
  gap: 8px;             /* space between them */
  z-index: 2000;
}

.nav-top-box {
  height: 40px;
  width: 160px;
  background: #ffffff;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #C91600;
  font-size: 18px;
  font-weight: bold;
  border: solid 1px #C91600;
}

.nav-icon {
  width: 200px;
  height: 50px;
  object-fit: contain;
}


/* ==================== LOGO ==================== */
.nav-logo {
  height: 40px;
  display: flex;
  align-items: center;
}

.nav-logo a {
  display: block;
}

.nav-logo img {
  background: none;
  border-radius: 5px;
  width: 180px;
  height: 200px;
  object-fit: contain;
  display: block;
}


/* ==================== LOCATION ==================== */
.nav-location {
  color: #C91600;
  font-size: 13px;
  line-height: 1.2;
  flex-shrink: 1;   /* allow shrinking */
  min-width: 0;
}

.nav-location strong {
  font-size: 14px;
}

/* ==================== SEARCH ==================== */
.nav-search {
  flex: 1 1 auto;      /* expand both sides */
  min-width: 200px;
  max-width: none;     /* REMOVE cap so it can grow */
  display: flex;
  align-items: center;
  height: 40px;
  background: #fff;
  border: 1px solid #C91600;
  border-radius: 5px;
  padding: 0 12px;
  overflow: hidden;  
}

.nav-search .input-left-img {
  width: 34px;
  height: 34px;
  margin-right: 8px;
}

.nav-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
}

.nav-search button {
  background: none;
  border: none;
  cursor: pointer;
}

.nav-search .nav-icon-img {
  width: 26px;
  height: 26px;
}

/* ==================== RIGHT SECTION ==================== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 1;   /* CHANGED from 0 */
  min-width: 0;     /* IMPORTANT so search can cover it */
}

.nav-account {
  color: #A62D38;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 4px!important;
  height: 22px!important;
  cursor: pointer;
  transition: background 0.2s ease;
  border: solid 1px #C91600;
}

.nav-cart {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border: solid 1px #C91600;
}

.nav-cart .cart-count {
  background: #C91600;
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
}

/* ==================== CATEGORIES ==================== */
.nav-bottom {
  padding-top: 5px;
  padding-bottom: 10px;
}

.categories-list {
  list-style: none;
  display: flex;
  gap: 22px;
  padding: 0 20px 0 40px;
  margin: 0;
  white-space: nowrap;
  overflow-x: auto;
}

.categories-list li {
  display: flex;
  align-items: center;
  height: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: #C91600;
}

.categories-list li:hover {
  text-decoration: underline;
  text-underline-offset: 6px;  /* distance from text */
  text-decoration-thickness: 2px; /* optional: thickness */
  color: #C91600;
}


.categories-list .all-categories {
  gap: 6px;
}

.categories-list .all-categories img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

/* Hide scrollbar */
.categories-list::-webkit-scrollbar {
  display: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1023px) {
  .categories-list {
    display: none;
  }

  .nav-top {
    flex-wrap: wrap;
    padding-top: 70px;
  }

  .nav-search {
    max-width: 100%;
  }
}

/* ==================== HERO WORDS ==================== */
.hero-words {
  height: 45px;               /* fixed height */
  margin-top: 111px;           /* space below navbar */
  background: #C91600;
  display: flex;              /* flex container */
  align-items: center;        /* vertical centering */
  justify-content: center;    /* horizontal centering */
  text-align: center;
  padding: 0 20px;            /* horizontal padding only */

  /* 🔹 Shadow added */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
position: relative;         /* needed for z-index stacking */
  z-index: 101;               /* above page content, below navbar */
}

.hero-words h1 {
  margin: 0;                  /* remove default h1 margin */
  font-size: 24px;            /* smaller font to fit 45px height */
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;        /* vertical center inside h1 */
}

.changing-word {
  color: #C91600;
  border-right: 3px solid #C91600;  /* blinking cursor */
  padding-right: 6px;
  margin-left: 6px;
  white-space: nowrap;
  display: inline-block;      /* ensures flex alignment works */
  transition: all 0.4s ease;  /* smooth animation for fade/slide/scale */
}


/* ===== ANIMATION STYLES FOR DIFFERENT WORDS ===== */

/* Fade In */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* Slide Up */
.slide-up {
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.6s forwards;
}
@keyframes slideUp {
  to { transform: translateY(0); opacity: 1; }
}

/* Pop/Scale */
.pop {
  transform: scale(0);
  animation: pop 0.5s forwards;
}
@keyframes pop {
  to { transform: scale(1); }
}




@media (min-width: 992px) {

  /* Items that collapse */
  .nav-location,
  .nav-account {
    flex: 0 0 auto;
    max-width: 220px;
    opacity: 1;
    transform: translateY(0);
    transition:
      max-width 0.35s ease,
      opacity 0.35s ease,
      transform 0.35s ease;
    white-space: nowrap;
    overflow: hidden;
  }

  /* Collapse them */
  .main-nav.scrolled .nav-location,
  .main-nav.scrolled .nav-account {
    max-width: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }

  /* SEARCH */
  .nav-search {
    flex: 1 1 auto;
    transition: flex 0.35s ease;
  }

  /* NOW it stretches */
  .main-nav.scrolled .nav-search {
    flex: 3 1 auto;
  }
}

/* Account */
/* ==================== Account Hover ==================== */
.nav-account {
  background: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-account:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ==================== Cart ==================== */
.nav-cart {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.nav-cart:hover {
  background: #f5f5f5;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Cart count stays sharp */
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff5c5c;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}
/* ================= MOBILE TOP NAV – FIXED & CONTAINED ================= */
@media (max-width: 480px) {

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 170px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 8px;

    padding: 12px 16px 105px;  /* ↑ increase bottom padding to extend red background */
    background: white;
    z-index: 10000;
  }

  .nav-logo img {
    height: 40px;          /* mobile-friendly size */
    width: auto;
    margin-top: -30px;
    visibility: visible;
  }

   .nav-location {
    margin-top: -30px;
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;

    color: #C91600;
    font-size: 13px;
    line-height: 1.3;

    margin-left: auto; /* 🔑 pushes it to the right */
  }

  .nav-location strong {
    font-size: 14px;
    font-weight: 600;
  }

  .nav-search {
    margin-top: -20px;
    width: 100vw !important;     /* 🔥 ignore parent limits */
    max-width: 85vw;
    margin-left: 0 !important;
    margin-right: 0 !important;

    padding-left: 16px;
    padding-right: 16px;

    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-search input {
    flex: 1;
    height: 100%;
    padding: 0 14px;
    border: none;
    outline: none;
    font-size: 14px;
  }

  .nav-search button {
    height: 100%;
    padding: 0 14px;
    background: none;
    border: none;
    color: #e53935;
  }

  .nav-right {
    display: none;
  }
  .nav-top-box {
    margin-top: -10px;
    height: 40px;
    width: 160px;
    background: #ffffff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #C91600;
    font-size: 18px;
    font-weight: bold;
    border: solid 1px #C91600;
  }
  .hero-words {
    height: auto;                 /* allow content to breathe */
    min-height: 38px;
    margin-top: 90px;            /* adjust for fixed mobile nav */
    padding: 6px 12px;
    border-radius: 0;
  }

  .hero-words h1 {
    font-size: 18px;              /* smaller text for mobile */
    font-weight: 700;
    line-height: 1.2;
    flex-wrap: wrap;              /* prevent overflow */
  }

  .changing-word {
    padding-right: 4px;
    margin-left: 4px;
    border-right-width: 2px;      /* thinner cursor */
    font-size: 18px;
  }
    .nav-promo-wrapper {
    display: none !important;
  }

  /* Hide bottom categories row */
  .nav-bottom {
    display: none !important;
  }
}
/* ==================== Top Section: Categories + Hero ==================== */

.top-section {
  width: 100%;
}

.top-section .top-container {
  display: flex;
  align-items: stretch;   /* makes hero & category same height */
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

/* Categories sidebar */
.categories-bar {
  background-color: #f8f1ef;
  padding: 10px 20px;
  text-align: center;
  margin-bottom: 30px;
}

.categories-list {
  display: inline-flex;
  gap: 15px;
  overflow-x: auto;
  justify-content: center;
  scrollbar-width: thin;
}

.categories-list::-webkit-scrollbar {
  height: 6px;
}

.categories-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.categories-list a {
  text-decoration: none;
  color: #3b1f1f;
  font-weight: bold;
  white-space: nowrap;
}

.categories-list a:hover {
  color: #d35400;
}
/* ✅ CATEGORY STRIP */
/* ================= CATEGORY STRIP ================= */
.category-strip {
  background: #fff3f2;
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
  margin-top: 0px; /* adjust to navbar height */
  z-index: 5;
  position: relative;
}
/* HAMBURGER BUTTON */
.category-hamburger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 8px;
  background: #fff;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Hamburger icon (3 bars) */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 12px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  background: #333;
  border-radius: 1px;
}

/* SIDEBAR */
.category-sidebar {
  position: fixed;
  top: 110px; /* ✅ raised */
  left: -320px;
  width: 280px;
  height: calc(100vh - 70px);
  background: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: left 0.3s ease;
  padding: 0 20px 20px;
  overflow-y: scroll;
}

/* Hide scrollbar for Chrome, Edge, Safari */
.category-sidebar::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* Active sidebar */
.category-sidebar.active {
  left: 0;
}
.sidebar-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px; /* space between title and category list */
  color: #791617;
}


 
/* CLOSE BUTTON */
.category-sidebar .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;   /* ✅ moves it to the right */
  font-size: 26px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1000;
}


 
/* CATEGORY LIST */
.category-list-sidebar {
  list-style: none;
  padding: 0;
  margin: 0; /* ✅ FIX */
}

.category-list-sidebar li {
  display: flex;             /* allows image + text */
  align-items: center;
  gap: 10px;                 /* space between icon and text */
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  font-weight: 500;
}

.category-list-sidebar li:hover {
  background: #f5f5f5;
}

/* Optional: small icon for each category */
.category-list-sidebar li img {
  width: 50px;    /* size of the icon */
  height: 50px;   /* size of the icon */
  object-fit: cover;
  border-radius: 4px;
}

/* ==================== Products Grid ==================== */
.products {
  width: 100%;
  margin: 50px 0;        /* vertical spacing between grids */
  position: relative;     /* for scroll buttons or absolute elements */
}

/* Grid title */
.grid-title,
.products h2 {
  margin: 0 0 10px 10px; /* top: 0, bottom: 10px, left: 10px */
  font-size: 20px;
  font-weight: bold;
}

/* Products container */
.products-container {
  display: flex;
  gap: 10px;                  /* spacing between cards */
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px 40px;         /* add left/right space on edges */
  box-sizing: border-box;

  -ms-overflow-style: none;
  scrollbar-width: none;
}

.products-container::-webkit-scrollbar {
  display: none;               /* Chrome, Safari, Opera */
}

.products-container .product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Product cards */
.product-card {
  flex: 0 0 150px;             /* slightly wider than before */
  min-width: 150px;
  height: 300px;               /* same height as before */
  border: 1px solid #D9D9D9;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  background-color: #fff;
  transition: transform 0.3s;
}

/* Hover effect for horizontal scrolling product cards */
.products-container .product-card:hover {
  border-color: #f1921f;
}
/* Push Add to Cart button to bottom */
.product-card .add-to-cart {
  margin-top: auto; /* pushes button to bottom */
  padding: 8px 12px;
  background-color:#f1921f;
  color: #fff;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.3s;
}

/* Scrollbar */
.products-container::-webkit-scrollbar {
  display: none;             /* Chrome, Safari, Opera */
}
.products-container::-webkit-scrollbar-thumb {
  background-color: #d35400;
  border-radius: 4px;
}

/* ================= HOME HORIZONTAL SCROLL – MOBILE APP SIZE ================= */
@media screen and (max-width: 480px) {

  /* 1. The Container */
  .products:not(.full-page) .products-container {
    display: flex;
    overflow-x: auto;
    /* Forces the scroll to lock onto your pairs */
    scroll-snap-type: x mandatory; 
    
    /* This creates the 'Red Space' gutters on the very edges */
    padding: 0 16px; 
    /* Space between the two cards */
    gap: 12px; 
    
    -ms-overflow-style: none;
    scrollbar-width: none;
    
    /* Ensures the snap always respects your 16px gutter */
    scroll-padding-left: 16px;
  }

  .products:not(.full-page) .products-container::-webkit-scrollbar {
    display: none;
  }

  /* 2. The 2-Product "Paging" Rule */
  .products:not(.full-page) .product-card {
    /* MATH: 50% width minus (half the gap) minus (adjustment for container padding) */
    /* This ensures 2 items fill the space between the red zones perfectly */
    flex: 0 0 calc(50% - 22px); 
    max-width: calc(50% - 22px);
    
    height: 250px;
    padding: 8px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eee;
    
    /* Snaps the card to the 16px edge */
    scroll-snap-align: start;
    /* Prevents the user from scrolling past products too fast */
    scroll-snap-stop: always; 
    
    box-sizing: border-box;
    transform: none;
  }

  /* 3. Image */
  .products:not(.full-page) .product-card img {
    height: 85px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 6px;
    display: block;
  }

  /* 4. Product name with standard compatibility */
  .products:not(.full-page) .product-card h3,
  .products:not(.full-page) .product-card .product-name {
    font-size: 12px;
    line-height: 1.2;
    margin: 4px 0;
    text-align: center;
    
    /* Clamping to 2 lines so long names don't break the card */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2; 
    overflow: hidden;
    min-height: 2.4em;
  }

  /* 5. Price */
  .products:not(.full-page) .product-card p {
    font-size: 12px;
    font-weight: 700;
    margin: 5px 0;
    text-align: center;
  }

  /* 6. Button */
  .products:not(.full-page) .product-card button {
    font-size: 12px;
    padding: 8px 0;
    width: 90%;
    margin: 5px auto 0;
    display: block;
    border-radius: 8px;
  }

  /* Disable hover zoom on mobile */
  .products:not(.full-page) .product-card:hover {
    transform: none;
    box-shadow: none;
  }  
}


/* Full-page section */
.products.full-page {
  margin: 50px 0;       /* vertical spacing between full-page grids */
  padding: 0 20px;      /* horizontal padding */
  box-sizing: border-box;
}

/* Products container in full-page view (grid layout) */
.products-container.grid-view {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 cards per row */ 
  padding: 20px;        /* space around edge cards to prevent clipping */
  box-sizing: border-box;
  overflow: visible;
  gap: 8px;    /* ensure hover scale isn't clipped */
}

/* Product cards in full-page grid */
.products-container.grid-view .product-card {
  flex: 0 0 130px;      /* slim width */
  min-width: 130px;
  height: 350px;        /* keep desired height */
  border: 1px solid#D9D9D9;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  background-color: #fff;
  transition: transform 0.3s;
}

/* Hover effect */
.products-container.grid-view .product-card:hover {
  border-color: #f1921f;
  transform: scale(1.03); /* smaller growth to prevent clipping */
}

/* Product images */
.product-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #fff;
}

/* ================= PRICE STYLING ================= */

/* Product price */
.product-card p {
  margin: 8px 0 12px;
  font-size: 15px;
  font-weight: 650;
  color: #f1921f;                /* supermarket green */
  letter-spacing: 0.2px;
}
.products-container.grid-view .product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info {
    flex-grow: 1;
}

.product-card button {
    margin-top: auto;
    width: 100%;
}

/* Responsive grid */
@media screen and (max-width: 1200px) {
  .products-container.grid-view { grid-template-columns: repeat(4, 1fr); }
}

@media screen and (max-width: 992px) {
  .products-container.grid-view { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (max-width: 768px) {
  .products-container.grid-view { grid-template-columns: repeat(2, 1fr); }
}
/* ================= MOBILE GRID (4 PER ROW – FIXED) ================= */
@media screen and (max-width: 480px) {

  .products-container.grid-view {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* ✅ prevent overflow */
    gap: 6px;
    padding: 6px;
    width: 100%;
    max-width: 100vw;
  }

  .products-container.grid-view .product-card {
    min-width: 0;        /* ✅ critical */
    height: auto;
    padding: 6px;
    overflow: hidden;
  }

  .products-container.grid-view img {
    width: 100%;
    height: 90px;
    object-fit: contain;
  }

  .products-container.grid-view p {
    font-size: 12px;
    line-height: 1.2;
  }
}

.see-more-wrapper {
  text-align: center;   /* center the button below the products */
  margin-top: 10px;     /* spacing above button */
}

.see-more-btn {
  padding: 0;                /* remove extra padding */
  background: none;           /* no background */
  color: #f1921f;            /* button text color */
  font-weight: 600;           /* reduced font weight */
  font-size: 15px;            /* smaller font size */
  border: none;               /* remove border */
  outline: none;              /* remove focus outline */
  cursor: pointer;
  transition: color 0.3s ease;
}

.see-more-btn:hover {
  color: #C91600;             /* hover color change */
  transform: none;            /* no lift effect */
}


/* Modal overlay */
/* ========Product Detail Modal========= */
.product-detail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000; /* above navbar */
  overflow-y: auto;
  box-sizing: border-box;
}

.product-detail.hidden {
  display: none;
}

/* ==========================
   MODAL CONTENT WRAPPER
   ========================== */
.detail-wrapper {
  background: #ffffff;
  border-radius: 14px;
  padding: 30px 20px 20px; /* extra top padding for close button */
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);

  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CLOSE BUTTON — TOP RIGHT OF MODAL */
.close-detail {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #791617;
  color: #fff;
  border: none;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  z-index: 99;

  display: flex;
  align-items: center;
  justify-content: center;
}

.close-detail:hover {
  background: #ff3b30;
  transform: scale(1.08);
}

/* ==========================
   TOP SECTION (IMAGE + INFO)
   ========================== */

.detail-top {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

/* LEFT IMAGE */
.detail-left img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  object-fit: cover;
}

/* RIGHT CONTENT */
.detail-right {
  flex: 1;
}

/* ==========================
   RELATED PRODUCTS
   ========================== */

.related-products {
  margin-top: 30px;
  margin-left: 200px;
}

.related-products h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #f1921f;
  margin-bottom: 15px;
  margin-left: -300px;
}

.related-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.related-container::-webkit-scrollbar {
  display: none;
}

/* Individual related cards */
.related-card {
  flex: 0 0 auto;
  width: 120px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.related-card p {
  font-size: 0.85rem;
  margin: 6px 0;
  padding: 0 5px;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* ==========================
   RESPONSIVE
   ========================== */

@media (max-width: 768px) {
  .detail-top {
    flex-direction: column;
    align-items: center;
  }

  .detail-left img {
    max-width: 100%;
  }

  .detail-wrapper {
    width: 95%;
    max-height: 95vh;
  }
}


/* Related products section below item details */
.related-products {
  margin-top: 20px;
}

.related-products h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 30px;
  padding-left: 350px;
  color: #f1921f;
}

.related-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.related-container::-webkit-scrollbar {
  display: none;
}

/* Individual related product cards */
.related-card {
  flex: 0 0 auto;
  width: 120px;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: #f1921f;
}

.related-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.related-card p {
  font-size: 0.85rem;
  margin: 5px 0;
  padding: 0 5px;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-color: #f1921f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .detail-top {
    flex-direction: column;
    align-items: center;
  }

  .detail-left img {
    max-width: 100%;
  }

  .detail-right {
    width: 100%;
  }
}

@media (max-height: 600px) {
  .product-detail {
    padding-top: 40px;
  }
}

/* ==================== Footer ==================== */
/* --- Variables for easy colour changes --- */

/* --- Main Footer Container --- */
.eastmatt-footer {
    background-color: #C91600;
    color: white;
    font-family: 'Montserrat', sans-serif;
    padding: 40px 20px; /* taller footer */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    box-sizing: border-box;
    font-weight: 500; /* default footer text slightly bolder */
}

/* Left content columns */
.footer-content {
    display: flex;
    gap: 30px;
    flex: 1;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 180px;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
}

.column-header {
    font-size: 1em;
    font-weight: 700; /* bold headers */
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    text-decoration: none;
    color: white;
    font-size: 0.95em; 
    display: block;
    padding: 3px 0;
    transition: color 0.3s;
    font-weight: 600; /* bolder links */
}

/* Hover color */
.footer-column a:hover {
    color: #f1921f;
}

/* Right social icons (SVG) */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 20px;
}

.footer-social svg {
    width: 35px;
    height: 35px;
    fill: white;
    transition: transform 0.3s, fill 0.3s;
}

.footer-social a:hover svg {
    transform: scale(1.1);
    fill: #f1921f;
}

/* Bottom copyright */
.footer-bottom {
    text-align: center;
    font-size: 0.9em;
    font-weight: 600; /* bolder copyright text */
    padding: 10px 0;
    width: 100%;
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .eastmatt-footer {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
    }

    .footer-content {
        justify-content: center;
        gap: 20px;
    }

    .footer-column {
        width: 100%;
        text-align: center;
    }

    .footer-social {
        flex-direction: row;
        margin-left: 0;
        margin-top: 20px;
        justify-content: center;
    }
}


/* Responsive */
@media(max-width:768px){
  .footer-container{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-about, .footer-links-section{
    max-width: 100%;
  }

  .social-icons a{
    margin-right: 15px;
  }

  .footer-desc{
    text-align: center;
  }
}


 
/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .categories {
    width: 100%;
    margin-bottom: 20px;
  }

  .product-card {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .product-card {
    flex: 1 1 100%;
  }

  .search-form {
    width: 100%;
  }

  .search-form input {
    flex: 1;
  }
}
/* Modal common */
/* ================= MODAL BASE ================= */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

/* ================= MODAL CONTENT ================= */
.modal-content {
  background: #fff;
  width: 350px;
  max-width: 90%;
  padding: 20px;
  border-radius: 10px;
  animation: fadeIn .3s;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content h2 {
  margin-bottom: 10px;
  text-align: center;
  font-size: 20px;
}

/* ================= INPUTS ================= */
.modal-content input,
.modal-content select {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 14px;
}

/* ================= PHONE LINE ================= */
.phone-line {
  display: flex;
  gap: 10px;
}

.phone-line select {
  flex: 0 0 80px;
}

.phone-line input {
  flex: 1;
}

/* ================= BUTTONS ================= */
.modal-content button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  background: #ff3b30;
  color: white;
}

/* ================= LINKS ================= */
.link {
  color: #ff3b30;
  cursor: pointer;
  text-decoration: underline;
  text-align: center;
  display: block;
  font-size: 14px;
}

/* ================= CLOSE BUTTON ================= */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
}

/* ================= CHECKBOX ROW ================= */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

/* ================= NOTES / MESSAGES ================= */
.modal-content p {
  font-size: 12px;
  color: #555;
  margin: 0;
}
/* ================= HORIZONTAL SCROLL GRID ================= */
/* ================= POPULAR GRID ================= */
.popular-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 15px 20px;
  scroll-behavior: smooth;
}

.popular-grid::-webkit-scrollbar {
  display: none; /* hide scrollbar */
}

/* ================= CARD LAYOUT ================= */
.popular-card {
  flex: 0 0 250px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* keeps see more button at bottom */
  height: auto; /* allow height to adjust based on content */
}

.popular-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* ================= CATEGORY PRODUCTS GRID ================= */
.popular-card .category-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 2px 0 8px 0;
}

/* ================= PRODUCT ITEM ================= */
.popular-card .product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popular-card .product-item img {
  width: 100%;
  aspect-ratio: 1/1; /* keeps image square */
  object-fit: cover;  /* fills square, minimal cropping */
  border-radius: 8px;
  transition: transform 0.3s;
}

.popular-card .product-item p {
  margin-top: 4px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-card .product-item:hover img {
  transform: scale(1.05);
}

/* ================= CATEGORY TITLE ================= */
.popular-card .category-title {
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 800;
  color: #791617;
}

/* ==================== Top Categories ==================== */
.top-categories-section {
  width: 95%;
  max-width: 1200px;
  margin: 30px auto;
}

.categories-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: left;
  color: #333;
}

/* Grid layout for categories */
.top-categories-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: -5px; /* consistent spacing */
  padding-bottom: 5px;
}

/* Category box */
.category-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 10px;
  background-color: #fff;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 0.75rem;
  box-sizing: border-box;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%; /* stretch to fill grid row */
}

/* Image inside box */
.category-box img {
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
  border: 1px solid #f5efef;
  border-radius: 10px;
  margin-bottom: 6px;
  background-color: #f5efef;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Category name below image */
.category-box span {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  color: #ff9800;
  word-wrap: break-word;
}

/* Hover effect */
.category-box:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
  .top-categories-scroll {
    grid-template-columns: repeat(4, 1fr); /* 4 per row */
  }
}

@media (max-width: 992px) {
  .top-categories-scroll {
    grid-template-columns: repeat(4, 1fr); /* still 4 per row */
  }
}

@media (max-width: 768px) {
  .top-categories-scroll {
    grid-template-columns: repeat(4, 1fr); /* 4 per row on tablets */
  }
}

@media (max-width: 480px) {
  .top-categories-scroll {
    grid-template-columns: repeat(4, 1fr); /* 4 per row on mobile */
  }

  .category-box {
    padding: 6px;
  }

  .category-box img {
    max-width: 70px;
  }

  .category-box span {
    font-size: 0.75rem;
  }
}

/* ================= APP STYLE BOTTOM NAV ================= */
.app-bottom-nav {
  display: none;
}


/* ================= BOTTOM MOBILE NAV ================= */
@media (max-width: 480px) {
  .app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #ffffff;
    border-top: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
  }

  .app-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #000;
    font-size: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    /* HARD RESET */
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .app-bottom-nav .nav-item img {
    width: 26px;
    height: 26px;
    object-fit: contain;
  }

  .app-bottom-nav .nav-item:focus,
  .app-bottom-nav .nav-item:active {
    outline: none;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
  }

  /* Push page content above bottom nav */
  body {
    padding-bottom: 80px;
  }

  /* ================= CART & ACCOUNT OVERLAY (NO NAV TOUCH) ================= */
/* CART PANEL */
#cart {
  position: fixed !important;
  top: 0 !important;
  right: -100%;
  width: 320px;
  height: 100vh !important;
  background: #fff;
  z-index: 10050 !important; /* ABOVE ALL NAVS */
  transition: right 0.3s ease;
}

/* OPEN CART */
#cart.active {
  right: 0;
}

/* ACCOUNT / AUTH MODAL */
.auth-modal,
#account-panel {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100%;
  height: 100vh !important;
  z-index: 10050 !important; /* ABOVE ALL NAVS */
}

/* OPTIONAL: lock background scroll */
body.panel-open {
  overflow: hidden;
}
}


/* ================= HIDE TOP CATEGORY STRIP ON MOBILE ================= */
@media (max-width: 768px) {
  .category-strip {
    display: none !important;
  }
  /* Cart panel */
  #cart {
    top: 0 !important;
    height: 100vh !important;
    z-index: 11000 !important; /* above navbar */
  }

  /* Category sidebar */
  .category-sidebar {
    top: 0 !important;          /* was 110px before */
    height: 100vh !important;
    z-index: 11000 !important;   /* above navbar */
  }

  /* Account modal / other modals */
  .product-detail,
  .modal {
    top: 0 !important;
    height: 100vh !important;
    z-index: 11000 !important;
  }
}

/* ---------- GLOBAL ICON IMAGES ---------- */
.nav-icon-img,
.nav-icon img {
  width: 24px;   /* ⬆ increased from 20px */
  height: 24px;
  object-fit: contain;
  display: block;
}

/* ---------- SEARCH ICON ---------- */
#search-btn img {
  width: 22px;   /* ⬆ increased from 18px */
  height: 22px;
}

/* Hover fix (icon stays visible) */
.nav-search button:hover {
  background: rgba(201, 22, 0, 0.1);
}

/* ---------- NAV ACCOUNT & CART ICONS ---------- */
.nav-account img,
.nav-cart img {
  width: 24px;   /* ⬆ increased */
  height: 24px;
  object-fit: contain;
}

/* ---------- CART COUNT POSITION FIX ---------- */
.nav-cart {
  position: relative;
}

.cart-count {
  top: -8px;     /* adjusted for bigger icon */
  right: -8px;
}

/* ---------- FOOTER SOCIAL ICON IMAGES ---------- */
.footer-social img {
  width: 38px;   /* ⬆ increased from 35px */
  height: 38px;
  object-fit: contain;
  transition: transform 0.3s;
}

/* ---------- CATEGORY SIDEBAR ICONS ---------- */
.category-list-sidebar li img {
  width: 32px;   /* ⬆ increased from 28px */
  height: 32px;
  object-fit: contain;
}


.carousel-wrapper {
  position: relative;
  width: 100%;
}

/* Button group floating way above the grid */
.scroll-btn-group {
  position: absolute;
  top: -40px;            /* stays above the grid */
  right: 16px;           /* small safe inset from edge */
  display: flex;
  gap: 8px;
  z-index: 9999;
}


/* Buttons style */
.scroll-btn {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

.scroll-btn:hover {
  background-color: #f0f0f0;
  transform: scale(1.1);
}

.scroll-btn.left {
  margin-right: 5px;
}
/* ===== QUICKMART GLOBAL CONTAINER ===== */

.page-container {
  width: 100%;
  max-width: 1400px;     /* desktop limit */
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

/* Mobile – Quickmart app spacing */
@media (max-width: 480px) {
  .page-container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control button {
  width: 28px;
  height: 28px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
}

.qty-control span {
  min-width: 20px;
  text-align: center;
  font-weight: bold;
}

