/* ===================================
   DAI BEAUTY - Global Styles
   Mobile-first
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Dancing+Script:wght@600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --pink-50:  #fdf0f6;
  --pink-100: #fad6ea;
  --pink-200: #f4add1;
  --pink-300: #ec7fb7;
  --pink-400: #e04d9e;
  --pink-500: #cc1a7f;
  --pink-600: #a81466;
  --pink-700: #850f50;
  --pink-800: #63093c;
  --magenta:  #b8005e;
  --rose:     #e87aab;
  --peach:    #f4b3ce;

  --bg-page:  #ede9ed;          /* fondo principal apagado */
  --bg-card:  #ffffff;
  --bg-muted: #f7f4f7;

  --white:    #ffffff;
  --gray-50:  #f9f7f9;
  --gray-100: #f0edf0;
  --gray-200: #ddd8dd;
  --gray-400: #9e959e;
  --gray-600: #5c545c;
  --gray-800: #1e1a1e;

  --shadow-sm: 0 2px 8px rgba(180,20,110,.10);
  --shadow-md: 0 4px 20px rgba(180,20,110,.15);
  --shadow-lg: 0 8px 40px rgba(180,20,110,.20);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --transition: all .22s cubic-bezier(.4,0,.2,1);

  --gradient:       linear-gradient(135deg, var(--pink-500) 0%, var(--magenta) 60%, var(--pink-600) 100%);
  --gradient-light: linear-gradient(135deg, var(--pink-50) 0%, #fce8f4 100%);
  --gradient-hero:  linear-gradient(135deg, #e04d9e 0%, #a81466 50%, #850f50 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-page:  #120e11;
    --bg-card:  #1c1619;
    --bg-muted: #2a2025;
    
    --white:    #1c1619;
    --gray-50:  #241b20;
    --gray-100: #2a2025;
    --gray-200: #3b2e35;
    --gray-400: #9e959e;
    --gray-600: #d4c8d0;
    --gray-800: #f5edf3;

    --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.5);
    
    --gradient-light: linear-gradient(135deg, #2a111f 0%, #1e0915 100%);
  }
  
  .header {
    background: rgba(18,14,17,.93) !important;
    border-bottom: 1px solid var(--gray-200) !important;
  }
  .nav-logo img { filter: brightness(1.2); }
  .product-card-img-wrap { background: #241b20; }
  .category-icon { background: var(--bg-card); border-color: var(--gray-200); }
  .category-chip:hover .category-icon { background: var(--pink-700); border-color: var(--pink-600); }
  .modal { background: var(--bg-card); }
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-page);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-muted); }
::-webkit-scrollbar-thumb { background: var(--pink-300); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink-500); }

/* ============================
   HEADER
   ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--pink-100);
  box-shadow: var(--shadow-sm);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 10px;
}

.nav-logo {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-logo-wrap {
  height: 46px;
  width: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  transform: scale(1.3);
}

.nav-search {
  flex: 0 1 440px;
  position: relative;
  display: none; /* hidden mobile-first */
}

.nav-search input {
  width: 100%;
  padding: 9px 40px 9px 14px;
  border: 1.5px solid var(--pink-200);
  border-radius: var(--radius-xl);
  background: var(--bg-muted);
  color: var(--gray-800);
  font-size: .875rem;
  transition: var(--transition);
  outline: none;
}

.nav-search input:focus {
  border-color: var(--pink-500);
  background: white;
  box-shadow: 0 0 0 3px rgba(204,26,127,.10);
}
.nav-search input::placeholder { color: var(--gray-400); }

.nav-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pink-500);
  background: none;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  display: flex;
  align-items: center;
}

.nav-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  height: 42px;
  border-radius: var(--radius-xl);
  color: var(--pink-600);
  transition: var(--transition);
  font-size: 1.1rem;
  text-decoration: none;
}
.nav-label {
  font-size: 0.85rem;
  font-weight: 700;
}
.nav-btn:hover { background: var(--pink-50); color: var(--pink-700); }

.nav-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  background: var(--gradient);
  color: white;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 2px 6px rgba(204,26,127,.4);
  animation: badgePop .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes badgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ============================
   HERO (SIMPLIFIED)
   ============================ */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 20px;
  color: white;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-eyebrow {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  color: var(--pink-200);
  margin-bottom: -10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  line-height: 1;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.hero-title span {
  color: var(--pink-300);
}
.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 30px;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pink-500);
  color: white;
  padding: 16px 36px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.hero-cta:hover {
  background: var(--pink-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================
   LAYOUT
   ============================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 14px;
}

.section { padding: 48px 0; }
.section-alt { background: var(--bg-muted); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-800);
  position: relative;
  text-align: center;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--pink-400);
  border-radius: 99px;
}

.section-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--pink-500);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.section-link:hover { color: var(--pink-700); gap: 7px; }

/* ============================
   CATEGORIES
   ============================ */
.categories-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding-top: 8px;
  padding-bottom: 6px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.categories-grid::-webkit-scrollbar { display: none; }

.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.category-chip:hover { transform: translateY(-3px); }

.category-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--pink-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--pink-500);
  transition: var(--transition);
}
.category-chip:hover .category-icon,
.category-chip.active .category-icon {
  background: var(--gradient);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-md);
}

.category-chip span {
  font-size: .74rem;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
  max-width: 68px;
}
.category-chip.active span { color: var(--pink-600); }

/* ============================
   PRODUCT CARDS  (mobile-first: 2 col)
   ============================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--pink-100);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--pink-200);
}

.product-card-img-wrap {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: var(--bg-muted);
}
.product-card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img-wrap img { transform: scale(1.05); }



.product-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--gradient);
  color: white;
  font-size: .65rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.product-card-body { padding: 16px 14px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }

.product-card-cat {
  font-size: .75rem;
  font-weight: 700;
  color: var(--pink-500);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.product-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-desc {
  font-size: .85rem;
  color: var(--gray-400);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--pink-600);
  margin-bottom: 16px;
}
.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

/* ---- Stock Badges ---- */
.stock-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  font-size: .75rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 10;
}
.stock-badge.stock-out { background: rgba(0,0,0,0.7); color: white; border: 1px solid rgba(255,255,255,0.2); }
.stock-badge.stock-low { background: rgba(255,59,48,0.9); color: white; }
.stock-badge.stock-ok { background: rgba(52,199,89,0.9); color: white; }

.product-card.card-out-of-stock .product-card-img-wrap img {
  opacity: 0.5;
  filter: grayscale(100%);
}
.product-card.card-out-of-stock .product-card-price {
  color: var(--gray-400);
  text-decoration: line-through;
}

/* ============================
   CUSTOM CONFIRM DIALOG
   ============================ */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.confirm-overlay.open { opacity: 1; visibility: visible; }

.confirm-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  transform: scale(.9);
  transition: var(--transition);
}
.confirm-overlay.open .confirm-box { transform: scale(1); }

.confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fce4ec;
  color: #c62828;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}

.confirm-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.confirm-box p {
  font-size: .86rem;
  color: var(--gray-400);
  margin-bottom: 24px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: .83rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  min-height: 38px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 3px 12px rgba(204,26,127,.30);
  flex: 1;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(204,26,127,.45);
  filter: brightness(1.06);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--pink-500);
  border: 1.5px solid var(--pink-300);
}
.btn-outline:hover {
  background: var(--pink-50);
  border-color: var(--pink-500);
  color: var(--pink-600);
}

.btn-secondary {
  background: var(--bg-muted);
  color: var(--pink-600);
  border: 1.5px solid var(--pink-200);
}
.btn-secondary:hover { background: var(--pink-100); }

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  box-shadow: 0 3px 12px rgba(37,211,102,.30);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(37,211,102,.45);
  filter: brightness(1.08);
}

.btn-danger {
  background: linear-gradient(135deg, #ef5350, #c62828);
  color: white;
}
.btn-danger:hover { filter: brightness(1.08); transform: translateY(-2px); }

.btn-sm { padding: 6px 13px; font-size: .78rem; min-height: 32px; }
.btn-lg { padding: 12px 26px; font-size: .95rem; min-height: 46px; }
.btn-full { width: 100%; }

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  flex: none;
}

/* ============================
   TOASTS
   ============================ */
.toast-container {
  position: fixed;
  top: 74px;
  right: 14px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--pink-500);
  min-width: 250px;
  max-width: 320px;
  pointer-events: all;
  animation: toastIn .3s cubic-bezier(.34,1.56,.64,1);
}
.toast.removing { animation: toastOut .28s ease forwards; }

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pink-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--pink-500);
  flex-shrink: 0;
}

.toast-text { flex: 1; }
.toast-text strong { display: block; font-size: .83rem; color: var(--gray-800); }
.toast-text span   { font-size: .76rem; color: var(--gray-400); }

.toast.success { border-left-color: #43a047; }
.toast.success .toast-icon { background: #f1f8e9; color: #43a047; }
.toast.error   { border-left-color: #e53935; }
.toast.error   .toast-icon { background: #fce4ec; color: #e53935; }

@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}

/* ============================
   MODAL
   ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: flex-end; /* mobile: bottom sheet */
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -12px 60px rgba(0,0,0,.22);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--pink-100);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}
.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: .9rem;
  transition: var(--transition);
  border: none;
  background: none;
  cursor: pointer;
}
.modal-close:hover { background: var(--pink-50); color: var(--pink-600); }
.modal-body { padding: 18px 20px; }

/* Product detail inside modal */
.product-detail { display: flex; flex-direction: column; gap: 18px; }
.product-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-muted);
  max-height: 260px;
}
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info { display: flex; flex-direction: column; gap: 10px; }
.product-detail-cat { font-size: .72rem; font-weight: 700; color: var(--pink-500); text-transform: uppercase; letter-spacing: .1em; }
.product-detail-name { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.product-detail-desc { font-size: .87rem; color: var(--gray-600); line-height: 1.6; }
.product-detail-price { font-size: 1.6rem; font-weight: 900; color: var(--pink-600); }

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-muted);
  border-radius: var(--radius-xl);
  padding: 5px;
  width: fit-content;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: none;
  color: var(--pink-600);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}
.qty-btn:hover { background: var(--pink-500); color: white; }
.qty-value { font-weight: 700; font-size: .95rem; min-width: 22px; text-align: center; }

/* ============================
   CART
   ============================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.cart-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--pink-100);
  margin-bottom: 10px;
  transition: var(--transition);
}
.cart-item:hover { border-color: var(--pink-200); box-shadow: var(--shadow-sm); }

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-muted);
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-name  { font-weight: 700; font-size: .88rem; margin-bottom: 3px; }
.cart-item-cat   { font-size: .72rem; color: var(--pink-500); font-weight: 600; margin-bottom: 6px; }
.cart-item-price { font-size: 1rem; font-weight: 800; color: var(--pink-600); }

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cart-remove {
  color: var(--gray-400);
  font-size: .78rem;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.cart-remove:hover { color: #e53935; background: #fce4ec; }

.cart-summary {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid var(--pink-100);
}
.cart-summary h3 { font-size: 1rem; font-weight: 700; margin-bottom: 18px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: .88rem;
}
.summary-row.total {
  font-weight: 800;
  font-size: 1.05rem;
  border-top: 1px solid var(--pink-100);
  padding-top: 10px;
  margin-top: 4px;
  color: var(--pink-600);
}

/* ---- Stock Badges ---- */
.stock-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  font-size: .75rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 10;
}
.stock-badge.stock-out { background: rgba(0,0,0,0.7); color: white; border: 1px solid rgba(255,255,255,0.2); }
.stock-badge.stock-low { background: rgba(255,59,48,0.9); color: white; }
.stock-badge.stock-ok { background: rgba(52,199,89,0.9); color: white; }

.product-card.card-out-of-stock .product-card-img-wrap img {
  opacity: 0.5;
  filter: grayscale(100%);
}
.product-card.card-out-of-stock .product-card-price {
  color: var(--gray-400);
  text-decoration: line-through;
}

/* ============================
   PAGE BANNER
   ============================ */
.page-banner {
  background: var(--gradient);
  color: white;
  padding: 28px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}
.page-banner h1 { font-size: 1.6rem; font-weight: 800; position: relative; z-index: 1; }
.page-banner p  { color: rgba(255,255,255,.82); margin-top: 4px; font-size: .9rem; position: relative; z-index: 1; }

/* ============================
   FILTERS
   ============================ */
.filters-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 0;
}
.filter-pill {
  padding: 7px 16px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--pink-200);
  background: var(--bg-card);
  color: var(--gray-600);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-pill:hover { border-color: var(--pink-400); color: var(--pink-500); }
.filter-pill.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.sort-select {
  margin-left: auto;
  padding: 7px 14px;
  border: 1.5px solid var(--pink-200);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  color: var(--gray-600);
  font-size: .82rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}
.sort-select:focus { border-color: var(--pink-500); }

/* ============================
   EMPTY STATE
   ============================ */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--gray-400);
}
.empty-state i { font-size: 3rem; color: var(--pink-200); margin-bottom: 14px; display: block; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-600); margin-bottom: 6px; }
.empty-state p  { font-size: .87rem; }

/* ============================
   SEARCH DROPDOWN
   ============================ */
.search-results {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--pink-100);
  z-index: 200;
  overflow: hidden;
  max-height: 340px;
  overflow-y: auto;
  display: none;
}
.search-results.show { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  cursor: pointer;
  transition: var(--transition);
}
.search-result-item:hover { background: var(--pink-50); }
.search-result-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-muted);
  flex-shrink: 0;
}
.search-result-name  { font-weight: 600; font-size: .87rem; }
.search-result-price { font-size: .78rem; color: var(--pink-500); font-weight: 700; }

/* ============================
   ADMIN PANEL
   ============================ */
.admin-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Mobile: top tab bar */
.admin-sidebar {
  background: #1e1a1e;
  color: white;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-sidebar::-webkit-scrollbar { display: none; }

.admin-sidebar-logo { display: none; }

.admin-nav {
  display: flex;
  flex-direction: row;
  padding: 6px 8px;
  gap: 2px;
  width: 100%;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,.60);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.admin-nav-item i { font-size: 1rem; }
.admin-nav-item:hover  { background: rgba(255,255,255,.08); color: white; }
.admin-nav-item.active { background: var(--gradient); color: white; box-shadow: var(--shadow-sm); }

.admin-content { background: var(--bg-page); padding: 20px 14px; flex: 1; }

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.admin-topbar h2 { font-size: 1.3rem; font-weight: 800; color: var(--gray-800); }
.admin-topbar p  { font-size: .82rem; color: var(--gray-400); margin-top: 2px; }


/* Admin card/table */

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.admin-table th {
  background: var(--pink-50);
  padding: 10px 14px;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  color: var(--pink-600);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.admin-table td {
  padding: 12px 14px;
  font-size: .84rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-muted); }

.table-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg-muted);
}

.table-actions { display: flex; gap: 6px; align-items: center; }
.table-action-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.table-action-btn.edit   { background: var(--pink-50);  color: var(--pink-600); }
.table-action-btn.edit:hover   { background: var(--pink-100); }
.table-action-btn.delete { background: #fce4ec; color: #c62828; }
.table-action-btn.delete:hover { background: #ef9a9a; }
.table-action-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 5px;
}
.form-label span { color: var(--pink-500); }

.form-control {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: .88rem;
  color: var(--gray-800);
  transition: var(--transition);
  outline: none;
  background: var(--bg-card);
}
.form-control:focus {
  border-color: var(--pink-500);
  box-shadow: 0 0 0 3px rgba(204,26,127,.09);
}
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 85px; }

/* Image upload */
.img-upload-area {
  border: 2px dashed var(--pink-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background: var(--bg-muted);
}
.img-upload-area:hover,
.img-upload-area.dragover { border-color: var(--pink-500); background: var(--pink-50); }
.img-upload-icon { font-size: 2rem; color: var(--pink-300); margin-bottom: 8px; }
.img-upload-area p { font-size: .82rem; color: var(--gray-400); margin-bottom: 4px; }
.img-upload-area strong { color: var(--pink-500); }
.img-upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-preview { width: 100%; max-height: 180px; object-fit: contain; border-radius: var(--radius-md); margin-top: 10px; display: none; }
.img-preview.show { display: block; }

/* Admin login */
.login-modal {
  position: fixed;
  inset: 0;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.login-card img { height: 70px; width: auto; object-fit: contain; margin: 0 auto 18px; }
.login-card h2  { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.login-card p   { font-size: .82rem; color: var(--gray-400); margin-bottom: 24px; }
.login-error {
  color: #c62828;
  font-size: .8rem;
  background: #fce4ec;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  display: none;
}
.login-error.show { display: block; }

/* ============================
   RESPONSIVE — tablet 640px+
   ============================ */
@media (min-width: 640px) {
  .nav { padding: 0 20px; height: 66px; }
  .nav-logo img { height: 50px; }
  .nav-search { display: block; }

  .hero-slide { height: 280px; }
  .hero-slide-overlay { padding: 36px 50px; }
  .hero-slide-overlay h2 { font-size: 2.3rem; }

  .section { padding: 32px 0; }
  .section-title { font-size: 1.4rem; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-card-body { padding: 14px 15px 16px; }
  .product-card-name { font-size: .95rem; }
  .product-card-price { font-size: 1.15rem; }

  .modal-overlay { align-items: center; padding: 20px; }
  .modal {
    border-radius: var(--radius-xl);
    max-width: 560px;
    transform: scale(.9) translateY(20px);
  }
  .modal-overlay.open .modal { transform: scale(1) translateY(0); }

  .product-detail { flex-direction: row; gap: 22px; }
  .product-detail-img { max-height: none; flex: 1; }
  .product-detail-info { flex: 1; }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .admin-sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .admin-sidebar-logo img { height: 56px; width: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.25); }
  .admin-sidebar-logo span { font-size: .7rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .1em; }
  .admin-nav { flex-direction: column; padding: 12px 10px; gap: 3px; }
  .admin-nav-item { white-space: normal; }

  .admin-layout { flex-direction: row; }
  .admin-content { margin-left: 240px; padding: 28px 28px; }
}

/* ============================
   RESPONSIVE — desktop 900px+
   ============================ */
@media (min-width: 900px) {
  .hero-slide { height: 360px; }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .cart-layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
    gap: 24px;
  }
  .cart-summary { position: sticky; top: 86px; }

  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================
   RESPONSIVE — large 1200px+
   ============================ */
@media (min-width: 1200px) {
  .container { padding: 0 24px; }
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .admin-content { padding: 32px 36px; }
}
