/* ===================================================================
   AGROOT · DESIGN SYSTEM & STYLESHEET
   Del campo a tu negocio · B2B Agricultural Marketplace
   =================================================================== */

:root {
  --primary-dark: #14532d;
  --primary: #15803d;
  --primary-hover: #166534;
  --primary-light: #22c55e;
  --primary-subtle: #dcfce7;
  --primary-ghost: #f0fdf4;

  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;

  --border-color: #e2e8f0;
  --border-focus: #16a34a;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-white: #ffffff;

  --red-accent: #ef4444;
  --amber-accent: #f59e0b;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

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

html {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

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

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

/* ===================================================================
   TOP NAVIGATION
   =================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.nav-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background-color: var(--primary-ghost);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
}

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

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

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: var(--radius-pill);
}

/* Global Search */
.nav-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}

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

.nav-search input {
  width: 100%;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 9px 16px 9px 40px;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.nav-search input:focus {
  background-color: var(--bg-surface);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

/* Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.lang-switcher-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--green-primary);
}

.lang-current-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-current-code {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.lang-chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
  animation: langFadeIn 0.15s ease;
}

.lang-switcher.open .lang-dropdown {
  display: flex;
}

@keyframes langFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-main);
  transition: background-color 0.15s ease;
}

.lang-item:hover {
  background: var(--bg-subtle);
  color: var(--green-primary);
}

.lang-item.active {
  background: rgba(22, 163, 74, 0.08);
  color: var(--green-primary);
  font-weight: 700;
}

.lang-item .lang-flag {
  font-size: 1.15rem;
}

.lang-item .lang-name {
  flex: 1;
}

.lang-item .lang-check {
  font-size: 0.85rem;
  color: var(--green-primary);
  opacity: 0;
}

.lang-item.active .lang-check {
  opacity: 1;
}

.btn-nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-nav-whatsapp:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #14532d;
  transform: translateY(-1px);
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.icon-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

.notif-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background-color: var(--red-accent);
  border-radius: 50%;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.user-profile-menu:hover {
  background-color: var(--bg-subtle);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-color);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.role-arrow {
  font-size: 0.65rem;
}

/* ===================================================================
   MAIN CONTAINER & SPA VIEWS
   =================================================================== */
.page-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  min-width: 0;
  box-sizing: border-box;
}

.view {
  display: none;
  width: 100%;
  min-width: 0;
  animation: fadeIn 0.25s ease-in-out forwards;
}

.view.active {
  display: block;
}

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

/* ===================================================================
   VIEW 1: HERO BANNER (CON IMAGEN CAMPESINA Y GLASSMORPHISM)
   =================================================================== */
.hero-banner {
  position: relative;
  background-color: #143526;
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.22) 100%),
    url('/images/banner-hero.jpg');
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.22) 100%),
    -webkit-image-set(
      url('/images/banner-hero.webp') 1x,
      url('/images/banner-hero.jpg') 1x
    );
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.22) 100%),
    image-set(
      url('/images/banner-hero.webp') type('image/webp'),
      url('/images/banner-hero.jpg') type('image/jpeg')
    );
  background-position: center 32%;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 48px 52px;
  color: var(--text-white);
  box-shadow: var(--shadow-lg);
  margin-bottom: 36px;
  min-height: 460px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  align-items: center;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

/* Glassmorphism Card for text & search */
.hero-glass-card,
.hero-text-col {
  flex: 0 1 auto;
  width: 100%;
  max-width: 680px;
  background: rgba(14, 30, 20, 0.54);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-xl);
  padding: 38px 44px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.hero-glass-card:hover,
.hero-text-col:hover {
  background: rgba(14, 30, 20, 0.62);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #f1f5f9;
  margin-bottom: 24px;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* Search within hero */
.hero-search-box {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 20px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}

.hero-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.hero-search-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.92rem;
  color: var(--text-main);
  background: transparent;
}

.hero-search-btn {
  background-color: var(--primary);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.hero-search-btn:hover {
  background-color: var(--primary-hover);
}

/* Quick search tags with frosted glass */
.quick-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-tag {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.quick-tag:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* ===================================================================
   COSECHAS DISPONIBLES SECTION
   =================================================================== */
.catalog-section {
  margin-top: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.select-wrapper select {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.select-wrapper select:focus {
  border-color: var(--primary);
}

/* Category Pills Bar */
.category-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-bottom: 8px;
  margin-bottom: 24px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.category-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.category-pill:hover {
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

.category-pill.active {
  background-color: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  box-shadow: 0 2px 4px rgba(21, 128, 61, 0.25);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Single Product Card */
.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

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

.card-image-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  background-color: var(--bg-subtle);
}

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

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

/* Badges on card */
.badge-status-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.badge-status-pill.available {
  background-color: #16a34a;
}

.btn-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--red-accent);
  transition: var(--transition);
  border: none;
}

.btn-wishlist:hover {
  transform: scale(1.1);
  background: #ffffff;
}

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

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.card-producer {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.card-location {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.card-stock {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

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

.card-price-unit {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

.card-date {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.btn-card-action {
  width: 100%;
  background-color: var(--primary);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-align: center;
  margin-top: auto;
}

.btn-card-action:hover {
  background-color: var(--primary-hover);
}

/* ===================================================================
   VIEW 2: PRODUCT DETAIL
   =================================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.crumb-link {
  color: var(--primary);
  font-weight: 500;
}

.crumb-current {
  color: var(--text-main);
  font-weight: 600;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 370px 340px;
  gap: 24px;
  align-items: start;
}

/* Left Gallery */
.detail-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-gallery-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
}

.main-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishlist-btn-large {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.wishlist-btn-large:hover {
  transform: scale(1.08);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.carousel-arrow:hover {
  background: #ffffff;
}

.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

/* Thumbnails */
.thumbnails-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.thumb-item {
  height: 78px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-item.active {
  border-color: var(--primary);
}

/* Tabs & Specs */
.detail-tabs-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.detail-tabs-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.detail-tab-btn {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding-bottom: 8px;
  position: relative;
  transition: var(--transition);
}

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

.detail-tab-btn.active {
  color: var(--primary);
  font-weight: 600;
}

.detail-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
}

.tab-paragraph {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.spec-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.spec-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.chip-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

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

.chip-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.chip-subtitle {
  font-size: 0.72rem;
  color: var(--text-light);
}

/* Center Purchase Box */
.purchase-box-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.purchase-product-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 4px;
}

.purchase-product-subtitle {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 18px;
}

.purchase-price-tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}

.purchase-price-tag .price-val {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
}

.purchase-price-tag .price-unit {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 600;
}

.stepper-section {
  margin-bottom: 20px;
}

.stepper-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.stepper-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.step-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.step-btn:hover {
  background-color: #e2e8f0;
}

.step-input {
  width: 90px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
}

.step-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stock-indicator {
  font-size: 0.82rem;
  color: var(--text-light);
  display: flex;
  gap: 4px;
}

.subtotal-calc-box {
  background-color: var(--primary-ghost);
  border: 1px solid var(--primary-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 22px;
}

.subtotal-calc-box strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.purchase-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.btn-primary-green {
  background-color: var(--primary);
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.2);
}

.btn-primary-green:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary-outline {
  background-color: var(--bg-surface);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-secondary-outline:hover {
  background-color: var(--primary-ghost);
}

.security-guarantee-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Right Sidebar: Farmer & Harvest metadata */
.detail-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.sidebar-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.farmer-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.farmer-photo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.farmer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.farmer-role {
  font-size: 0.8rem;
  color: var(--text-light);
}

.farmer-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-subtle);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.farmer-more-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-block;
  transition: var(--transition);
}

.farmer-more-link:hover {
  text-decoration: underline;
}

.harvest-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.meta-icon {
  font-size: 1.1rem;
  margin-top: 1px;
}

.meta-info {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.76rem;
  color: var(--text-light);
}

.meta-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ===================================================================
   CHECKOUT STEPPER & SHARED CHECKOUT LAYOUT
   =================================================================== */
.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto 36px;
  padding: 10px 0;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.step-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-node.completed .step-num,
.step-node.active .step-num {
  background-color: var(--primary);
  color: var(--text-white);
}

.step-node.active .step-text,
.step-node.completed .step-text {
  color: var(--text-main);
}

.step-line {
  flex: 1;
  height: 2px;
  background-color: #e2e8f0;
  margin: 0 14px;
}

.step-line.active,
.step-line.completed {
  background-color: var(--primary);
}

.checkout-split-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.checkout-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.checkout-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===================================================================
   VIEW 3: TRANSPORTER SELECTION
   =================================================================== */
.transporter-options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.transporter-card {
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  gap: 16px;
}

.transporter-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.transporter-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1.5px var(--primary), var(--shadow-md);
  background-color: #fdfffe;
}

.card-left-select {
  position: relative;
  display: flex;
  align-items: center;
}

.card-left-select input[type="radio"] {
  opacity: 0;
  position: absolute;
}

.radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.transporter-card.selected .radio-circle {
  border-color: var(--primary);
}

.transporter-card.selected .radio-circle::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
}

.truck-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--primary-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
}

.transporter-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.transporter-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.transporter-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.badge-recommended {
  background-color: var(--primary-subtle);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.transporter-rating {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.transporter-specs {
  font-size: 0.82rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.spec-dot {
  color: #cbd5e1;
}

.transporter-price-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.transporter-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-select-transporter {
  padding: 7px 16px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-select-transporter.solid {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-select-transporter.outline {
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  background-color: var(--bg-surface);
}

.checkout-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.btn-back-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
}

.btn-back-link:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

.btn-primary-green-large {
  background-color: var(--primary);
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.2);
}

.btn-primary-green-large:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* Checkout Summary Sidebar */
.summary-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.summary-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
}

.summary-product-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.summary-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.summary-prod-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.summary-farmer-loc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.summary-farmer-town {
  font-size: 0.78rem;
  color: var(--text-light);
}

.summary-lines-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-line strong {
  color: var(--text-main);
}

.summary-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  margin-bottom: 22px;
}

.total-label-big {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.summary-total-val,
.summary-total-val-large {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
}

.btn-continue-side {
  width: 100%;
  background-color: var(--primary);
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-continue-side:hover {
  background-color: var(--primary-hover);
}

/* ===================================================================
   VIEW 4: PAYMENT GATEWAY
   =================================================================== */
.payment-method-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pay-tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  border: 1.5px solid transparent;
  transition: var(--transition);
}

.pay-tab-btn.active {
  background-color: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.payment-form-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

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

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-group input,
.styled-select {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--text-main);
  background-color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.styled-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.input-with-badge {
  position: relative;
}

.card-brand-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #1a1f71;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  font-style: italic;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

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

.info-tooltip-icon {
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: help;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 24px;
  user-select: none;
}

.custom-checkbox input {
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
}

.checkbox-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.btn-pay-submit {
  width: 100%;
  background-color: var(--primary);
  color: var(--text-white);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
  margin-bottom: 12px;
}

.btn-pay-submit:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.payment-security-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-light);
}

/* Escrow protection callout */
.escrow-protection-box {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.escrow-icon-wrap {
  margin-top: 2px;
}

.escrow-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #14532d;
  margin-bottom: 2px;
}

.escrow-text p {
  font-size: 0.8rem;
  color: #166534;
  line-height: 1.4;
}

/* ===================================================================
   VIEW 5: ORDER CONFIRMATION SUCCESS
   =================================================================== */
.confirmation-container {
  max-width: 620px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.success-icon-badge {
  font-size: 3.5rem;
  margin-bottom: 14px;
}

.confirm-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

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

.confirm-details-card {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.confirm-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.confirm-detail-row strong {
  color: var(--text-main);
}

.confirm-detail-row strong.text-green {
  color: var(--primary);
  font-size: 1.05rem;
}

.whatsapp-alert-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.86rem;
  color: #065f46;
  margin-bottom: 28px;
}

.wa-icon {
  font-size: 1.4rem;
}

.confirm-action-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ===================================================================
   VIEW 6: MIS COMPRAS TABLE
   =================================================================== */
.orders-table-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.table-responsive {
  overflow-x: auto;
}

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

.orders-table th {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

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

.orders-table tr:hover td {
  background-color: var(--bg-subtle);
}

.status-badge-order {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  background-color: #dcfce7;
  color: #166534;
}

/* ===================================================================
   RESPONSIVE DESIGN (MOBILE / TABLET / IPAD)
   =================================================================== */

/* Tablet landscape & small desktop (iPad Pro / 1024px) */
@media (max-width: 1180px) {
  .product-detail-layout {
    grid-template-columns: 1fr 1fr;
  }
  .detail-sidebar-col {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .nav-search {
    max-width: 300px;
  }
  .nav-links {
    gap: 16px;
  }
}

/* Tablet portrait & iPad (768px - 960px) */
@media (max-width: 960px) {
  .top-nav {
    padding: 10px 16px;
  }
  .nav-search {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .nav-actions {
    gap: 10px;
  }
  .user-profile-menu .user-info {
    display: none;
  }
  .page-container {
    padding: 20px 16px;
  }
  .hero-banner {
    background-image:
      linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.22) 100%),
      url('/images/banner-hero-mobile.webp');
    padding: 28px 24px;
    min-height: auto;
    margin-bottom: 28px;
  }
  .hero-content {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
  }
  .hero-glass-card {
    max-width: 100%;
    width: 100%;
    padding: 26px 24px;
    box-sizing: border-box;
  }
  .hero-search-box {
    max-width: 100%;
    width: 100%;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    width: 100%;
  }
  .checkout-split-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-sidebar-col {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
}

/* Mobile & Phablet (<= 640px) */
@media (max-width: 640px) {
  .top-nav {
    padding: 8px 12px;
  }
  .nav-container {
    gap: 8px;
  }
  .brand {
    gap: 8px;
  }
  .brand-logo-icon {
    width: 34px;
    height: 34px;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-tagline {
    display: none;
  }
  .nav-actions {
    gap: 6px;
  }
  .btn-nav-whatsapp {
    padding: 6px 8px;
    border-radius: var(--radius-pill);
  }
  .btn-nav-whatsapp span {
    display: none;
  }
  .icon-btn {
    width: 36px;
    height: 36px;
  }
  .lang-switcher-btn {
    padding: 5px 8px;
    font-size: 0.8rem;
    gap: 4px;
  }
  .user-avatar {
    width: 34px;
    height: 34px;
  }
  .page-container {
    padding: 14px 12px;
  }
  .hero-banner {
    padding: 16px 14px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
  }
  .hero-glass-card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-title {
    font-size: 1.55rem;
    line-height: 1.2;
    margin-bottom: 6px;
  }
  .hero-subtitle {
    font-size: 0.88rem;
    margin-bottom: 14px;
  }
  .hero-search-box {
    flex-direction: column;
    align-items: stretch;
    border-radius: 12px;
    padding: 8px;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.98);
  }
  .hero-search-input-wrap {
    width: 100%;
    padding: 4px 6px;
  }
  .hero-search-btn {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
  }
  .quick-tags {
    gap: 6px;
  }
  .quick-tag {
    padding: 4px 10px;
    font-size: 0.78rem;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
  }
  .section-title {
    font-size: 1.25rem;
  }
  .sort-control {
    width: 100%;
    justify-content: space-between;
  }
  .select-wrapper {
    flex: 1;
    max-width: 190px;
  }
  .select-wrapper select {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.82rem;
  }
  .category-pills {
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 4px;
  }
  .category-pill {
    padding: 6px 14px;
    font-size: 0.82rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }
  .card-image-wrap {
    height: 180px;
  }
  .card-body {
    padding: 14px 16px;
  }
  .card-title {
    font-size: 1.05rem;
  }
  .spec-chips-grid {
    grid-template-columns: 1fr 1fr;
  }
  .checkout-stepper {
    padding: 6px 0;
    margin-bottom: 20px;
    gap: 4px;
  }
  .step-node {
    gap: 4px;
  }
  .step-text {
    font-size: 0.78rem;
  }
  .step-line {
    margin: 0 6px;
  }
  .orders-table th,
  .orders-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}

/* Small mobile devices (<= 380px) */
@media (max-width: 380px) {
  .brand-name {
    font-size: 0.95rem;
  }
  .hero-title {
    font-size: 1.35rem;
  }
  .step-text {
    display: none;
  }
}
