/* ============================================
   EXICAMPO — Estilos Principales
   ============================================ */

/* ---------- Custom Properties ---------- */
:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-darker: #145218;
  --primary-light: #4caf50;
  --primary-lighter: #81c784;
  --primary-bg: #e8f5e9;
  --accent: #ff8f00;
  --accent-light: #ffb74d;
  --accent-bg: #fff3e0;

  --text-dark: #111827;
  --text: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --text-on-dark: #f9fafb;

  --bg: #f8faf8;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --border-light: #f3f4f6;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: .25s cubic-bezier(.4,0,.2,1);
  --transition-slow: .4s cubic-bezier(.4,0,.2,1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --navbar-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-h);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
h1,h2,h3,h4,h5,h6 { line-height: 1.2; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header__tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-header__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-header__text {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.text-accent { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(46,125,50,.3);
}
.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(46,125,50,.4);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.3);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.25);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn--sm { padding: 8px 16px; font-size: .85rem; }
.btn--lg { padding: 14px 32px; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

.btn__label-desktop { display: inline; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

.navbar.scrolled .navbar__logo-text,
.navbar.scrolled .navbar__link,
.navbar.scrolled .navbar__search-input,
.navbar.scrolled .navbar__search-btn svg,
.navbar.scrolled .admin__menu-toggle svg,
.navbar.scrolled .btn--outline {
  color: var(--text);
}

.navbar.scrolled .navbar__link.active {
  color: var(--primary);
}

.navbar__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.navbar__logo-icon {
  width: 36px;
  height: 36px;
  color: #fff;
  transition: var(--transition);
}

.navbar__logo-img {
  height: 40px;
  width: auto;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar.scrolled .navbar__logo-icon { color: var(--primary); }

.navbar__logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}

.navbar__logo-text--sm { font-size: 1.1rem; }
.navbar__logo-accent { color: var(--accent-light); }
.navbar.scrolled .navbar__logo-accent { color: var(--primary-light); }

.navbar__search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  padding: 0 4px 0 16px;
  flex-shrink: 0;
  transition: var(--transition);
}

.navbar.scrolled .navbar__search {
  background: var(--bg);
  border-color: var(--border);
}

.navbar__search-input {
  border: none;
  background: none;
  padding: 10px 0;
  color: #fff;
  width: 180px;
  outline: none;
  font-size: .9rem;
}

.navbar__search-input::placeholder { color: rgba(255,255,255,.6); }
.navbar.scrolled .navbar__search-input::placeholder { color: var(--text-light); }

.navbar__search-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.navbar__search-btn svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.navbar__search-btn:hover { background: var(--primary-dark); }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.navbar__link {
  padding: 8px 16px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .9rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.navbar__link:hover,
.navbar__link.active {
  color: #fff;
  background: rgba(255,255,255,.12);
}

.navbar.scrolled .navbar__link:hover,
.navbar.scrolled .navbar__link.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .navbar__hamburger span { background: var(--text); }

.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.active span:nth-child(2) { opacity: 0; }
.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    url('https://images.unsplash.com/photo-1500937386664-56d1dfef3854?w=1920&h=1080&fit=crop')
    center/cover no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14,50,16,.92) 0%,
    rgba(30,80,35,.85) 40%,
    rgba(46,125,50,.75) 100%
  );
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__particles .particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 120px 24px 80px;
}

.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  color: var(--accent-light);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp .8s ease-out;
}

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeUp .8s ease-out .15s both;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--accent-light), #ffd54f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.8);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeUp .8s ease-out .3s both;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeUp .8s ease-out .45s both;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  animation: fadeUp .8s ease-out .6s both;
}

.hero__stat {
  text-align: center;
  color: #fff;
}

.hero__stat-number {
  display: inline;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-light);
}

.hero__stat-suffix {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-light);
}

.hero__stat-label {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 4px;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

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

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 100px 0;
  background: var(--bg);
}

.about__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}

.about__intro-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.4;
}

.about__intro-desc {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about__image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.about__image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform .6s ease;
}

.about__image-wrapper:hover img { transform: scale(1.03); }

.about__image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  opacity: .2;
}

.about__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about__card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.about__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.about__card--mission::before { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.about__card--vision::before { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }

.about__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.about__card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.about__card--mission .about__card-icon { color: var(--primary); }
.about__card--vision .about__card-icon { color: var(--accent); }

.about__card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.about__card-desc {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
  padding: 100px 0;
  background: var(--bg-white);
}

.products__filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.products__filter {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: .9rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.products__filter:hover {
  color: var(--primary);
  border-color: var(--primary-lighter);
  background: var(--primary-bg);
}

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

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

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

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

.product-card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

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

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.product-card__price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 14px;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  color: var(--accent-light);
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 700;
}

.product-card__body {
  padding: 20px;
}

.product-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.product-card__desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__btn {
  width: 100%;
  padding: 10px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.product-card__btn:hover {
  background: var(--primary);
  color: #fff;
}

.products__empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.products__empty svg { margin: 0 auto 16px; opacity: .4; }
.products__empty h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 8px; }

.products__results {
  text-align: center;
  margin-bottom: 20px;
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.products__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.products__page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.products__page-btn:hover:not(.disabled):not(.active) {
  color: var(--primary);
  border-color: var(--primary-lighter);
  background: var(--primary-bg);
}

.products__page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.products__page-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
}

.products__page-dots {
  color: var(--text-light);
  padding: 0 4px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 100px 0;
  background: var(--bg);
}

.contact__selector {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.contact__selector-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-muted);
  background: var(--bg-white);
  border: 2px solid var(--border);
  transition: var(--transition);
}

.contact__selector-btn:hover {
  color: var(--primary);
  border-color: var(--primary-lighter);
  background: var(--primary-bg);
}

.contact__selector-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(46,125,50,.3);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeUp .4s ease-out;
}

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

.contact__info-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.contact__info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact__info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius);
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__info-icon svg { width: 22px; height: 22px; }

.contact__info-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact__info-text {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact__map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 400px;
  background: var(--border-light);
}

.contact__map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  background: var(--text-dark);
  color: rgba(255,255,255,.7);
  padding: 80px 0 0;
}

.footer__wave {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  transform: rotate(180deg);
  color: var(--bg);
}

.footer__wave svg { width: 100%; height: 60px; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__logo .navbar__logo-icon { color: var(--primary-lighter); }
.footer__logo .navbar__logo-text { color: #fff; }

.footer__brand-desc {
  margin-top: 16px;
  font-size: .9rem;
  line-height: 1.7;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer__social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer__col-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: .9rem;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--primary-lighter);
  padding-left: 4px;
}

.footer__links--contact li { margin-bottom: 12px; font-size: .9rem; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  text-align: center;
  font-size: .85rem;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 24px;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.92) translateY(20px);
  transition: var(--transition-slow);
}

.modal.active .modal__content {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
  color: var(--text-muted);
}

.modal__close:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Product Detail Modal */
.modal__content--product {
  width: 100%;
  max-width: 900px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.product-detail__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.product-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__info {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.product-detail__category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
  width: fit-content;
}

.product-detail__name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.product-detail__desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ---------- Variant Selector ---------- */
.product-detail__variants {
  margin-bottom: 20px;
}

.product-detail__variants h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-bg);
}

.product-detail__variant-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-btn {
  padding: 8px 18px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: var(--text-dark);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

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

.variant-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- Variant badge on product card ---------- */
.product-card__variant-count {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.product-detail__specs {
  flex: 1;
}

.product-detail__specs h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-bg);
}

.product-detail__specs ul { display: flex; flex-direction: column; gap: 10px; }

.product-detail__specs li {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: .9rem;
}

.product-detail__specs li span:first-child {
  font-weight: 600;
  color: var(--text);
}

.product-detail__specs li span:last-child {
  color: var(--text-muted);
}

/* Login Modal */
.modal__content--login {
  width: 100%;
  max-width: 440px;
  padding: 40px;
}

.login__header {
  text-align: center;
  margin-bottom: 32px;
}

.login__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.login__header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.login__header p {
  color: var(--text-muted);
  font-size: .9rem;
}

.login__error {
  background: #fef2f2;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 16px;
  display: none;
}

.login__error.show { display: block; }

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text);
  transition: var(--transition);
  font-size: .95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,125,50,.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group__password {
  position: relative;
}

.form-group__toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  padding: 4px;
}

.form-group__toggle-pass:hover { color: var(--text); }

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.admin.active {
  opacity: 1;
  visibility: visible;
}

.admin__sidebar {
  width: 260px;
  background: var(--text-dark);
  color: rgba(255,255,255,.8);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: var(--transition);
  z-index: 10;
}

.admin__sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin__sidebar-close {
  display: none;
  color: rgba(255,255,255,.5);
  padding: 4px;
}

.admin__sidebar-close:hover { color: #fff; }

.admin__nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin__nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  text-align: left;
  width: 100%;
}

.admin__nav-item:hover {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
}

.admin__nav-item.active {
  background: var(--primary);
  color: #fff;
}

.admin__logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}

.admin__logout:hover {
  background: rgba(220,38,38,.15);
  color: #fca5a5;
}

.admin__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin__topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.admin__menu-toggle {
  display: none;
  padding: 4px;
  color: var(--text);
}

.admin__topbar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  flex: 1;
}

.admin__topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.admin__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}

.admin__body {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.admin__tab {
  display: none;
}

.admin__tab.active {
  display: block;
  animation: fadeUp .3s ease-out;
}

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

.admin__stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.admin__stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin__stat-icon--green { background: var(--primary-bg); color: var(--primary); }
.admin__stat-icon--blue { background: #e3f2fd; color: #1565c0; }
.admin__stat-icon--orange { background: var(--accent-bg); color: var(--accent); }

.admin__stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
}

.admin__stat-label {
  display: block;
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin__welcome {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.admin__welcome h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.admin__welcome p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Admin Form */
.admin__form--narrow { max-width: 480px; }

.admin__form-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  margin-bottom: 24px;
}

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

.admin__image-preview {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  margin-bottom: 20px;
  position: relative;
}

.admin__image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.admin__image-preview img.visible { display: block; }

.admin__image-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: .85rem;
  text-align: center;
  padding: 20px;
}

.admin__specs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.admin__spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.admin__spec-row input {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
}

.admin__spec-row input:focus {
  outline: none;
  border-color: var(--primary);
}

.admin__spec-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.admin__spec-remove:hover { background: #fee2e2; }

.admin__form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Admin Table */
.admin__products-search {
  margin-bottom: 20px;
}

.admin__products-search input {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
}

.admin__products-search input:focus {
  outline: none;
  border-color: var(--primary);
}

.admin__products-table-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.admin__table {
  width: 100%;
  border-collapse: collapse;
}

.admin__table th {
  padding: 14px 20px;
  text-align: left;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.admin__table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: .9rem;
}

.admin__table tr:last-child td { border-bottom: none; }
.admin__table tr:hover td { background: var(--bg); }

.admin__table-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.admin__table-name { font-weight: 600; color: var(--text-dark); }

.admin__table-category {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  text-transform: capitalize;
}

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

.admin__table-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.admin__table-btn--edit {
  background: #e3f2fd;
  color: #1565c0;
}

.admin__table-btn--edit:hover { background: #bbdefb; }

.admin__table-btn--delete {
  background: #fef2f2;
  color: #dc2626;
}

.admin__table-btn--delete:hover { background: #fecaca; }

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

/* ============================================
   TOAST
   ============================================ */
.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--bg-white);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid;
  min-width: 300px;
  max-width: 420px;
  animation: slideIn .3s ease-out;
  font-size: .9rem;
}

.toast--success { border-color: var(--primary); }
.toast--error { border-color: #dc2626; }
.toast--info { border-color: #1565c0; }

.toast__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.toast--success .toast__icon { color: var(--primary); }
.toast--error .toast__icon { color: #dc2626; }
.toast--info .toast__icon { color: #1565c0; }

.toast__message { flex: 1; }

.toast__close {
  color: var(--text-light);
  padding: 2px;
}

.toast__close:hover { color: var(--text); }

.toast.exiting { animation: slideOut .3s ease-in forwards; }

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

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

/* ============================================
   RESPONSIVE
   ============================================ */

/* ---------- Tablet landscape / small desktop (<= 1024px) ---------- */
@media (max-width: 1024px) {
  .admin__form-grid {
    grid-template-columns: 1fr;
  }
  .admin__form-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .admin__image-preview { margin-bottom: 0; }
}

/* ---------- Tablet (<= 900px) ---------- */
@media (max-width: 900px) {
  /* NAVBAR: slide-down menu */
  .navbar__links {
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
    pointer-events: none;
    z-index: 999;
  }
  .navbar__links.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .navbar__link {
    color: var(--text);
    padding: 14px 20px;
    width: 100%;
    border-radius: var(--radius);
    font-size: 1rem;
  }
  .navbar__link:hover,
  .navbar__link.active {
    background: var(--primary-bg);
    color: var(--primary);
  }
  .navbar__hamburger { display: flex; }
  .navbar__search { display: none; }

  /* HERO */
  .hero__stats { gap: 24px; }
  .hero__stat-number { font-size: 1.6rem; }

  /* ABOUT */
  .about__intro { grid-template-columns: 1fr; gap: 32px; }
  .about__intro-image { order: -1; }
  .about__cards { grid-template-columns: 1fr; }

  /* CONTACT */
  .contact__grid { grid-template-columns: 1fr; }

  /* FOOTER */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* PRODUCT DETAIL MODAL */
  .product-detail { grid-template-columns: 1fr; }
  .product-detail__image { max-height: 280px; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }

  /* ADMIN PANEL */
  .admin__sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    z-index: 20;
  }
  .admin.sidebar-open .admin__sidebar { transform: translateX(0); }
  .admin__sidebar-close { display: block; }
  .admin__menu-toggle { display: flex; }
  .admin__body { padding: 20px; }
  .admin__form-aside { grid-template-columns: 1fr; }
}

/* ---------- Mobile landscape / large phone (<= 768px) ---------- */
@media (max-width: 768px) {
  :root { --navbar-h: 60px; }

  /* NAVBAR */
  .navbar__container { padding: 0 16px; gap: 12px; }
  .navbar__logo-img { height: 32px; }
  .navbar__logo-text { font-size: 1.15rem; }

  /* HERO */
  .hero__content { padding: 80px 16px 48px; }
  .hero__title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .hero__subtitle { font-size: .92rem; }
  .hero__buttons { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__buttons .btn { justify-content: center; }
  .hero__stats { flex-direction: row; justify-content: center; gap: 20px; flex-wrap: wrap; }
  .hero__stat-number { font-size: 1.4rem; }
  .hero__scroll-indicator { display: none; }

  /* ABOUT */
  .about { padding: 60px 0; }
  .about__card { padding: 28px; }

  /* PRODUCTS */
  .products { padding: 60px 0; }
  .products__grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .products__filters { gap: 6px; }
  .products__filter { padding: 8px 16px; font-size: .82rem; }

  /* CONTACT */
  .contact { padding: 60px 0; }
  .contact__selector { gap: 6px; }
  .contact__selector-btn { padding: 8px 14px; font-size: .8rem; }

  /* FOOTER */
  .footer { padding: 60px 0 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer__social { justify-content: center; }

  /* MODALS */
  .modal { padding: 16px; }
  .modal__content--login { padding: 24px; }
  .modal__content--product { max-width: 100%; }
  .product-detail__info { padding: 24px; }
  .product-detail__name { font-size: 1.3rem; }

  /* ADMIN */
  .admin__topbar { padding: 12px 16px; }
  .admin__form-row { grid-template-columns: 1fr; }
}

/* ---------- Mobile portrait (<= 576px) ---------- */
@media (max-width: 576px) {
  .container { padding: 0 16px; }

  /* NAVBAR */
  .navbar__container { gap: 8px; }
  .navbar__logo-text { font-size: 1.05rem; }
  .btn__label-desktop { display: none; }
  .navbar__actions .btn--outline { padding: 6px 8px; }
  .navbar__actions .btn--outline svg { display: none; }

  /* SECTION HEADER */
  .section-header { margin-bottom: 28px; }
  .section-header__text { font-size: .92rem; }

  /* HERO */
  .hero__badge { font-size: .72rem; padding: 6px 14px; }
  .hero__title { font-size: 1.6rem; }
  .hero__subtitle { font-size: .85rem; line-height: 1.6; }
  .hero__stats { gap: 16px; }
  .hero__stat-number { font-size: 1.2rem; }
  .hero__stat-label { font-size: .7rem; }

  /* PRODUCTS */
  .products__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card__image { height: 140px; }
  .product-card__body { padding: 12px; }
  .product-card__name { font-size: .9rem; margin-bottom: 4px; }
  .product-card__desc { font-size: .78rem; display: none; }
  .products__page-btn { min-width: 34px; height: 34px; font-size: .8rem; padding: 0 8px; }

  /* CONTACT */
  .contact__selector { gap: 4px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .contact__selector-btn { padding: 7px 12px; font-size: .75rem; white-space: nowrap; flex-shrink: 0; }
  .contact__info-card { padding: 16px; gap: 12px; }
  .contact__info-icon { width: 40px; height: 40px; min-width: 40px; }

  /* FOOTER */
  .footer__brand-desc { font-size: .82rem; }

  /* MODALS */
  .modal__content { border-radius: var(--radius-lg); }
  .product-detail__info { padding: 20px; }
  .product-detail__name { font-size: 1.15rem; }
  .product-detail__specs li { padding: 8px 10px; font-size: .82rem; }

  /* ADMIN TABLE */
  .admin__table th:nth-child(4),
  .admin__table td:nth-child(4) { display: none; }
  .admin__stat-card { padding: 16px; }
  .admin__stat-number { font-size: 1.4rem; }
  .admin__spec-row { grid-template-columns: 1fr; }
  .admin__spec-remove { justify-self: end; }
}

/* ---------- Very small phones (<= 380px) ---------- */
@media (max-width: 380px) {
  .navbar__logo-text { font-size: .95rem; }
  .hero__title { font-size: 1.4rem; }
  .products__grid { grid-template-columns: 1fr; }
  .product-card__image { height: 180px; }
  .product-card__desc { display: -webkit-box; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ---------- Selection ---------- */
::selection { background: var(--primary-bg); color: var(--primary-dark); }
