/* ============================================================
   ABAKO MUEBLES - Estilos Principales
   Colores: Naranja #FF6600 | Oscuro #2D3142 | Blanco #FFFFFF
   ============================================================ */

:root {
  --orange: #FF6600;
  --orange-dark: #e05500;
  --orange-light: #ff8533;
  --dark: #2D3142;
  --dark-2: #1a1f2e;
  --dark-3: #3a4060;
  --gray: #6c757d;
  --gray-light: #f4f5f7;
  --white: #ffffff;
  --border: #e8e9ec;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.25s ease;
  --font-main: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: var(--font-body); outline: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.text-orange { color: var(--orange); }
.text-center { text-align: center; }
.d-none { display: none !important; }
.d-md-flex { display: none; }
@media(min-width:768px) { .d-md-flex { display: flex !important; } }

/* ─── BOTONES ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(255,102,0,0.4); }
.btn-outline { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline-white:hover { background: var(--white); color: var(--dark); }
.btn-white { background: var(--white); color: var(--dark); border-color: var(--white); }
.btn-white:hover { background: var(--gray-light); }
.btn-dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-dark:hover { background: var(--dark-2); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon {
  position: relative;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--dark);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-icon:hover { background: var(--orange); color: var(--white); }

/* ─── BADGE ───────────────────────────────────────────────── */
.badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-main);
}

/* ─── HEADER ──────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: var(--shadow); }

.header-top {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  padding: 7px 0;
}
.header-top .container { display: flex; align-items: center; gap: 20px; }
.header-top a { color: rgba(255,255,255,0.8); }
.header-top a:hover { color: var(--orange); }
.header-top i { margin-right: 5px; color: var(--orange); }
.header-top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.sep { opacity: 0.3; }

.header-main .container { display: flex; align-items: center; gap: 20px; padding: 14px 20px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 50px; width: auto; }
.logo-fallback { flex-direction: column; align-items: flex-start; }
.logo-text { font-family: var(--font-main); font-size: 2rem; font-weight: 900; letter-spacing: -2px; color: var(--dark); line-height: 1; }
.logo-text .logo-ko { color: var(--orange); }
.logo-fallback small { font-size: 0.6rem; letter-spacing: 4px; color: var(--gray); font-weight: 600; text-transform: uppercase; }

.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
  display: flex;
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: visible;
  transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--orange); }
.search-bar input { flex: 1; padding: 10px 18px; border: none; background: none; font-size: 0.9rem; }
.search-bar button { background: var(--orange); color: var(--white); border: none; padding: 10px 18px; cursor: pointer; border-radius: 0 50px 50px 0; }
.search-bar button:hover { background: var(--orange-dark); }
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: none;
  z-index: 200;
  max-height: 380px;
  overflow-y: auto;
}
.search-results.active { display: block; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; transition: var(--transition); }
.search-result-item:hover { background: var(--gray-light); }
.search-result-item img { width: 50px; height: 50px; object-fit: cover; border-radius: var(--radius); }
.search-result-info strong { display: block; font-size: 0.85rem; font-family: var(--font-main); }
.search-result-info span { font-size: 0.8rem; color: var(--orange); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }

/* ─── NAVBAR ──────────────────────────────────────────────── */
.navbar { background: var(--dark); }
.navbar .container { display: flex; align-items: center; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); padding: 12px 0; cursor: pointer; font-size: 0.9rem; gap: 8px; font-family: var(--font-main); font-weight: 600; }
.nav-menu { display: flex; align-items: center; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 14px 18px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { color: var(--orange); }
.has-dropdown:hover .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--orange);
  z-index: 100;
}
.dropdown li a { display: block; padding: 11px 20px; color: var(--dark); font-size: 0.88rem; font-weight: 500; transition: var(--transition); }
.dropdown li a:hover { color: var(--orange); padding-left: 28px; }

/* ─── CART SIDEBAR ───────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1090;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.active { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed;
  top: 0; right: -420px;
  width: 420px; max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}
.cart-sidebar.open { right: 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-family: var(--font-main); font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.cart-header h3 i { color: var(--orange); }
.cart-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--gray); padding: 4px; }
.cart-close:hover { color: var(--dark); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty { text-align: center; padding: 40px 20px; color: var(--gray); }
.cart-empty i { font-size: 3rem; color: var(--border); margin-bottom: 12px; display: block; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; background: var(--gray-light); }
.cart-item-info { flex: 1; }
.cart-item-name { font-family: var(--font-main); font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { color: var(--orange); font-weight: 700; font-size: 0.9rem; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn { width: 28px; height: 28px; border: 1px solid var(--border); background: none; border-radius: 4px; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-btn:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }
.qty-value { font-weight: 700; min-width: 24px; text-align: center; font-size: 0.9rem; }
.cart-item-remove { color: var(--gray); cursor: pointer; margin-left: auto; font-size: 0.85rem; }
.cart-item-remove:hover { color: var(--danger); }
.cart-footer { padding: 20px; border-top: 1px solid var(--border); background: var(--gray-light); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 1.05rem; }
.cart-subtotal strong { color: var(--orange); font-size: 1.2rem; }
.cart-shipping-note { font-size: 0.78rem; color: var(--gray); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.cart-shipping-note i { color: var(--success); }

/* ─── HERO ────────────────────────────────────────────────── */
.hero { height: 560px; position: relative; overflow: hidden; }
.hero-slide { height: 100%; display: flex; align-items: center; }
.hero-slide .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-content { max-width: 520px; }
.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-main);
}
.hero-content h1 {
  font-family: var(--font-main);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-content p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { flex-shrink: 0; }
.hero-product-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  color: var(--white);
  min-width: 250px;
}
.hero-product-card p { font-size: 0.85rem; opacity: 0.8; margin-top: 16px; }
.hero-product-card strong { font-size: 1.3rem; color: var(--orange); font-family: var(--font-main); }

/* Table illustration */
.table-illustration { position: relative; display: inline-block; }
.table-top { width: 200px; height: 14px; background: linear-gradient(135deg, #e8d5c0, #d4b896); border-radius: 4px; position: relative; z-index: 2; margin: 0 auto; }
.table-legs { display: flex; justify-content: space-around; padding: 0 20px; }
.leg { width: 14px; height: 80px; background: linear-gradient(180deg, #b0b5c0, #8a8f9e); }
.leg-left-back  { transform: skewX(15deg) translateY(0); }
.leg-right-back { transform: skewX(-15deg) translateY(0); }
.leg-left-front { transform: skewX(-10deg) translateY(0); }
.leg-right-front{ transform: skewX(10deg) translateY(0); }

/* ─── STATS BAR ───────────────────────────────────────────── */
.stats-bar { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 20px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item > i { font-size: 1.6rem; color: var(--orange); flex-shrink: 0; }
.stat-item strong { display: block; font-family: var(--font-main); font-size: 0.85rem; font-weight: 700; }
.stat-item span { font-size: 0.78rem; color: var(--gray); }

/* ─── SECTIONS ────────────────────────────────────────────── */
.section { padding: 70px 0; }
.section-gray { background: var(--gray-light); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-family: var(--font-main); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.section-header p { color: var(--gray); font-size: 1rem; margin-bottom: 20px; }

/* ─── CATEGORIES GRID ─────────────────────────────────────── */
.categories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.category-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  opacity: 0;
  transition: var(--transition);
}
.category-card:hover::before { opacity: 1; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(255,102,0,0.3); }
.category-card > * { position: relative; z-index: 1; }
.category-icon { font-size: 2rem; margin-bottom: 10px; }
.category-name { font-family: var(--font-main); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.category-count { font-size: 0.72rem; opacity: 0.7; margin-top: 4px; }

/* ─── PRODUCTS GRID ───────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--gray-light); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--border); font-size: 3rem; }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--orange); color: var(--white); font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; font-family: var(--font-main); text-transform: uppercase; letter-spacing: 0.5px; }
.product-badge.sale { background: var(--danger); }
.product-actions { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transition: var(--transition); }
.product-card:hover .product-actions { opacity: 1; }
.product-action-btn { width: 36px; height: 36px; background: var(--white); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); font-size: 0.85rem; color: var(--dark); transition: var(--transition); }
.product-action-btn:hover { background: var(--orange); color: var(--white); }
.product-info { padding: 18px; }
.product-category { font-size: 0.72rem; color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; font-family: var(--font-main); }
.product-name { font-family: var(--font-main); font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; color: var(--dark); }
.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.product-price .current { font-family: var(--font-main); font-size: 1.1rem; font-weight: 800; color: var(--orange); }
.product-price .original { font-size: 0.85rem; color: var(--gray); text-decoration: line-through; }
.product-stock { font-size: 0.75rem; color: var(--gray); margin-bottom: 12px; }
.product-stock.low { color: var(--warning); font-weight: 600; }
.product-stock.out { color: var(--danger); font-weight: 600; }
.btn-add-cart { width: 100%; justify-content: center; }

/* ─── SKELETON ────────────────────────────────────────────── */
.loading-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.skeleton {
  height: 320px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── PROMO BANNER ────────────────────────────────────────── */
.promo-banner { background: linear-gradient(135deg, var(--dark), var(--dark-2)); padding: 60px 0; }
.promo-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.promo-content h2 { font-family: var(--font-main); font-size: clamp(1.4rem, 2.5vw, 1.9rem); color: var(--white); font-weight: 800; margin-bottom: 10px; }
.promo-content p { color: rgba(255,255,255,0.7); }

/* ─── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.85rem; font-family: var(--font-main); color: var(--dark); }
.form-control, input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: var(--transition);
  background: var(--white);
  color: var(--dark);
}
.form-control:focus, input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,102,0,0.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
select { cursor: pointer; }
textarea { resize: vertical; min-height: 120px; }

/* ─── MODAL ───────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.modal-content { position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 36px; width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); animation: modalIn 0.3s ease; }
@keyframes modalIn { from { opacity:0; transform:scale(0.95) translateY(20px); } }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--gray); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--gray-light); color: var(--dark); }
.auth-tabs { display: flex; gap: 0; margin-bottom: 28px; border-bottom: 2px solid var(--border); }
.auth-tab { background: none; border: none; padding: 10px 24px; cursor: pointer; font-family: var(--font-main); font-weight: 600; font-size: 0.9rem; color: var(--gray); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.auth-tab.active { color: var(--orange); border-color: var(--orange); }

/* ─── TOASTS ──────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--dark); color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  min-width: 280px;
  animation: toastIn 0.3s ease;
  border-left: 4px solid var(--orange);
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast i { font-size: 1rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
@keyframes toastIn { from { opacity:0; transform:translateX(100%); } }

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,0.8); }
.footer-main { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand { }
.footer-logo { margin-bottom: 10px; }
.footer-tagline { font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; font-family: var(--font-main); font-weight: 700; }
.footer-brand p { font-size: 0.82rem; opacity: 0.6; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: var(--transition); }
.social-links a:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.footer-col h4 { font-family: var(--font-main); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--white); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--orange); display: inline-block; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 0.85rem; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-col ul a:hover { color: var(--orange); padding-left: 6px; }
.contact-list li { display: flex; gap: 10px; font-size: 0.83rem; color: rgba(255,255,255,0.65); align-items: flex-start; margin-bottom: 12px; }
.contact-list i { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { background: var(--dark-2); padding: 16px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

/* ─── WHATSAPP FLOAT ──────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; left: 28px;
  width: 58px; height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  z-index: 900;
  transition: var(--transition);
  animation: pulse-green 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(37,211,102,0.7); }
@keyframes pulse-green { 0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); } 50% { box-shadow: 0 4px 30px rgba(37,211,102,0.8); } }

/* ─── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb { background: var(--gray-light); padding: 14px 0; }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb span { color: var(--dark); font-weight: 600; }

/* ─── PAGE HERO ───────────────────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--dark), var(--dark-3)); padding: 50px 0; text-align: center; color: var(--white); }
.page-hero h1 { font-family: var(--font-main); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.7); }

/* ─── ALERTS ──────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 0.88rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ─── STATUS BADGES ───────────────────────────────────────── */
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; font-family: var(--font-main); text-transform: uppercase; letter-spacing: 0.5px; }
.status-pending    { background: #fff3cd; color: #856404; }
.status-confirmed  { background: #d1ecf1; color: #0c5460; }
.status-processing { background: #cce5ff; color: #004085; }
.status-production { background: #e2d9f3; color: #6f42c1; }
.status-ready      { background: #d4edda; color: #155724; }
.status-shipped    { background: #ffeaa7; color: #856404; }
.status-delivered  { background: #d4edda; color: #155724; }
.status-cancelled  { background: #f8d7da; color: #721c24; }

/* ─── PAGINATION ──────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); border: 2px solid var(--border); background: var(--white); cursor: pointer; font-family: var(--font-main); font-weight: 600; font-size: 0.85rem; transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--orange); color: var(--white); border-color: var(--orange); }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1200px) { .products-grid { grid-template-columns: repeat(3, 1fr); } .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 992px) {
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero { height: auto; min-height: 460px; }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .header-top .container > span:first-child { display: none; }
  .nav-toggle { display: flex; align-items: center; gap: 6px; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); border-top: 2px solid var(--orange); z-index: 500; }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .dropdown { position: static; box-shadow: none; border: none; background: rgba(255,255,255,0.05); border-top: 1px solid rgba(255,255,255,0.05); }
  .dropdown li a { color: rgba(255,255,255,0.7); padding-left: 36px; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .search-bar { max-width: 100%; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .loading-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-content { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-content h1 { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-bar .container { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .cart-sidebar { width: 100vw; }
}

.modal-container { background: var(--white); border-radius: var(--radius-lg); padding: 36px; width: 100%; max-width: 420px; position: relative; z-index: 1; }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--gray-light); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--border); }
.modal-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.modal-tab { flex: 1; padding: 10px; background: none; border: none; font-family: var(--font-main); font-size: 0.9rem; font-weight: 600; color: var(--gray); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.modal-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.modal-form .form-group { margin-bottom: 14px; }
