/* ==========================================
   ClickBasketOnline - Premium Design System
   ========================================== */

:root {
  --primary: #6b1d1d;          /* Deep Crimson / Maroon */
  --primary-light: #8b2c2c;
  --primary-dark: #4a1212;
  --accent: #d4af37;           /* Gold Accent */
  --accent-light: #f1d779;
  --accent-dark: #b89324;
  --bg-warm: #FAF6EE;          /* Updated Ivory White */
  --bg-card: #ffffff;
  --bg-gradient-gold: linear-gradient(135deg, #FFFDF8 0%, #f4ebd6 100%);
  --text-dark: #2d251e;        /* Dark Charcoal */
  --text-muted: #73675c;
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-light: rgba(115, 103, 92, 0.15);
  --success: #2e7d32;
  --danger: #c62828;
  --shadow-sm: 0 2px 4px rgba(45, 37, 30, 0.05);
  --shadow-md: 0 4px 12px rgba(45, 37, 30, 0.08);
  --shadow-lg: 0 8px 24px rgba(45, 37, 30, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #FAF6EE;
  background: linear-gradient(180deg, #FAF6EE 0%, #F5EBD8 100%);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, .hero-title, .logo-text h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-warm);
}
::-webkit-scrollbar-thumb {
  background: var(--border-gold);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--primary);
  color: #ffffff;
  text-align: center;
  font-size: 0.85rem;
  padding: 6px 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--accent);
}

/* Main Header */
.main-header {
  background: rgba(248, 241, 231, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(184, 134, 11, 0.15);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 1.6rem;
  animation: flicker 2s infinite alternate;
}

.logo-text h1 {
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: 1px;
  font-weight: 700;
  line-height: 1.2;
}

.logo-text p {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 6px 0;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

.nav-link.disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.badge-coming {
  font-size: 0.65rem;
  background-color: #e6a15c;
  color: #fff;
  padding: 2px 6px;
  border-radius: 20px;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 4px;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-chevron {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  transition: var(--transition);
}

.dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-card);
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 8px 0;
  z-index: 101;
}

.dropdown-content a {
  color: var(--text-dark);
  padding: 8px 16px;
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  transition: var(--transition);
}

.dropdown-content a:hover {
  background-color: var(--bg-warm);
  color: var(--primary);
  padding-left: 20px;
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

/* Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
}

.action-btn:hover {
  background-color: rgba(107, 29, 29, 0.05);
  color: var(--primary);
}

.auth-trigger-btn {
  border-radius: 20px;
  padding: 6px 14px;
  border: 1px solid var(--border-gold);
}

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

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-warm);
}

/* Global Search Section */
.search-banner {
  background-color: var(--bg-warm);
  padding: 10px 24px;
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  justify-content: center;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.search-wrapper input {
  width: 100%;
  padding: 12px 20px 12px 48px;
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  font-size: 0.95rem;
  background-color: #ffffff;
  color: var(--text-dark);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 29, 29, 0.1);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.search-clear-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

/* Live Search Dropdown Styles */
.search-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 350px;
  overflow-y: auto;
  z-index: 1002;
  margin-top: 8px;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

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

.search-dropdown-item:hover {
  background-color: #faf7f0;
}

.search-dropdown-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.search-dropdown-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0; /* allows text truncation */
}

.search-dropdown-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.search-dropdown-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* Hero Section Grid (Flat Widescreen Layout) */
.hero-container {
  position: relative;
  width: 100%;
  height: 420px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(50, 30, 15, 0.55) 0%, rgba(50, 30, 15, 0.3) 40%, rgba(0, 0, 0, 0) 70%);
  z-index: 2;
  pointer-events: none;
}

.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px 24px;
}

.global-search-container {
  width: 100%;
  background-color: var(--bg-warm);
  padding: 8px 24px 8px 24px;
  border-bottom: 1px solid var(--border-gold);
}

.hero-search-wrapper-full {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-search-wrapper-full input {
  width: 100%;
  padding: 10px 24px 10px 48px;
  border: none;
  border-radius: 40px;
  font-size: 0.95rem;
  background-color: rgba(255, 253, 248, 0.95);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.hero-search-wrapper-full input:focus {
  box-shadow: 0 0 12px rgba(107, 29, 29, 0.2), 0 0 0 2px var(--primary);
}

.hero-search-wrapper-full .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  width: 18px;
  height: 18px;
}

.hero-search-wrapper-full .search-clear-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.hero-text-content {
  margin-top: auto;
  margin-bottom: auto;
  max-width: 650px;
  padding: 10px 0;
}

.hero-sub {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.15;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 12px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-desc {
  font-size: 1.05rem;
  color: #fcf9f2;
  max-width: 500px;
  margin-bottom: 18px;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(107, 29, 29, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(107, 29, 29, 0.05);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Compact Hero-Integrated Trust Badges */
.hero-trust-row.small-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  border-top: 1px solid rgba(107, 29, 29, 0.15);
  padding-top: 20px;
}

.hero-trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-trust-badge i {
  width: 15px;
  height: 15px;
  color: var(--accent);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.4));
}

/* Shop By Category Section */
.categories-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* =========================================
   CUSTOM POOJA KIT PAGE CSS
========================================= */

.custom-kit-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
}

.custom-kit-hero {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}

.custom-kit-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-kit-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

/* Wizard Progress */
.wizard-progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.wizard-progress-bar::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #eee;
  z-index: 1;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  position: relative;
  width: 120px;
}

.wizard-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 8px;
  color: #999;
  transition: all 0.3s;
}

.wizard-step.active .wizard-step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.wizard-step span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #999;
}

.wizard-step.active span {
  color: var(--primary);
}

/* Layout Grid */
.custom-kit-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 32px;
}

@media (max-width: 900px) {
  .custom-kit-layout {
    grid-template-columns: 1fr;
  }
}

.custom-kit-step-block {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 32px;
}

.custom-kit-step-block h3 {
  margin-bottom: 16px;
  color: var(--secondary-dark);
  font-family: 'Playfair Display', serif;
}

/* Pills */
.pooja-type-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pooja-type-pill {
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid #ddd;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-dark);
}

.pooja-type-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pooja-type-pill.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Items Grid */
.custom-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.custom-item-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-item-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  background: #fffdfa;
}

.custom-item-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.custom-item-checkbox {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.custom-item-thumbnail {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 12px;
  flex-shrink: 0;
  border: 1px solid #eaeaea;
}

.custom-item-info h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
}

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

.custom-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.qty-control {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 20px;
  padding: 4px 8px;
}

.qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
}

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

.qty-val {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Sidebar */
.custom-kit-sidebar-wrapper {
  position: relative;
}

.custom-kit-sidebar {
  position: sticky;
  top: 90px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #ffe8cc;
}

.custom-kit-sidebar h3 {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.live-kit-summary-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 8px;
}

.live-kit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  font-size: 0.9rem;
}

.live-kit-item-name {
  flex: 1;
  padding-right: 12px;
}

.live-kit-item-price {
  font-weight: 600;
}

.live-kit-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  padding: 16px 0;
  border-top: 2px solid #eee;
  margin-bottom: 16px;
}

.live-kit-total-box strong {
  color: var(--primary);
}

.highlight-link {
  color: var(--primary) !important;
  font-weight: 700;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 32px;
  position: relative;
}

.section-title span {
  position: relative;
  display: inline-block;
  padding: 0 24px;
}

.section-title::before {
  content: '❖';
  color: var(--accent);
  margin-right: 12px;
  font-size: 1.5rem;
}
.section-title::after {
  content: '❖';
  color: var(--accent);
  margin-left: 12px;
  font-size: 1.5rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.category-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 60px 24px 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  color: #fff;
}

.category-card .card-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(40, 20, 10, 0.55) 0%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
  transition: var(--transition);
}

.category-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(40, 20, 10, 0.65) 0%, rgba(0,0,0,0.2) 100%);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.category-content {
  position: relative;
  z-index: 2;
}

.category-icon {
  font-size: 3rem;
  transition: var(--transition);
}

.category-card:hover .category-icon {
  transform: scale(1.15) rotate(5deg);
}

.category-content h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.category-content span {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.category-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.category-card.disabled:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.badge-tag {
  font-size: 0.65rem;
  background-color: var(--text-muted);
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Product Cards Grid & Design */
.trending-section {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 24px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  min-height: 200px;
}

.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-style: italic;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(45, 37, 30, 0.03);
}

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

.product-image-container {
  position: relative;
  padding-bottom: 90%; /* Aspect ratio square-ish */
  background-color: #faf8f5;
  overflow: hidden;
}

.product-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image-container img {
  transform: scale(1.05);
}

.out-of-stock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--danger);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
}

.product-subcat {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-title {
  font-size: 1.05rem;
  color: #4a3f35;
  font-weight: 500;
  line-height: 1.3;
  /* Line clamp 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
  cursor: pointer;
}

.product-title:hover {
  color: var(--primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #e6a15c;
}

.product-rating span {
  color: var(--text-muted);
  margin-left: 4px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-add-cart {
  background-color: var(--bg-warm);
  border: 1px solid var(--border-gold);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Shop (Catalog) Section */
.shop-header {
  max-width: 1200px;
  margin: 32px auto 16px;
  padding: 0 24px;
  text-align: center;
}

.category-display-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.category-display-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.shop-filter-bar {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.search-wrapper.mini {
  max-width: 320px;
}

.search-wrapper.mini input {
  padding: 8px 16px 8px 36px;
}

.search-wrapper.mini .search-icon {
  left: 12px;
  width: 16px;
  height: 16px;
}

.filters-group {
  display: flex;
  gap: 12px;
}

.filters-group select {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  background-color: var(--bg-card);
  outline: none;
  cursor: pointer;
}

/* Modals System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 37, 30, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--danger);
  transform: rotate(90deg);
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  margin-top: -8px;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  outline: none;
  background-color: #faf9f6;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  background-color: #ffffff;
}

.multi-select {
  height: auto;
  padding: 8px;
}

.multi-select option {
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 4px;
  cursor: pointer;
}

.multi-select option:checked {
  background-color: rgba(212, 175, 55, 0.2);
  color: var(--primary);
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Auth Modal Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.auth-tab-btn.active {
  color: var(--primary);
  border-color: var(--primary);
}

.auth-error {
  background-color: rgba(198, 40, 40, 0.08);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 16px;
  border: 1px solid rgba(198, 40, 40, 0.2);
}

.auth-helper {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-helper code {
  background-color: var(--bg-warm);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
  color: var(--primary);
}

/* Product Detail Modal Specifics */
.product-detail-card {
  max-width: 800px;
}

.detail-columns {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 32px;
  align-items: start;
}

.detail-img-container {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #faf8f5;
}

.detail-img-container img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
}

.detail-title {
  font-size: 1.8rem;
  color: var(--primary);
  line-height: 1.25;
}

.detail-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.detail-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.detail-action-bar {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quantity-btn {
  background: none;
  border: none;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.quantity-btn:hover {
  background-color: var(--bg-warm);
}

.quantity-value {
  width: 40px;
  text-align: center;
  font-weight: 600;
}

.detail-features {
  margin-top: 16px;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.detail-features h4 {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.detail-features ul {
  list-style: none;
}

.detail-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.detail-features li::before {
  content: '🌸';
  position: absolute;
  left: 0;
  font-size: 0.75rem;
}

/* Cart Drawer System */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-lg);
  border-left: 2px solid var(--border-gold);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h2 {
  font-size: 1.5rem;
  color: var(--primary);
}

.close-cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.close-cart-btn:hover {
  color: var(--danger);
}

.cart-drawer-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  text-align: center;
  color: var(--text-muted);
}

.empty-cart-icon {
  width: 64px;
  height: 64px;
  color: var(--border-gold);
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

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

.cart-item-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.cart-qty-btn {
  background: none;
  border: 1px solid var(--border-gold);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.cart-qty-btn:hover {
  background-color: var(--bg-warm);
}

.cart-qty-val {
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: var(--danger);
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-light);
  background-color: #faf9f6;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.cart-summary-row.promo {
  color: var(--success);
  font-weight: 500;
}

.cart-summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1.5px solid var(--border-gold);
  margin-bottom: 20px;
}

.checkout-btn {
  border-radius: var(--radius-md);
  font-size: 1rem;
}

/* Payment Radio Options */
.payment-method-options {
  display: flex;
  gap: 16px;
}

.payment-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border-gold);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  width: 100%;
  cursor: pointer;
  background-color: var(--bg-card);
}

.payment-radio.active {
  border-color: var(--primary);
  background-color: rgba(107, 29, 29, 0.03);
}

/* Admin Dashboard Specific Layouts */
.admin-header-panel {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-gold);
  padding-bottom: 24px;
}

.admin-header-panel h2 {
  font-size: 2.2rem;
  color: var(--primary);
}

.admin-header-panel p {
  color: var(--text-muted);
}

.admin-tabs {
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 0 24px;
  display: flex;
  gap: 16px;
}

.admin-tab-btn {
  background: none;
  border: 1px solid var(--border-gold);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-tab-btn:hover, .admin-tab-btn.active {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.admin-tab-content {
  max-width: 1200px;
  margin: 0 auto 64px;
  padding: 0 24px;
}

.admin-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-table-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background-color: #faf7f0;
  color: var(--primary);
  font-weight: 600;
  padding: 14px 20px;
  font-size: 0.9rem;
  border-bottom: 1.5px solid var(--border-gold);
}

.admin-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background-color: #faf9f6;
}

.admin-table-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.admin-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.admin-badge.success {
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--success);
}

.admin-badge.danger {
  background-color: rgba(198, 40, 40, 0.1);
  color: var(--danger);
}

.admin-badge.warning {
  background-color: rgba(230, 161, 92, 0.1);
  color: #c07a34;
}

.admin-row-actions {
  display: flex;
  gap: 8px;
}

.admin-action-icon-btn {
  background: none;
  border: 1px solid var(--border-light);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
}

.admin-action-icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(107, 29, 29, 0.05);
}

.admin-action-icon-btn.delete-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background-color: rgba(198, 40, 40, 0.05);
}

.admin-order-status-select {
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
  background-color: var(--bg-card);
  outline: none;
  cursor: pointer;
}

/* Simple Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--text-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.3s ease-out forwards;
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

/* Animations */
@keyframes flicker {
  0% { opacity: 0.95; filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.5)); }
  100% { opacity: 1; filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8)); }
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInToast {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-desc {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .detail-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 16px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .search-banner {
    padding: 12px;
  }
  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.2rem;
  }
}
