/* ==============================================
   Telas Araguaney - Premium Fabric Store
   Main Stylesheet
   ============================================== */

/* ---------- CSS Variables ---------- */
:root {
  --gold: #c8974b;
  --gold-light: #e4b97b;
  --gold-dark: #a07030;
  --cream: #faf6f0;
  --cream-dark: #f0e8dc;
  --brown-dark: #2c1a0e;
  --brown-mid: #4a2e15;
  --white: #ffffff;
  --gray-100: #f8f8f8;
  --gray-200: #eeeeee;
  --gray-400: #aaaaaa;
  --gray-600: #666666;
  --gray-800: #333333;
  --red: #e74c3c;
  --green: #27ae60;
  --wa-green: #25d366;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
  --shadow-gold: 0 4px 20px rgba(200,151,75,.3);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --header-height: 130px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }
h1,h2,h3,h4,h5 { line-height: 1.3; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ---------- Container ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.bg-light { background: var(--cream); }
.bg-dark-section { background: var(--brown-dark); color: var(--white); padding: 60px 0; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header.light .section-title { color: var(--white); }
.section-header.light .section-subtitle { color: rgba(255,255,255,.75); }
.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,151,75,.1);
  padding: .3rem 1rem;
  border-radius: 50px;
  margin-bottom: .8rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--brown-dark);
  margin-bottom: .6rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: .02em;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transition: opacity .2s;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { box-shadow: 0 6px 28px rgba(200,151,75,.45); transform: translateY(-1px); }
.btn-outline-gold {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--white); }
.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); }
.btn-wa {
  background: var(--wa-green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.btn-wa:hover { background: #1ebe5d; transform: translateY(-1px); }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-sm { padding: .42rem 1rem; font-size: .82rem; }
.btn-full { width: 100%; justify-content: center; }

/* ==========================================
   PAGE LOADER
   ========================================== */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--brown-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .5s, visibility .5s;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  justify-content: center;
}
.loader-logo i { font-size: 2.2rem; }
.loader-logo span { font-size: 2rem; font-weight: 700; }
.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  animation: loadFill 1.5s ease-in-out forwards;
}
@keyframes loadFill { to { width: 100%; } }

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
#toast-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 8888;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  pointer-events: none;
}
.toast {
  background: var(--white);
  border-radius: var(--radius);
  padding: .8rem 1.2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .88rem;
  font-weight: 500;
  min-width: 260px;
  max-width: 340px;
  border-left: 4px solid var(--gold);
  animation: toastIn .35s ease, toastOut .35s ease 2.65s forwards;
  pointer-events: auto;
}
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }
.toast.success i { color: var(--green); }
.toast.error i { color: var(--red); }
.toast i { font-size: 1.1rem; color: var(--gold); flex-shrink: 0; }
@keyframes toastIn { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(110%); opacity: 0; } }

/* ==========================================
   WHATSAPP FLOAT
   ========================================== */
#wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 58px;
  height: 58px;
  background: var(--wa-green);
  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,.45);
  transition: var(--transition);
}
#wa-float:hover {
  transform: scale(1.12) rotate(-8deg);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}
#wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }
.wa-tooltip {
  position: absolute;
  right: 68px;
  background: var(--brown-dark);
  color: var(--white);
  padding: .35rem .9rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
  pointer-events: none;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--brown-dark);
}

/* ==========================================
   HEADER
   ========================================== */
#main-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-200);
  transition: box-shadow var(--transition);
}
#main-header.scrolled { box-shadow: var(--shadow-md); }

/* Header Top Bar */
.header-top {
  background: var(--brown-dark);
  color: rgba(255,255,255,.8);
  font-size: .78rem;
  padding: .4rem 0;
}
.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.header-top-inner span { display: flex; align-items: center; gap: .4rem; }
.header-top-inner i { color: var(--gold); }

/* Header Main */
.header-main { padding: .7rem 0; background: var(--white); }
.header-main-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  box-shadow: var(--shadow-gold);
}
.logo-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1;
}
.logo-slogan {
  display: block;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  font-weight: 600;
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: .2rem;
  margin-left: auto;
}
.desktop-nav a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: .45rem .8rem;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--gold);
  background: rgba(200,151,75,.08);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: var(--transition);
  font-size: .95rem;
  position: relative;
}
.icon-btn:hover { background: var(--cream); color: var(--gold); }
.cart-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-badge.empty { display: none; }

/* Currency Switcher */
.currency-switcher {
  display: flex;
  background: var(--cream);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--cream-dark);
}
.curr-btn {
  padding: .3rem .8rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
.curr-btn.active {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(200,151,75,.35);
}
.bs-symbol { font-size: .72rem; }

/* Auth Area */
.auth-area { display: flex; gap: .5rem; }

/* User Menu */
.user-menu { position: relative; }
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .8rem;
  border-radius: 50px;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  font-size: .85rem;
  font-weight: 500;
  transition: var(--transition);
  color: var(--brown-dark);
}
.user-menu-btn:hover { background: var(--cream-dark); }
.user-menu-btn i:first-child { color: var(--gold); font-size: 1rem; }
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  min-width: 180px;
  padding: .5rem;
  display: none;
  z-index: 200;
}
.user-dropdown.open { display: block; animation: fadeDown .2s ease; }
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .8rem;
  border-radius: 8px;
  font-size: .85rem;
  color: var(--gray-800);
  transition: var(--transition);
}
.user-dropdown a:hover { background: var(--cream); color: var(--gold); }
.user-dropdown hr { border: none; border-top: 1px solid var(--gray-200); margin: .4rem 0; }
.logout-link { color: var(--red) !important; }
.logout-link:hover { background: #fef2f2 !important; color: var(--red) !important; }
.admin-gear { color: var(--gold) !important; }

/* Search Bar */
.header-search {
  background: var(--cream);
  border-top: 1px solid var(--cream-dark);
  padding: .9rem 0;
  display: none;
}
.header-search.open { display: block; animation: fadeDown .2s ease; }
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: 50px;
  padding: .6rem 1.2rem;
  transition: border-color .2s;
}
.search-input-wrap:focus-within { border-color: var(--gold); }
.search-input-wrap i { color: var(--gold); font-size: .9rem; flex-shrink: 0; }
.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .9rem;
  background: transparent;
}
#search-close { color: var(--gray-400); font-size: .8rem; transition: color .2s; }
#search-close:hover { color: var(--red); }
.search-results { margin-top: .8rem; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .6rem .8rem;
  background: var(--white);
  border-radius: 10px;
  margin-bottom: .4rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.search-result-item:hover { background: var(--cream); }
.search-result-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
}
.search-result-info { flex: 1; }
.search-result-info strong { font-size: .88rem; color: var(--brown-dark); display: block; }
.search-result-info span { font-size: .78rem; color: var(--gray-600); }

/* Mobile Nav */
.hamburger {
  width: 38px;
  height: 38px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  transition: var(--transition);
}
.hamburger:hover { background: var(--cream); }
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: .5rem 1rem 1rem;
  display: none;
  flex-direction: column;
  gap: .2rem;
}
.mobile-nav.open { display: flex; animation: fadeDown .25s ease; }
.mobile-nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: .6rem .8rem;
  border-radius: 8px;
  transition: var(--transition);
}
.mobile-nav-link:hover { background: var(--cream); color: var(--gold); }

@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ==========================================
   HERO SECTION
   ========================================== */
#hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brown-dark) 0%, #3d1f08 40%, #5a3015 70%, rgba(90,48,21,.85) 100%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(200,151,75,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200,151,75,.08) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8974b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(200,151,75,.2);
  border: 1px solid rgba(200,151,75,.4);
  color: var(--gold-light);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 1.2rem;
  line-height: 1.15;
}
.hero-title em {
  color: var(--gold-light);
  font-style: normal;
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold-light);
  font-weight: 700;
  line-height: 1;
}
.hero-stat span {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  margin-top: .2rem;
  display: block;
}

/* Hero Visual */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-fabric-showcase {
  position: relative;
  width: 380px;
  height: 380px;
}
.fabric-swatch {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.fabric-swatch.s1 {
  width: 180px; height: 220px;
  background: linear-gradient(135deg, #f5e6d0, #e8c9a0, #d4a66b);
  top: 0; left: 0;
  transform: rotate(-6deg);
}
.fabric-swatch.s2 {
  width: 160px; height: 200px;
  background: linear-gradient(135deg, #2c1a0e, #4a2e15, #6b4020);
  top: 20px; right: 20px;
  transform: rotate(5deg);
}
.fabric-swatch.s3 {
  width: 140px; height: 180px;
  background: linear-gradient(135deg, #e8e0d5, #d5c9ba, #c4b097);
  bottom: 30px; left: 40px;
  transform: rotate(4deg);
}
.fabric-swatch.s4 {
  width: 120px; height: 150px;
  background: linear-gradient(135deg, #8b5e3c, #c8974b, #e4b97b);
  bottom: 0; right: 40px;
  transform: rotate(-3deg);
}
.fabric-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  min-width: 130px;
  z-index: 5;
}
.fabric-card i { font-size: 2rem; color: var(--gold); margin-bottom: .4rem; }
.fabric-card strong { display: block; font-size: .85rem; color: var(--brown-dark); }
.fabric-card span { font-size: .78rem; color: var(--gold); font-weight: 600; }

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  color: rgba(255,255,255,.5);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ==========================================
   CATEGORIES
   ========================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
}
.category-card {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  opacity: 0;
  transition: opacity var(--transition);
}
.category-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.category-card:hover::before { opacity: 1; }
.category-card:hover .cat-icon,
.category-card:hover .cat-name,
.category-card:hover .cat-count { color: var(--white); }
.cat-icon {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: .7rem;
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}
.cat-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--brown-dark);
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}
.cat-count {
  font-size: .75rem;
  color: var(--gray-400);
  margin-top: .2rem;
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}

/* ==========================================
   PRODUCTS
   ========================================== */
.filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.filters-left { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-btn {
  padding: .42rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.sort-select {
  padding: .42rem 1rem;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  font-size: .82rem;
  font-weight: 500;
  color: var(--gray-800);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}
.sort-select:focus { border-color: var(--gold); }

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.6rem;
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card.hidden { display: none; }

.product-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}
.product-image-inner {
  width: 100%;
  height: 100%;
  transition: transform .5s ease;
}
.product-card:hover .product-image-inner { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 50px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.product-badge.outofstock { background: var(--gray-600); }
.product-badge.featured { background: linear-gradient(135deg, #d4af37, #b8860b); }

.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--gray-400);
  transition: var(--transition);
  font-size: .85rem;
}
.product-wishlist:hover { color: var(--red); transform: scale(1.1); }

.product-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-material-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold);
  background: rgba(200,151,75,.1);
  padding: .2rem .6rem;
  border-radius: 50px;
  margin-bottom: .6rem;
  width: fit-content;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: .4rem;
  line-height: 1.3;
}
.product-desc {
  font-size: .82rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: .8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-area { margin-top: auto; margin-bottom: .9rem; }
.price-locked {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--gray-600);
  cursor: pointer;
}
.price-locked i { color: var(--gold); }
.price-locked a { color: var(--gold); font-weight: 600; }
.price-usd {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1;
}
.price-ves {
  font-size: .82rem;
  color: var(--gray-600);
  margin-top: .15rem;
}
.price-per { font-size: .75rem; color: var(--gray-400); font-weight: 400; }

.product-stock {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 500;
  margin-bottom: .8rem;
}
.stock-in { color: var(--green); }
.stock-out { color: var(--red); }
.product-stock i { font-size: .7rem; }

.product-actions { display: flex; gap: .6rem; margin-top: auto; }
.product-actions .btn { flex: 1; justify-content: center; font-size: .8rem; padding: .55rem .8rem; }

.no-results {
  text-align: center;
  padding: 4rem;
  color: var(--gray-600);
  grid-column: 1/-1;
}
.no-results i { font-size: 3rem; color: var(--gray-200); margin-bottom: 1rem; display: block; }
.no-results p { margin-bottom: 1.5rem; }

/* ==========================================
   ABOUT
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-block { position: relative; padding: 1.5rem; }
.about-img-main {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, #f5e6d0 0%, #dbb882 40%, #c8974b 70%, #8b5e3c 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.about-img-main::before {
  content: '🧵';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  opacity: .25;
}
.about-img-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-lg);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}
.about-badge-exp {
  position: absolute;
  bottom: 30px;
  left: 0;
  background: var(--brown-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: .9rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gold);
}
.about-badge-exp strong { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--gold-light); line-height: 1; }
.about-badge-exp span { font-size: .72rem; color: rgba(255,255,255,.8); line-height: 1.4; }
.about-content .section-title { text-align: left; }
.about-content p { color: var(--gray-600); margin-bottom: 1rem; font-size: .95rem; }
.about-values { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.about-value {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: .8rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
}
.about-value > i { font-size: 1.2rem; color: var(--gold); margin-top: .1rem; flex-shrink: 0; }
.about-value strong { display: block; font-size: .9rem; color: var(--brown-dark); margin-bottom: .15rem; }
.about-value span { font-size: .82rem; color: var(--gray-600); }

/* ==========================================
   PAYMENTS
   ========================================== */
.payments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.payment-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.2rem;
  text-align: center;
  transition: var(--transition);
}
.payment-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.payment-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(200,151,75,.15), rgba(200,151,75,.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 auto .9rem;
  border: 1.5px solid rgba(200,151,75,.2);
}
.payment-card h4 { font-size: .92rem; font-weight: 700; color: var(--brown-dark); margin-bottom: .4rem; }
.payment-card p { font-size: .8rem; color: var(--gray-600); line-height: 1.5; margin-bottom: .8rem; }
.payment-currency {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.currency-usd { background: #e8f5e9; color: #2e7d32; }
.currency-bs { background: #fff3e0; color: #e65100; }
.currency-dual { background: #e3f2fd; color: #1565c0; }
.payments-note {
  text-align: center;
  font-size: .84rem;
  color: var(--gray-600);
  background: var(--cream-dark);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.payments-note i { color: var(--gold); margin-right: .4rem; }

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials-section {
  background: linear-gradient(135deg, var(--brown-dark), #3d1f08);
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c8974b' fill-opacity='0.04'%3E%3Cpath d='M20 20.5V18H0v5h5v5H0v5h20v-9.5zm-2 4.5v5H2v-5h16zm-16-4h16v2H2v-2zm18-2h2v16h-2V19z'/%3E%3C/g%3E%3C/svg%3E");
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  position: relative;
}
.testimonial-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(200,151,75,.2);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: var(--transition);
}
.testimonial-card:hover { background: rgba(200,151,75,.1); border-color: var(--gold); }
.testimonial-card.featured {
  background: rgba(200,151,75,.15);
  border-color: rgba(200,151,75,.5);
}
.test-stars { color: var(--gold); font-size: .85rem; margin-bottom: .9rem; }
.testimonial-card p {
  font-size: .88rem;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-style: italic;
}
.test-author { display: flex; align-items: center; gap: .8rem; }
.test-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: var(--white);
  flex-shrink: 0;
}
.test-author strong { display: block; font-size: .88rem; color: var(--white); }
.test-author span { font-size: .75rem; color: rgba(255,255,255,.55); }

/* ==========================================
   FAQ
   ========================================== */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .7rem; }
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--gold); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .92rem;
  color: var(--brown-dark);
  transition: color .2s;
  gap: 1rem;
}
.faq-question:hover { color: var(--gold); }
.faq-question i { color: var(--gold); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 1.4rem 1.2rem; }

/* ==========================================
   NEWSLETTER
   ========================================== */
.newsletter-section {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
}
.newsletter-content { color: var(--white); max-width: 480px; }
.newsletter-icon { font-size: 2.5rem; margin-bottom: .8rem; display: block; }
.newsletter-content h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .4rem; }
.newsletter-content p { font-size: .9rem; opacity: .9; }
.newsletter-form { display: flex; gap: .6rem; flex: 1; max-width: 460px; min-width: 280px; }
.newsletter-form input {
  flex: 1;
  padding: .75rem 1.2rem;
  border: none;
  border-radius: 50px;
  font-size: .9rem;
  outline: none;
  background: rgba(255,255,255,.95);
  color: var(--brown-dark);
}
.newsletter-form input::placeholder { color: var(--gray-400); }

/* ==========================================
   CONTACT
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.contact-info h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.contact-info p { font-size: .9rem; color: rgba(255,255,255,.75); line-height: 1.6; }
.social-links { display: flex; gap: .7rem; margin-top: .5rem; }
.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .9rem;
  transition: var(--transition);
}
.social-links a:hover { background: var(--gold); transform: translateY(-2px); }

/* ==========================================
   FOOTER
   ========================================== */
#footer {
  background: #1a0f06;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0 2rem;
}
.footer-brand { max-width: 280px; }
.footer-brand p { font-size: .83rem; color: rgba(255,255,255,.55); line-height: 1.65; margin-top: .8rem; }
.footer-links h4 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-light); margin-bottom: .9rem; }
.footer-links a { display: block; color: rgba(255,255,255,.6); padding: .25rem 0; font-size: .83rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 0;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }

/* ==========================================
   MODALS
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  overflow-y: auto;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  position: relative;
  padding: 2rem;
  animation: modalIn .3s ease;
  margin: auto;
}
.modal-large .modal { max-width: 860px; }
.modal-product-inner { padding: 1.5rem; }
.modal-cart-inner { max-width: 500px; }
.modal-admin-inner { max-width: 900px; max-height: 90vh; overflow-y: auto; }
@keyframes modalIn { from { transform: scale(.94) translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: .8rem;
  transition: var(--transition);
  z-index: 5;
}
.modal-close:hover { background: var(--red); color: var(--white); }
.modal-header { text-align: center; margin-bottom: 1.5rem; }
.modal-icon { font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: .6rem; }
.modal-header h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--brown-dark); margin-bottom: .2rem; }
.modal-header p { font-size: .88rem; color: var(--gray-600); }
.modal-switch { text-align: center; margin-top: 1rem; font-size: .85rem; color: var(--gray-600); }
.modal-switch a { color: var(--gold); font-weight: 600; }

/* Form Styles */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-800); margin-bottom: .4rem; }
.input-icon-wrap { position: relative; display: flex; align-items: center; }
.input-icon-wrap > i:first-child {
  position: absolute;
  left: .9rem;
  color: var(--gray-400);
  font-size: .85rem;
  pointer-events: none;
  z-index: 1;
}
.input-icon-wrap input, .input-icon-wrap textarea {
  width: 100%;
  padding: .7rem .9rem .7rem 2.4rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  background: var(--white);
  color: var(--gray-800);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  transition: border-color .2s;
  outline: none;
  background: var(--white);
  color: var(--gray-800);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
.input-icon-wrap input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,151,75,.12); }
.toggle-pass {
  position: absolute;
  right: .8rem;
  color: var(--gray-400);
  font-size: .85rem;
  transition: color .2s;
  z-index: 1;
}
.toggle-pass:hover { color: var(--gold); }

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

/* ==========================================
   PRODUCT MODAL
   ========================================== */
.product-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; align-items: start; }
.product-modal-gallery { position: sticky; top: 0; }
.product-modal-main-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: .7rem;
}
.product-modal-thumb-row { display: flex; gap: .5rem; }
.product-modal-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
  flex-shrink: 0;
}
.product-modal-thumb.active { border-color: var(--gold); }
.product-modal-info .product-material-tag { font-size: .75rem; }
.product-modal-info h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brown-dark);
  margin: .5rem 0 .3rem;
}
.product-modal-price-usd { font-size: 1.8rem; font-weight: 700; color: var(--brown-dark); font-family: var(--font-display); }
.product-modal-price-ves { font-size: .9rem; color: var(--gray-600); margin-bottom: 1rem; }
.product-modal-details { margin: 1rem 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); padding: 1rem 0; }
.product-modal-detail-row { display: flex; gap: .5rem; align-items: baseline; margin-bottom: .35rem; font-size: .85rem; }
.product-modal-detail-row strong { color: var(--brown-dark); min-width: 100px; flex-shrink: 0; font-size: .82rem; }
.product-modal-detail-row span { color: var(--gray-600); }
.product-modal-colors { display: flex; gap: .5rem; margin: .8rem 0; }
.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,.6);
  box-shadow: 0 0 0 2px var(--gray-200);
  transition: var(--transition);
}
.color-dot:hover, .color-dot.selected { box-shadow: 0 0 0 2px var(--gold); }
.qty-control {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 1rem 0;
}
.qty-control label { font-size: .82rem; font-weight: 600; color: var(--gray-800); }
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  color: var(--brown-dark);
  transition: var(--transition);
  cursor: pointer;
}
.qty-btn:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.qty-display {
  font-size: 1rem;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
  color: var(--brown-dark);
}
.care-instructions { margin-top: .8rem; }
.care-instructions h4 { font-size: .82rem; font-weight: 700; color: var(--gray-800); margin-bottom: .5rem; }
.care-icons { display: flex; gap: .5rem; flex-wrap: wrap; }
.care-icon {
  display: flex;
  align-items: center;
  gap: .3rem;
  background: var(--cream);
  padding: .3rem .7rem;
  border-radius: 6px;
  font-size: .76rem;
  color: var(--gray-600);
}
.product-modal-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ==========================================
   CART
   ========================================== */
.cart-empty { text-align: center; padding: 2.5rem; color: var(--gray-400); }
.cart-empty i { font-size: 3rem; margin-bottom: .8rem; display: block; }
.cart-items-list { display: flex; flex-direction: column; gap: .7rem; max-height: 360px; overflow-y: auto; padding-right: .3rem; }
.cart-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: .75rem;
}
.cart-item-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: .85rem; color: var(--brown-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-meta { font-size: .75rem; color: var(--gray-600); }
.cart-item-price { font-weight: 700; font-size: .9rem; color: var(--brown-dark); white-space: nowrap; }
.cart-item-remove { color: var(--gray-400); font-size: .8rem; transition: color .2s; padding: .2rem; }
.cart-item-remove:hover { color: var(--red); }
.cart-summary {
  border-top: 1px solid var(--gray-200);
  padding-top: 1rem;
  margin-top: .8rem;
}
.cart-summary-row { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: .4rem; }
.cart-summary-row.total { font-weight: 700; font-size: 1rem; color: var(--brown-dark); border-top: 1px solid var(--gray-200); padding-top: .5rem; margin-top: .3rem; }
.cart-footer { margin-top: 1rem; }

/* ==========================================
   CHECKOUT
   ========================================== */
.checkout-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start; }
.checkout-section-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--brown-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 1.2rem 0 .8rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--cream-dark);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.payment-methods-select { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .8rem; }
.pm-option {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .7rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  font-size: .8rem;
  transition: var(--transition);
}
.pm-option:hover { border-color: var(--gold); background: rgba(200,151,75,.05); }
.pm-option input[type="radio"] { accent-color: var(--gold); }
.pm-option i { color: var(--gold); font-size: .85rem; }
.checkout-summary {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: sticky;
  top: 1rem;
}
.checkout-summary h4 { font-size: .95rem; font-weight: 700; color: var(--brown-dark); margin-bottom: 1rem; }
.checkout-item { display: flex; justify-content: space-between; gap: .5rem; font-size: .84rem; margin-bottom: .5rem; color: var(--gray-600); }
.checkout-item span:last-child { font-weight: 600; color: var(--brown-dark); white-space: nowrap; }
.checkout-total { border-top: 1.5px solid var(--cream-dark); padding-top: .7rem; margin-top: .7rem; display: flex; justify-content: space-between; font-weight: 700; font-size: 1rem; color: var(--brown-dark); }

/* ==========================================
   ADMIN
   ========================================== */
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.admin-stat-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 1px solid var(--cream-dark);
}
.admin-stat-card i { font-size: 1.5rem; color: var(--gold); }
.admin-stat-card strong { font-size: 1.4rem; font-family: var(--font-display); color: var(--brown-dark); display: block; line-height: 1; }
.admin-stat-card span { font-size: .76rem; color: var(--gray-600); }
.admin-tabs { display: flex; gap: .5rem; margin-bottom: 1.2rem; border-bottom: 1.5px solid var(--gray-200); padding-bottom: .5rem; }
.admin-tab {
  padding: .5rem 1.1rem;
  border-radius: 8px 8px 0 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
  border: 1.5px solid transparent;
  border-bottom: none;
}
.admin-tab:hover { color: var(--gold); }
.admin-tab.active { background: var(--white); border-color: var(--gray-200); color: var(--gold); border-bottom-color: var(--white); margin-bottom: -1.5px; }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }
.admin-setting-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid var(--cream-dark);
}
.admin-setting-card h4 { font-size: .88rem; font-weight: 700; color: var(--brown-dark); margin-bottom: .8rem; display: flex; align-items: center; gap: .4rem; }
.setting-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}
.setting-row.align-start { align-items: flex-start; }
.admin-input {
  padding: .5rem .8rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: .88rem;
  outline: none;
  background: var(--white);
  transition: border-color .2s;
  min-width: 100px;
}
.admin-input:focus { border-color: var(--gold); }
.setting-hint { font-size: .78rem; color: var(--gray-600); margin-top: .5rem; }

/* Toggle Switch */
.toggle-group { display: flex; align-items: center; gap: .7rem; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-200);
  border-radius: 50px;
  cursor: pointer;
  transition: background .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform .2s;
  box-shadow: var(--shadow-sm);
}
.toggle-switch input:checked + .toggle-slider { background: var(--gold); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
#admin-prices-label { font-size: .88rem; font-weight: 500; color: var(--gray-800); }

/* Admin Products List */
.admin-products-list { display: flex; flex-direction: column; gap: .6rem; max-height: 400px; overflow-y: auto; }
.admin-product-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  border: 1px solid var(--cream-dark);
}
.admin-product-thumb { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.admin-product-info { flex: 1; min-width: 0; }
.admin-product-info strong { font-size: .85rem; color: var(--brown-dark); display: block; }
.admin-product-info span { font-size: .75rem; color: var(--gray-600); }
.admin-product-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.admin-btn-edit, .admin-btn-del {
  padding: .3rem .65rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
}
.admin-btn-edit { background: rgba(200,151,75,.15); color: var(--gold); }
.admin-btn-edit:hover { background: var(--gold); color: var(--white); }
.admin-btn-del { background: rgba(231,76,60,.12); color: var(--red); }
.admin-btn-del:hover { background: var(--red); color: var(--white); }

/* Admin Product Form */
.admin-product-form {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1.5px solid var(--gold);
}
.admin-product-form h4 { font-size: .9rem; font-weight: 700; color: var(--brown-dark); margin-bottom: 1rem; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.admin-form-grid .form-group { margin-bottom: 0; }
.admin-form-grid .span-2 { grid-column: span 2; }

/* Admin Users */
.admin-users-list { display: flex; flex-direction: column; gap: .5rem; max-height: 400px; overflow-y: auto; }
.admin-user-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  border: 1px solid var(--cream-dark);
}
.admin-user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.admin-user-info { flex: 1; }
.admin-user-info strong { display: block; font-size: .85rem; color: var(--brown-dark); }
.admin-user-info span { font-size: .75rem; color: var(--gray-600); }
.admin-user-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 50px;
  text-transform: uppercase;
}
.badge-admin { background: rgba(200,151,75,.2); color: var(--gold-dark); }
.badge-user { background: var(--gray-100); color: var(--gray-600); }

/* SUCCESS */
.success-animation { margin: 1rem 0; }
.success-circle {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--green), #1a8a4a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: popIn .4s cubic-bezier(.175,.885,.32,1.275);
  box-shadow: 0 4px 20px rgba(39,174,96,.35);
}
.success-circle i { font-size: 2rem; color: var(--white); }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  #hero { min-height: auto; padding: 80px 0 50px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .checkout-grid { grid-template-columns: 1fr; }
  .product-modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .section { padding: 55px 0; }
  .header-top-inner span:nth-child(2) { display: none; }
  .auth-area .btn-outline-gold { display: none; }
  .currency-switcher { scale: .9; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .span-2 { grid-column: auto; }
  .payment-methods-select { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .newsletter-inner { flex-direction: column; }
  .newsletter-form { width: 100%; max-width: 100%; }
  .filters-left { overflow-x: auto; flex-wrap: nowrap; }
  .filter-btn { flex-shrink: 0; }
}

@media (max-width: 480px) {
  .modal { padding: 1.5rem 1.2rem; }
  .hero-title { font-size: 1.9rem; }
  .hero-btns { gap: .6rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  #toast-container { left: 10px; right: 10px; }
  .toast { min-width: auto; max-width: 100%; }
}

/* ==========================================
   FABRIC SWATCH TEXTURES (product cards)
   ========================================== */
.fabric-silk { background: linear-gradient(135deg, #fce4ec, #f8bbd9, #e91e8c, #ad1457); }
.fabric-cotton { background: linear-gradient(135deg, #e8f5e9, #c8e6c9, #66bb6a, #388e3c); }
.fabric-lace { background: linear-gradient(135deg, #fafafa, #eeeeee, #bdbdbd, #757575); }
.fabric-satin { background: linear-gradient(135deg, #e3f2fd, #90caf9, #1976d2, #0d47a1); }
.fabric-denim { background: linear-gradient(135deg, #e3f2fd, #7986cb, #3949ab, #1a237e); }
.fabric-linen { background: linear-gradient(135deg, #fff8e1, #ffe082, #ffb300, #e65100); }
.fabric-velvet { background: linear-gradient(135deg, #f3e5f5, #ce93d8, #7b1fa2, #4a148c); }
.fabric-chiffon { background: linear-gradient(135deg, #fff9c4, #fff176, #f9a825, #f57f17); }
.fabric-tweed { background: linear-gradient(135deg, #efebe9, #bcaaa4, #795548, #4e342e); }
.fabric-brocade { background: linear-gradient(135deg, #fff3e0, #ffcc02, #ff8f00, #e65100); }
.fabric-jersey { background: linear-gradient(135deg, #e0f2f1, #80cbc4, #00897b, #004d40); }
.fabric-organza { background: linear-gradient(135deg, #fce4ec, #f48fb1, #e91e63, #880e4f); }

/* ==========================================
   ADMIN DRAWER (fullscreen side panel)
   ========================================== */
.admin-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  z-index: 1900;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.admin-backdrop.open { opacity: 1; visibility: visible; }

.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  transform: translateX(-100%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.admin-drawer.open { transform: none; pointer-events: auto; }

/* ── Sidebar ── */
.adm-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--brown-dark);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,.3);
}
.adm-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.4rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.2);
  flex-shrink: 0;
}
.adm-brand-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.adm-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.adm-brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
.adm-brand-sub {
  display: block;
  font-size: .65rem;
  color: var(--gold-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.adm-nav {
  flex: 1;
  padding: .8rem 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.adm-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.2rem;
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
  text-align: left;
  border-radius: 0;
}
.adm-nav-item i { font-size: .95rem; width: 18px; flex-shrink: 0; }
.adm-nav-item:hover { background: rgba(255,255,255,.06); color: var(--white); }
.adm-nav-item.active {
  background: rgba(200,151,75,.15);
  color: var(--gold-light);
  border-left-color: var(--gold);
}

.adm-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem;
  color: rgba(255,255,255,.5);
  font-size: .82rem;
  border-top: 1px solid rgba(255,255,255,.08);
  transition: color .2s, background .2s;
  flex-shrink: 0;
}
.adm-close-btn:hover { color: var(--red); background: rgba(231,76,60,.1); }

/* ── Main ── */
.adm-main {
  flex: 1;
  background: #f4f0eb;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Auth screen */
.adm-auth-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--brown-dark), #3d1f08);
}
.adm-auth-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.adm-auth-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-gold);
}
.adm-auth-box h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--brown-dark); margin-bottom: .3rem; }
.adm-auth-box p { font-size: .88rem; color: var(--gray-600); }

/* Sections */
.adm-section { display: none; padding: 2rem; animation: fadeIn .25s ease; }
.adm-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.adm-section-header { margin-bottom: 1.8rem; }
.adm-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .25rem;
}
.adm-section-header h2 i { color: var(--gold); font-size: 1.2rem; }
.adm-section-header p { font-size: .88rem; color: var(--gray-600); }

/* KPI cards */
.adm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.adm-kpi {
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}
.adm-kpi i { font-size: 1.8rem; opacity: .85; }
.adm-kpi strong { display: block; font-size: 1.6rem; font-family: var(--font-display); line-height: 1; }
.adm-kpi span { font-size: .75rem; opacity: .8; margin-top: .15rem; display: block; }
.adm-kpi-gold   { background: linear-gradient(135deg, #c8974b, #a07030); color: var(--white); }
.adm-kpi-blue   { background: linear-gradient(135deg, #2980b9, #1a5276); color: var(--white); }
.adm-kpi-green  { background: linear-gradient(135deg, #27ae60, #1a7a42); color: var(--white); }
.adm-kpi-brown  { background: linear-gradient(135deg, #2c1a0e, #4a2e15); color: var(--white); }
.adm-kpi-purple { background: linear-gradient(135deg, #7b1fa2, #4a0072); color: var(--white); }
.adm-kpi-red    { background: linear-gradient(135deg, #c0392b, #922b21); color: var(--white); }

/* Dashboard grid */
.adm-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.adm-dash-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.adm-dash-card h4 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.adm-dash-card h4 i { color: var(--gold); }
.dash-mini-list { display: flex; flex-direction: column; gap: .5rem; }
.dash-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--gray-800);
  padding: .4rem .6rem;
  background: var(--cream);
  border-radius: 6px;
}
.dash-mini-item span { color: var(--gray-600); font-size: .76rem; }
.dash-mini-badge {
  font-size: .68rem;
  padding: .18rem .55rem;
  border-radius: 50px;
  font-weight: 600;
}
.dash-badge-low { background: #fee; color: var(--red); }
.dash-badge-ok { background: #e8f5e9; color: var(--green); }

/* Cards grid */
.adm-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.adm-cards-grid .span-full { grid-column: 1 / -1; }
.adm-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.adm-card-head {
  font-size: .9rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.adm-card-head i { color: var(--gold); }
.adm-card-desc { font-size: .82rem; color: var(--gray-600); margin-bottom: .8rem; line-height: 1.5; }

/* Identity section */
.adm-identity-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  margin-top: .8rem;
}
.adm-logo-editor {}
.logo-preview-box {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--brown-dark);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  margin-bottom: 1rem;
}
.logo-preview-box i {
  font-size: 1.6rem;
  color: var(--gold);
  width: 40px;
  height: 40px;
  background: rgba(200,151,75,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-preview-box span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.logo-preview-box img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.field-label { font-size: .8rem; font-weight: 600; color: var(--gray-800); margin-bottom: .5rem; display: block; }
.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .35rem;
  max-height: 120px;
  overflow-y: auto;
  padding: .3rem;
  background: var(--cream);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}
.icon-option {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  font-size: .95rem;
  color: var(--gray-600);
  transition: var(--transition);
  border: 2px solid transparent;
}
.icon-option:hover { background: rgba(200,151,75,.15); color: var(--gold); }
.icon-option.selected { background: var(--gold); color: var(--white); border-color: var(--gold-dark); }

.logo-upload-area { margin-top: .8rem; }
.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  background: var(--cream);
  border: 1.5px dashed var(--gold);
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  cursor: pointer;
  transition: var(--transition);
}
.upload-btn:hover { background: rgba(200,151,75,.1); }
.upload-hint { font-size: .72rem; color: var(--gray-400); margin-top: .3rem; display: block; }

.adm-input-lg {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: .88rem;
  outline: none;
  background: var(--white);
  color: var(--gray-800);
  transition: border-color .2s;
  font-family: var(--font-body);
}
.adm-input-lg:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,151,75,.1); }
textarea.adm-input-lg { resize: vertical; }

/* Theme presets */
.theme-presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .8rem;
  margin-bottom: 1.5rem;
}
.theme-preset-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.theme-preset-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.theme-preset-card.active { border-color: var(--gray-800); }
.tpc-preview {
  height: 55px;
  display: flex;
}
.tpc-p1 { flex: 2; }
.tpc-p2 { flex: 1; }
.tpc-p3 { flex: 1; }
.tpc-name {
  background: var(--white);
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem;
  color: var(--gray-800);
  border-top: 1px solid var(--gray-200);
}

/* Custom colors */
.theme-custom { border-top: 1.5px solid var(--gray-200); padding-top: 1.2rem; }
.color-pickers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  margin-bottom: 1.2rem;
}
.color-picker-item label { font-size: .76rem; font-weight: 600; color: var(--gray-800); display: block; margin-bottom: .4rem; }
.color-input-wrap { display: flex; align-items: center; gap: .4rem; }
.color-input-wrap input[type="color"] {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
  border: 1.5px solid var(--gray-200);
}
.color-input-wrap input[type="text"] {
  flex: 1;
  padding: .35rem .5rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-size: .78rem;
  font-family: monospace;
  outline: none;
}
.color-input-wrap input[type="text"]:focus { border-color: var(--gold); }

.theme-preview-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  padding: .7rem 1rem;
  background: var(--cream);
  border-radius: 8px;
  font-size: .8rem;
  flex-wrap: wrap;
}
.theme-preview-bar span { font-weight: 600; color: var(--gray-600); }
.tpb-primary, .tpb-dark, .tpb-bg {
  width: 40px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.1);
}
.tpb-btn {
  padding: .3rem .9rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--white);
  border: none;
  cursor: default;
}

/* Rate info */
.rate-label { font-size: .88rem; font-weight: 600; color: var(--gray-800); white-space: nowrap; }
.rate-info {
  margin-top: .8rem;
  padding: .6rem .9rem;
  background: var(--cream);
  border-radius: 8px;
  font-size: .82rem;
  color: var(--gray-600);
  border-left: 3px solid var(--gold);
}

/* Visibility toggle box */
.visibility-toggle-box {
  display: flex;
  align-items: stretch;
  gap: .5rem;
  margin: .8rem 0;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.vtb-option {
  flex: 1;
  padding: 1rem;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.vtb-option i { font-size: 1.4rem; color: var(--gray-400); transition: color .2s; }
.vtb-option strong { font-size: .82rem; color: var(--gray-800); display: block; }
.vtb-option span { font-size: .72rem; color: var(--gray-400); line-height: 1.4; }
.vtb-option.active { background: rgba(200,151,75,.12); border-bottom: 3px solid var(--gold); }
.vtb-option.active i { color: var(--gold); }
.vtb-option.active strong { color: var(--brown-dark); }
.vtb-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .3rem;
  color: var(--gray-400);
  font-size: .8rem;
  flex-shrink: 0;
}
.visibility-status {
  padding: .5rem .8rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  background: var(--cream);
  color: var(--gray-600);
}

/* ═══════════════════════════════════════════════
   ESTILOS NUEVOS v5.0
   ─────────────────────────────────────────────── */

/* Dashboard rows */
.dash-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .5rem;
  border-radius: 6px;
  font-size: .82rem;
  background: var(--cream);
  margin-bottom: .35rem;
}
.dash-row strong { flex: 1; color: var(--gray-800); }
.dash-row span   { color: var(--gray-600); font-size: .76rem; }
.dash-row-img {
  width: 34px; height: 34px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--gold-light);
  background-size: cover;
  background-position: center;
}
.dash-row-info { flex: 1; display: flex; flex-direction: column; }
.dash-row-info strong { font-size: .82rem; color: var(--gray-800); }
.dash-row-info span   { font-size: .74rem; color: var(--gray-600); }

/* Bar chart (analytics) */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  height: 110px;
  padding: .5rem 0 0;
}
.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  gap: .3rem;
}
.bar-bar {
  background: linear-gradient(to top, var(--gold-dark), var(--gold-light));
  border-radius: 4px 4px 0 0;
  width: 100%;
  min-height: 4px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: height .4s ease;
}
.bar-val {
  font-size: .65rem;
  font-weight: 700;
  color: var(--white);
  padding-top: .15rem;
}
.bar-label {
  font-size: .65rem;
  color: var(--gray-600);
  white-space: nowrap;
}

/* Image upload in product form */
.img-upload-row {
  display: flex;
  gap: .5rem;
  align-items: center;
}
.img-upload-row input { flex: 1; }
.btn-img-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  color: var(--gold);
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.btn-img-upload:hover { background: var(--gold-light); color: var(--white); }
.img-preview-box {
  margin-top: .6rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--gold-light);
  max-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}
.img-preview-box.hidden { display: none; }
.img-preview-box img {
  width: 100%; height: 160px;
  object-fit: cover;
}

/* Admin orders */
.admin-orders-list { display: flex; flex-direction: column; gap: .7rem; }
.adm-order-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: .82rem;
}
.adm-order-sub { display: block; color: var(--gray-600); font-size: .76rem; }
.adm-order-right { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.order-status-badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
}
.badge-pendiente, .badge-pending { background: #fff3e0; color: #e65100; }
.badge-entregado, .badge-delivered { background: #e8f5e9; color: #2e7d32; }
.badge-cancelado, .badge-cancelled { background: #fce4ec; color: #c62828; }
.badge-low  { background: #fff3e0; color: #e65100; padding: .2rem .6rem; border-radius: 20px; font-size: .72rem; }
.badge-out  { background: #fce4ec; color: #c62828; padding: .2rem .6rem; border-radius: 20px; font-size: .72rem; }

/* Toast mejorado */
.toast { display: flex; align-items: center; gap: .6rem; opacity: 0; transform: translateY(10px); transition: all .3s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

/* Loader mejorado */
.loader-logo-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin: 0 auto .8rem;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════
   MOBILE RESPONSIVO MEJORADO v5.0
   ─────────────────────────────────────────────── */

/* Productos grid en móvil */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: .7rem;
  }
  .product-card { border-radius: 8px; }
  .product-image { height: 150px; }
  .product-info { padding: .7rem; }
  .product-name { font-size: .85rem; }
  .product-desc { display: none; }
  .price-usd { font-size: 1rem; }
  .price-ves { font-size: .75rem; }
  .product-actions { flex-direction: column; gap: .4rem; }
  .product-actions .btn { width: 100%; font-size: .78rem; padding: .45rem; }
  .prod-img-swatch, .prod-img { height: 150px; }
}

/* Hero en móvil */
@media (max-width: 600px) {
  .hero-title { font-size: 1.6rem !important; }
  .hero-desc  { font-size: .9rem; }
  .hero-stats { flex-wrap: wrap; gap: .8rem; }
  .hero-stat  { min-width: 70px; }
  .hero-cta   { flex-direction: column; gap: .7rem; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .hero-visual { display: none; }
}

/* Header en móvil */
@media (max-width: 640px) {
  .header-top { display: none; }
  .logo-name   { font-size: 1rem !important; }
  .logo-slogan { display: none; }
  .currency-switcher { display: none; }
  #admin-link span { display: none; }
  .header-main { padding: .6rem 1rem !important; }

  .hero-section {
    padding: 3rem 1rem 2rem !important;
    min-height: auto !important;
  }

  /* Categories */
  .categories-grid { grid-template-columns: repeat(2, 1fr) !important; gap: .7rem; }
  .category-card { padding: 1rem .8rem; }

  /* Admin drawer en móvil — full screen */
  #admin-drawer {
    width: 100% !important;
    max-width: 100% !important;
  }
  .adm-kpi-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .adm-kpi { padding: .9rem; }
  .adm-kpi i { font-size: 1.3rem; }
  .adm-kpi strong { font-size: 1.2rem; }
  .adm-dashboard-grid { grid-template-columns: 1fr !important; }
  .adm-order-row { grid-template-columns: 1fr; gap: .4rem; }

  /* Modal full screen en móvil */
  .modal {
    width: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  .pmod-grid { grid-template-columns: 1fr !important; }
  .pmod-main-img { height: 200px !important; }
  .modal-main-img { height: 200px !important; object-fit: cover; }
}

/* Checkout modal en móvil */
@media (max-width: 560px) {
  .checkout-grid { grid-template-columns: 1fr !important; }
  .payment-methods { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Carrito en móvil */
@media (max-width: 480px) {
  .cart-item { font-size: .8rem; }
  .cart-item-img { width: 44px !important; height: 44px !important; }
}

/* Footer en móvil */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-bottom-inner { flex-direction: column; gap: .5rem; text-align: center; }
}

/* Formulario de producto en móvil */
@media (max-width: 640px) {
  .pf-grid { grid-template-columns: 1fr !important; }
  .pf-grid .span-2 { grid-column: 1 !important; }
  .adm-form-row { grid-template-columns: 1fr !important; }
}

/* Admin sidebar en tablets */
@media (max-width: 900px) {
  .admin-drawer-sidebar { width: 200px !important; }
  .adm-cards-grid { grid-template-columns: 1fr !important; }
  .adm-identity-row { flex-direction: column; }
  .adm-color-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Filtros de producto en móvil */
@media (max-width: 600px) {
  .filters-bar { flex-direction: column; gap: .7rem; }
  .filters-left { overflow-x: auto; display: flex; flex-wrap: nowrap; padding-bottom: .3rem; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }
  .filters-right { align-self: flex-end; }
}

/* Sección about en móvil */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr !important; }
  .payments-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .section-title { font-size: 1.5rem !important; }
}

/* WhatsApp float en móvil (más pequeño) */
@media (max-width: 480px) {
  #wa-float { width: 48px; height: 48px; font-size: 1.4rem; bottom: 1rem; right: 1rem; }
  .wa-tooltip { display: none; }
}


/* Toolbar */
.adm-toolbar {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.adm-search-box {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  padding: .45rem 1rem;
  flex: 1;
  max-width: 300px;
}
.adm-search-box i { color: var(--gray-400); font-size: .85rem; }
.adm-search-box input { border: none; outline: none; font-size: .85rem; background: transparent; flex: 1; }
.adm-count-badge {
  background: var(--brown-dark);
  color: var(--gold-light);
  padding: .3rem .9rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
}

/* Categories list */
.adm-categories-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .8rem;
}
.adm-category-row {
  background: var(--white);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}
.adm-category-row:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.adm-category-row.disabled { opacity: .5; background: var(--gray-100); }
.adm-cat-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(200,151,75,.2), rgba(200,151,75,.08));
  border: 1px solid rgba(200,151,75,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
}
.adm-cat-info { flex: 1; }
.adm-cat-info strong { display: block; font-size: .88rem; color: var(--brown-dark); }
.adm-cat-info span { font-size: .75rem; color: var(--gray-600); }
.adm-cat-actions { display: flex; gap: .35rem; align-items: center; }
.adm-cat-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}
.adm-cat-toggle input { opacity: 0; width: 0; height: 0; }
.adm-cat-toggle .slider {
  position: absolute;
  inset: 0;
  background: var(--gray-200);
  border-radius: 50px;
  cursor: pointer;
  transition: background .2s;
}
.adm-cat-toggle .slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform .2s;
  box-shadow: var(--shadow-sm);
}
.adm-cat-toggle input:checked + .slider { background: var(--gold); }
.adm-cat-toggle input:checked + .slider::before { transform: translateX(16px); }

/* Inline form */
.adm-inline-form {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  animation: fadeIn .2s ease;
}
.adm-inline-form-inner h4 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.adm-inline-form-inner h4 i { color: var(--gold); }
.adm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.adm-form-actions { display: flex; gap: .7rem; margin-top: 1rem; }

/* Category icon picker */
.cat-icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .5rem;
  background: var(--cream);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  max-height: 90px;
  overflow-y: auto;
}

/* Products admin list */
.admin-products-list { display: flex; flex-direction: column; gap: .6rem; }
.admin-product-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.admin-product-row:hover { border-color: var(--gold-light); box-shadow: var(--shadow-sm); }
.admin-product-thumb { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.admin-product-info { flex: 1; min-width: 0; }
.admin-product-info strong { font-size: .85rem; color: var(--brown-dark); display: block; }
.admin-product-info span { font-size: .75rem; color: var(--gray-600); }
.admin-product-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.admin-btn-edit, .admin-btn-del {
  padding: .3rem .65rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
}
.admin-btn-edit { background: rgba(200,151,75,.15); color: var(--gold); }
.admin-btn-edit:hover { background: var(--gold); color: var(--white); }
.admin-btn-del { background: rgba(231,76,60,.12); color: var(--red); }
.admin-btn-del:hover { background: var(--red); color: var(--white); }

/* Product form */
.admin-product-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border: 2px solid var(--gold);
  animation: fadeIn .2s ease;
}
.admin-product-form h4 { font-size: .9rem; font-weight: 700; color: var(--brown-dark); margin-bottom: 1rem; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.admin-form-grid .form-group { margin-bottom: 0; }
.admin-form-grid .span-2 { grid-column: span 2; }

/* Users list */
.admin-users-list { display: flex; flex-direction: column; gap: .6rem; }
.admin-user-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  border: 1px solid var(--gray-200);
  transition: border-color .2s;
}
.admin-user-row:hover { border-color: var(--gold-light); }
.admin-user-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.admin-user-info { flex: 1; }
.admin-user-info strong { display: block; font-size: .85rem; color: var(--brown-dark); }
.admin-user-info span { font-size: .75rem; color: var(--gray-600); }
.admin-user-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 50px;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-admin { background: rgba(200,151,75,.2); color: var(--gold-dark); }
.badge-user { background: var(--gray-100); color: var(--gray-600); }

/* Responsive Admin */
@media (max-width: 900px) {
  .adm-sidebar { width: 200px; }
  .adm-cards-grid { grid-template-columns: 1fr; }
  .adm-identity-row { grid-template-columns: 1fr; }
  .color-pickers-grid { grid-template-columns: 1fr 1fr; }
  .adm-form-row { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .span-2 { grid-column: auto; }
}
@media (max-width: 640px) {
  .admin-drawer { flex-direction: column; }
  .adm-sidebar { width: 100%; flex-direction: row; padding: 0; height: auto; overflow-x: auto; flex-wrap: nowrap; overflow-y: visible; }
  .adm-brand { padding: .8rem; border-bottom: none; border-right: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
  .adm-nav { flex-direction: row; padding: 0; flex-shrink: 0; overflow-x: auto; }
  .adm-nav-item { padding: .7rem .9rem; font-size: .78rem; border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .adm-nav-item.active { border-bottom-color: var(--gold); border-left: none; }
  .adm-nav-item span { display: none; }
  .adm-close-btn { padding: .7rem; border-top: none; border-left: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
  .adm-main { flex: 1; min-height: 0; }
  .adm-section { padding: 1rem; }
  .adm-kpi-grid { grid-template-columns: 1fr 1fr; }
  .color-pickers-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================
   NUEVOS ESTILOS v3.0 — API & Funcionalidades
   ========================================== */

/* ── Loader mejorado con logo personalizable ── */
.loader-logo-icon {
  width: 56px;
  height: 56px;
  background: rgba(200,151,75,.15);
  border: 2px solid var(--gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold);
  overflow: hidden;
}
.loader-tagline {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  margin-top: .8rem;
  font-family: var(--font-body);
  letter-spacing: .04em;
}

/* ── Modal recuperación de contraseña ── */
.reset-token-box {
  background: linear-gradient(135deg, rgba(200,151,75,.12), rgba(200,151,75,.06));
  border: 1.5px dashed var(--gold);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  margin: 1rem 0;
}
.reset-code-display {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--gold-dark);
  letter-spacing: .15em;
  background: var(--white);
  border-radius: 8px;
  padding: .4rem 1.2rem;
  display: inline-block;
  margin: .4rem 0;
  box-shadow: var(--shadow-sm);
}

/* ── Chatbot providers ── */
.chatbot-providers {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .8rem 0 1.2rem;
}
.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .9rem;
  background: var(--cream);
  border: 1.5px solid var(--gold-light);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brown-dark);
  transition: var(--transition);
  cursor: pointer;
}
.provider-badge:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.chatbot-help-box {
  display: flex;
  gap: .8rem;
  background: rgba(200,151,75,.08);
  border: 1px solid rgba(200,151,75,.25);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  margin-top: .8rem;
  font-size: .82rem;
  color: var(--gray-600);
}
.chatbot-help-box strong { display: block; margin-bottom: .2rem; color: var(--brown-dark); }
.chatbot-help-box ol { line-height: 1.8; }

/* ── Plataformas ── */
.platforms-list { display: flex; flex-direction: column; gap: .7rem; margin-top: .8rem; }
.platform-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .7rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}
.platform-item > i {
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: .1rem;
  flex-shrink: 0;
}
.platform-item > div strong { display: block; font-size: .87rem; color: var(--brown-dark); }
.platform-item > div span { display: block; font-size: .78rem; color: var(--gray-600); }
.platform-item > div a { font-size: .78rem; color: var(--gold); font-weight: 600; }

/* ── Info box ── */
.info-box p { font-size: .85rem; color: var(--gray-600); line-height: 1.65; }

/* ── Toast mejorado ── */
.toast {
  animation: slideInRight .3s cubic-bezier(.4,0,.2,1);
}

/* ── Indicador nube en botones guardados ── */
.btn-saving { opacity: .7; pointer-events: none; }

/* Botón olvidé contraseña */
#btn-forgot-pass {
  transition: color .2s;
}
#btn-forgot-pass:hover { color: var(--gold) !important; }

/* ── Mejoras responsivas para nuevo admin nav ── */
@media (max-width: 640px) {
  .adm-nav-item[data-section="chatbot"] span,
  .adm-nav-item[data-section="usuarios"] span,
  .adm-nav-item[data-section="productos"] span,
  .adm-nav-item[data-section="categorias"] span { display: none; }
  .chatbot-providers { gap: .35rem; }
  .provider-badge { font-size: .72rem; padding: .28rem .7rem; }
  .platforms-list { gap: .5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   🚀 PANEL PUBLICAR EN INTERNET
═══════════════════════════════════════════════════════════════ */

/* Botón nav "Publicar" con estilo especial */
.adm-nav-publish {
  background: linear-gradient(135deg, var(--gold), #e4b97b) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  margin-top: .5rem;
  box-shadow: 0 4px 12px rgba(200,151,75,.4);
  transition: var(--transition);
}
.adm-nav-publish:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,151,75,.5) !important;
}
.adm-nav-publish.active {
  background: linear-gradient(135deg, #a07030, #c8974b) !important;
}

/* Launch Checklist */
.launch-checklist-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--cream-dark);
}
.launch-checklist-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.launch-icon-big {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--gold), #e4b97b);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.3rem;
  flex-shrink: 0;
}
.launch-checklist-header h3 { font-size: 1.1rem; margin-bottom: .2rem; color: var(--brown-dark); }
.launch-checklist-header p  { font-size: .85rem; color: var(--gray-600); }
.launch-progress-circle {
  position: relative;
  width: 70px; height: 70px;
  margin-left: auto;
  flex-shrink: 0;
}
.launch-progress-circle svg { width: 70px; height: 70px; }
.launch-progress-circle span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
}
.launch-checks { display: flex; flex-direction: column; gap: .7rem; }
.launch-check {
  display: flex; align-items: center; gap: .9rem;
  padding: .7rem 1rem;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.launch-check:hover { background: var(--cream); }
.check-icon {
  width: 36px; height: 36px;
  background: var(--cream-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: .9rem;
  flex-shrink: 0;
}
.check-info { flex: 1; min-width: 0; }
.check-info strong { display: block; font-size: .88rem; color: var(--brown-dark); }
.check-info span   { font-size: .78rem; color: var(--gray-600); }
.check-badge { font-size: 1.1rem; flex-shrink: 0; }

/* Método recomendado de publicación */
.publish-method-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.publish-method-recommended {
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, #fffbf5, #fff8ee);
}
.publish-method-recommended::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), #e4b97b);
}
.publish-method-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #e4b97b);
  color: white;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  letter-spacing: .03em;
}
.publish-method-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.4rem;
}
.publish-platform-logo {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; flex-shrink: 0;
}
.publish-logo-genspark {
  background: linear-gradient(135deg, #4a90e2, #2171cd);
  color: white;
}
.publish-method-header h3 { font-size: 1.15rem; color: var(--brown-dark); margin-bottom: .2rem; }
.publish-method-header p  { font-size: .85rem; color: var(--gray-600); }

/* Pasos de publicación */
.publish-steps { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.4rem; }
.pub-step {
  display: flex; gap: 1rem; align-items: flex-start;
}
.pub-step-num {
  width: 32px; height: 32px;
  background: var(--gold);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  flex-shrink: 0;
}
.pub-step-content { flex: 1; }
.pub-step-content strong { display: block; font-size: .92rem; color: var(--brown-dark); margin-bottom: .2rem; }
.pub-step-content p { font-size: .85rem; color: var(--gray-600); line-height: 1.5; }
.pub-screenshot-hint {
  margin-top: .5rem;
  background: linear-gradient(135deg, var(--gold), #e4b97b);
  color: white;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.pub-step-content code {
  background: var(--cream-dark);
  padding: .1rem .4rem;
  border-radius: 4px;
  font-size: .88em;
  font-family: monospace;
}
.pub-url-example {
  background: var(--brown-dark);
  color: var(--gold);
  font-family: monospace;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: .4rem;
  font-size: .9rem;
  display: inline-block;
}

/* Ventajas */
.publish-advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .5rem;
}
.adv-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .82rem; color: var(--brown-dark);
  background: rgba(200,151,75,.1);
  padding: .4rem .7rem;
  border-radius: 6px;
}
.adv-item i { color: #27ae60; font-size: .75rem; }

/* Alternativas */
.publish-alternatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.publish-alt-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem;
  border: 1px solid var(--gray-200);
}
.pub-alt-header {
  display: flex; align-items: center; gap: .7rem;
  margin-bottom: 1rem;
}
.pub-alt-logo {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: white;
  flex-shrink: 0;
}
.pub-logo-netlify  { background: linear-gradient(135deg, #00C7B7, #00ad9f); }
.pub-logo-cloudflare { background: linear-gradient(135deg, #f48120, #e26d00); }
.pub-alt-header strong { display: block; font-size: .95rem; color: var(--brown-dark); }
.pub-alt-tag {
  font-size: .74rem;
  background: var(--cream-dark);
  color: var(--gray-600);
  padding: .15rem .5rem;
  border-radius: 50px;
}
.pub-alt-steps { font-size: .84rem; color: var(--gray-600); }
.pub-alt-steps p { font-weight: 600; color: var(--brown-dark); margin-bottom: .4rem; }
.pub-alt-steps ol { padding-left: 1.2rem; line-height: 2; }
.pub-alt-steps a { color: var(--gold); }
.pub-alt-warning {
  display: flex; gap: .5rem; align-items: flex-start;
  background: #fff8e1;
  border-left: 3px solid #f59e0b;
  padding: .5rem .7rem;
  border-radius: 0 6px 6px 0;
  font-size: .8rem;
  color: #78350f;
  margin-top: .7rem;
}
.pub-alt-warning i { color: #f59e0b; margin-top: .1rem; flex-shrink: 0; }

/* Dominio propio */
.domain-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
}
.domain-card-header {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.2rem;
}
.domain-card-header > i {
  font-size: 1.8rem; color: var(--gold); flex-shrink: 0;
}
.domain-card-header h4 { font-size: 1rem; margin-bottom: .2rem; color: var(--brown-dark); }
.domain-card-header p  { font-size: .84rem; color: var(--gray-600); }
.domain-steps { display: flex; flex-direction: column; gap: .8rem; }
.domain-step {
  display: flex; gap: .8rem; align-items: flex-start;
}
.ds-num {
  width: 26px; height: 26px;
  background: var(--cream-dark);
  color: var(--brown-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .82rem;
  flex-shrink: 0;
}
.domain-step strong { display: block; font-size: .88rem; color: var(--brown-dark); margin-bottom: .15rem; }
.domain-step p { font-size: .82rem; color: var(--gray-600); }
.domain-step a { color: var(--gold); }

/* FAQ de publicación */
.publish-faq {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.publish-faq h4 {
  font-size: .95rem; color: var(--brown-dark);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.publish-faq h4 i { color: var(--gold); }
.pub-faq-list { display: flex; flex-direction: column; gap: .5rem; }
.pub-faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.pub-faq-item summary {
  padding: .8rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .88rem;
  color: var(--brown-dark);
  background: var(--gray-100);
  transition: var(--transition);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.pub-faq-item summary::-webkit-details-marker { display: none; }
.pub-faq-item summary::after { content: '+'; font-size: 1.1rem; }
.pub-faq-item[open] summary::after { content: '−'; }
.pub-faq-item summary:hover { background: var(--cream); }
.pub-faq-item p {
  padding: .8rem 1rem;
  font-size: .84rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.pub-faq-item p code {
  background: var(--cream-dark);
  padding: .1rem .4rem;
  border-radius: 4px;
  font-family: monospace;
}

/* CTA de publicación */
.publish-cta-section {
  background: linear-gradient(135deg, var(--brown-dark), #3d2210);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: white;
}
.publish-cta-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: .8rem;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.publish-cta-content h3 {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: .5rem;
}
.publish-cta-content p {
  font-size: .9rem;
  opacity: .9;
  max-width: 480px;
  margin: 0 auto .8rem;
}
.publish-cta-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: white;
  padding: .7rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,151,75,.5); }
  50%       { box-shadow: 0 0 0 12px rgba(200,151,75,0); }
}

/* ═══════════════════════════════════════════════════════════════
   🤖 ASISTENTE IA (VIP-IA) — Estilos completos
═══════════════════════════════════════════════════════════════ */

/* Botón nav IA */
.adm-nav-ai {
  background: linear-gradient(135deg, #6b21a8, #7c3aed) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
}
.adm-nav-ai:hover {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6) !important;
}
.adm-nav-ai.active {
  background: linear-gradient(135deg, #4c1d95, #6b21a8) !important;
}

/* Barra de análisis automático */
.ai-analysis-bar {
  background: linear-gradient(135deg, var(--brown-dark), #3d2210);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
}
.ai-analysis-header {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .8rem;
  font-size: .85rem; font-weight: 600;
}
.ai-pulse i {
  color: #4ade80;
  font-size: .55rem;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.8); }
}
.ai-refresh-btn {
  margin-left: auto;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: white;
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: .8rem;
  transition: var(--transition);
}
.ai-refresh-btn:hover {
  background: rgba(255,255,255,.3);
  transform: rotate(180deg);
}
.ai-insights-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.ai-insight-chip {
  display: flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: .5rem .9rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: .8rem;
  min-width: 200px; max-width: 300px;
  flex: 1;
}
.ai-insight-chip:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.ai-insight-chip > i { font-size: .85rem; flex-shrink: 0; }
.ai-insight-chip div { flex: 1; min-width: 0; }
.ai-insight-chip strong { display: block; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-insight-chip span  { font-size: .72rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ai-chip-action { font-size: .7rem; opacity: .7; white-space: nowrap; margin-left: auto; }
.ai-chip-danger  { border-color: rgba(231,76,60,.5) !important; }
.ai-chip-danger > i { color: #ff8080; }
.ai-chip-warning { border-color: rgba(243,156,18,.5) !important; }
.ai-chip-warning > i { color: #ffd080; }
.ai-chip-success { border-color: rgba(39,174,96,.5) !important; }
.ai-chip-success > i { color: #80ffa0; }
.ai-chip-info    { border-color: rgba(52,152,219,.5) !important; }
.ai-chip-info > i { color: #80ccff; }

/* Chat container */
.ai-chat-container {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}
.ai-chat-header {
  background: linear-gradient(135deg, #6b21a8, #7c3aed);
  color: white;
  padding: .9rem 1.2rem;
  display: flex; align-items: center; gap: .8rem;
}
.ai-avatar {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.ai-chat-header strong { display: block; font-size: .92rem; }
.ai-chat-header span   { font-size: .75rem; opacity: .8; }
.ai-status-dot {
  width: 10px; height: 10px;
  background: #4ade80;
  border-radius: 50%;
  margin-left: auto;
  box-shadow: 0 0 6px #4ade80;
  animation: pulseDot 2s ease-in-out infinite;
}

/* Mensajes del chat */
.ai-chat-messages {
  padding: 1rem;
  max-height: 500px;
  min-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  background: #fafafa;
}
.ai-msg { display: flex; align-items: flex-end; gap: .6rem; }
.ai-msg-bot   { justify-content: flex-start; }
.ai-msg-user  { justify-content: flex-end; }
.ai-msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6b21a8, #7c3aed);
  color: white;
}
.ai-msg-avatar-user {
  background: linear-gradient(135deg, var(--gold), #e4b97b) !important;
}
.ai-msg-bubble {
  background: white;
  border-radius: 16px 16px 16px 4px;
  padding: .7rem 1rem;
  max-width: 80%;
  box-shadow: var(--shadow-sm);
  font-size: .85rem;
  line-height: 1.6;
  color: var(--gray-800);
}
.ai-msg-bubble p   { margin: 0; }
.ai-msg-bubble p + p { margin-top: .3rem; }
.ai-msg-bubble strong { color: var(--brown-dark); }
.ai-msg-bubble a { color: var(--gold); }
.ai-msg-bubble-user {
  background: linear-gradient(135deg, var(--gold), #e4b97b) !important;
  color: white !important;
  border-radius: 16px 16px 4px 16px !important;
  text-align: right;
}
.ai-msg-bubble-user strong { color: white !important; }

/* Chips de acciones rápidas */
.ai-quick-chips {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem;
}
.ai-chip {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 50px;
  padding: .3rem .8rem;
  font-size: .78rem;
  color: var(--brown-dark);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}
.ai-chip:hover {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

/* Input area */
.ai-chat-input-area {
  display: flex; align-items: flex-end; gap: .5rem;
  padding: .8rem 1rem;
  border-top: 1px solid var(--gray-200);
  background: white;
}
#ai-chat-input {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: .5rem 1rem;
  font-size: .85rem;
  font-family: var(--font-body);
  resize: none;
  outline: none;
  line-height: 1.5;
  max-height: 120px;
  transition: border-color .2s;
}
#ai-chat-input:focus { border-color: #7c3aed; }
.ai-send-btn {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #6b21a8, #7c3aed);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  font-size: .9rem;
}
.ai-send-btn:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(107,33,168,.4); }
.ai-disclaimer {
  font-size: .75rem;
  color: var(--gray-400);
  text-align: center;
  padding: .4rem;
  background: white;
}
.ai-disclaimer i { color: var(--gold); }

/* Typing animation */
.ai-dots {
  display: flex; gap: .25rem; padding: .2rem 0;
}
.ai-dots span {
  width: 7px; height: 7px;
  background: #7c3aed;
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.ai-dots span:nth-child(2) { animation-delay: .2s; }
.ai-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-8px); }
}

/* Panel de recomendaciones guardadas */
.ai-recommendations-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem;
}
.ai-recommendations-panel h4 {
  font-size: .95rem; color: var(--brown-dark);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .4rem;
}
.ai-recommendations-panel h4 i { color: var(--gold); }
.ai-rec-item {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  margin-bottom: .5rem;
  font-size: .82rem;
}
.ai-rec-date {
  font-size: .73rem; color: var(--gray-400);
  margin-bottom: .2rem;
  display: flex; align-items: center; gap: .3rem;
}
.ai-rec-text { color: var(--gray-800); line-height: 1.5; }

/* ── Responsivo Panel Publicar + IA ── */
@media (max-width: 600px) {
  .launch-checklist-header { flex-direction: column; align-items: flex-start; }
  .launch-progress-circle  { margin-left: 0; }
  .publish-method-header   { flex-direction: column; align-items: flex-start; }
  .pub-step                { flex-direction: column; }
  .pub-step-num            { width: 28px; height: 28px; font-size: .8rem; }
  .publish-alternatives-grid { grid-template-columns: 1fr; }
  .publish-advantages      { grid-template-columns: 1fr 1fr; }
  .ai-chat-messages        { max-height: 360px; }
  .ai-msg-bubble           { max-width: 90%; }
  .ai-insight-chip         { min-width: 160px; }
  .ai-quick-chips          { gap: .3rem; }
  .ai-chip                 { font-size: .74rem; padding: .25rem .65rem; }
}
