/* ==========================================================================
   Angadi Mart — The Taste of Home (അങ്ങാടി മാർട്ട്)
   Main Master Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Malayalam:wght@400;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;1,500&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Angadi Mart Color Palette — Derived from the Reference Artwork */
  --color-sky-blue: #6AA4F4;
  --color-backwater-blue: #4B84C1;
  --color-kerala-green: #2D5A27;
  --color-palm-lime: #68B83D;
  --color-leaf-green: #4C992C;
  --color-terracotta: #CB4727;
  --color-terracotta-dark: #A5351A;
  --color-saffron-gold: #F0B93C;
  --color-gold-trim: #D19E2B;
  --color-wood-dark: #3A1C1A;
  --color-earth-brown: #5E3915;
  --color-cream: #FFFDF7;
  --color-ivory: #F7F3E6;
  --color-dark-text: #1B2418;
  --color-body-text: #3D483A;
  --color-muted: #73806F;
  --color-border: #E8E2D2;
  --color-card-bg: #FFFFFF;

  --shadow-sm: 0 4px 12px rgba(27, 42, 74, 0.05);
  --shadow-md: 0 10px 25px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 20px 40px rgba(27, 42, 74, 0.12);
  --shadow-hover: 0 25px 50px rgba(27, 42, 74, 0.18);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-cream);
  color: var(--color-body-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--color-dark-text);
  font-weight: 800;
  line-height: 1.2;
}

.malayalam-text {
  font-family: 'Noto Sans Malayalam', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* Header & Navigation Bar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 253, 247, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 178, 53, 0.3);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  padding: 0.8rem 2.5rem;
  background: rgba(255, 253, 247, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--color-kerala-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-saffron-gold);
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.25);
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-icon {
  transform: rotate(-8deg) scale(1.08);
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--color-kerala-green);
  line-height: 1;
}

.brand-text .tagline {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-terracotta);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark-text);
  letter-spacing: 0.3px;
  position: relative;
  padding: 0.3rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--color-terracotta);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

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

.nav-link.admin-link {
  background: rgba(203, 71, 39, 0.1);
  color: var(--color-terracotta);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(203, 71, 39, 0.25);
}

.nav-link.admin-link:hover {
  background: var(--color-terracotta);
  color: #FFFFFF;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.action-btn {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(45, 90, 39, 0.06);
  border: 1px solid rgba(45, 90, 39, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-kerala-green);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background: var(--color-kerala-green);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-terracotta);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFDF7;
}

/* Mobile Hamburger Menu */
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(45, 90, 39, 0.06);
  font-size: 1.25rem;
  color: var(--color-kerala-green);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: var(--color-kerala-green);
  color: #FFFFFF;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  background: var(--color-terracotta);
  color: #FFFFFF;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(203, 71, 39, 0.35);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(203, 71, 39, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  background: transparent;
  color: var(--color-kerala-green);
  border: 2px solid var(--color-kerala-green);
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--color-kerala-green);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ==========================================================================
   Store Section (Products Catalogue)
   ========================================================================== */
.store-section {
  position: relative;
  background: var(--color-cream);
  padding: 6rem 2.5rem 5rem;
  z-index: 130;
}

.section-header-box {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(45, 90, 39, 0.08);
  border: 1px solid rgba(45, 90, 39, 0.2);
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-kerala-green);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.8rem;
  color: var(--color-dark-text);
  margin-bottom: 0.8rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-body-text);
}

/* Category Filter Bar */
.category-filter-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  background: #FFFFFF;
  border: 1.5px solid var(--color-border);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark-text);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.category-pill:hover,
.category-pill.active {
  background: var(--color-kerala-green);
  border-color: var(--color-kerala-green);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(45, 90, 39, 0.25);
}

/* Controls Toolbar (Search & Filter dropdowns) */
.controls-toolbar {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  background: #FFFFFF;
  padding: 1.2rem 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-input-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  border: 1.5px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--color-kerala-green);
}

.filter-selects {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.custom-select {
  padding: 0.65rem 1.2rem;
  border: 1.5px solid var(--color-border);
  border-radius: 50px;
  background: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-dark-text);
  outline: none;
  cursor: pointer;
}

.custom-select:focus {
  border-color: var(--color-kerala-green);
}

/* 3D Product Cards Grid */
.products-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2.2rem;
}

/* Individual 3D Product Card */
.product-card {
  perspective: 1000px;
  background: transparent;
  cursor: pointer;
}

.product-card-inner {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 178, 53, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.product-card:hover .product-card-inner {
  box-shadow: var(--shadow-hover);
  border-color: rgba(226, 178, 53, 0.6);
}

/* Cursor Glare Highlight Effect */
.card-glare {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6), transparent 70%);
  transition: opacity 0.3s ease;
  z-index: 20;
}

.product-card:hover .card-glare {
  opacity: 1;
}

/* Badges Container */
.card-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  transform: translateZ(25px);
}

.badge-homemade {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(203, 71, 39, 0.1);
  color: var(--color-terracotta);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-spice {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #B8240D;
}

/* Card Visual Image Showcase */
.product-art-wrap {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transform: translateZ(40px);
  transition: transform var(--transition-normal);
}

.product-card:hover .product-art-wrap {
  transform: translateZ(55px) scale(1.05);
}

.product-art-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.12));
}

/* Card Content Details */
.product-details {
  transform: translateZ(30px);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-dark-text);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.product-malayalam {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-kerala-green);
  margin-bottom: 0.75rem;
}

/* Weight Variant Selector Pills */
.weight-options-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.weight-pill {
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: var(--color-ivory);
  border: 1px solid var(--color-border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-dark-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.weight-pill:hover,
.weight-pill.selected {
  background: var(--color-kerala-green);
  color: #FFFFFF;
  border-color: var(--color-kerala-green);
}

/* Price & Quick Add Toolbar */
.card-bottom-bar {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  transform: translateZ(35px);
}

.price-box {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-terracotta);
}

.original-price {
  font-size: 0.82rem;
  text-decoration: line-through;
  color: var(--color-muted);
}

.quick-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  background: var(--color-kerala-green);
  color: #FFFFFF;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.quick-add-btn:hover {
  background: #23481E;
  transform: scale(1.05);
}

/* ==========================================================================
   Mother's Story Section ("FROM OUR HOME TO YOUR HOME")
   ========================================================================== */
.mothers-story-section {
  position: relative;
  background: #FAF7EE;
  padding: 6rem 2.5rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  z-index: 130;
}

.story-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-art-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(226, 178, 53, 0.4);
}

.story-art-img {
  width: 100%;
  height: auto;
  display: block;
}

.story-quote-card {
  margin-top: 1.8rem;
  padding: 1.5rem;
  background: #FFFFFF;
  border-left: 4px solid var(--color-terracotta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #2D1A10;
}

.story-quote-author {
  display: block;
  margin-top: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-terracotta);
}

/* ==========================================================================
   Authenticity Section ("AUTHENTICALLY KERALA")
   ========================================================================== */
.authenticity-section {
  position: relative;
  background: var(--color-cream);
  padding: 6rem 2.5rem;
  z-index: 130;
}

.pillars-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.pillar-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold-trim);
}

.pillar-icon-box {
  width: 65px;
  height: 65px;
  margin: 0 auto 1.4rem;
  background: rgba(45, 90, 39, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-kerala-green);
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--color-body-text);
  line-height: 1.6;
}

/* ==========================================================================
   Future Producers Marketplace ("FROM KERALA'S HOMES & FARMS")
   ========================================================================== */
.marketplace-section {
  position: relative;
  background: #F4F7F2;
  padding: 6rem 2.5rem;
  z-index: 130;
}

.producers-grid {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.producer-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.producer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.producer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-kerala-green);
  color: var(--color-saffron-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.producer-info h4 {
  font-size: 1.15rem;
  color: var(--color-dark-text);
}

.producer-location {
  font-size: 0.82rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.producer-specialty-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(240, 185, 60, 0.15);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #9E6B08;
  margin-bottom: 0.9rem;
}

.producer-story-text {
  font-size: 0.92rem;
  color: var(--color-body-text);
  line-height: 1.6;
}

/* ==========================================================================
   Discover Kerala Properties Section
   ========================================================================== */
.properties-section {
  position: relative;
  background: var(--color-cream);
  padding: 6rem 2.5rem;
  z-index: 130;
}

.properties-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
}

.property-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.property-img-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.property-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-body {
  padding: 1.8rem;
}

.property-type {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-kerala-green);
  letter-spacing: 1px;
}

.property-title {
  font-size: 1.35rem;
  margin: 0.4rem 0 0.8rem;
}

.property-desc {
  font-size: 0.92rem;
  color: var(--color-body-text);
  line-height: 1.6;
}

/* ==========================================================================
   Product Detail Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-content-card {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 950px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(226, 178, 53, 0.4);
  transform: translateY(30px) scale(0.96);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-content-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F5EFEB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark-text);
  font-size: 1.1rem;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--color-terracotta);
  color: #FFFFFF;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding: 3rem;
}

.product-detail-media {
  background: var(--color-ivory);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

.product-detail-info h2 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.detail-malayalam {
  font-size: 1.1rem;
  color: var(--color-kerala-green);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-current-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-terracotta);
}

.detail-original-price {
  font-size: 1.1rem;
  text-decoration: line-through;
  color: var(--color-muted);
}

.detail-stock-alert {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #2B8A3E;
  margin-bottom: 1.5rem;
}

.detail-stock-alert.low-stock {
  color: var(--color-terracotta);
}

.detail-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-body-text);
  margin-bottom: 1.5rem;
}

.detail-maker-story-box {
  background: rgba(240, 185, 60, 0.12);
  border-left: 4px solid var(--color-gold-trim);
  padding: 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.8rem;
  font-size: 0.92rem;
  color: #4A3515;
}

.detail-accordion {
  margin-bottom: 2rem;
}

.detail-meta-item {
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
}

.detail-meta-item strong {
  color: var(--color-dark-text);
}

.detail-action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: 50px;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-dark-text);
  background: var(--color-ivory);
  transition: background var(--transition-fast);
}

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

.qty-val {
  width: 45px;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
}

/* ==========================================================================
   Slide-Over Cart Drawer
   ========================================================================== */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 350;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 360;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
}

.cart-drawer-backdrop.open .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.free-shipping-progress {
  padding: 1rem 1.8rem;
  background: #FAF8F2;
  border-bottom: 1px solid var(--color-border);
}

.shipping-bar-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-kerala-green);
  margin-bottom: 0.4rem;
}

.shipping-meter {
  width: 100%;
  height: 6px;
  background: #E8E2D2;
  border-radius: 3px;
  overflow: hidden;
}

.shipping-meter-fill {
  height: 100%;
  background: var(--color-kerala-green);
  transition: width 0.4s ease;
}

.cart-items-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.8rem;
}

.cart-empty-state {
  text-align: center;
  padding: 4rem 1rem;
}

.cart-empty-icon {
  font-size: 3.5rem;
  color: var(--color-border);
  margin-bottom: 1rem;
}

.cart-item-card {
  display: flex;
  gap: 1.2rem;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--color-border);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: var(--color-ivory);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
}

.cart-item-info {
  flex: 1;
}

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

.cart-item-weight {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.cart-item-price {
  font-weight: 900;
  color: var(--color-terracotta);
}

.cart-item-stepper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.cart-item-remove-btn {
  color: var(--color-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.cart-drawer-footer {
  padding: 1.4rem 1.8rem;
  border-top: 1px solid var(--color-border);
  background: #FFFFFF;
}

.coupon-box {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.coupon-input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.88rem;
  text-transform: uppercase;
  font-weight: 700;
  outline: none;
}

.cart-totals-table {
  width: 100%;
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
}

.cart-totals-table tr td:last-child {
  text-align: right;
  font-weight: 800;
}

.cart-total-highlight {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-terracotta);
}

/* ==========================================================================
   Checkout Modal & Steps
   ========================================================================== */
.checkout-modal-card {
  max-width: 820px;
  width: 100%;
  padding: 2.5rem;
}

.checkout-steps-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.step-indicator.active {
  color: var(--color-kerala-green);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E8E2D2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--color-dark-text);
}

.step-indicator.active .step-num {
  background: var(--color-kerala-green);
  color: #FFFFFF;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark-text);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-kerala-green);
}

/* Payment Selection Radio Cards */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payment-card-option {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.payment-card-option:hover,
.payment-card-option.selected {
  border-color: var(--color-kerala-green);
  background: rgba(45, 90, 39, 0.04);
}

.upi-qr-box {
  text-align: center;
  padding: 1.5rem;
  background: #FAF8F2;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.upi-qr-box svg {
  margin: 0 auto 0.8rem;
}

/* Order Success State */
.order-success-box {
  text-align: center;
  padding: 2rem 1rem;
}

.success-check-icon {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #2B8A3E;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.4rem;
  box-shadow: 0 10px 25px rgba(43, 138, 62, 0.3);
}

/* ==========================================================================
   Order Tracking Timeline
   ========================================================================== */
.tracking-timeline {
  position: relative;
  padding: 2rem 0;
  max-width: 600px;
  margin: 0 auto;
}

.tracking-step-item {
  position: relative;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tracking-step-item:last-child {
  margin-bottom: 0;
}

.tracking-step-item::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: -24px;
  width: 2px;
  background: #E8E2D2;
}

.tracking-step-item:last-child::before {
  display: none;
}

.tracking-step-item.completed::before {
  background: var(--color-kerala-green);
}

.tracking-icon-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E8E2D2;
  color: var(--color-dark-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 2;
}

.tracking-step-item.completed .tracking-icon-dot {
  background: var(--color-kerala-green);
  color: #FFFFFF;
}

.tracking-step-item.active .tracking-icon-dot {
  background: var(--color-terracotta);
  color: #FFFFFF;
  box-shadow: 0 0 0 6px rgba(203, 71, 39, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  background: #182216;
  color: #D3DDCF;
  padding: 5rem 2.5rem 2.5rem;
  z-index: 130;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 3rem;
}

.footer-brand h2 {
  color: #FFFDF7;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #A3B59D;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  color: #FFFDF7;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-links-list {
  list-style: none;
}

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

.footer-links-list a:hover {
  color: var(--color-saffron-gold);
}

.newsletter-form {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: #253323;
  border: 1px solid #374B34;
  border-radius: 50px;
  color: #FFFFFF;
  font-size: 0.88rem;
  outline: none;
}

.footer-admin-bar {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 1.2rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.admin-notice {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: #71836c;
}

.footer-admin-link {
  color: #a3b59d;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.footer-admin-link:hover {
  color: var(--color-saffron-gold);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.footer-bottom-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #2B3D28;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #879981;
}

/* Mobile Navigation Slide-Over Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 24, 12, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 360px);
  background: #FFFDF7;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: #FFFFFF;
}

.mobile-drawer-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-ivory);
  color: var(--color-dark-text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.mobile-drawer-close:hover {
  background: #e8e2d2;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  flex: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.75rem;
  min-height: 48px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-dark-text);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-link i {
  width: 24px;
  font-size: 1.1rem;
  color: var(--color-kerala-green);
  text-align: center;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: var(--color-ivory);
  color: var(--color-terracotta);
}

.mobile-drawer-footer {
  padding: 1.5rem 1.75rem;
  background: #F4F6F2;
  border-top: 1px solid var(--color-border);
  font-size: 0.88rem;
}

.drawer-malayalam {
  font-family: 'Manjari', sans-serif;
  font-weight: 700;
  color: var(--color-kerala-green);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.drawer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  pointer-events: none;
}

.toast {
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-sm);
  background: #1A2E16;
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Responsive Overrides & Mobile Experience Refinement */
@media (max-width: 992px) {
  .site-header {
    padding: 0.9rem 1.2rem;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .story-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Intentional Mobile Category Pills Bar */
  .category-filter-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0.5rem 1rem 0.8rem;
    margin: 0 -1.2rem 1.8rem;
    justify-content: flex-start;
  }
  .category-filter-nav::-webkit-scrollbar {
    display: none;
  }
  .category-pill {
    flex-shrink: 0;
    scroll-snap-align: start;
    min-height: 44px;
    padding: 0.65rem 1.2rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .store-section,
  .mothers-story-section,
  .authenticity-section,
  .marketplace-section {
    padding: 3.5rem 1rem;
  }
  .controls-toolbar {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .search-input-wrap {
    min-width: 100%;
  }
  .filter-selects {
    flex-direction: column;
    align-items: stretch;
  }
  .custom-select {
    width: 100%;
    min-height: 44px;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .checkout-modal-card {
    padding: 1.5rem 1.2rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced Motion Compliance */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .product-card-inner {
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Angadi Mart Brand Logo Styles
   ========================================================================== */
.brand-logo-img {
  height: 46px;
  width: auto;
  max-width: 210px;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

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

.mobile-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.modal-logo-symbol {
  width: 44px;
  height: 44px;
  display: block;
}

/* Header Account Button */
.account-action-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: auto !important;
  min-width: auto !important;
  height: 44px;
  padding: 0 1.15rem !important;
  border-radius: 50px !important;
  background: rgba(45, 90, 39, 0.08);
  border: 1px solid rgba(45, 90, 39, 0.2);
  color: var(--color-kerala-green);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.account-action-btn:hover {
  background: var(--color-kerala-green);
  color: #FFFFFF;
  border-color: var(--color-kerala-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.2);
}

.account-action-btn:focus-visible {
  outline: 2px solid var(--color-kerala-green);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .account-btn-label {
    display: none !important;
  }
  .account-action-btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
}

/* ==========================================================================
   Customer Account & Support Modals Styles
   ========================================================================== */
.account-modal-card {
  max-width: 820px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: 0 25px 60px rgba(27, 42, 74, 0.25);
}

.account-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
}

.account-brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FAF8F2;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Auth Views */
.auth-form {
  max-width: 480px;
  margin: 0 auto;
}

.auth-msg-error {
  color: #CB4727;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  min-height: 1.2rem;
}

.auth-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1.2rem;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.auth-switch-note {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.auth-switch-link {
  color: var(--color-kerala-green);
  font-weight: 700;
  text-decoration: underline;
  margin-left: 0.3rem;
  cursor: pointer;
}

.auth-link-subtle {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-decoration: underline;
}

.auth-disclaimer {
  font-size: 0.82rem;
  color: #666;
  margin-top: 0.8rem;
  background: #F4F7F2;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
}

/* OTP Screen */
.otp-header-info {
  text-align: center;
  margin-bottom: 1.5rem;
}

.otp-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #E8F5E9;
  color: var(--color-kerala-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.otp-recipient-badge {
  display: inline-block;
  background: #FAF8F2;
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  font-weight: 700;
  color: var(--color-dark-text);
  margin-top: 0.3rem;
}

.otp-code-input {
  letter-spacing: 0.5rem;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  padding: 0.6rem 1rem;
  border: 2px solid var(--color-kerala-green);
  border-radius: 12px;
  max-width: 240px;
  margin: 0 auto;
}

/* Portal Layout */
.account-portal-layout {
  display: flex;
  gap: 1.8rem;
  min-height: 480px;
}

.account-sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--color-border);
  padding-right: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.account-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-body-text);
  text-align: left;
  transition: all var(--transition-fast);
}

.account-tab-btn:hover {
  background: #FAF8F2;
  color: var(--color-kerala-green);
}

.account-tab-btn.active {
  background: var(--color-kerala-green);
  color: #FFFFFF;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #CB4727;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
}

.btn-logout:hover {
  background: #FFF3F0;
}

.account-main-content {
  flex: 1;
  min-width: 0;
}

.portal-greeting-box {
  background: #FAF8F2;
  border: 1px solid var(--color-border);
  padding: 1.2rem 1.5rem;
  border-radius: 14px;
  margin-bottom: 1.4rem;
}

.account-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.account-stat-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.account-stat-card:hover {
  border-color: var(--color-kerala-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.account-stat-card .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-kerala-green);
}

.account-stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 600;
  margin-top: 0.2rem;
}

.portal-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.4rem;
}

/* Order Cards */
.account-order-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: all var(--transition-fast);
}

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

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #F0ECE1;
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
}

.order-id-tag {
  font-weight: 800;
  color: var(--color-dark-text);
  font-family: 'Outfit', sans-serif;
  margin-right: 0.5rem;
}

.order-date-text {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.order-status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: #E8F5E9;
  color: #2D5A27;
}

.order-card-items {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.order-item-chip {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--color-body-text);
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #F0ECE1;
  padding-top: 0.8rem;
}

/* Complaint / Support Ticket Cards */
.complaint-card {
  background: #FAF8F2;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.1rem;
  margin-bottom: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.complaint-card:hover {
  background: #FFFFFF;
  border-color: var(--color-kerala-green);
  box-shadow: var(--shadow-sm);
}

.complaint-id-badge {
  display: inline-block;
  background: var(--color-kerala-green);
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.complaint-status-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
}

.status-new {
  background: #FFF3C4;
  color: #D9480F;
}

.status-under-review {
  background: #E7F5FF;
  color: #1971C2;
}

.status-waiting-for-customer {
  background: #FFF9DB;
  color: #F59F00;
}

.status-resolved {
  background: #EBFBEE;
  color: #2B8A3E;
}

.status-closed {
  background: #F1F3F5;
  color: #495057;
}

/* Chat Stream & Bubbles */
.complaint-thread-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.complaint-chat-stream {
  max-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: #FAF8F2;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.bubble-customer {
  align-self: flex-start;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 3px;
}

.bubble-admin {
  align-self: flex-end;
  background: #E8F5E9;
  border: 1px solid #C8E6C9;
  border-bottom-right-radius: 3px;
}

.chat-bubble-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-kerala-green);
  margin-bottom: 0.3rem;
  gap: 1rem;
}

.chat-timestamp {
  font-weight: normal;
  color: #888;
}

.chat-bubble-text {
  color: var(--color-dark-text);
  word-break: break-word;
}

.attachments-tray {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FAF8F2;
  border: 1px solid var(--color-border);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--color-kerala-green);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.attachment-chip:hover {
  background: #E8F5E9;
}

.complaint-reply-bar {
  margin-top: 1rem;
}

/* Saved Addresses */
.address-card {
  background: #FAF8F2;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.address-card-default {
  border-color: var(--color-kerala-green);
  background: #F4F7F2;
}

.badge-default {
  display: inline-block;
  background: var(--color-kerala-green);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 0.4rem;
}

.btn-text-danger {
  color: #CB4727;
  font-size: 0.9rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.btn-text-danger:hover {
  background: rgba(203, 71, 39, 0.1);
}

/* Mobile Portal Responsiveness */
@media (max-width: 768px) {
  .account-portal-layout {
    flex-direction: column;
  }
  .account-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-right: 0;
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
  }
  .account-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
  }
  .account-tab-btn {
    white-space: nowrap;
    padding: 0.5rem 0.8rem;
    font-size: 0.82rem;
  }
  .account-sidebar-footer {
    display: none;
  }
}
