@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* ============================
   LIGHT THEME (default)
   ============================ */
:root {
  --primary: #FF4F9A;
  --primary-dark: #e83e8a;
  --secondary: #8B5CF6;
  --accent: #FFB703;
  --success: #16A34A;
  --success-light: rgba(22, 163, 74, 0.1);
  --bg: #FFF9F5;
  --bg-card: #FFFFFF;
  --bg-nav: #FFFFFF;
  --text: #241F21;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #F3E8E2;
  --border-light: #FFF0ED;
  --shadow: 0 2px 12px rgba(36, 31, 33, 0.06);
  --shadow-hover: 0 12px 40px rgba(36, 31, 33, 0.1);
  --shadow-lg: 0 20px 60px rgba(36, 31, 33, 0.08);
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #FFF9F5;
  --footer-heading: #241F21;
  --footer-text: #342D31;
  --footer-muted: #6B6267;
  --footer-link: #4B4348;
  --footer-link-hover: #E83E8C;
  --footer-border: #E8DDD7;
  --footer-input-bg: #FFFFFF;
  --footer-input-text: #241F21;
  --footer-input-placeholder: #8A8085;
  --footer-copyright: #6B6267;
  --footer-icon: #E83E8C;
  --footer-brand-start: #E83E8C;
  --footer-brand-end: #7C3AED;
  --gradient-pink: linear-gradient(135deg, #FF4F9A, #8B5CF6);
  --gradient-bg: linear-gradient(160deg, #faf5ff 0%, #fff0f5 40%, #fffbeb 70%, #f0fdf4 100%);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --modal-overlay: rgba(36, 31, 33, 0.5);
  --input-bg: #FFFFFF;
  --input-border: #E5E7EB;
  --input-focus: #FF4F9A;
  --rating: #F59E0B;
  --hero-overlay: rgba(0,0,0,0.5);
  --section-alt-bg: #faf5ff;
}

/* ============================
   DARK THEME
   ============================ */
[data-theme="dark"] {
  --primary: #FF5CA8;
  --primary-dark: #ff4d9e;
  --secondary: #A78BFA;
  --accent: #FBBF24;
  --success: #4ADE80;
  --success-light: rgba(74, 222, 128, 0.15);
  --bg: #151214;
  --bg-card: #252025;
  --bg-nav: #1D191C;
  --text: #FFF7ED;
  --text-muted: #B8ADB4;
  --text-light: #8B8088;
  --border: #352E32;
  --border-light: #2D272A;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.25);
  --navbar-bg: rgba(29, 25, 28, 0.97);
  --footer-bg: #0F0D0E;
  --footer-heading: #FFF7ED;
  --footer-text: #F5F0ED;
  --footer-muted: #B8ADB4;
  --footer-link: #D6CDD2;
  --footer-link-hover: #FF5CA8;
  --footer-border: #2F292D;
  --footer-input-bg: #252025;
  --footer-input-text: #FFF7ED;
  --footer-input-placeholder: #9F959B;
  --footer-copyright: #9F959B;
  --footer-icon: #FF5CA8;
  --footer-brand-start: #FF5CA8;
  --footer-brand-end: #A78BFA;
  --gradient-bg: linear-gradient(160deg, #1a1518 0%, #151214 40%, #1a1518 70%, #151214 100%);
  --glass-bg: rgba(37, 32, 37, 0.8);
  --modal-overlay: rgba(0, 0, 0, 0.7);
  --input-bg: #2D272A;
  --input-border: #3D3538;
  --input-focus: #FF5CA8;
  --hero-overlay: rgba(0,0,0,0.6);
  --section-alt-bg: #1D191C;
}

/* ============================
   GLOBAL STYLES
   ============================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
}

p, li, a, span, small, label, input, textarea, select, button {
  color: var(--text);
}

/* ============================
   RESPONSIVE TYPOGRAPHY
   ============================ */
.display-1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.display-2 { font-size: clamp(2rem, 5vw, 3.75rem); }
.display-3 { font-size: clamp(1.75rem, 4.5vw, 3rem); }
.display-4 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.display-5 { font-size: clamp(1.3rem, 3.5vw, 2rem); }
.display-6 { font-size: clamp(1.1rem, 3vw, 1.75rem); }
h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2vw, 1.5rem); }
h5 { font-size: clamp(0.95rem, 1.5vw, 1.25rem); }
h6 { font-size: clamp(0.85rem, 1.2vw, 1rem); }
p, li, .lead { font-size: clamp(0.875rem, 1.2vw, 1.05rem); }
.small, small { font-size: clamp(0.75rem, 1vw, 0.875rem); }

/* ============================
   UTILITY CLASSES
   ============================ */
.fw900 { font-weight: 900; }

.text-gradient {
  background: var(--gradient-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-primary { color: var(--primary) !important; }
.text-pink { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-dark, .text-body { color: var(--text) !important; }

.bg-pink { background-color: var(--primary) !important; }
.bg-light { background-color: var(--border-light) !important; }
.bg-white, .bg-body { background-color: var(--bg-card) !important; }

.border { border-color: var(--border) !important; }
.border-top { border-top-color: var(--border) !important; }
.border-bottom { border-bottom-color: var(--border) !important; }

.shadow-sm { box-shadow: var(--shadow) !important; }
.shadow { box-shadow: var(--shadow-hover) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* ============================
   SCROLLBAR
   ============================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================
   NAVBAR
   ============================ */
.navbar {
  background: var(--navbar-bg) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
  padding: 0.5rem 0;
  min-height: clamp(56px, 8vh, 72px);
}

.navbar-brand {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-brand .text-gradient {
  font-size: inherit;
}

.navbar .nav-link {
  font-weight: 500;
  color: var(--text) !important;
  transition: color 0.2s;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary) !important;
  background: rgba(255, 79, 154, 0.08);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text);
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
}

.theme-toggle .bi-sun-fill { display: none; }
.theme-toggle .bi-moon-fill { display: block; }
[data-theme="dark"] .theme-toggle .bi-sun-fill { display: block; }
[data-theme="dark"] .theme-toggle .bi-moon-fill { display: none; }

/* Hamburger Menu - Animated */
.navbar-toggler {
  border: none !important;
  padding: 0 !important;
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler-icon {
  display: none !important;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
}

.hamburger-line:nth-child(1) { transform: translateY(-6px); }
.hamburger-line:nth-child(2) { transform: translateY(0); }
.hamburger-line:nth-child(3) { transform: translateY(6px); }

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* Mobile Navbar Collapse */
@media (max-width: 991.98px) {
  nav.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
  }

  body {
    padding-top: clamp(56px, 8vh, 72px);
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    height: calc(100vh - clamp(56px, 8vh, 72px));
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex !important;
    flex-direction: column;
    border-top: 1px solid var(--border);
  }

  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    transform: translateX(0);
  }

  .navbar-collapse .navbar-nav {
    flex: 1;
  }

  .navbar-collapse .nav-link {
    padding: 0.75rem 1rem !important;
    font-size: 1.1rem;
    border-radius: 12px;
    margin-bottom: 0.25rem;
  }

  .navbar-collapse .d-flex.align-items-center {
    flex-direction: column;
    gap: 0.75rem !important;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
  }

  .navbar-collapse .d-flex.align-items-center .btn,
  .navbar-collapse .d-flex.align-items-center .dropdown {
    width: 100%;
  }

  .navbar-collapse .d-flex.align-items-center .btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-collapse .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-top: 0.5rem;
  }

  .navbar-brand {
    z-index: 1051;
  }
}

/* Cart Badge */
.navbar .cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  color: var(--text);
  background: transparent;
  transition: all 0.2s;
  text-decoration: none;
}

.navbar .cart-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.navbar .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-pink) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(255, 79, 154, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 79, 154, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-primary {
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  background: transparent !important;
}

.btn-outline-primary:hover {
  background: var(--gradient-pink) !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.btn-outline-dark {
  border: 2px solid var(--text) !important;
  color: var(--text) !important;
  background: transparent !important;
}

.btn-outline-dark:hover {
  background: var(--text) !important;
  color: var(--bg) !important;
}

.btn-outline-light {
  border: 2px solid var(--border) !important;
  color: var(--text) !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: rgba(255, 79, 154, 0.08) !important;
}

.btn-success {
  background: var(--success) !important;
  border: none !important;
  color: #fff !important;
}

.btn-success:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-outline-secondary {
  border: 2px solid var(--border) !important;
  color: var(--text-muted) !important;
  background: transparent !important;
}

.btn-outline-secondary:hover {
  border-color: var(--text-muted) !important;
  color: var(--text) !important;
  background: var(--border-light) !important;
}

.btn-outline-danger {
  border: 2px solid #ef4444 !important;
  color: #ef4444 !important;
}

.btn-outline-danger:hover {
  background: #ef4444 !important;
  color: #fff !important;
}

.btn-lg {
  padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: clamp(0.75rem, 1vw, 0.85rem);
}

.rounded-pill { border-radius: 50px !important; }

/* ============================
   CARDS
   ============================ */
.card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-body {
  color: var(--text);
}

/* ============================
   PRODUCT CARDS
   ============================ */
.product-card {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-card);
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-img-wrap,
.product-img-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--border-light);
  flex-shrink: 0;
  aspect-ratio: 4/3;
  width: 100%;
}

@media (max-width: 576px) {
  .product-img-wrap,
  .product-img-wrapper {
    aspect-ratio: 1/1;
  }
}

.product-img-wrap img,
.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img,
.product-card:hover .product-img-wrapper img {
  transform: scale(1.08);
}

.product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.product-badges .badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25em 0.6em;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
  padding: clamp(0.75rem, 2vw, 1rem);
  flex: 1;
}

.product-card .card-body .btn {
  margin-top: auto;
}

.product-card .card-body h6 {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.7em;
}

.product-card .card-body p.text-muted {
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .price {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 800;
  color: var(--success);
}

.quick-view-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  z-index: 3;
  transition: all 0.3s;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  font-weight: 600;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-card:hover .quick-view-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Product card v2 (used in index.html) */
.product-card-v2 {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.35s ease;
  position: relative;
  height: 100%;
}

.product-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-card-v2 .img-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
  background: var(--border-light);
}

.product-card-v2 .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card-v2:hover .img-wrap img {
  transform: scale(1.08);
}

.product-card-v2 .card-body {
  padding: clamp(0.75rem, 2vw, 1.2rem);
}

/* ============================
   FORMS
   ============================ */
.form-control, .form-select {
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  color: var(--text);
  border-radius: 12px;
  padding: clamp(0.5rem, 1.2vw, 0.75rem) clamp(0.75rem, 1.5vw, 1rem);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.3s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(255, 79, 154, 0.15);
  background: var(--input-bg);
  color: var(--text);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-label {
  color: var(--text);
  font-weight: 600;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  margin-bottom: 0.35rem;
}

.form-text {
  color: var(--text-muted);
  font-size: clamp(0.7rem, 0.9vw, 0.8rem);
}

.input-group .btn {
  border-radius: 12px !important;
}

.search-field {
  border-radius: 50px;
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 79, 154, 0.12);
  outline: none;
}

/* ============================
   MODAL
   ============================ */
.modal-content {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
}

.modal-header, .modal-body, .modal-footer {
  color: var(--text);
  border-color: var(--border) !important;
}

.modal-backdrop.show {
  opacity: 0.7;
  background: var(--modal-overlay);
}

/* ============================
   FOOTER
   ============================ */
footer {
  background: var(--footer-bg) !important;
  color: var(--footer-text);
  border-top: 1px solid var(--footer-border);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  opacity: 0.3;
}

footer a {
  color: var(--footer-link);
  transition: all 0.2s;
}

footer a:hover {
  color: var(--footer-link-hover) !important;
}

footer .text-white-50 {
  color: var(--footer-muted) !important;
}

footer .border-secondary {
  border-color: var(--footer-border) !important;
}

/* ── Footer Grid ── */
.footer-grid {
  display: grid;
  gap: clamp(2rem, 3vw, 3.5rem);
  padding: 3.5rem 0 2.5rem;
  min-width: 0;
}

.footer-section {
  min-width: 0;
}

/* ── Brand ── */
.footer-brand-name {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-brand-name .text-gradient {
  background: linear-gradient(135deg, var(--footer-brand-start), var(--footer-brand-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--footer-muted);
  margin-bottom: 1rem;
  max-width: 340px;
}

/* ── Social Icons ── */
.footer-social-row {
  display: flex;
  gap: 0.5rem;
}

.footer-social {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--footer-border);
  color: var(--footer-icon) !important;
  font-size: 0.9rem;
  transition: all 0.25s;
  text-decoration: none;
}

.footer-social:hover {
  background: var(--footer-link-hover);
  color: #fff !important;
  transform: translateY(-2px);
}

/* ── Section Headings ── */
.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  position: relative;
  color: var(--footer-heading);
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: var(--primary);
}

/* ── Link Lists ── */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--footer-link);
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.25s;
}

.footer-links a:hover {
  color: var(--footer-link-hover);
  padding-left: 3px;
}

.footer-links a:hover::after {
  width: 100%;
}

/* ── Contact Info ── */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.footer-contact li i {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--footer-icon);
  font-size: 0.8rem;
  width: 1rem;
  text-align: center;
}

.footer-contact li a,
.footer-contact li span {
  color: var(--footer-text);
  min-width: 0;
}

.footer-contact li a {
  font-size: 0.875rem;
}

/* ── Newsletter ── */
.footer-newsletter-text {
  font-size: 0.825rem;
  color: var(--footer-muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.footer-newsletter-input-row {
  display: flex;
  gap: 0;
  max-width: 100%;
}

.footer-newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  background: var(--footer-input-bg);
  border: 1px solid var(--footer-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: var(--footer-input-text);
  outline: none;
  transition: all 0.25s;
}

.footer-newsletter-input::placeholder {
  color: var(--footer-input-placeholder);
}

.footer-newsletter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 79, 154, 0.12);
}

.footer-newsletter-btn {
  flex-shrink: 0;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  background: var(--primary);
  border: none;
  border-radius: 0 8px 8px 0;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-newsletter-btn:hover {
  background: var(--primary-dark);
}

.footer-newsletter-note {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--footer-copyright);
}

/* ── Divider ── */
.footer-divider {
  height: 1px;
  background: var(--footer-border);
  margin: 0;
}

/* ── Bottom Bar ── */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 0;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--footer-copyright);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--footer-copyright);
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.footer-bottom-links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.footer-bottom-links a:hover {
  color: var(--footer-link-hover);
}

.footer-bottom-links a:hover::after {
  transform: scaleX(1);
}

.footer-bottom-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--footer-border);
}

/* ── Desktop (≥1024px) ── */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.8fr 0.9fr 0.9fr 1.6fr 2.4fr;
    gap: 3rem;
  }

  .footer-newsletter-input-row {
    max-width: 300px;
  }
}

/* ── Tablet (768–1023px) ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

/* ── Mobile (<768px) ── */
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0 1.5rem;
  }

  .footer-newsletter-input-row {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0;
  }
}

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0;
  }

/* ============================
   HERO SECTIONS
   ============================ */
.premium-hero {
  padding: 120px 0 80px;
  background: var(--gradient-bg) !important;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.hero-section {
  min-height: 85vh;
  background: var(--gradient-bg) !important;
  padding: 100px 0 60px;
}

.hero-img {
  max-height: 450px;
  object-fit: cover;
  animation: float 5s ease-in-out infinite;
}

/* ── Hero content column ── */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
}

.hero-content .lead {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  max-width: 520px;
  margin: 0;
}

/* ── Hero image column ── */
.hero-image-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
}

.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 79, 154, 0.15), rgba(139, 92, 246, 0.15));
  transform: rotate(-3deg);
  z-index: 0;
  pointer-events: none;
}

.hero-main-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
  animation: softFloat 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Menu Hero */
.menu-hero {
  background: linear-gradient(135deg, #151214 0%, #1D191C 50%, #151214 100%);
  padding: clamp(2rem, 5vw, 4rem) 0;
  position: relative;
  overflow: hidden;
  color: #FFF7ED;
}

.menu-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 92, 168, 0.08) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10%, 10%); }
}

.menu-hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 900;
  color: #FFF7ED;
}

.menu-hero .lead {
  color: #E5E7EB;
}

/* Services Hero */
.inset-0 { top: 0; left: 0; right: 0; bottom: 0; }

.services-hero {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}

.services-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.8rem);
}

/* Catering Hero */
.catering-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
  padding: clamp(2rem, 4vw, 3rem) 0;
  color: #fff;
  text-align: center;
}

.catering-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
}

/* ============================
   FILTER PILLS
   ============================ */
.pill-filter, .category-pill, .cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 2px solid var(--input-border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.pill-filter:hover, .category-pill:hover, .cat-pill:hover,
.pill-filter.active, .category-pill.active, .cat-pill.active {
  background: var(--gradient-pink) !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 79, 154, 0.25);
}

/* ============================
   SEARCH WRAP
   ============================ */
.search-wrap {
  border-radius: 50px;
  overflow: hidden;
  border: 2px solid var(--input-border);
  background: var(--input-bg);
  display: flex;
  align-items: center;
  padding-left: 1rem;
  transition: border-color 0.2s;
}

.search-wrap:focus-within {
  border-color: var(--input-focus);
}

.search-wrap input {
  border: none;
  background: transparent;
  padding: 0.5rem 0;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  outline: none;
  flex: 1;
  color: var(--text);
}

.search-wrap input::placeholder {
  color: var(--text-light);
}

.search-wrap button {
  border: none;
  background: var(--gradient-pink);
  color: #fff;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.search-wrap button:hover {
  opacity: 0.9;
}

/* ============================
   SORT SELECT
   ============================ */
.sort-select {
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  border: 2px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
}

/* ============================
   FEATURED SCROLL
   ============================ */
.featured-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.featured-scroll::-webkit-scrollbar {
  height: 4px;
}

.featured-scroll::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 10px;
}

.featured-scroll .product-card {
  min-width: 220px;
  width: 220px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .featured-scroll .product-card {
    min-width: 240px;
    width: 240px;
  }
}

/* ============================
   SCROLL-X (Services)
   ============================ */
.scroll-x {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.scroll-x::-webkit-scrollbar { height: 4px; }
.scroll-x::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 10px; }
.scroll-x .service-card { min-width: 260px; scroll-snap-align: start; flex-shrink: 0; }

/* ============================
   SERVICE CARDS
   ============================ */
.service-card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover) !important;
}

.service-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.3s;
}

.service-card:hover .icon-wrap {
  transform: scale(1.1) rotate(-5deg);
}

/* Service card image styles removed — using icon-based cards */

/* ============================
   FLAVOUR CARDS
   ============================ */
.flavour-card {
  border: 2px solid var(--input-border);
  border-radius: 14px;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  background: var(--bg-card);
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flavour-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(255, 79, 154, 0.1);
  transform: translateY(-2px);
}

.flavour-card.selected {
  border-color: var(--primary);
  background: rgba(255, 79, 154, 0.06);
}

.flavour-card .emoji {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 0.35rem;
  line-height: 1;
}

.flavour-card .name {
  font-weight: 700;
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
}

.flavour-card .price-tag {
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  color: var(--primary);
  font-weight: 600;
}

/* ============================
   HERO STATS
   ============================ */
.hero-stats {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: 1.5rem;
}

.hero-stat .num {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.hero-stat .label {
  font-size: clamp(0.65rem, 0.9vw, 0.8rem);
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-stat-divider {
  width: 1px;
  background: var(--border);
}

/* ============================
   RATING
   ============================ */
.product-rating .stars {
  color: var(--rating);
}

.rating-stars {
  color: var(--rating);
  font-size: 1rem;
}

/* ============================
   INGREDIENT TAGS
   ============================ */
.ingredient-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  margin: 0.15rem;
  border-radius: 50px;
  background: rgba(255, 79, 154, 0.08);
  color: var(--primary);
  font-size: clamp(0.7rem, 0.9vw, 0.8rem);
  font-weight: 500;
  border: 1px solid rgba(255, 79, 154, 0.15);
}

/* ============================
   CATEGORY CARDS
   ============================ */
.category-card {
  border-radius: 16px;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: rgba(255, 79, 154, 0.04);
}

/* ============================
   REVIEW CARDS
   ============================ */
.review-card {
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  background: var(--bg-card);
  transition: all 0.2s;
}

.review-card:hover {
  box-shadow: var(--shadow);
}

/* ============================
   SECTION HEADERS
   ============================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  margin: 0;
}

.section-header h2 small {
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 400;
  color: var(--text-muted);
}

/* ============================
   GLASS CARD
   ============================ */
.glass-card-light {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.glass-card-light:hover {
  background: var(--bg-card);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ============================
   VALUE ICON
   ============================ */
.value-icon {
  width: clamp(48px, 6vw, 56px);
  height: clamp(48px, 6vw, 56px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
}

/* ============================
   GALLERY IMG
   ============================ */
.gallery-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0.7;
  min-width: 80px;
  max-width: 120px;
}

.gallery-img:hover,
.gallery-img.active {
  opacity: 1;
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ============================
   CART SIDEBAR
   ============================ */
.cart-sidebar {
  position: sticky;
  top: 90px;
}

/* ============================
   QUANTITY CONTROLS
   ============================ */
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.qty-control button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.qty-control button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.qty-control .qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

/* ============================
   CART ITEMS
   ============================ */
.cart-item-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border) !important;
}

.order-summary-item {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.order-summary-item:last-child {
  border-bottom: none;
}

/* ============================
   PAYMENT OPTIONS
   ============================ */
.payment-option {
  border: 2px solid var(--input-border);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  background: var(--bg-card);
}

.payment-option:hover,
.payment-option.selected {
  border-color: var(--primary);
  background: rgba(255, 79, 154, 0.06);
}

/* ============================
   CATERING PACKAGE CARDS
   ============================ */
.package-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.25rem;
  border: 2px solid var(--input-border);
  border-radius: 14px;
  background: var(--bg-card);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.package-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(255, 79, 154, 0.14);
  transform: translateY(-2px);
}

.package-card.selected {
  border-color: var(--primary);
  background: rgba(255, 79, 154, 0.06);
  box-shadow: 0 6px 24px rgba(255, 79, 154, 0.16);
}

.package-card__icon {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.package-card__name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7em;
  margin: 0 0 0.5rem;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.package-card__price {
  margin-bottom: 0.85rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  white-space: nowrap;
}

.package-card__features {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  line-height: 1.5;
}

.package-card__features li {
  padding: 0.2rem 0;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.package-card__features li::before {
  content: "\2713";
  display: inline-block;
  margin-right: 0.4rem;
  color: var(--success);
  font-weight: 700;
}

.package-card__min-guests {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

/* ============================
   STEP INDICATOR
   ============================ */
.step-indicator {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--input-border);
  transition: all 0.3s;
}

.step-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

.step-dot.done {
  background: var(--success);
}

/* ============================
   STATUS TIMELINE
   ============================ */
.status-timeline .step-circle {
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
}

/* ============================
   LOADING OVERLAY
   ============================ */
#loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--modal-overlay);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#loading-overlay.show {
  display: flex;
}

#loading-overlay p {
  color: #FFF7ED;
  margin-top: 1rem;
  font-weight: 600;
}

.spinner-big {
  width: 4rem;
  height: 4rem;
  border: 5px solid rgba(255,247,237,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================
   TOAST MESSAGES
   ============================ */
.toast-menu, .toast-serv, .toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}

.toast-menu.show, .toast-serv.show {
  transform: translateY(0);
  opacity: 1;
}

/* Toast notifications from Bootstrap */
.toast-container .toast {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

/* ============================
   EMPTY STATE
   ============================ */
.empty-state {
  padding: clamp(2rem, 5vw, 4rem) 1rem;
  text-align: center;
}

.empty-state i {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ============================
   ACCORDION
   ============================ */
.accordion-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
}

.accordion-button {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  color: var(--primary) !important;
}

.accordion-button::after {
  background-color: var(--text-light);
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
}

.accordion-body {
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ============================
   TESTIMONIAL CARDS
   ============================ */
.testimonial-card {
  border-radius: 16px;
  transition: all 0.3s;
  position: relative;
  padding-left: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  font-size: 3rem;
  color: var(--primary);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.3;
}

/* ============================
   PAGINATION
   ============================ */
.page-link {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

.page-link:hover {
  background: var(--border-light);
  border-color: var(--border);
  color: var(--primary);
}

.page-item.active .page-link {
  background: var(--gradient-pink);
  border-color: transparent;
}

.page-item.disabled .page-link {
  background: var(--border-light);
  border-color: var(--border);
  color: var(--text-light);
}

/* ============================
   TABLE
   ============================ */
.table {
  color: var(--text);
  border-color: var(--border);
}

.table-light {
  background: var(--border-light);
  color: var(--text);
}

.table-hover tbody tr:hover {
  background: rgba(255, 79, 154, 0.04);
  color: var(--text);
}

/* ============================
   LIST GROUP
   ============================ */
.list-group-item {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

/* ============================
   DROPDOWN
   ============================ */
.dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.dropdown-item {
  color: var(--text);
  border-radius: 8px;
}

.dropdown-item:hover {
  background: rgba(255, 79, 154, 0.08);
  color: var(--primary);
}

.dropdown-divider {
  border-color: var(--border);
}

/* ============================
   ALERTS
   ============================ */
.alert {
  border-radius: 12px;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.alert-success {
  background: var(--success-light);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: var(--success);
}

/* ============================
   MISSING ACCOUNT / SOCIAL CARDS
   ============================ */
.breadcrumb {
  background: transparent;
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-light);
}

/* ============================
   SECTION SUBTITLE
   ============================ */
.section-subtitle {
  display: inline-block;
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Alternate section background (theme-aware: light lavender in light theme,
   dark in dark theme) so headings using var(--text) stay high-contrast. */
.section-best-sellers {
  background: var(--section-alt-bg);
}

/* ============================
   BRAND TAG
   ============================ */
.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 79, 154, 0.1);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  margin-bottom: 1.5rem;
}

/* ============================
   CTA GRADIENT CARD
   ============================ */
.cta-gradient {
  background: var(--gradient-bg);
  border-radius: 24px;
  border: 1px solid var(--border);
}

/* ============================
   MENU CTA CARD
   ============================ */
.menu-cta-card {
  background: var(--gradient-bg) !important;
  border-radius: 20px !important;
  border: 1px solid var(--border) !important;
}

/* ============================
   ADD CART BUTTON
   ============================ */
.add-cart-btn {
  width: 100%;
  border-radius: 12px;
  padding: 0.5rem;
  font-weight: 600;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  transition: all 0.2s;
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

.stagger { animation: fadeInUp 0.4s ease forwards; opacity: 0; }

.stagger-1, .s-delay-1 { animation-delay: 0.05s; }
.stagger-2, .s-delay-2 { animation-delay: 0.1s; }
.stagger-3, .s-delay-3 { animation-delay: 0.15s; }
.stagger-4, .s-delay-4 { animation-delay: 0.2s; }
.stagger-5, .s-delay-5 { animation-delay: 0.25s; }
.stagger-6, .s-delay-6 { animation-delay: 0.3s; }

/* Login Required Modal */
#loginRequiredModal .modal-content {
  animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* ============================
   RESPONSIVE BREAKPOINTS
   ============================ */

/* Small phones (320px - 375px) */
@media (max-width: 375px) {
  .premium-hero { padding: 80px 0 50px; }
  .hero-content { gap: 0.75rem; }
  .hero-content h1 { font-size: 1.6rem !important; }
  .hero-content .lead { font-size: 0.85rem !important; }
  .hero-stats { gap: 0.75rem; margin-top: 0.75rem; }
  .hero-stat .num { font-size: 1rem; }
  .hero-stat .label { font-size: 0.6rem; }
  .flavour-card { padding: 0.6rem; }
  .flavour-card .emoji { font-size: 1.5rem; }
  .product-card .card-body { padding: 0.6rem; }
  .brand-tag { font-size: 0.7rem; padding: 5px 10px; }
  .btn-lg { padding: 0.4rem 1rem; font-size: 0.85rem; }
  .menu-hero h1 { font-size: 1.5rem; }
  .catering-hero h1 { font-size: 1.3rem; }
  .services-hero h1 { font-size: 1.5rem; }
  .display-3 { font-size: 1.6rem !important; }
  .display-4 { font-size: 1.4rem; }
}

/* Large phones (376px - 425px) */
@media (max-width: 425px) {
  .premium-hero { padding: 85px 0 50px; }
  .hero-content { gap: 1rem; }
  .hero-content h1 { font-size: clamp(1.6rem, 8vw, 2rem) !important; }
  .hero-stats { gap: 1rem; margin-top: 1rem; }
  .hero-stat .num { font-size: 1.1rem; }
  .hero-stat .label { font-size: 0.65rem; }
  .product-img-wrap { height: auto; aspect-ratio: 1/1; }
  .product-card-v2 .img-wrap { height: auto; aspect-ratio: 1/1; }
  .flavour-card .emoji { font-size: 1.8rem; }
  .gallery-img { height: 80px; min-width: 70px; }
  .package-card__name { min-height: 1.35em; }
  .hero-main-img { aspect-ratio: 4/3; }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .hero-section { min-height: auto; padding: 80px 0 40px; }
  .hero-img { max-height: 280px; }
  .premium-hero { padding: 95px 0 50px; }
  .hero-content { gap: 1rem; }
  .hero-content h1 { font-size: clamp(1.8rem, 6vw, 2.4rem) !important; }
  .hero-content .lead { font-size: clamp(0.9rem, 2vw, 1rem) !important; }
  .hero-stats { gap: 1.25rem; margin-top: 1rem; }
  .hero-stat .num { font-size: 1.2rem; }
  .menu-hero { padding: 2.5rem 0; }
  .menu-hero h1 { font-size: 2rem; }
  .catering-hero h1 { font-size: 1.75rem; }
  .services-hero { padding: 3rem 0; }
  .services-hero h1 { font-size: 2rem; }
  .featured-scroll .product-card { min-width: 200px; }
  .scroll-x .service-card { min-width: 240px; }
  .cart-sidebar { position: static !important; max-height: none !important; }
  .product-img-wrap { aspect-ratio: 1/1; }
  .hero-image-col { margin-top: 1.5rem; }
  .package-card { padding: 1.35rem 1.1rem; }
}

/* Between tablet and desktop (769px - 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
  .premium-hero { padding: 110px 0 60px; }
  .hero-content h1 { font-size: clamp(2rem, 4.5vw, 2.6rem) !important; }
  .hero-img-wrap { max-width: 420px; }
  .hero-main-img { aspect-ratio: 4/3; }
}

/* Laptops (1024px+) */
@media (min-width: 1024px) {
  .premium-hero { padding: 130px 0 80px; }
  .hero-content { gap: 1.5rem; }
  .hero-content h1 { font-size: clamp(2.2rem, 4vw, 3.2rem) !important; }
  .hero-content .lead { font-size: clamp(1rem, 1.3vw, 1.15rem) !important; }
  .container { max-width: 1140px; }
  .hero-img-wrap { max-width: 520px; }
  .hero-main-img { aspect-ratio: 4/3; max-height: 460px; }
}

/* Large screens (1280px+) */
@media (min-width: 1280px) {
  .container { max-width: 1200px; }
  .premium-hero .container { max-width: 1240px; }
  .hero-content h1 { font-size: clamp(2.8rem, 3.8vw, 3.6rem) !important; }
  .hero-img-wrap { max-width: 560px; }
}

/* Very large screens (1440px+) */
@media (min-width: 1440px) {
  .premium-hero .container { max-width: 1280px; }
  .hero-content h1 { font-size: clamp(3rem, 3.5vw, 4rem) !important; }
  .hero-img-wrap { max-width: 580px; }
  .hero-main-img { max-height: 500px; }
}

/* ============================
   BOOTSTRAP OVERRIDES FOR DARK THEME
   ============================ */
[data-theme="dark"] .navbar {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .btn-close {
  filter: invert(1);
}

[data-theme="dark"] .text-bg-warning {
  color: #1f2937 !important;
}

[data-theme="dark"] .text-bg-info {
  color: #1f2937 !important;
}

[data-theme="dark"] .bg-light {
  background-color: var(--border-light) !important;
}

[data-theme="dark"] .bg-white {
  background-color: var(--bg-card) !important;
}

[data-theme="dark"] .table-light {
  background-color: var(--border-light);
  color: var(--text);
}

[data-theme="dark"] .offcanvas,
[data-theme="dark"] .offcanvas-header,
[data-theme="dark"] .offcanvas-body {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

[data-theme="dark"] .text-dark {
  color: var(--text) !important;
}

[data-theme="dark"] .border-light {
  border-color: var(--border) !important;
}

[data-theme="dark"] .bg-dark {
  background-color: var(--footer-bg) !important;
}

[data-theme="dark"] .bg-opacity-10 {
  opacity: 1;
}

[data-theme="dark"] .bg-opacity-25 {
  opacity: 1;
}

[data-theme="dark"] .link-dark {
  color: var(--text) !important;
}

/* ============================
   RESPONSIVE GRID GAPS
   ============================ */
@media (max-width: 576px) {
  .row.g-4 > [class*="col-"] {
    padding-bottom: 0.75rem;
  }
  .row.g-3 > [class*="col-"] {
    padding-bottom: 0.5rem;
  }
}

/* ============================
   IMPROVED PRODUCT CARD ALIGNMENT
   ============================ */
.product-grid .product-card,
.product-grid .product-card-v2 {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-grid .product-img-wrap,
.product-grid .product-img-wrapper {
  aspect-ratio: 1/1;
  overflow: hidden;
}

.product-grid .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-grid .card-body .btn {
  margin-top: auto;
}

.product-grid .card-body h6 {
  min-height: 2.5em;
  line-height: 1.3;
}

.product-grid .card-body .price {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Consistent card heights in row (only when a column holds a single card) */
.row.g-4 > [class*="col-"]:has(> .card:only-child),
.row.g-4 > [class*="col-"]:has(> .product-card:only-child),
.row.g-4 > [class*="col-"]:has(> .product-card-v2:only-child) {
  display: flex;
}

.row.g-4 > [class*="col-"] > .card,
.row.g-4 > [class*="col-"] > .product-card,
.row.g-4 > [class*="col-"] > .product-card-v2 {
  width: 100%;
}

/* ============================
   BADGE COLOR OVERRIDES
   ============================ */
.badge.bg-warning {
  background: var(--accent) !important;
  color: #1f2937 !important;
}

.badge.bg-success {
  background: var(--success) !important;
  color: #fff !important;
}

.badge.bg-info {
  background: var(--secondary) !important;
  color: #fff !important;
}

.badge.bg-pink {
  background: var(--primary) !important;
  color: #fff !important;
}

/* ============================
   RESPONSIVE IMAGES
   ============================ */
img {
  max-width: 100%;
  height: auto;
}

.product-img-wrapper img,
.product-img-wrap img,
.product-card-v2 .img-wrap img,
.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================
   NO HORIZONTAL SCROLL
   ============================ */
body, html {
  overflow-x: hidden;
  max-width: 100%;
}

/* ============================
   FOCUS STATES (Accessibility)
   ============================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================
   SKIP TO MAIN (Accessibility)
   ============================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ============================
   LAZY LOAD PLACEHOLDER
   ============================ */
img[loading="lazy"] {
  background: var(--border-light);
}

img[loading="lazy"]:not([src]) {
  visibility: hidden;
}

/* Ensure images don't overflow */
.img-fluid, img {
  max-width: 100%;
  height: auto;
}

/* Improved sticky top bar spacing */
.sticky-top {
  z-index: 1020;
}

/* ============================
   TOUCH FRIENDLY
   ============================ */
@media (hover: none) and (pointer: coarse) {
  .btn, .nav-link, .category-pill, .pill-filter, .flavour-card {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-sm {
    min-height: 36px;
  }

  .product-card:hover {
    transform: none;
  }

  .quick-view-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
