/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS — Estética Acuarela Artesanal
═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Nunito:wght@400;600;700;800&family=Playfair+Display:wght@700&display=swap');

:root {
  --primary-color: #7A9E7E;
  --primary-dark: #4A3728;
  --primary-light: #A8C5AA;
  --secondary-color: #E6D9C5;
  --accent-color: #C06B4A;
  --accent-soft: #F5E5DC;
  --text-color: #4A3728;
  --bg-color: #F7F3EA;
  --white: #FFFDF8;
  --border-color: #DDD4C0;
  --card-bg: rgba(255, 253, 248, 0.94);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 38px;
  --radius-pill: 999px;
  --radius-organic: 60% 40% 55% 45% / 50% 55% 45% 50%;

  --shadow: 0 4px 18px rgba(74, 55, 40, 0.09);
  --shadow-hover: 0 12px 34px rgba(74, 55, 40, 0.16);
  --shadow-card: 0 2px 14px rgba(122, 158, 126, 0.13);
  --shadow-warm: 0 6px 24px rgba(192, 107, 74, 0.12);

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

  /* Paper texture overlay */
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg-color);
  background-image: url('/img/fondo.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: var(--text-color);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: 'Caveat', cursive;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

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

main.container {
  flex: 1;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   HEADER & NAV
═══════════════════════════════════════════════════════════ */
header {
  background-color: rgba(255, 253, 248, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.85rem 0;
  box-shadow: 0 2px 18px rgba(74, 55, 40, 0.09);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1.5px solid rgba(221, 212, 192, 0.5);
}

header.scrolled {
  background-color: rgba(255, 253, 248, 0.98);
  box-shadow: 0 4px 22px rgba(74, 55, 40, 0.13);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.04) rotate(-1deg);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  background-color: rgba(122, 158, 126, 0.13);
}

.admin-link {
  color: var(--accent-color) !important;
}

.admin-link:hover {
  background-color: var(--accent-soft) !important;
  color: var(--accent-color) !important;
}

/* ═══════════════════════════════════════════════════════════
   CART NAV ICON & BADGE (hidden for now — preserved for future)
═══════════════════════════════════════════════════════════ */
.cart-link {
  display: none; /* E-Commerce temporalmente oculto */
}

.cart-badge {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════════════════════════ */
.mobile-menu-toggle {
  display: none;
  background: rgba(122, 158, 126, 0.12);
  border: none;
  color: var(--primary-color);
  font-size: 1.3rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: rgba(122, 158, 126, 0.25);
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION — Acuarela
═══════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(rgba(74, 55, 40, 0.28), rgba(74, 55, 40, 0.42)),
    url('/img/fondo-catalogo.jpg') no-repeat center center / cover;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-bottom: 3rem;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(192, 107, 74, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.5rem;
}

.hero-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.28);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS — Estilo artesanal
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(122, 158, 126, 0.38);
}

.btn-primary:hover {
  background-color: #6a8e6e;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(122, 158, 126, 0.44);
}

.btn-primary:active {
  transform: translateY(0);
}

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

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

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white);
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.3);
}

.btn-instagram:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-success {
  background-color: #5a9e5e;
  color: white;
  box-shadow: 0 4px 12px rgba(90, 158, 94, 0.35);
}

.btn-success:hover {
  background-color: #4a8a4e;
  transform: translateY(-2px);
}

.btn-edit {
  color: #5a8dc0;
  padding: 0.5rem;
  background: rgba(90, 141, 192, 0.08);
  border-radius: var(--radius-sm);
}

.btn-edit:hover {
  background: rgba(90, 141, 192, 0.2);
}

.btn-delete {
  color: var(--accent-color);
  padding: 0.5rem;
  background: transparent;
  border-radius: var(--radius-sm);
}

.btn-delete:hover {
  background: rgba(192, 107, 74, 0.1);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   SECTION DECORATIVE HEADERS
═══════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h1,
.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #8a7868;
  font-size: 0.97rem;
}

.section-tag {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-dark);
  font-family: 'Caveat', cursive;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.25rem 1.1rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(74, 55, 40, 0.12);
}

/* ═══════════════════════════════════════════════════════════
   CATALOG HEADER
═══════════════════════════════════════════════════════════ */
.catalog-header {
  padding: 2.5rem 0 0.5rem;
  text-align: center;
}

.catalog-header p {
  color: #8a7868;
  max-width: 480px;
  margin: 0 auto 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   CATALOG FILTER
═══════════════════════════════════════════════════════════ */
.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding: 1.5rem 0 0.5rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-color);
  background: rgba(255, 253, 248, 0.8);
  border: 1.5px solid var(--border-color);
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(122, 158, 126, 0.28);
  transform: translateY(-1px);
}

.filter-icon {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT GRID
═══════════════════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem;
  margin-bottom: 4rem;
  padding-top: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT CARD — Artesanal / Acuarela
═══════════════════════════════════════════════════════════ */
.product-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  border: 1.5px solid rgba(221, 212, 192, 0.7);
}

.product-card:hover {
  transform: translateY(-6px) rotate(-0.3deg);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.product-card.out-of-stock {
  opacity: 0.65;
}

/* Warm dot ornament on hover */
.product-card::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(122, 158, 126, 0.18);
}

.product-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.stock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--accent-color);
  color: white;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 800;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(192, 107, 74, 0.32);
  font-family: 'Nunito', sans-serif;
}

.product-image {
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f4ede2, #eae5d8);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-info {
  padding: 1.25rem 1.4rem 1.4rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-info h3 {
  font-size: 1.15rem;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.3;
}

.product-category-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 0.2rem;
}

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

.price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-color);
  margin: 0;
  font-family: 'Nunito', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   FEATURED SECTION
═══════════════════════════════════════════════════════════ */
.featured {
  margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATES
═══════════════════════════════════════════════════════════ */
.catalog-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border-color);
}

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

.catalog-empty h3 {
  margin-bottom: 0.5rem;
}

.catalog-empty p {
  color: #999;
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL
═══════════════════════════════════════════════════════════ */
.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin: 3rem 0 4rem;
  align-items: start;
}

.product-detail-image > img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.breadcrumb {
  margin-bottom: 1.25rem;
  color: #999;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.category-badge {
  display: inline-block;
  background-color: var(--secondary-color);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-family: 'Caveat', cursive;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.detail-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-family: 'Nunito', sans-serif;
}

.description {
  margin-bottom: 1.75rem;
}

.description h3 {
  font-size: 1.1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
}

.stock-info {
  margin-bottom: 1.75rem;
  color: #777;
  background: rgba(230, 217, 197, 0.3);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  border: 1px solid var(--border-color);
}

/* ═══════════════════════════════════════════════════════════
   ADD TO CART CONTROLS (preserved for future E-Commerce)
═══════════════════════════════════════════════════════════ */
.add-to-cart-form {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--white);
}

.qty-btn {
  width: 38px;
  height: 42px;
  background: var(--secondary-color);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-color);
  font-weight: 700;
}

.qty-btn:hover:not(:disabled) {
  background: var(--primary-color);
  color: #fff;
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-control input,
.qty-display {
  width: 52px;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  background: transparent;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-msg {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-color);
}

/* ═══════════════════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Nunito', sans-serif;
}

.badge-danger {
  background: var(--accent-soft);
  color: var(--accent-color);
}

.badge-success {
  background: #e8f5e9;
  color: #2e7d32;
}

/* ═══════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════ */
.form-container {
  max-width: 620px;
  margin: 3rem auto;
  background: var(--card-bg);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  border: 1.5px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
  font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  color: var(--text-color);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(122, 158, 126, 0.18);
}

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

.form-img-preview {
  margin-top: 0.75rem;
  max-width: 150px;
  border-radius: var(--radius-md);
  display: block;
}

.current-image-text {
  font-size: 0.82rem;
  color: #888;
  word-break: break-all;
  margin-top: 0.4rem;
}

.form-hint {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.3rem;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   LOGIN VIEW
═══════════════════════════════════════════════════════════ */
.login-body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), rgba(230, 217, 197, 0.8));
}

.login-box {
  background: var(--white);
  padding: 2.75rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(74, 55, 40, 0.18);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-box h1 {
  color: var(--primary-color);
  margin-bottom: 0.4rem;
  font-size: 2.4rem;
}

.alert {
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.alert-danger {
  background-color: #ffebee;
  color: #c62828;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  color: #999;
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--primary-color);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — Artesanal
═══════════════════════════════════════════════════════════ */
footer {
  background: rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(8px);
  padding: 1.75rem 0;
  text-align: center;
  margin-top: 4rem;
  border-top: 1.5px solid var(--border-color);
  font-size: 0.92rem;
  color: #9a8878;
}

footer p {
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  color: #8a7868;
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN DASHBOARD
═══════════════════════════════════════════════════════════ */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2.5rem 0;
  gap: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
  border: 1.5px solid var(--border-color);
}

.admin-table th,
.admin-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Nunito', sans-serif;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(230, 217, 197, 0.2);
}

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

.table-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.delete-form {
  display: inline;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL CAROUSEL
═══════════════════════════════════════════════════════════ */
.carousel {
  width: 100%;
}

.carousel-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f4ede2, #eae5d8);
  box-shadow: var(--shadow-card);
}

.carousel-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
  border-radius: var(--radius-lg);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 253, 248, 0.92);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

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

.carousel-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.carousel-thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.carousel-thumb.active,
.carousel-thumb:hover {
  border-color: var(--primary-color);
  transform: scale(1.04);
}

/* ═══════════════════════════════════════════════════════════
   CART PAGE (preserved for future E-Commerce)
═══════════════════════════════════════════════════════════ */
.cart-page { padding: 2.5rem 0 4rem; }
.cart-page-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; flex-wrap: wrap; }
.cart-page-header h1 { margin: 0; font-size: 1.75rem; }

.empty-cart {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.empty-cart-icon {
  width: 96px;
  height: 96px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.empty-cart h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.empty-cart p { color: #888; margin-bottom: 2rem; }

.cart-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.cart-items-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 0.88rem; color: #888; font-weight: 600; }
.cart-clear-btn { background: none; border: none; color: var(--accent-color); font-size: 0.82rem; cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 0.3rem; transition: var(--transition); font-family: 'Nunito', sans-serif; }
.cart-clear-btn:hover { color: #a00; }
.cart-items-list { display: flex; flex-direction: column; gap: 0.85rem; }

.cart-item-card {
  display: flex;
  gap: 1rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem 1rem 1rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
}

.cart-item-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.cart-item-image { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius-md); flex-shrink: 0; }
.cart-item-body { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.cart-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.cart-item-name { font-size: 0.97rem; font-weight: 800; color: var(--primary-dark); margin: 0; }
.cart-item-remove { background: none; border: none; color: #ccc; cursor: pointer; font-size: 0.88rem; padding: 2px 4px; transition: var(--transition); flex-shrink: 0; border-radius: 50%; }
.cart-item-remove:hover { color: var(--accent-color); background: var(--accent-soft); }
.cart-item-unit-price { font-size: 0.83rem; color: #999; }
.cart-stock-warning { font-size: 0.77rem; color: var(--accent-color); display: flex; align-items: center; gap: 0.3rem; font-weight: 700; }
.cart-item-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.5rem; }

.qty-stepper { display: flex; align-items: center; background: var(--bg-color); border-radius: var(--radius-pill); padding: 3px; gap: 0; }
.qty-step { width: 32px; height: 32px; border: none; background: transparent; color: var(--primary-dark); cursor: pointer; font-size: 0.78rem; border-radius: 50%; transition: var(--transition); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.qty-step:hover:not(:disabled) { background: var(--primary-color); color: #fff; }
.qty-step:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-value { width: 36px; text-align: center; font-weight: 800; font-size: 0.95rem; }
.cart-item-total { font-size: 1.05rem; font-weight: 800; color: var(--primary-dark); }

.cart-summary-col .cart-summary-card { background: var(--card-bg); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); position: sticky; top: 90px; border: 1.5px solid var(--border-color); }
.cart-summary-title { font-size: 1.1rem; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--border-color); font-family: 'Nunito', sans-serif; font-weight: 800; }
.cart-summary-lines { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.summary-line { display: flex; justify-content: space-between; font-size: 0.87rem; color: #666; }
.summary-line em { font-style: normal; color: #aaa; }
.cart-summary-divider { height: 2px; background: var(--border-color); border-radius: 2px; margin: 0.75rem 0; }
.cart-summary-total { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 800; margin-bottom: 1.25rem; color: var(--primary-dark); }
.total-amount { color: var(--accent-color); font-size: 1.3rem; }
.btn-checkout { width: 100%; justify-content: center; display: flex; align-items: center; gap: 0.5rem; padding: 0.9rem; font-size: 1rem; }
.cart-trust-badges { display: flex; justify-content: space-around; margin-top: 1rem; font-size: 0.74rem; color: #aaa; gap: 0.5rem; }
.cart-trust-badges span { display: flex; align-items: center; gap: 0.3rem; }

/* ═══════════════════════════════════════════════════════════
   CHECKOUT PAGE (preserved for future E-Commerce)
═══════════════════════════════════════════════════════════ */
.checkout-page { padding: 2rem 0 4rem; }
.checkout-progress { display: flex; align-items: center; justify-content: center; margin-bottom: 2.5rem; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: #bbb; font-weight: 700; }
.progress-step.active { color: var(--primary-color); }
.progress-step.done { color: var(--primary-color); }
.step-dot { width: 36px; height: 36px; border-radius: 50%; background: #e8e8e8; color: #bbb; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.88rem; }
.progress-step.active .step-dot { background: var(--primary-color); color: #fff; box-shadow: 0 0 0 4px rgba(122, 158, 126, 0.22); }
.progress-step.done .step-dot { background: var(--primary-color); color: #fff; }
.progress-line { width: 70px; height: 3px; background: #e0e0e0; border-radius: 3px; margin-bottom: 1.5rem; }
.progress-line.done { background: var(--primary-color); }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }
.checkout-card { background: var(--card-bg); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-card); border: 1.5px solid var(--border-color); }
.checkout-card-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--border-color); }
.checkout-card-header i { color: var(--primary-color); font-size: 1.1rem; }
.checkout-card-header h2 { font-size: 1.05rem; margin: 0; color: var(--primary-dark); font-family: 'Nunito', sans-serif; font-weight: 800; }
.pickup-note { background: var(--bg-color); border-radius: var(--radius-md); padding: 0.75rem 1rem; font-size: 0.82rem; color: #666; display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 0.5rem; line-height: 1.5; border-left: 3px solid var(--primary-color); }
.pickup-note i { color: var(--primary-color); flex-shrink: 0; margin-top: 2px; }
.btn-pay-mp { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 1rem 1.5rem; font-size: 1rem; border-radius: var(--radius-pill); background: var(--primary-color); color: #fff; border: none; cursor: pointer; transition: var(--transition); font-weight: 800; font-family: 'Nunito', sans-serif; box-shadow: 0 4px 16px rgba(122, 158, 126, 0.4); }
.btn-pay-mp:hover { background: #6a8e6e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(122, 158, 126, 0.45); }
.pay-disclaimer { text-align: center; font-size: 0.77rem; color: #bbb; margin-top: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 0.35rem; }
.checkout-summary-card { background: var(--card-bg); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); position: sticky; top: 90px; border: 1.5px solid var(--border-color); }
.checkout-summary-title { font-size: 1rem; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--border-color); color: var(--primary-dark); font-family: 'Nunito', sans-serif; font-weight: 800; }
.checkout-summary-items { display: flex; flex-direction: column; gap: 0.6rem; }
.checkout-summary-item { display: flex; justify-content: space-between; align-items: center; font-size: 0.87rem; }
.checkout-summary-item small { color: #aaa; }
.checkout-summary-divider { height: 2px; background: var(--border-color); border-radius: 2px; margin: 1rem 0; }
.checkout-summary-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.checkout-total-amount { font-size: 1.3rem; color: var(--accent-color); font-weight: 800; }
.checkout-edit-cart { display: block; text-align: center; font-size: 0.82rem; color: #bbb; text-decoration: none; margin-top: 0.75rem; transition: var(--transition); }
.checkout-edit-cart:hover { color: var(--primary-color); }

/* ═══════════════════════════════════════════════════════════
   PAYMENT RESULT PAGES
═══════════════════════════════════════════════════════════ */
.result-container { max-width: 580px; margin: 4rem auto; text-align: center; background: var(--card-bg); border-radius: var(--radius-xl); padding: 3rem 2rem; box-shadow: var(--shadow-hover); }
.result-icon { font-size: 4rem; margin-bottom: 1rem; }
.result-success .result-icon { color: #4caf50; }
.result-failure .result-icon { color: var(--accent-color); }
.result-pending .result-icon { color: #ff9800; }
.result-subtitle { font-size: 1.1rem; margin-bottom: 1.5rem; color: #666; }
.result-note { color: #888; margin-top: 1rem; font-size: 0.93rem; }
.result-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.order-details-card { background: var(--bg-color); border-radius: var(--radius-md); padding: 1.5rem; margin: 1.5rem 0; text-align: left; border: 1.5px solid var(--border-color); }
.detail-row { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.93rem; }
.detail-row.total-row { font-size: 1.05rem; margin-top: 0.5rem; font-weight: 800; }
.order-details-card hr { margin: 0.75rem 0; border-color: var(--border-color); }

/* ═══════════════════════════════════════════════════════════
   ADMIN IMAGE MANAGER
═══════════════════════════════════════════════════════════ */
.image-manager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.5rem;
}

.image-slot {
  position: relative;
  width: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-color);
  background: #f8f5f0;
  transition: var(--transition);
}

.image-slot:hover { border-color: var(--primary-color); }

.image-slot img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.image-slot-actions {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  background: var(--white);
}

.btn-img-order,
.btn-img-delete {
  border: none;
  border-radius: var(--radius-sm);
  width: 30px;
  height: 28px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
}

.btn-img-order { background: var(--secondary-color); color: var(--text-color); }
.btn-img-order:hover:not(:disabled) { background: var(--primary-color); color: #fff; }
.btn-img-order:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-img-delete { background: #ffebee; color: var(--accent-color); }
.btn-img-delete:hover { background: var(--accent-color); color: #fff; }

.img-label {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  padding: 2px 0 6px;
  color: #999;
  font-family: 'Nunito', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN NAV TABS
═══════════════════════════════════════════════════════════ */
.admin-nav-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.45rem 1.3rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-color);
  background: rgba(255, 253, 248, 0.8);
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

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

/* ═══════════════════════════════════════════════════════════
   ADMIN ORDERS
═══════════════════════════════════════════════════════════ */
.orders-table td { vertical-align: middle; }
.pickup-day { font-weight: 700; }
.pickup-place { color: #888; font-size: 0.8rem; }
.order-items-list { list-style: none; padding: 0; margin: 0; font-size: 0.85rem; }
.order-items-list li { padding: 1px 0; }

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  font-family: 'Nunito', sans-serif;
}

.status-pendiente { background: #fff3e0; color: #e65100; }
.status-confirmado { background: #e8f5e9; color: #2e7d32; }
.status-cancelado { background: #ffebee; color: #c62828; }
.order-row.order-confirmado { background: #f5fff5; }
.order-row.order-cancelado { background: #fff8f8; opacity: 0.8; }

.status-form { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.status-select { padding: 0.35rem 0.6rem; border: 2px solid var(--border-color); border-radius: var(--radius-md); font-size: 0.85rem; font-family: 'Nunito', sans-serif; }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.85rem; }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #bbb;
  font-size: 1rem;
}

.empty-state i {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--border-color);
}

/* ═══════════════════════════════════════════════════════════
   MISC
═══════════════════════════════════════════════════════════ */
.cart-container h1 { margin-bottom: 2rem; }
.empty-icon { font-size: 4rem; color: var(--border-color); display: block; margin-bottom: 1rem; }
.btn-outline-danger { background: transparent; border: 2px solid var(--accent-color); color: var(--accent-color); border-radius: var(--radius-pill); }
.btn-outline-danger:hover { background: var(--accent-color); color: #fff; }
.btn-pay { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 1.05rem; padding: 1rem; margin-top: 1rem; }
.mp-logo-btn { height: 20px; filter: brightness(0) invert(1); }

/* Form actions */
.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  .mobile-menu-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    background: rgba(255, 253, 248, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.25rem;
    box-shadow: 0 16px 40px rgba(74, 55, 40, 0.14);
    text-align: center;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-color);
    z-index: 999;
  }

  .nav-links.active { display: flex; }

  .nav-links a {
    padding: 0.6rem 1.25rem;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
  }

  /* Hero */
  .hero {
    min-height: 42vh;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }

  /* Product grid: 2 columns on mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-image { height: 160px; }
  .product-info { padding: 0.9rem 1rem 1rem; }

  /* Product detail */
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin: 2rem 0 3rem;
  }

  /* Forms */
  .form-container { margin: 1.5rem 0.5rem; padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  .form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .form-actions .btn { width: 100%; justify-content: center; }

  /* Admin */
  .admin-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    margin: 1.5rem 0;
  }

  .admin-header .btn { width: 100%; justify-content: center; }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
  }

  .admin-table { min-width: 550px; }

  /* Cart */
  .cart-grid { grid-template-columns: 1fr; }
  .cart-summary-col .cart-summary-card { position: static; }

  /* Checkout */
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary-card { position: static; }
  .checkout-progress { gap: 0.3rem; }
  .progress-line { width: 40px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-image { height: 140px; }
  .catalog-filter { gap: 0.4rem; }
  .filter-btn { font-size: 0.88rem; padding: 0.3rem 0.9rem; }
}

/* ═══════════════════════════════════════════════════════════
   OFERTAS — SECCIÓN PÚBLICA
═══════════════════════════════════════════════════════════ */
.offers-section {
  margin: 0 0 3.5rem;
}

.offers-section .section-header {
  margin-bottom: 2rem;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* Offer card */
.offer-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.offer-card:hover {
  transform: translateY(-5px) rotate(-0.2deg);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-color);
}

/* Ribbon badge */
.offer-badge-wrap {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
}

.offer-ribbon {
  background: var(--accent-color);
  color: #fff;
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
  padding: 0.55rem 0.9rem 0.55rem 0.75rem;
  border-radius: 0 0 var(--radius-md) 0;
  text-align: center;
  box-shadow: 2px 2px 8px rgba(192,107,74,0.28);
  min-width: 52px;
}

.offer-ribbon small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.85;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.offer-type-combo .offer-ribbon {
  background: var(--primary-color);
}

.offer-type-2x1 .offer-ribbon {
  background: #8B6BAE;
}

/* Stacked product images strip */
.offer-images {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, #f4ede2, #eae5d8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.offer-prod-img {
  position: absolute;
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 3px solid var(--white);
  box-shadow: 0 3px 10px rgba(74,55,40,0.18);
  transition: var(--transition);
}

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

.offer-more-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: var(--secondary-color);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* Card content */
.offer-info {
  padding: 1.1rem 1.3rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.offer-title {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.2;
}

.offer-desc {
  font-size: 0.88rem;
  color: #8a7868;
  margin: 0;
}

/* Product list inside offer */
.offer-product-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.offer-product-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-color);
}

.offer-orig-price {
  text-decoration: line-through;
  color: #aaa;
  font-size: 0.82rem;
}

.offer-new-price {
  color: var(--accent-color);
  font-weight: 800;
  font-size: 0.95rem;
}

.offer-orig-price-plain {
  color: #888;
  font-size: 0.82rem;
}

.offer-combo-price {
  font-size: 0.95rem;
  color: var(--primary-dark);
  background: rgba(122,158,126,0.1);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  margin: 0;
  border-left: 3px solid var(--primary-color);
}

/* Countdown */
.offer-countdown {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--accent-color);
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
  width: fit-content;
}

.offer-countdown.expired {
  color: #aaa;
  background: #f5f5f5;
}

/* CTA button */
.offer-cta {
  margin-top: auto;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
}

/* ═══════════════════════════════════════════════════════════
   OFERTAS — ADMIN
═══════════════════════════════════════════════════════════ */

/* Admin offer cards grid */
.offers-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
  margin-bottom: 3rem;
}

.offer-admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-card);
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: var(--transition);
}

.offer-admin-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.offer-inactive {
  opacity: 0.55;
}

.offer-admin-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.offer-type-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Type chips */
.offer-chip {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Nunito', sans-serif;
}

.chip-percent   { background: var(--accent-soft);              color: var(--accent-color); }
.chip-2x1       { background: #EDE7F6;                         color: #6A3FAC; }
.chip-combo     { background: rgba(122,158,126,0.15);          color: var(--primary-color); }
.chip-timer     { background: #FFF3E0;                         color: #E65100; }
.chip-off       { background: #F5F5F5;                         color: #999; }

.offer-admin-actions {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.btn-icon-action {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(122,158,126,0.1);
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-icon-action:hover {
  background: var(--primary-color);
  color: #fff;
}

.btn-icon-delete {
  background: rgba(192,107,74,0.1);
  color: var(--accent-color);
}

.btn-icon-delete:hover {
  background: var(--accent-color);
  color: #fff;
}

.offer-admin-title {
  font-size: 1.1rem;
  margin: 0;
  color: var(--primary-dark);
}

.offer-admin-desc {
  font-size: 0.84rem;
  color: #8a7868;
  margin: 0;
}

/* Mini product list in admin card */
.offer-admin-products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.offer-mini-product {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-color);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem 0.2rem 0.25rem;
  font-size: 0.75rem;
  color: var(--text-color);
  font-weight: 600;
}

.offer-mini-product img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
}

.offer-expiry {
  font-size: 0.78rem;
  color: #8a7868;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ═══════════════════════════════════════════════════════════
   OFFER FORM — TYPE SELECTOR
═══════════════════════════════════════════════════════════ */
.offer-type-selector {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.type-option {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
}

.type-option input[type="radio"] {
  display: none;
}

.type-option:hover {
  border-color: var(--primary-light);
  background: rgba(122,158,126,0.05);
}

.type-option.selected {
  border-color: var(--primary-color);
  background: rgba(122,158,126,0.1);
}

.type-icon {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}

.type-label {
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-color);
}

/* ═══════════════════════════════════════════════════════════
   OFFER FORM — PRODUCT CHECKBOX GRID
═══════════════════════════════════════════════════════════ */
.product-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
  max-height: 340px;
  overflow-y: auto;
  padding: 0.25rem;
}

.product-checkbox-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  text-align: center;
  position: relative;
}

.product-checkbox-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.product-checkbox-card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.product-checkbox-card:hover {
  border-color: var(--primary-light);
}

.product-checkbox-card.checked {
  border-color: var(--primary-color);
  background: rgba(122,158,126,0.08);
}

.product-checkbox-card.checked::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.pcb-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.pcb-price {
  font-size: 0.72rem;
  color: var(--accent-color);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   TOGGLE SWITCH
═══════════════════════════════════════════════════════════ */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.toggle-label {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-knob {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.toggle-knob::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-knob {
  background: var(--primary-color);
}

.toggle-switch input:checked + .toggle-knob::before {
  transform: translateX(20px);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — OFFERS
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .offers-grid { grid-template-columns: 1fr; }
  .offers-admin-grid { grid-template-columns: 1fr; }
  .offer-type-selector { gap: 0.5rem; }
  .type-option { padding: 0.75rem 0.5rem; }
  .product-checkbox-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}