/* ==========================================================================
   KŌRI CONGELADOS - DESIGN SYSTEM & STYLESHEET
   Brand: KŌRI (IQF Frozen Fruits & Vegetables)
   Colors: Deep Petroleum Teal (#0F4C4E), Warm Cream (#FBF9F4), Olive (#6C7D47)
   ========================================================================== */

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

:root {
  /* Brand Colors */
  --color-petroleum: #0F4C4E;
  --color-petroleum-dark: #0A3436;
  --color-petroleum-deeper: #062324;
  --color-petroleum-light: #186A6D;
  --color-petroleum-subtle: #E6F2F2;
  --color-petroleum-glass: rgba(15, 76, 78, 0.85);

  --color-cream: #FBF9F4;
  --color-cream-dark: #F2EEE3;
  --color-cream-subtle: #FAF7EF;

  --color-olive: #6C7D47;
  --color-olive-dark: #536233;
  --color-olive-light: #EBF0E1;

  --color-white: #FFFFFF;
  --color-text-main: #0E292B;
  --color-text-muted: #566E70;
  --color-border: #E2ECEC;
  --color-border-hover: #B8D6D7;

  /* Status Colors */
  --color-success: #15803D;
  --color-success-bg: #DCFCE7;
  --color-warning: #B45309;
  --color-warning-bg: #FEF3C7;
  --color-danger: #B91C1C;
  --color-danger-bg: #FEE2E2;
  --color-info: #1D4ED8;
  --color-info-bg: #DBEAFE;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Shadows & Glass */
  --shadow-sm: 0 2px 8px rgba(15, 76, 78, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 76, 78, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 76, 78, 0.12);
  --shadow-frost: 0 8px 32px 0 rgba(15, 76, 78, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-petroleum-dark);
  line-height: 1.2;
}

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

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

input, select, textarea {
  font-family: inherit;
  outline: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utility Containers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   CLIENT HEADER & NAVIGATION
   ========================================================================== */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 76, 78, 0.08);
  transition: var(--transition);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.logo-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-petroleum) 0%, var(--color-petroleum-dark) 100%);
  color: var(--color-cream);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(15, 76, 78, 0.25);
  position: relative;
  overflow: hidden;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 2px;
  background: #0d5052;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 0.3s ease;
}

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

.logo-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: rotate(30deg);
  animation: frostShimmer 4s infinite;
}

@keyframes frostShimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  30%, 100% { transform: translateX(100%) rotate(30deg); }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--color-petroleum-dark);
  line-height: 1;
}

.logo-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-olive);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 76, 78, 0.05);
  padding: 6px;
  border-radius: var(--radius-full);
}

.nav-item {
  position: relative;
}

.nav-link {
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-petroleum-dark);
  border-radius: var(--radius-full);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  background: var(--color-petroleum);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(15, 76, 78, 0.2);
}

/* Dropdown Menus for Frutas and Vegetales */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: 8px 0;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 8px 16px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-olive);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-petroleum-dark);
  transition: var(--transition);
  cursor: pointer;
  border-bottom: 1px solid rgba(15, 76, 78, 0.05);
}

.dropdown-item:hover {
  background: var(--color-petroleum-subtle);
  color: var(--color-petroleum);
  padding-left: 20px;
}

.dropdown-thumb {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.dropdown-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dropdown-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-petroleum-dark);
  line-height: 1.2;
}

.dropdown-desc {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.dropdown-price {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--color-petroleum);
  white-space: nowrap;
}

/* Search Bar & Auto-complete */
.header-search {
  flex: 1;
  max-width: 380px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 18px 12px 46px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--color-text-main);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--color-petroleum);
  box-shadow: 0 0 0 3px rgba(15, 76, 78, 0.12);
}

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

.search-autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-autocomplete.active {
  display: block;
}

.search-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.search-autocomplete-item:hover {
  background: var(--color-petroleum-subtle);
}

.search-autocomplete-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.search-autocomplete-info {
  flex: 1;
}

.search-autocomplete-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-petroleum-dark);
}

.search-autocomplete-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-petroleum);
}

/* Header Cart Button */
.cart-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-petroleum);
  color: var(--color-white);
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(15, 76, 78, 0.25);
  position: relative;
}

.cart-trigger:hover {
  background: var(--color-petroleum-dark);
  transform: translateY(-1px);
}

.cart-count {
  background: var(--color-olive);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  min-width: 22px;
  text-align: center;
}

/* ==========================================================================
   HOME HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 60px 0 80px 0;
  overflow: hidden;
}

.hero-card {
  background: linear-gradient(180deg, #FBFAF6 0%, #F4F2EA 100%);
  border-radius: var(--radius-lg);
  color: #16302B;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(22, 48, 43, 0.10);
  border: 1px solid rgba(22, 48, 43, 0.06);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  min-height: 540px;
}

.hero-card::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  left: 38%;
  bottom: -260px;
  border-radius: 50%;
  background: rgba(214, 226, 214, 0.45);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 64px 0 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #4E6660;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 48px;
  height: 1px;
  background: #4E6660;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  color: #0F2420;
  line-height: 1.02;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.hero-title span {
  display: block;
  font-weight: 300;
  color: #0F2420;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #4A5A56;
  margin-bottom: 36px;
  max-width: 520px;
}

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

.btn-primary {
  background: var(--color-olive);
  color: var(--color-white);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(108, 125, 71, 0.4);
}

.btn-primary:hover {
  background: var(--color-olive-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 34px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 500;
  transition: var(--transition);
}

.hero-btn span {
  transition: transform 0.25s ease;
}

.hero-btn:hover span {
  transform: translateX(4px);
}

.hero-btn-solid {
  background: #1F4D3E;
  color: #FFFFFF;
  border: 1px solid #1F4D3E;
  box-shadow: 0 8px 20px rgba(31, 77, 62, 0.25);
}

.hero-btn-solid:hover {
  background: #173B30;
  transform: translateY(-2px);
}

.hero-btn-outline {
  background: transparent;
  color: #16302B;
  border: 1px solid #16302B;
}

.hero-btn-outline:hover {
  background: #16302B;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.hero-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 48px 0 0;
  padding: 0;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-left: 1px solid rgba(22, 48, 43, 0.15);
}

.hero-features li:first-child {
  padding-left: 0;
  border-left: none;
}

.hero-features svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #16302B;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.hero-features strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #16302B;
}

.hero-features small {
  display: block;
  font-size: 0.8rem;
  color: #7A8783;
}

.hero-image-wrapper {
  position: relative;
  min-height: 100%;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  animation: heroImageIn 1.2s ease both;
}

@keyframes heroImageIn {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   INFO CARDS (UBICACION & VENTA MAYORISTA & INSTAGRAM)
   ========================================================================== */
.section-info {
  padding: 40px 0 60px 0;
}

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

.info-card {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.info-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-petroleum-subtle);
  color: var(--color-petroleum);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.info-title {
  font-size: 1.3rem;
  color: var(--color-petroleum-dark);
}

.info-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.btn-whatsapp-wholesale {
  background: #25D366;
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  width: 100%;
}

.btn-whatsapp-wholesale:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-instagram-creative {
  background: linear-gradient(135deg, #405DE6 0%, #5851DB 14%, #833AB4 28%, #C13584 42%, #E1306C 60%, #FD1D1D 78%, #F56040 90%, #F77737 100%);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-instagram-creative::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: rotate(30deg);
  transition: all 0.6s ease;
}

.btn-instagram-creative:hover::after {
  transform: translateX(100%) rotate(30deg);
}

.btn-instagram-creative:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 26px rgba(225, 48, 108, 0.5);
}

.btn-ig-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-ig-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.btn-ig-text span {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-ig-text strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.chip-locality {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-petroleum-dark);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.chip-locality:hover {
  background: var(--color-petroleum);
  color: var(--color-white);
  border-color: var(--color-petroleum);
}

/* Review Cards Compact Grid Styling */
.reviews-compact-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.reviews-compact-grid > .review-card {
  flex: 1 0 260px;
  scroll-snap-align: start;
}

.review-card {
  background: var(--color-cream-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.review-stars {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #F59E0B;
}

.review-text {
  font-size: 0.86rem;
  color: var(--color-text-main);
  line-height: 1.45;
  margin-bottom: 12px;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-petroleum);
  color: white;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-petroleum-dark);
}

.review-location {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Star Rating Selector in Modal */
.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.star-rating-input input {
  display: none;
}

.star-rating-input label {
  font-size: 1.8rem;
  color: #D1D5DB;
  cursor: pointer;
  transition: color 0.2s ease;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
  color: #F59E0B;
}

/* ==========================================================================
   PRODUCTS CATALOG & FILTER SECTIONS
   ========================================================================== */
.section-products {
  padding: 40px 0 80px 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--color-petroleum-dark);
}

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

.category-tabs {
  display: flex;
  gap: 12px;
  background: var(--color-white);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

.cat-tab {
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.cat-tab:hover, .cat-tab.active {
  background: var(--color-petroleum);
  color: var(--color-white);
}

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

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

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

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--color-cream-subtle);
  overflow: hidden;
}

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

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 76, 78, 0.85);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.product-weight {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--color-petroleum-dark);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-name {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--color-petroleum-dark);
}

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

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 12px;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-petroleum-dark);
}

.btn-add-cart {
  background: var(--color-petroleum-subtle);
  color: var(--color-petroleum);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--color-petroleum);
  color: var(--color-white);
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  background: #25D366;
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: var(--transition);
  animation: pulseWhatsApp 3s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #1EBE5D;
}

@keyframes pulseWhatsApp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   CART DRAWER & CHECKOUT MODAL
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 35, 36, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: var(--color-white);
  z-index: 1001;
  box-shadow: -8px 0 32px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cart-header {
  padding: 24px;
  background: var(--color-cream-subtle);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: var(--transition);
}

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

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.cart-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

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

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--color-cream-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

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

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

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

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

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.btn-qty {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

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

.cart-footer {
  padding: 24px;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
}

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

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-petroleum-dark);
}

.btn-checkout {
  width: 100%;
  background: var(--color-petroleum);
  color: var(--color-white);
  padding: 16px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(15, 76, 78, 0.3);
}

.btn-checkout:hover {
  background: var(--color-petroleum-dark);
}

/* ==========================================================================
   CHECKOUT MODAL FORM
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 35, 36, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 24px 32px;
  background: var(--color-cream-subtle);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-body {
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-petroleum-dark);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: var(--color-white);
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-petroleum);
  box-shadow: 0 0 0 3px rgba(15, 76, 78, 0.12);
}

.shipping-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 10px;
}

.shipping-alert.free {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid #BBF7D0;
}

.shipping-alert.info {
  background: var(--color-petroleum-subtle);
  color: var(--color-petroleum-dark);
  border: 1px solid var(--color-border);
}

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

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.payment-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.payment-card.active {
  border-color: var(--color-petroleum);
  background: var(--color-petroleum-subtle);
  color: var(--color-petroleum-dark);
  font-weight: 700;
}

/* ==========================================================================
   ADMIN AREA STYLING
   ========================================================================== */
.admin-layout {
  min-height: 100vh;
  background: #F4F7F7;
  display: flex;
  flex-direction: column;
}

.admin-nav {
  background: var(--color-petroleum-deeper);
  color: var(--color-white);
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.admin-logo-badge {
  background: var(--color-olive);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.admin-tabs {
  display: flex;
  gap: 6px;
  height: 100%;
  align-items: flex-end;
}

.admin-tab {
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: var(--transition);
}

.admin-tab:hover, .admin-tab.active {
  background: #F4F7F7;
  color: var(--color-petroleum-dark);
  font-weight: 700;
}

.admin-body {
  padding: 32px;
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* KPI Dashboard Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  background: var(--color-white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-petroleum-dark);
}

.kpi-sub {
  font-size: 0.8rem;
  color: var(--color-olive);
  font-weight: 600;
}

/* Kanban Board */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.kanban-col {
  background: #EBF1F1;
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.kanban-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(15, 76, 78, 0.1);
}

.kanban-title {
  font-size: 1.1rem;
  color: var(--color-petroleum-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-badge {
  background: var(--color-petroleum);
  color: white;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
}

.kanban-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.order-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: var(--transition);
}

.order-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-petroleum);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.order-number {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-petroleum);
}

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

.order-customer {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.order-locality {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.order-total {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-petroleum-dark);
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.btn-kanban-action {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--color-petroleum-subtle);
  color: var(--color-petroleum);
  text-align: center;
  transition: var(--transition);
}

.btn-kanban-action:hover {
  background: var(--color-petroleum);
  color: white;
}

/* Tables in Admin */
.admin-table-container {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.admin-table th {
  background: var(--color-cream-subtle);
  padding: 16px 20px;
  font-weight: 700;
  color: var(--color-petroleum-dark);
  border-bottom: 1px solid var(--color-border);
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.admin-table tr:hover {
  background: #F9FCFC;
}

/* --- MODAL DIALOGS --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 52, 54, 0.75);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-in-out;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--color-border);
  position: relative;
  z-index: 100000;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 20px 24px;
  background: #F0F7F7;
  border-bottom: 1px solid #E2ECEC;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-content {
    padding: 40px 24px 32px;
  }

  .hero-title span {
    white-space: normal;
  }

  .hero-features {
    gap: 14px;
  }

  .hero-features li {
    padding: 0;
    border-left: none;
    flex: 1 1 100%;
  }

  .hero-image-wrapper {
    order: -1;
    height: 300px;
  }

  .hero-image {
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }

  .kanban-board {
    grid-template-columns: 1fr;
  }

  .header {
    height: auto;
    padding: 16px 0;
    flex-wrap: wrap;
  }

  .header-search {
    order: 3;
    max-width: 100%;
    margin-top: 10px;
  }

  .payment-options {
    grid-template-columns: 1fr;
  }
}

/* Quick Stock Adjustment & Total Value Badges */
.btn-stock-step {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #F8FAFC;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-stock-step.minus {
  color: #B91C1C;
}

.btn-stock-step.minus:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
}

.btn-stock-step.plus {
  color: #15803D;
}

.btn-stock-step.plus:hover {
  background: #DCFCE7;
  border-color: #86EFAC;
}

.btn-stock-quick {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #86EFAC;
  background: #DCFCE7;
  color: #15803D;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stock-quick:hover {
  background: #15803D;
  color: white;
}

.stock-value-cell {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-petroleum-dark);
}

.stock-value-sub {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

