/* ==========================================================================
   iRestora PLUS - Modern WooCommerce Restaurant Theme Overrides (custom-theme.css)
   Bootstrap 5 Compatible Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #e31837;
  --primary-hover: #c4122c;
  --primary-light: rgba(227, 24, 55, 0.08);
  --pizzahut-red: #e31837;
  --pizzahut-dark: #111111;
  --pizzahut-gray: #181818;
  --dark-color: #111111;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-body: #f8f9fa;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

/* ==========================================================================
   1. Header & Navigation (WoodMart / Flavors Style)
   ========================================================================== */
.top-header-bar {
  position: relative;
  z-index: 1040 !important;
  background-color: #111418;
  color: #a0a6b1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-header-bar a:not(.dropdown-item) {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
}

.top-header-bar a:not(.dropdown-item):hover {
  color: #ffffff;
}

/* Dropdown Menu High Contrast & Z-Index Fix */
.dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  border-radius: var(--radius-md) !important;
  padding: 6px 0 !important;
  z-index: 1055 !important;
}

.dropdown-item,
.dropdown-menu a,
.dropdown-menu li a {
  color: #1e293b !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  padding: 8px 16px !important;
  display: flex !important;
  align-items: center !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
  background: transparent !important;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-menu a:hover {
  background-color: rgba(255, 56, 92, 0.08) !important;
  color: var(--primary-color) !important;
}

.dropdown-item.text-danger {
  color: #dc3545 !important;
}

.dropdown-item.text-danger:hover {
  background-color: rgba(220, 53, 69, 0.08) !important;
  color: #dc3545 !important;
}

.main-header-sticky {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.navbar-brand-logo {
  max-height: 48px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.navbar-brand-logo:hover {
  transform: scale(1.02);
}

.nav-link-custom {
  font-weight: 600;
  color: var(--dark-color);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

/* Cart Button & Badge in Header Fix */
.cart-header-btn {
  position: relative !important;
  background: var(--primary-light) !important;
  color: var(--primary-color) !important;
  border: 1px solid rgba(255, 56, 92, 0.2) !important;
  border-radius: var(--radius-pill) !important;
  padding: 8px 18px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
}

.cart-header-btn:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(255, 56, 92, 0.35) !important;
  transform: translateY(-1px);
}

/* Force Reset Legacy Absolute Positioning on Cart Count Badge */
.cart-header-btn .cart-item-count,
.cart-header-btn .cart-badge {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border-radius: 50% !important;
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  margin: 0 0 0 4px !important;
  line-height: 1 !important;
}

.cart-header-btn:hover .cart-item-count,
.cart-header-btn:hover .cart-badge {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
}

.cart-header-btn:hover .cart-badge {
  background-color: #ffffff;
  color: var(--primary-color);
}

/* Floating Sticky Cart Button on Mobile */
.floating-cart-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1020;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  box-shadow: 0 10px 30px rgba(255, 56, 92, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);

}

.floating-cart-pill:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* ==========================================================================
   2. Category Filter & Scrollbar
   ========================================================================== */
.category-filter-wrapper {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.category-scroll-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

.category-pill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.category-pill-item img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
}

.category-pill-item:hover,
.category-pill-item.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(255, 56, 92, 0.3);
}

/* ==========================================================================
   3. WooCommerce Food Card UI
   ========================================================================== */
.food-card-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);

}

.food-card-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 56, 92, 0.2);
}

.food-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 66.66%; /* 3:2 Aspect Ratio */
  overflow: hidden;
  background-color: #f1f3f5;
}

.food-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.food-card-item:hover .food-card-img-wrap img {
  transform: scale(1.08);
}

.dietary-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.dietary-badge.veg {
  color: #198754;
  border: 1px solid #198754;
}

.dietary-badge.non-veg {
  color: #dc3545;
  border: 1px solid #dc3545;
}

.food-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.food-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 6px;
  text-decoration: none;
}

.food-card-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.food-card-title a:hover {
  color: var(--primary-color);
}

.food-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.food-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.food-price-badge {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-color);
}

.btn-add-cart-custom {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-add-cart-custom:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 56, 92, 0.35);
}

/* Star Ratings */
.star-rating-box {
  color: #ffc107;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ==========================================================================
   4. Offcanvas Slide-Over Cart Drawer
   ========================================================================== */
.cart-sidebar-wrapper {
  position: relative;
  z-index: 1060;
}

.cart-sidebar,
.offcanvas-cart-custom {
  position: fixed !important;
  top: 0 !important;
  right: -520px !important;
  width: 440px !important;
  max-width: 95vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  z-index: 1060 !important; /* Higher than sticky header (1030) */
  background: #ffffff !important;
  box-shadow: -8px 0 35px rgba(0, 0, 0, 0.3) !important;
  border-left: none !important;
  display: flex !important;
  flex-direction: column !important;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}

body.cart-open .cart-sidebar,
body.cart-open .offcanvas-cart-custom {
  right: 0 !important;
}

.cart-sidebar-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1055 !important; /* Above sticky header (1030), below cart (1060) */
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
  cursor: pointer !important;
}

body.cart-open .cart-sidebar-overlay {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Prevent body scrolling behind open cart */
body.cart-open {
  overflow: hidden !important;
}

.offcanvas-cart-header {
  background: #111111 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 16px 20px !important;
  flex-shrink: 0 !important;
  z-index: 2 !important;
}

.cart-item-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: #f1f3f5;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--dark-color);
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.cart-summary-card {
  background: var(--bg-body);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.cart-summary-line.total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark-color);
  border-top: 1px dashed #ced4da;
  padding-top: 10px;
  margin-top: 10px;
  margin-bottom: 0;
}

.btn-checkout-primary {
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  text-align: center;
  display: block;
  width: 100%;
  text-decoration: none;
  transition: var(--transition);
}

.btn-checkout-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 56, 92, 0.4);
}

/* ==========================================================================
   5. Item Customization Modal & Detail View
   ========================================================================== */
.product-detail-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  border: 1px solid var(--border-color);
}

.product-detail-img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  max-height: 420px;
}

.modifier-select-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.modifier-select-card:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.qty-stepper-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: #ffffff;
  overflow: hidden;
}

.qty-stepper-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--dark-color);
  cursor: pointer;
  transition: var(--transition);
}

.qty-stepper-btn:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

.qty-stepper-input {
  width: 44px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ==========================================================================
   6. Checkout 2-Column Layout
   ========================================================================== */
.checkout-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 24px;
}

.payment-method-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 10px;
}

.payment-method-card:hover,
.payment-method-card:has(input:checked) {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.sticky-order-summary {
  position: sticky;
  top: 100px;
}

.card-checkout-item {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.card-checkout-item::-webkit-scrollbar {
  width: 5px;
}

.card-checkout-item::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.checkout-item-card {
  transition: all 0.2s ease;
  border-color: #f1f5f9 !important;
}

.checkout-item-card:hover {
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* ==========================================================================
   7. Modern Footer & Layout Standardization
   ========================================================================== */
footer.ct-footer {
  background-color: #111418 !important;
  color: #94a3b8 !important;
  padding-top: 60px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

footer.ct-footer .footer-logo img {
  max-height: 48px;
  object-fit: contain;
  margin-bottom: 16px;
}

footer.ct-footer p {
  color: #94a3b8 !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

footer.ct-footer .widget-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  margin-bottom: 20px !important;
  position: relative;
  display: inline-block;
}

footer.ct-footer .widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

footer.ct-footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

footer.ct-footer ul li {
  margin-bottom: 12px !important;
}

footer.ct-footer ul li a {
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  transition: all 0.2s ease !important;
  display: inline-block;
}

footer.ct-footer ul li a:hover {
  color: var(--primary-color) !important;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 24px 0 !important;
  margin-top: 50px !important;
  background-color: #0b0d10 !important;
}

.footer-bottom p {
  color: #64748b !important;
  font-size: 0.85rem !important;
  margin: 0 !important;
}

/* ==========================================================================
   8. WoodMart / Flavors Style Online Order Page Layout
   ========================================================================== */
.sidebar-widget-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.sidebar-widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.category-checkbox-list {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-checkbox-list::-webkit-scrollbar {
  width: 5px;
}

.category-checkbox-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.category-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  color: #475569;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.category-checkbox-item:hover {
  color: #ff4757;
}

.category-checkbox-item .form-check-input {
  margin: 0;
  cursor: pointer;
  border-radius: 4px;
  border-color: #cbd5e1;
  width: 18px;
  height: 18px;
}

.category-checkbox-item .form-check-input:checked {
  background-color: #ff4757;
  border-color: #ff4757;
}

.highlight-link-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.highlight-link {
  color: #64748b;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 8px 0;
  transition: all 0.2s ease;
  display: block;
  border-bottom: 1px dashed #f1f5f9;
}

.highlight-link:last-child {
  border-bottom: none;
}

.highlight-link.active,
.highlight-link:hover {
  color: #ff4757;
  font-weight: 700;
  padding-left: 6px;
}

/* WoodMart Food Card Component */
.woodmart-food-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 1px solid var(--border-color);
}

.woodmart-food-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 71, 87, 0.3);
}

.discount-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #ff4757;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(255, 71, 87, 0.4);
}

.food-img-container {
  width: 100%;
  padding-top: 80%;
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 12px;
}

.food-img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.woodmart-food-card:hover .food-img-container img {
  transform: scale(1.08);
}

.woodmart-food-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.4;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.woodmart-food-title a {
  color: #1e293b;
  transition: color 0.2s ease;
}

.woodmart-food-title a:hover {
  color: #ff4757;
}

.woodmart-star-rating {
  color: #ffc107;
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: flex;
  gap: 3px;
  justify-content: center;
}

.woodmart-food-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ff4757;
  margin-bottom: 16px;
}

.btn-customize-pill {
  background: #ff4757;
  color: #ffffff !important;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border: none;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(255, 71, 87, 0.35);
}

.btn-customize-pill:hover {
  background: #e03243;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(255, 71, 87, 0.45);
  transform: translateY(-2px);
}

/* List View Mode Layout */
#food_products_wrapper.view-list-mode .woodmart-food-card {
  flex-direction: row;
  text-align: left;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
}

#food_products_wrapper.view-list-mode .food-img-container {
  width: 140px;
  padding-top: 110px;
  margin-bottom: 0;
  margin-right: 24px;
  flex-shrink: 0;
}

#food_products_wrapper.view-list-mode .woodmart-food-title {
  min-height: auto;
  margin-bottom: 6px;
  font-size: 1.2rem;
}

#food_products_wrapper.view-list-mode .woodmart-star-rating {
  justify-content: flex-start;
}

#food_products_wrapper.view-list-mode .btn-customize-pill {
  width: auto;
  padding: 12px 36px;
  margin-left: auto;
}

/* ==========================================================================
   Pizza Hut (pizzahut.lk) Specific Component Styling
   ========================================================================== */

/* Order Mode Switcher (Delivery / Takeaway) */
.ph-order-toggle {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ph-order-btn {
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ph-order-btn:hover {
  color: #ffffff;
}

.ph-order-btn.active {
  background: var(--pizzahut-red);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(227, 24, 55, 0.4);
}

/* Header Outlet Location Badge */
.ph-outlet-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ph-outlet-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Sticky Category Scrollbar Bar */
.ph-category-nav-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 68px;
  z-index: 1020;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  padding: 12px 0;
}

.ph-cat-scroll-container {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding-bottom: 4px;
}

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

.ph-cat-chip {
  white-space: nowrap;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.ph-cat-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateY(-1px);
}

.ph-cat-chip.active {
  background: var(--pizzahut-red) !important;
  color: #ffffff !important;
  border-color: var(--pizzahut-red) !important;
  box-shadow: 0 4px 14px rgba(227, 24, 55, 0.35);
}

/* Pizza Hut Card Grid Item Styling */
.ph-food-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ph-food-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 24, 55, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.ph-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 65%;
  overflow: hidden;
  background: #f8fafc;
}

.ph-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ph-food-card:hover .ph-card-img-wrap img {
  transform: scale(1.06);
}

.ph-veg-indicator {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #ffffff;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ph-veg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.ph-veg-dot.veg { background: #22c55e; }
.ph-veg-dot.nonveg { background: #ef4444; }
.ph-veg-dot.beverage { background: #0284c7; }

.ph-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ph-card-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.3;
}

.ph-card-desc {
  font-size: 0.83rem;
  color: #64748b;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.ph-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed #f1f5f9;
}

.ph-price-tag {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--pizzahut-red);
}

.ph-add-btn {
  background: var(--pizzahut-red);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(227, 24, 55, 0.3);
}

.ph-add-btn:hover {
  background: #c4122c;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(227, 24, 55, 0.45);
}

/* Header Fast Search Input */
.ph-search-form {
  position: relative;
  min-width: 220px;
}

.ph-search-input {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 7px 16px 7px 36px;
  font-size: 0.85rem;
  font-weight: 600;
  width: 100%;
  transition: all 0.2s ease;
}

.ph-search-input:focus {
  background: #ffffff;
  border-color: var(--pizzahut-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.15);
}

.ph-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
}

/* ==========================================================================
   Foodie Customer Dashboard & Gamified Loyalty Levels
   ========================================================================== */
.foodie-dashboard-wrapper {
  background-color: #f8fafc;
  min-height: 80vh;
}

.foodie-hero-card {
  border-radius: 24px !important;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25) !important;
  overflow: hidden;
}

.hero-pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.8;
  pointer-events: none;
}

.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.foodie-avatar-wrapper {
  width: 96px;
  height: 96px;
  min-width: 96px;
}

.foodie-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 4px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.foodie-tier-crown-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 34px;
  height: 34px;
  background: #ffffff;
  color: #f59e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
}

.stat-metric-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.stat-icon-bubble {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dashboard Nav Tabs */
.foodie-nav-tabs .nav-link {
  color: #64748b;
  font-size: 0.95rem;
  border: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  background: transparent;
}

.foodie-nav-tabs .nav-link:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.02);
}

.foodie-nav-tabs .nav-link.active {
  color: #e11d48 !important;
  border-bottom: 3px solid #e11d48 !important;
  background-color: transparent !important;
}

/* Tier Roadmap Cards */
.foodie-tier-showcase-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #e2e8f0;
}

.foodie-tier-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1) !important;
}

.active-tier-glow {
  box-shadow: 0 0 25px rgba(225, 29, 72, 0.25) !important;
}

.tier-card-header {
  border-radius: 20px 20px 0 0;
}

/* Voucher Cards */
.voucher-card {
  border: 1px dashed #cbd5e1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.voucher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

.voucher-code-box {
  letter-spacing: 1.5px;
}

.hover-elevate {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-elevate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  .foodie-avatar-wrapper {
    margin: 0 auto;
  }
  .foodie-nav-tabs .nav-link {
    padding: 10px 8px !important;
    font-size: 0.8rem;
  }
}

/* Header Tier Icon Perfectly Centered Round Badge */
.header-tier-icon-circle {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
  font-size: 0.72rem !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  vertical-align: middle;
  flex-shrink: 0;
}

.header-tier-icon-circle i {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  width: auto !important;
  height: auto !important;
}

/* Mobile Order History Cards */
.mobile-order-card {
  border-radius: 16px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e2e8f0 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-order-card:active {
  transform: scale(0.99);
}





