@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1aab5f;
  --primary-dark: #158a4a;
  --primary-light: #e8f5e9;
  --secondary: #f5a623;
  --danger: #e74c3c;
  --warning: #f5a623;
 --another: #ffbd59;
  --info: #3498db;
  --dark: #2c3e50;
  --gray: #7f8c8d;
  --light-gray: #ecf0f1;
  --light: #f8fafb;
  --white: #ffffff;
  --border: #e0e6ed;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --transition: all 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.65;
  font-size: 15px;
  padding-top: 68px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.3;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--light-gray);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  overflow: visible;
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
  overflow: visible;
}
.logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
}
.logo:hover {
  opacity: 0.85;
}

/* Search */
.nav-search {
  flex: 1;
  display: flex;
  max-width: 520px;
}
.nav-search form {
  display: flex;
  width: 100%;
}
.nav-search input {
  flex: 1;
  padding: 9px 18px;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: 30px 0 0 30px;
  outline: none;
  background: var(--light);
  transition: var(--transition);
  font-size: 0.9rem;
}
.nav-search input:focus {
  border-color: var(--primary);
  background: white;
}
.nav-search button {
  padding: 9px 18px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  transition: var(--transition);
}
.nav-search button:hover {
  background: var(--primary-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin-left: auto;
}
.nav-links > a {
  padding: 7px 14px;
  border-radius: 20px;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}
.nav-links > a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.cart-icon {
  position: relative;
  font-size: 1.15rem;
  padding: 7px 14px !important;
}
.cart-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.62rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid white;
}
.btn-login {
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  padding: 7px 18px !important;
}
.btn-signup {
  background: var(--primary) !important;
  color: white !important;
  padding: 7px 18px !important;
}
.btn-signup:hover {
  background: var(--primary-dark) !important;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 26px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  font-size: 0.92rem;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.btn-danger:hover {
  background: #c0392b;
}
.btn-warning {
  background: var(--warning);
  color: white;
  border-color: var(--warning);
}
.btn-success {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  background: var(--light-gray);
  color: var(--dark);
  border-color: var(--border);
}

.btn-block {
  display: flex;
  width: 100%;
  margin-top: 10px;
}

.btn-sm {
  padding: 5px 14px;
  font-size: 0.8rem;
  border-radius: 20px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  transform: scale(1.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 60, 20, 0.35) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 24px;
  margin-top: -60px;
  animation: fadeUp 0.7s ease;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero-slide h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  color: #f5a623;
  margin-bottom: 16px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero h1 span,
.hero-slide h1 span {
  color: #f5a623;
}

.hero p,
.hero-slide p {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 32px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-badges {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
  flex-wrap: wrap;
  justify-content: center;
}
.badge {
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  color: var(--dark);
  backdrop-filter: blur(4px);
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s;
}
.slider-arrow:hover {
  background: white;
}
.slider-prev {
  left: 16px;
}
.slider-next {
  right: 16px;
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
}
.dot.active {
  background: white;
  transform: scale(1.3);
}

/* ===== OFFERS BANNER SLIDER ===== */
.offers-banner {
  padding: 20px 24px;
  overflow: hidden;
  position: relative;
}
.offers-track {
  display: flex;
  gap: 14px;
  animation: slideOffers 18s linear infinite;
  width: max-content;
}
.offers-banner:hover .offers-track {
  animation-play-state: paused;
}
@keyframes slideOffers {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.offer-card {
  color: white;
  padding: 14px 26px;
  border-radius: var(--radius);
  white-space: nowrap;
  font-size: 0.88rem;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
  flex-shrink: 0;
}
.offer-card strong {
  font-weight: 800;
}

/* ===== SECTION WRAPPERS ===== */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
}
.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: #ffbd59;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--primary-light), transparent);
  margin-left: 12px;
}
/* Legacy selectors used in index.php */
.categories-section,
.products-section,
.plans-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
}
.categories-section h2,
.products-section h2,
.plans-section h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 28px;
}

/* ===== CATEGORIES GRID ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.category-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.cat-icon {
  font-size: 2.6rem;
  line-height: 1;
}
.cat-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dark);
}



/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.product-img {
  height: 130px;
  background: linear-gradient(135deg, #f0faf4, #e8f5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-emoji {
  font-size: 3.8rem;
  line-height: 1;
}
.product-info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-cat {
  font-size: 0.72rem;
  color: var(--primary-dark);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.product-info h3 {
  font-size: 0.97rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}
.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.product-price small {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 400;
}
.low-stock {
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--light);
}
.qty-btn {
  background: none;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--primary-dark);
  font-weight: 700;
  transition: var(--transition);
}
.qty-btn:hover {
  background: var(--primary-light);
}
.qty-input {
  width: 34px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 0.88rem;
  background: transparent;
  font-weight: 600;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.btn-add-cart {
  background: var(--primary);
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-add-cart:hover {
  background: var(--primary-dark);
  transform: scale(1.04);
}
.text-center {
  text-align: center;
}
.no-products {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
  font-size: 1.1rem;
}

/* ===== SUBSCRIPTION PLANS ===== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.plan-card {
  background: white;
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
  position: relative;
  transition: var(--transition);
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.plan-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(46, 204, 113, 0.2);
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 18px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.plan-icon {
  margin-bottom: 14px;
}
.plan-icon img {
  width: 100%;
  height: 160px;
  border-radius: 12px 12px 0 0;
  object-fit: cover;
  display: block;
}
.plan-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

.plan-price small {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 400;
}
.plan-card ul {
  text-align: left;
  margin-bottom: 24px;
}
.plan-card ul li {
  padding: 5px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--light-gray);
}
.plan-card ul li:last-child {
  border: none;
}
.plan-card ul li i {
  color: var(--primary);
  margin-right: 6px;
}

/* ===== PAGE LAYOUT (Products Page) ===== */
.page-layout {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  gap: 28px;
  align-items: flex-start;
}
.sidebar {
  width: 210px;
  flex-shrink: 0;
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 88px;
}
.sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cat-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--dark);
  font-size: 0.9rem;
  transition: var(--transition);
  margin-bottom: 2px;
}
.cat-list li a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.cat-list li a.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}
.cat-sidebar-img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.products-main {
  flex: 1;
  min-width: 0;
}
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.products-header h2 {
  font-size: 1.3rem;
}
.products-header span {
  color: var(--gray);
  font-size: 0.88rem;
}

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  /* background: linear-gradient(135deg, #e8f5e9, #f8fafb); */
}
.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  width: 100%;
  max-width: 430px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  font-size: 3.2rem;
  text-align: center;
  margin-bottom: 10px;
  color: var(--primary);
}
.auth-card h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.auth-card > p {
  text-align: center;
  color: var(--gray);
  margin-bottom: 28px;
  font-size: 0.92rem;
}
.auth-footer {
  text-align: center;
  margin-top: 22px;
  color: var(--gray);
  font-size: 0.9rem;
}
.auth-footer a {
  color: var(--primary);
  font-weight: 700;
}

/* Login Tabs */
.login-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--primary-light);
}
.login-tab {
  flex: 1;
  padding: 10px;
  background: white;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  font-family: "Poppins", sans-serif;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.login-tab.active {
  background: var(--primary);
  color: white;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Phone input */
.phone-input-wrap {
  display: flex;
  align-items: center;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}
.phone-input-wrap:focus-within {
  border-color: var(--primary);
}
.phone-prefix {
  padding: 10px 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.phone-input-wrap input {
  border: none;
  outline: none;
  padding: 10px 12px;
  flex: 1;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
}

/* OTP */
.otp-input {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 10px;
  font-weight: 700;
}
.otp-info {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--primary-dark);
  text-align: center;
}
.dev-otp-hint {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--gray);
  background: #fff3cd;
  padding: 6px 10px;
  border-radius: 6px;
}
.auth-footer a:hover {
  text-decoration: underline;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  font-size: 0.88rem;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 15px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
  background: var(--light);
  color: var(--dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.12);
}
.form-row {
  display: flex;
  gap: 16px;
}
.form-row .form-group {
  flex: 1;
}

/* ===== ALERTS ===== */
.alert {
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-error {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}
.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* ===== CART PAGE ===== */
.cart-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}
.cart-page h2 {
  font-size: 1.6rem;
  margin-bottom: 26px;
}
.empty-cart {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon {
  font-size: 5rem;
  margin-bottom: 18px;
  opacity: 0.5;
}
.empty-cart h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--gray);
}
.cart-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.cart-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-item {
  background: white;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.cart-item:hover {
  box-shadow: var(--shadow);
}
.cart-item-img {
  font-size: 2.6rem;
  width: 56px;
  text-align: center;
  flex-shrink: 0;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-info h4 {
  font-size: 0.97rem;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-price {
  color: var(--gray);
  font-size: 0.85rem;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-item-qty button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-qty button:hover {
  background: var(--primary);
  color: white;
}
.cart-item-qty span {
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}
.cart-item-subtotal {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1rem;
  min-width: 80px;
  text-align: right;
}
.remove-btn {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 1rem;
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition);
}
.remove-btn:hover {
  background: #fdecea;
}

/* Cart Summary */
.cart-summary {
  background: white;
  border-radius: var(--radius);
  padding: 26px;
  width: 310px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: sticky;
  top: 88px;
}
.cart-summary h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--light-gray);
}
.free {
  color: var(--primary);
  font-weight: 700;
}
.coupon-box {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.coupon-box input {
  flex: 1;
  padding: 9px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.88rem;
}
.coupon-box input:focus {
  border-color: var(--secondary);
}
.coupon-box button {
  padding: 9px 14px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
}

/* ===== CHECKOUT PAGE ===== */
.checkout-page {
  max-width: 1050px;
  margin: 0 auto;
  padding: 32px 24px;
}
.checkout-page h2 {
  font-size: 1.6rem;
  margin-bottom: 26px;
}
.checkout-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.checkout-form {
  flex: 1;
}
.form-section {
  background: white;
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.form-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}
.payment-options {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
}
.payment-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}
.payment-option input {
  accent-color: var(--primary);
}
.payment-detail {
  margin-top: 12px;
}
.payment-detail input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  outline: none;
  transition: var(--transition);
}
.payment-detail input:focus {
  border-color: var(--primary);
}
.order-summary {
  background: white;
  border-radius: var(--radius);
  padding: 26px;
  width: 290px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: sticky;
  top: 88px;
}
.order-summary h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--light-gray);
}
.summary-item:last-of-type {
  border: none;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.success-icon {
  font-size: 4.5rem;
  margin-bottom: 18px;
}
.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.modal-content p {
  color: var(--gray);
  margin-bottom: 26px;
  font-size: 0.95rem;
}

/* ===== DASHBOARD ===== */
.dashboard-page {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  gap: 26px;
  min-height: calc(100vh - 68px);
  align-items: flex-start;
}
.dashboard-sidebar {
  width: 230px;
  flex-shrink: 0;
  position: sticky;
  top: 88px;
}
.user-info {
  background: white;
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.user-avatar {
  font-size: 3.5rem;
  margin-bottom: 10px;
}
.user-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.user-info p {
  color: var(--gray);
  font-size: 0.82rem;
  word-break: break-all;
}
.dash-nav {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  color: var(--dark);
  border-bottom: 1px solid var(--light-gray);
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
}
.dash-nav a:last-child {
  border: none;
}
.dash-nav a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding-left: 22px;
}
.dash-nav a.active {
  background: var(--primary);
  color: white;
}
.dash-nav a i {
  width: 18px;
  text-align: center;
}
.dashboard-main {
  flex: 1;
  min-width: 0;
}
.dash-section {
  background: white;
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.dash-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}
.empty-state {
  color: var(--gray);
  padding: 20px 0;
  font-size: 0.92rem;
}
.empty-state a {
  color: var(--primary);
  font-weight: 600;
}

/* Orders Table */
.orders-table {
  overflow-x: auto;
}
.orders-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.orders-table th {
  background: var(--light);
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  color: var(--gray);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.orders-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--light-gray);
}
.orders-table tr:last-child td {
  border: none;
}
.orders-table tr:hover td {
  background: #fafffe;
}

/* Status Badges */
.status-badge {
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-block;
}
.status-pending {
  background: #fff3cd;
  color: #856404;
}
.status-confirmed {
  background: #cce5ff;
  color: #004085;
}
.status-out_for_delivery {
  background: #d1ecf1;
  color: #0c5460;
}
.status-delivered {
  background: #d4edda;
  color: #155724;
}
.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}
.status-active {
  background: #d4edda;
  color: #155724;
}
.status-paused {
  background: #fff3cd;
  color: #856404;
}

/* Subscription Cards */
.subscription-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  transition: var(--transition);
}
.subscription-card.status-active {
  border-color: var(--primary);
  background: #fafffe;
}
.subscription-card.status-paused {
  border-color: var(--warning);
}
.subscription-card.status-cancelled {
  opacity: 0.55;
}
.sub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.sub-header h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.sub-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--gray);
  text-align: right;
}
.sub-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.sub-item-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.sub-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== SUBSCRIPTION PAGE ===== */
.subscription-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px;
}
.subscription-page h2 {
  font-size: 1.6rem;
  margin-bottom: 26px;
}
.plan-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.plan-tab {
  padding: 10px 22px;
  border: 2px solid var(--border);
  border-radius: 30px;
  background: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.plan-tab:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}
.plan-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}
.basket-builder,
.sub-delivery {
  background: white;
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.basket-builder h3,
.sub-delivery h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}
.basket-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.basket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: var(--light);
}
.basket-item:hover {
  border-color: var(--primary);
  background: white;
}
.basket-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.basket-emoji {
  font-size: 1.6rem;
  line-height: 1;
}
.basket-item-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
}
.basket-item-info small {
  color: var(--gray);
  font-size: 0.78rem;
}
.basket-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.basket-qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.basket-qty button:hover {
  background: var(--primary);
  color: white;
}
.sub-qty-input {
  width: 38px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px;
  font-size: 0.88rem;
  font-weight: 600;
}
.sub-qty-input::-webkit-inner-spin-button,
.sub-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.sub-summary {
  background: white;
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.sub-total-display {
  font-size: 1.1rem;
  color: var(--dark);
}
.sub-total-display strong {
  color: var(--primary-dark);
  font-size: 1.3rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: #b2bec3;
  margin-top: 70px;
}
.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 260px 1fr;
  gap: 40px;
  padding: 48px 24px 36px;
  border-bottom: 1px solid #3d5166;
}
.footer-col h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.footer-col h3 i {
  color: var(--primary);
  margin-right: 6px;
}
.footer-col > p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #95a5a6;
}
.footer-col h4 {
  color: #dfe6e9;
  font-size: 0.88rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-links-grid {
  display: flex;
  gap: 32px;
}
.footer-links-grid a {
  display: block;
  color: #b2bec3;
  margin-bottom: 9px;
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-links-grid a:hover {
  color: var(--primary);
  padding-left: 4px;
}
.see-all-footer {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.footer-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 16px;
}
.footer-cats-grid a {
  color: #b2bec3;
  font-size: 0.83rem;
  padding: 4px 0;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-cats-grid a:hover {
  color: var(--primary);
}
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: #636e72;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social span {
  color: #95a5a6;
  font-size: 0.82rem;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #3d5166;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}
.footer-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #95a5a6;
}
.footer-contact i {
  color: var(--primary);
}
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-categories-col {
    grid-column: 1 / -1;
  }
  .footer-cats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark);
  color: white;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s ease;
  max-width: 320px;
}
.toast.success {
  background: var(--primary-dark);
}
.toast.error {
  background: var(--danger);
}
@keyframes toastIn {
  from {
    transform: translateX(120px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== ADMIN PANEL ===== */
.admin-body {
  background: #f0f2f5;
}
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Admin Sidebar */
.admin-sidebar {
  width: 250px;
  background: #1a252f;
  color: white;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.admin-logo {
  padding: 26px 22px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  border-bottom: 1px solid #2c3e50;
  letter-spacing: -0.3px;
}
.admin-logo small {
  display: block;
  font-size: 0.72rem;
  color: #7f8c8d;
  font-weight: 400;
  margin-top: 2px;
}
.admin-sidebar nav {
  flex: 1;
  padding: 10px 0;
}
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  color: #b2bec3;
  border-left: 3px solid transparent;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
}
.admin-sidebar nav a:hover {
  background: #2c3e50;
  color: white;
  border-left-color: var(--primary);
}
.admin-sidebar nav a.active {
  background: #2c3e50;
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 700;
}
.admin-sidebar nav a i {
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
}

/* Admin Main */
.admin-main {
  flex: 1;
  padding: 28px;
  overflow-x: auto;
  min-width: 0;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}
.admin-header span {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.stat-icon {
  font-size: 2.6rem;
  line-height: 1;
}
.stat-info h3 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-info p {
  color: var(--gray);
  font-size: 0.85rem;
}

/* Admin Card */
.admin-card {
  background: white;
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.admin-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-table thead th {
  background: var(--light);
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--gray);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}
.admin-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--light-gray);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td {
  border: none;
}
.admin-table tbody tr:hover td {
  background: #fafffe;
}
.admin-table .low-stock {
  color: var(--danger);
  font-weight: 700;
}

/* Status Select */
.status-select {
  padding: 5px 10px;
  border-radius: 20px;
  border: 2px solid var(--border);
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: 600;
  outline: none;
  transition: var(--transition);
}
.status-select:focus {
  border-color: var(--primary);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 7px 18px;
  border-radius: 20px;
  background: white;
  border: 2px solid var(--border);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 210px;
  }
}

@media (max-width: 768px) {
  .nav-search {
    display: none;
  }
  .hero-slider {
    height: 380px;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .cart-layout,
  .checkout-layout {
    flex-direction: column;
  }
  .cart-summary,
  .order-summary {
    width: 100%;
    position: static;
  }
  .dashboard-page {
    flex-direction: column;
  }
  .dashboard-sidebar {
    width: 100%;
    position: static;
  }
  .page-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    position: static;
  }
  .admin-sidebar {
    width: 200px;
  }
  .form-row {
    flex-direction: column;
  }
  .sub-summary {
    flex-direction: column;
  }
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .nav-container {
    padding: 0 14px;
    gap: 10px;
  }
  .nav-links {
    gap: 2px;
  }
  .nav-links > a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }
  .hero {
    padding: 44px 16px 36px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
  .admin-sidebar nav {
    display: flex;
    flex-wrap: wrap;
  }
  .admin-sidebar nav a {
    flex: 1;
    min-width: 100px;
    justify-content: center;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .admin-sidebar nav a.active {
    border-bottom-color: var(--primary);
    border-left: none;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .auth-card {
    padding: 28px 20px;
  }
}

/* ============================================================
   BLINKIT-STYLE EXTRA STYLES
   ============================================================ */

/* Hero delivery badge */
.hero-delivery-badge {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid #ffc107;
}

/* Offer cards color variants */
.offer-card.offer-green {
  background: linear-gradient(135deg, #158a4a, #1aab5f);
}
.offer-card.offer-orange {
  background: linear-gradient(135deg, #e67e22, #f39c12);
}
.offer-card.offer-purple {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}
.offer-card.offer-blue {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

/* Section heading */
.section-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffbd59;
  margin-bottom: 0;
}

/* Section header row with See All */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.see-all-link {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}
.see-all-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Discount badge on product card */
.product-card {
  position: relative;
}
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--danger);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
  letter-spacing: 0.3px;
}

/* Product unit text */
.product-unit {
  font-size: 0.78rem;
  color: var(--gray);
  display: block;
  margin-bottom: 4px;
}

/* Price row with original price strikethrough */
.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.original-price {
  font-size: 0.82rem;
  color: var(--gray);
  text-decoration: line-through;
}

/* Low stock tag */
.low-stock-tag {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

/* Category section spacing */
.cat-section {
  border-top: 6px solid var(--light-gray);
}

/* Categories grid — more columns like Blinkit */
.categories-grid {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}
.category-card {
  background: white;
  border-radius: 14px;
  padding: 18px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.2);
}
.cat-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.cat-name {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--dark);
  line-height: 1.3;
}

/* Products grid — tighter like Blinkit */
.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
}
.product-card {
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.product-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}
.product-img {
  height: 110px;
  background: linear-gradient(135deg, #f0faf4, #e8f5e9);
  border-radius: 12px 12px 0 0;
}
.product-emoji {
  font-size: 3.2rem;
}
.product-info {
  padding: 12px;
}
.product-info h3 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
}
.btn-add-cart {
  background: white;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  transition: var(--transition);
}
.btn-add-cart:hover {
  background: var(--primary);
  color: white;
}

/* Qty control — compact */
.qty-control {
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: white;
}
.qty-btn {
  padding: 3px 8px;
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 800;
}
.qty-input {
  width: 28px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Navbar — Blinkit style location pin */
.nav-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.nav-location:hover {
  background: var(--primary-light);
}
.nav-location i {
  color: var(--primary);
}

@media (max-width: 600px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .section-heading {
    font-size: 1.1rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero-delivery-badge {
    font-size: 0.78rem;
  }
}

/* ============================================================
   REAL IMAGE STYLES
   ============================================================ */

/* Product card image — real photo */
.product-img {
  height: 140px;
  background: #f8fafb;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.06);
}

/* Category card image */
.cat-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary-light);
}

/* Subscription basket item image */
.basket-item-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Cart item image */
.cart-item-img img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

/* Image loading skeleton */
.product-img img[src=""],
.product-img img:not([src]) {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Fallback when image fails to load */
.product-img img.img-error {
  display: none;
}
.product-img::after {
  content: attr(data-emoji);
  font-size: 3rem;
  display: none;
}
.product-img:has(img.img-error)::after {
  display: block;
}

/* ===== CATEGORY CARD IMAGE FIX ===== */
.category-card {
  padding: 14px 10px 12px;
  gap: 8px;
}
.cat-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease;
}
.category-card:hover .cat-img {
  transform: scale(1.08);
}
.cat-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  line-height: 1.3;
}

/* Product image — white bg like Blinkit */
.product-img {
  height: 150px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-card:hover .product-img img {
  transform: scale(1.05);
}

/* ===== PAYMENT UI ===== */
.pay-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* UPI Apps */
.upi-apps {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.upi-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  min-width: 72px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
}
.upi-app img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.upi-app:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.upi-app.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

.upi-divider {
  text-align: center;
  color: var(--gray);
  font-size: 0.82rem;
  margin: 12px 0;
}
.upi-id-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.92rem;
  transition: var(--transition);
}
.upi-id-input:focus {
  border-color: var(--primary);
}

/* Card icons */
.card-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.card-icons img {
  height: 26px;
  object-fit: contain;
}

/* Net Banking grid */
.bank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bank-item {
  padding: 12px 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
  color: var(--dark);
}
.bank-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.bank-item.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* COD info */
.cod-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
  text-align: center;
}
.cod-info p {
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0;
}

/* Pay button */
.pay-btn {
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
}

/* ===== PAYMENT PROCESSING MODAL ===== */
.pay-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}
.pay-modal-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  width: 90%;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}
.pay-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pay-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.pay-processing p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}
.pay-processing small {
  font-size: 0.82rem;
  color: var(--gray);
}
.pay-success-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.pay-success-icon i {
  animation: popIn 0.4s ease;
}
@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== IMAGE FALLBACK ===== */
.product-img.img-fallback {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img.img-fallback::before {
  content: attr(data-name);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-transform: uppercase;
  opacity: 0.5;
}

/* ============================================================
   FULLY RESPONSIVE — ALL SCREEN SIZES
   ============================================================ */

/* ===== TABLET (max 1024px) ===== */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 16px;
    gap: 14px;
  }
  .nav-search {
    max-width: 360px;
  }
  .hero-slider {
    height: 480px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .section,
  .categories-section,
  .products-section,
  .plans-section {
    padding: 32px 16px;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
  }
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-categories-col {
    grid-column: 1 / -1;
  }
  .checkout-layout {
    gap: 20px;
  }
  .order-summary {
    width: 260px;
  }
  .dashboard-page {
    padding: 16px;
    gap: 18px;
  }
  .admin-sidebar {
    width: 220px;
  }
  .admin-main {
    padding: 20px;
  }
}

/* ===== SMALL TABLET (max 768px) ===== */
@media (max-width: 768px) {
  /* Navbar */
  .nav-container {
    height: 60px;
    padding: 0 14px;
    gap: 10px;
  }
  .nav-search {
    display: none;
  }
  .logo {
    font-size: 1.2rem;
  }
  .nav-links > a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }
  .nav-location {
    display: none;
  }

  /* Hero */
  .hero-slider {
    height: 360px;
  }
  .hero-content {
    margin-top: -30px;
    padding: 0 16px;
  }
  .hero-content h1 {
    font-size: 1.7rem;
  }
  .hero-content p {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }
  .hero-btns {
    gap: 10px;
  }
  .hero-btns .btn {
    padding: 9px 18px;
    font-size: 0.85rem;
  }
  .hero-delivery-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
  }
  .hero-badges {
    gap: 8px;
    bottom: 12px;
  }
  .badge {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .slider-dots {
    bottom: 50px;
  }

  /* Sections */
  .section,
  .categories-section,
  .products-section,
  .plans-section {
    padding: 24px 14px;
  }
  .section-heading {
    font-size: 1.2rem;
  }

  /* Categories */
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .cat-img {
    width: 52px;
    height: 52px;
  }
  .cat-name {
    font-size: 0.7rem;
  }
  .category-card {
    padding: 10px 6px;
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .product-img {
    height: 120px;
  }
  .product-info {
    padding: 10px;
  }
  .product-info h3 {
    font-size: 0.82rem;
  }
  .product-price {
    font-size: 0.92rem;
  }
  .btn-add-cart {
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  /* Plans */
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Page layout (products page) */
  .page-layout {
    flex-direction: column;
    padding: 14px;
    gap: 16px;
  }
  .sidebar {
    width: 100%;
    position: static;
  }
  .cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .cat-list li a {
    padding: 6px 12px;
    font-size: 0.82rem;
    border-radius: 20px;
    border: 1px solid var(--border);
  }
  .cat-list li a.active {
    background: var(--primary);
    color: white;
  }

  /* Cart */
  .cart-page {
    padding: 20px 14px;
  }
  .cart-layout {
    flex-direction: column;
  }
  .cart-summary {
    width: 100%;
    position: static;
  }
  .cart-item {
    padding: 12px 14px;
    gap: 12px;
  }

  /* Checkout */
  .checkout-page {
    padding: 20px 14px;
  }
  .checkout-layout {
    flex-direction: column;
  }
  .order-summary {
    width: 100%;
    position: static;
  }
  .payment-options {
    gap: 8px;
  }
  .payment-option {
    padding: 9px 12px;
    font-size: 0.82rem;
  }
  .bank-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Dashboard */
  .dashboard-page {
    flex-direction: column;
    padding: 14px;
    gap: 14px;
  }
  .dashboard-sidebar {
    width: 100%;
    position: static;
  }
  .dash-nav {
    display: flex;
    flex-wrap: wrap;
  }
  .dash-nav a {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 10px 8px;
    font-size: 0.82rem;
  }
  .dash-nav a.active {
    border-bottom-color: var(--primary);
    border-left: none;
    background: var(--primary-light);
    color: var(--primary-dark);
  }

  /* Auth */
  .auth-card {
    padding: 28px 20px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 16px 24px;
  }
  .footer-cats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 14px 16px;
  }

  /* Admin */
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
  .admin-sidebar nav {
    display: flex;
    flex-wrap: wrap;
  }
  .admin-sidebar nav a {
    flex: 1;
    min-width: 100px;
    justify-content: center;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 10px 8px;
    font-size: 0.82rem;
  }
  .admin-sidebar nav a.active {
    border-bottom-color: var(--primary);
    border-left: none;
  }
  .admin-main {
    padding: 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Subscription */
  .subscription-page {
    padding: 20px 14px;
  }
  .basket-products {
    grid-template-columns: 1fr;
  }
  .sub-summary {
    flex-direction: column;
    gap: 14px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ===== MOBILE (max 480px) ===== */
@media (max-width: 480px) {
  /* Navbar */
  .nav-container {
    height: 56px;
    padding: 0 12px;
    gap: 8px;
  }
  .logo {
    font-size: 1.1rem;
  }
  .nav-links {
    gap: 2px;
  }
  .nav-links > a {
    padding: 5px 8px;
    font-size: 0.78rem;
  }
  .cart-badge {
    width: 16px;
    height: 16px;
    font-size: 0.58rem;
  }

  /* Hero */
  .hero-slider {
    height: 300px;
  }
  .hero-content h1 {
    font-size: 1.4rem;
    line-height: 1.3;
  }
  .hero-content p {
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
  }
  .hero-btns .btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  .hero-badges {
    display: none;
  }
  .slider-dots {
    bottom: 10px;
  }
  .dot {
    width: 8px;
    height: 8px;
  }

  /* Categories */
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .cat-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .cat-name {
    font-size: 0.65rem;
  }
  .category-card {
    padding: 8px 4px;
    gap: 5px;
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-img {
    height: 110px;
    padding: 6px;
  }
  .product-info {
    padding: 8px;
  }
  .product-info h3 {
    font-size: 0.78rem;
  }
  .product-cat {
    font-size: 0.65rem;
  }
  .product-price {
    font-size: 0.88rem;
  }
  .product-unit {
    font-size: 0.68rem;
  }
  .qty-control {
    border-radius: 6px;
  }
  .qty-btn {
    padding: 3px 7px;
    font-size: 0.9rem;
  }
  .qty-input {
    width: 24px;
    font-size: 0.8rem;
  }
  .btn-add-cart {
    padding: 5px 8px;
    font-size: 0.75rem;
    border-radius: 6px;
  }
  .discount-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  /* Section */
  .section,
  .categories-section,
  .products-section,
  .plans-section {
    padding: 18px 12px;
  }
  .section-heading {
    font-size: 1rem;
  }
  .section-header-row {
    margin-bottom: 14px;
  }
  .see-all-link {
    font-size: 0.8rem;
  }

  /* Cart */
  .cart-page {
    padding: 14px 12px;
  }
  .cart-item {
    padding: 10px 12px;
    gap: 10px;
  }
  .cart-item-info h4 {
    font-size: 0.88rem;
  }
  .cart-item-subtotal {
    font-size: 0.9rem;
    min-width: 60px;
  }
  .cart-summary {
    padding: 18px;
  }

  /* Checkout */
  .checkout-page {
    padding: 14px 12px;
  }
  .form-section {
    padding: 18px;
  }
  .payment-options {
    flex-direction: column;
    gap: 6px;
  }
  .payment-option {
    width: 100%;
  }
  .upi-apps {
    gap: 8px;
  }
  .upi-app {
    min-width: 60px;
    padding: 10px 12px;
  }
  .bank-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pay-btn {
    font-size: 0.92rem;
    padding: 12px 20px;
  }

  /* Auth */
  .auth-page {
    padding: 20px 12px;
  }
  .auth-card {
    padding: 24px 16px;
    border-radius: var(--radius);
  }
  .auth-card h2 {
    font-size: 1.3rem;
  }
  .login-tabs .login-tab {
    font-size: 0.82rem;
    padding: 9px 6px;
  }

  /* Dashboard */
  .dashboard-page {
    padding: 12px;
  }
  .dash-section {
    padding: 18px;
  }
  .dash-section h2 {
    font-size: 1rem;
  }
  .user-info {
    padding: 18px 14px;
  }
  .orders-table {
    font-size: 0.78rem;
  }
  .orders-table th,
  .orders-table td {
    padding: 8px 8px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 14px 18px;
  }
  .footer-cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-links-grid {
    flex-direction: column;
    gap: 0;
  }
  .footer-col h3 {
    font-size: 1rem;
  }

  /* Admin */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-card {
    padding: 16px;
    gap: 12px;
  }
  .stat-info h3 {
    font-size: 1.5rem;
  }
  .admin-card {
    padding: 16px;
  }
  .admin-table {
    font-size: 0.78rem;
  }
  .admin-table th,
  .admin-table td {
    padding: 8px 8px;
  }

  /* Modals */
  .modal-content {
    padding: 28px 20px;
  }
  .pay-modal-box {
    padding: 32px 20px;
  }

  /* Subscription */
  .plan-tabs {
    gap: 8px;
  }
  .plan-tab {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .basket-builder,
  .sub-delivery {
    padding: 18px;
  }
}

/* ===== VERY SMALL (max 360px) ===== */
@media (max-width: 360px) {
  .hero-slider {
    height: 260px;
  }
  .hero-content h1 {
    font-size: 1.2rem;
  }
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .nav-links > a span {
    display: none;
  }
  .logo {
    font-size: 1rem;
  }
}

/* ===== MOBILE SIDEBAR COLLAPSIBLE ===== */
.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0;
}
.sidebar-title {
  display: block;
}

@media (max-width: 768px) {
  .page-layout {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }
  .sidebar {
    width: 100%;
    position: static;
    padding: 0;
    overflow: hidden;
  }
  .sidebar-toggle {
    display: flex;
    border-radius: var(--radius-sm);
  }
  .sidebar-title {
    display: none;
  }
  .cat-list {
    display: none;
    flex-direction: column;
    padding: 8px 0;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: white;
    max-height: 280px;
    overflow-y: auto;
  }
  .sidebar.open .cat-list {
    display: flex;
  }
  .sidebar.open .toggle-icon {
    transform: rotate(180deg);
  }
  .toggle-icon {
    transition: transform 0.3s ease;
  }
  .cat-list li a {
    padding: 10px 16px;
    border-radius: 0;
    margin: 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.88rem;
  }
  .cat-list li:last-child a {
    border-bottom: none;
  }
  .products-main {
    width: 100%;
  }
  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .page-layout {
    padding: 10px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-img {
    height: 120px;
  }
  .product-info h3 {
    font-size: 0.8rem;
    white-space: normal;
  }
}

/* ===== MOBILE NAVBAR FIXES ===== */
* {
  box-sizing: border-box;
}
html,
body {
  overflow-x: hidden;
  width: 100%;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--dark);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: var(--transition);
  margin-left: auto;
}
.nav-hamburger:hover {
  background: var(--primary-light);
  color: var(--primary);
}

@media (max-width: 768px) {
  /* Fix side space */
  body {
    overflow-x: hidden;
  }
  .navbar {
    overflow: visible;
  }
  .nav-container {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 14px;
    position: relative;
  }

  /* Show hamburger, hide nav-links by default */
  .nav-hamburger {
    display: flex;
    align-items: center;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    border-top: 1px solid var(--border);
    padding: 8px 0;
    gap: 0;
    order: 3;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links > a {
    padding: 12px 18px;
    border-radius: 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.92rem;
    width: 100%;
  }
  .nav-links > a:last-child {
    border-bottom: none;
  }
  .nav-links > a:hover {
    background: var(--primary-light);
    padding-left: 24px;
  }
  .cart-icon {
    position: relative;
  }
  .cart-badge {
    top: 8px;
    right: 14px;
  }

  .nav-search {
    display: flex;
    order: 2;
    max-width: 100%;
    width: calc(100% - 50px);
    flex: 1;
  }
  .nav-search form {
    width: 100%;
  }

  .logo {
    order: 1;
  }
  .nav-hamburger {
    order: 2;
  }
  .nav-search {
    order: 3;
    width: 100%;
    margin-top: 8px;
    max-width: 100%;
  }
  .nav-links {
    order: 4;
  }

  .section,
  .categories-section,
  .products-section,
  .plans-section,
  .cart-page,
  .checkout-page,
  .subscription-page,
  .dashboard-page,
  .auth-page,
  .page-layout {
    padding-left: 12px;
    padding-right: 12px;
  }

  .footer-top,
  .footer-bottom {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 8px 12px;
  }
  .nav-search input {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .navbar,
  .hero-slider,
  .footer,
  .categories-section,
  .products-section,
  .plans-section,
  .cart-page,
  .checkout-page,
  .subscription-page,
  .dashboard-page,
  .auth-page,
  .page-layout,
  .section,
  .admin-layout {
    max-width: 100%;
    width: 100%;
  }

  .offers-track {
    display: none;
  }

  .nav-container {
    max-width: 100%;
  }
  .footer-top,
  .footer-bottom {
    max-width: 100%;
  }

  .dashboard-page {
    padding: 10px;
    gap: 12px;
  }
  .dashboard-main {
    width: 100%;
    min-width: 0;
  }
  .dash-section {
    padding: 16px;
    overflow-x: hidden;
  }
  .orders-table {
    overflow-x: auto;
  }
  .orders-table table {
    min-width: 500px;
  }
}

@media (max-width: 768px) {
  body {
    background: #ffffff;
  }

  .dashboard-page,
  .cart-page,
  .checkout-page,
  .subscription-page,
  .auth-page,
  .page-layout {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }
}

/* ============================================================
   PREMIUM UPGRADE — FRESH GROCER
   ============================================================ */

/* Global font & background */
body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: #f7f8fa;
    color: #1a1a2e;
}

/* Navbar — clean & sharp */
.navbar {
    background: #fff;
    border-bottom: 1px solid #eef0f3;
    box-shadow: none;
}
.nav-container { height: 68px; }
body { padding-top: 68px; }

/* Hero — taller, more impact */
.hero-slider { height: 580px; }
.slide-overlay {
    background: linear-gradient(160deg, rgba(0,0,0,0.52) 0%, rgba(0,40,15,0.38) 100%);
}

/* Section wrappers */
.categories-section,
.products-section,
.plans-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Product image — cover, no padding */
.product-img {
    height: 170px !important;
    padding: 0 !important;
    background: #f7f8fa !important;
    border-bottom: 1px solid #f0f2f5;
    overflow: hidden;
}
.product-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
}
.product-card:hover .product-img img { transform: scale(1.06); }

/* Product card */
.product-card {
    border-radius: 14px;
    border: 1.5px solid #eef0f3;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.22s, border-color 0.2s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: #1aab5f;
}
.product-info { padding: 12px 13px 13px; }
.product-cat { color: #1aab5f; font-weight: 700; font-size: 0.62rem; letter-spacing: 0.8px; text-transform: uppercase; }
.product-info h3 { font-size: 0.86rem; font-weight: 600; color: #1a1a2e; line-height: 1.35; }
.product-price { font-weight: 800; color: #1a1a2e; font-size: 1rem; }
.product-unit { font-size: 0.7rem; color: #aab0bc; }

/* Add to cart button */
.btn-add-cart {
    background: #1aab5f !important;
    color: #fff !important;
    border: none !important;
    border-radius: 9px !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    padding: 8px 10px !important;
}
.btn-add-cart:hover { background: #158a4a !important; }

/* Qty control */
.qty-control {
    border: 1.5px solid #e8edf2 !important;
    border-radius: 9px !important;
    background: #f7f8fa !important;
}
.qty-btn { color: #1aab5f; font-weight: 800; }

/* Section headings */
.section-heading {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffbd59;
    letter-spacing: -0.5px;
}
.section-heading i { color: #1aab5f; }

/* See all pill */
.see-all-link {
    font-size: 0.8rem; font-weight: 700; color: #1aab5f;
    background: #e8f5e9; padding: 6px 14px; border-radius: 20px;
    transition: background 0.18s, color 0.18s;
}
.see-all-link:hover { background: #1aab5f; color: #fff; text-decoration: none; }

/* Category cards */
.category-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #f0f2f5;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.22s, border-color 0.2s;
}
.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 28px rgba(46,204,113,0.14);
    border-color: #1aab5f;
}
.cat-img {
    width: 68px; height: 68px;
    object-fit: cover; border-radius: 12px;
    border: none; box-shadow: none;
    transition: transform 0.22s;
}
.category-card:hover .cat-img { transform: scale(1.07); }
.cat-name { font-size: 0.73rem; font-weight: 700; color: #2c3e50; }

/* Plan cards */
.plan-card {
    border-radius: 20px;
    border: 1.5px solid #eef0f3;
    background: #fff;
    padding: 0 0 24px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s;
}
.plan-card:hover { transform: translateY(-7px); box-shadow: 0 20px 48px rgba(0,0,0,0.1); }
.plan-card.featured { border-color: #1aab5f; box-shadow: 0 6px 28px rgba(46,204,113,0.16); }
.plan-icon img { width: 100%; height: 190px; object-fit: cover; display: block; }
.plan-card h3 { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 800; font-size: 1.15rem; color: #1a1a2e; margin: 18px 22px 4px; }
.plan-price { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 800; font-size: 1.9rem; color: #1a1a2e; margin: 0 22px 14px; }
.plan-price small { font-size: 0.85rem; color: #aab0bc; font-weight: 500; }
.plan-card ul { margin: 0 22px 18px; display: flex; flex-direction: column; gap: 9px; }
.plan-card ul li { padding: 0; border: none; font-size: 0.86rem; color: #555; display: flex; align-items: center; gap: 9px; font-weight: 500; }
.plan-card ul li i { display: none; }
.plan-card ul li::before {
    content: ''; width: 18px; height: 18px; border-radius: 50%;
    background: #e8f5e9; flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ecc71' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 11px; background-repeat: no-repeat; background-position: center;
}
.plan-card .btn { margin: 0 22px; width: calc(100% - 44px); border-radius: 10px; font-weight: 700; padding: 12px; }
.plan-badge {
    position: absolute; top: 14px; right: 14px;
    background: #ffbd59; color: #1a1a2e;
    font-weight: 800; font-size: 0.72rem;
    padding: 5px 12px; border-radius: 20px;
}

/* Hero buttons */
.hero-btns .btn {
    border-radius: 10px; font-weight: 700; font-size: 0.9rem;
    padding: 13px 28px; border: none;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
}
.hero-btns .btn:first-child { background: #1aab5f; color: #fff; }
.hero-btns .btn:first-child:hover { background: #ffbd59; color: #1a1a2e; transform: translateY(-2px); }
.hero-btns .btn:last-child { background: #ffbd59; color: #1a1a2e; }
.hero-btns .btn:last-child:hover { background: #1aab5f; color: #fff; transform: translateY(-2px); }

/* Hero badge */
.hero-delivery-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff; font-weight: 700; font-size: 0.8rem;
    padding: 7px 16px; border-radius: 30px; margin-bottom: 18px;
}

/* Hero badges strip */
.badge {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff; font-weight: 600; font-size: 0.78rem;
    padding: 7px 14px; border-radius: 30px;
}

/* Slider dots */
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.dot.active { background: #fff; width: 22px; border-radius: 4px; }

/* Footer */
.footer { background: #0f1923; }

/* Products grid — 5 columns */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
}
@media (max-width: 1200px) { .products-grid { grid-template-columns: repeat(4, 1fr) !important; } }
@media (max-width: 900px)  { .products-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 560px)  { .products-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* Plans grid — 3 columns */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } }

/* Cat section divider */
.cat-section { border-top: 6px solid #f0f2f5; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Force Poppins on plan cards */
.plan-card h3 { font-family: 'Poppins', sans-serif !important; }
.plan-price { font-family: 'Poppins', sans-serif !important; }

/* Always show search bar */
.nav-search { display: flex !important; }

/* ===== PREMIUM SMOOTH ANIMATIONS ===== */

/* Hero content stagger */
.hero-content .hero-delivery-badge { animation: heroFadeUp 0.5s ease 0.1s both; }
.hero-content .hero-title          { animation: heroFadeUp 0.55s ease 0.22s both; }
.hero-content p                    { animation: heroFadeUp 0.55s ease 0.34s both; }
.hero-content .hero-btns           { animation: heroFadeUp 0.55s ease 0.44s both; }
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Smooth image zoom on product hover */
.product-img { overflow: hidden; }
.product-img img { transition: transform 0.45s cubic-bezier(.22,1,.36,1) !important; }
.product-card:hover .product-img img { transform: scale(1.08) !important; }

/* Plan image zoom */
.plan-icon { overflow: hidden; }
.plan-icon img { transition: transform 0.5s cubic-bezier(.22,1,.36,1); }
.plan-card:hover .plan-icon img { transform: scale(1.06); }

/* Smooth underline on nav links */
.nav-links > a { transition: background 0.2s, color 0.2s, transform 0.2s; }
.nav-links > a:hover { transform: translateY(-1px); }

/* Qty button micro-bounce */
.qty-btn:active { transform: scale(0.85); }

/* Cart item slide-in */
.cart-item { animation: slideInLeft 0.35s cubic-bezier(.22,1,.36,1) both; }
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Toast slide-in */
.toast {
    animation: toastIn 0.35s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(60px) scale(0.9); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* Smooth focus ring on inputs */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.nav-search input:focus {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* Smooth page section entrance */
.products-section, .categories-section, .plans-section {
    transition: opacity 0.4s ease;
}

/* Offer card hover lift */
.offer-card {
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s;
}
.offer-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(46,204,113,0.35);
}

/* Smooth badge pop on featured plan */
.plan-badge {
    animation: badgeBounce 0.6s cubic-bezier(.34,1.56,.64,1) 0.5s both;
}
@keyframes badgeBounce {
    from { opacity: 0; transform: scale(0.5) translateY(-8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Smooth footer link hover */
.footer a:hover { color: #1aab5f !important; }

/* Smooth scrollbar */
html { scroll-behavior: smooth; }

/* Subtle shimmer on featured plan card */
.plan-card.featured::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(46,204,113,0.04) 0%, transparent 60%);
    pointer-events: none;
    border-radius: 20px;
}

/* Smooth trust strip icon */
.trust-icon {
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), background 0.3s, color 0.3s;
}
.trust-item:hover .trust-icon {
    transform: scale(1.2) rotate(-8deg);
    background: #1aab5f;
    color: #fff;
}

/* Smooth section heading hover */
.section-heading {
    transition: letter-spacing 0.35s ease, color 0.25s;
    cursor: default;
}

/* Smooth see-all arrow slide */
.see-all-link:hover { transform: translateX(4px) !important; }

/* Smooth logo hover */
.logo img {
    transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), filter 0.3s ease;
}
.logo:hover img {
    transform: scale(1.07) rotate(-2deg);
    filter: drop-shadow(0 4px 14px rgba(46,204,113,0.4));
}

/* Smooth btn-add-cart press */
.btn-add-cart { transition: background 0.2s, transform 0.15s cubic-bezier(.34,1.56,.64,1) !important; }
.btn-add-cart:active { transform: scale(0.93) !important; }

/* Smooth category card image */
.cat-img { transition: transform 0.35s cubic-bezier(.34,1.56,.64,1) !important; }
.category-card:hover .cat-img { transform: scale(1.1) !important; }

/* Fix: footer social icons must stay flex circles */
.footer-social a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    transform: none;
}
.footer-social a:hover {
    transform: translateY(-3px) scale(1.12) !important;
}
