/* ─── AnsariVibe Custom CSS ─────────────────────────────────────────────────── */
:root {
  --primary:    #094c5c;
  --primary-dk: #063845;
  --primary-lt: #0d6b80;
  --primary-xl: #e8f4f7;
  --yellow:     #f59e0b;
}

* { box-sizing: border-box; }

/* ─── SCROLLBAR ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dk); }

/* ─── NAV LINKS ──────────────────────────────────────────────────────────────── */
.nav-link {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: #374151;
  transition: all 0.2s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: var(--primary-xl); color: var(--primary); font-weight: 600;
}
.nav-link.active { box-shadow: 0 0 0 2px var(--primary); }

.mobile-nav-link {
  display: block; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--primary-dk);
  transition: background 0.2s;
}
.mobile-nav-link:hover { background: var(--primary-xl); }

/* ─── PRODUCT CARD ───────────────────────────────────────────────────────────── */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(9,76,92,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(9,76,92,0.18);
}
.product-card .img-wrap {
  position: relative; overflow: hidden; aspect-ratio: 1/1; background: var(--primary-xl);
}
.product-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .img-wrap img { transform: scale(1.08); }

.product-card .badge-sale {
  position: absolute; top: 10px; left: 10px;
  background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}
.product-card .badge-featured {
  position: absolute; top: 10px; right: 10px;
  background: var(--yellow); color: var(--primary-dk);
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}

.product-card .card-actions {
  position: absolute; bottom: -48px; left: 0; right: 0;
  display: flex; gap: 8px; padding: 0 12px;
  transition: bottom 0.3s;
}
.product-card:hover .card-actions { bottom: 12px; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 12px 24px; border-radius: 12px;
  font-weight: 600; font-size: 14px;
  border: none; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(9,76,92,0.3); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 22px; border-radius: 12px;
  font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 0.2s;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-yellow {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--yellow); color: var(--primary-dk);
  padding: 12px 24px; border-radius: 12px;
  font-weight: 700; font-size: 14px;
  border: none; cursor: pointer;
  transition: all 0.2s;
}
.btn-yellow:hover { background: #d97706; transform: translateY(-1px); }

.btn-danger {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ef4444; color: #fff;
  padding: 8px 16px; border-radius: 8px;
  font-weight: 600; font-size: 13px;
  border: none; cursor: pointer; transition: all 0.2s;
}
.btn-danger:hover { background: #dc2626; }

/* ─── FORM INPUTS ────────────────────────────────────────────────────────────── */
.form-input {
  width: 100%; border: 2px solid #e5e7eb;
  border-radius: 10px; padding: 11px 16px;
  font-size: 14px; color: #374151;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; background: #fff;
}
.form-input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(9,76,92,0.1);
}
.form-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }

/* ─── SECTION HEADERS ────────────────────────────────────────────────────────── */
.section-header {
  text-align: center; margin-bottom: 48px;
}
.section-header h2 {
  font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 8px;
}
.section-header p { color: #6b7280; font-size: 1rem; max-width: 500px; margin: 0 auto; }
.section-divider {
  width: 64px; height: 4px; background: var(--yellow); border-radius: 2px; margin: 12px auto 0;
}

/* ─── HERO SLIDER ────────────────────────────────────────────────────────────── */
.hero-slide {
  min-height: 480px;
  display: flex; align-items: center;
}
@media(min-width: 768px) { .hero-slide { min-height: 560px; } }

/* ─── CATEGORY CARD ──────────────────────────────────────────────────────────── */
.category-card {
  border-radius: 16px; overflow: hidden;
  background: var(--primary-xl);
  border: 2px solid transparent;
  transition: all 0.3s; cursor: pointer;
  text-align: center; padding: 24px 16px;
}
.category-card:hover {
  border-color: var(--primary); background: var(--primary);
  transform: translateY(-4px); box-shadow: 0 8px 24px rgba(9,76,92,0.2);
}
.category-card:hover * { color: #fff !important; }
.category-card .cat-icon {
  font-size: 2.5rem; margin-bottom: 10px; display: block;
}

/* ─── ADMIN STATS CARD ───────────────────────────────────────────────────────── */
.stat-card {
  background: #fff; border-radius: 16px;
  padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-left: 4px solid var(--primary);
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); }

/* ─── ADMIN TABLE ────────────────────────────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: var(--primary-xl); color: var(--primary);
  font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 12px 16px; text-align: left;
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; font-size: 14px; }
.admin-table tr:hover td { background: #fafafa; }
.admin-table tr:last-child td { border-bottom: none; }

/* ─── STATUS BADGES ──────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-processing { background: #dbeafe; color: #1e40af; }
.badge-shipped   { background: #e0e7ff; color: #3730a3; }
.badge-delivered { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-active    { background: #d1fae5; color: #065f46; }
.badge-inactive  { background: #fee2e2; color: #991b1b; }

/* ─── STAR RATING ────────────────────────────────────────────────────────────── */
.stars { color: #f59e0b; }
.stars .empty { color: #d1d5db; }

/* ─── CART ITEM ──────────────────────────────────────────────────────────────── */
.cart-item-row { transition: opacity 0.3s; }
.cart-item-row.removing { opacity: 0; }

/* ─── FEATURES ───────────────────────────────────────────────────────────────── */
.feature-card {
  text-align: center; padding: 32px 20px;
  border-radius: 16px; background: #fff;
  box-shadow: 0 2px 12px rgba(9,76,92,0.07);
  transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(9,76,92,0.14); }
.feature-card .icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--primary-xl); color: var(--primary);
  font-size: 1.6rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

/* ─── QUANTITY CONTROL ───────────────────────────────────────────────────────── */
.qty-control {
  display: inline-flex; align-items: center; border: 2px solid #e5e7eb; border-radius: 10px; overflow: hidden;
}
.qty-control button {
  width: 36px; height: 36px; background: var(--primary-xl); color: var(--primary);
  font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; transition: background 0.2s;
}
.qty-control button:hover { background: var(--primary); color: #fff; }
.qty-control input {
  width: 48px; height: 36px; border: none; text-align: center;
  font-weight: 600; font-size: 14px; outline: none;
}

/* ─── SWIPER CUSTOMIZATION ───────────────────────────────────────────────────── */
.swiper-pagination-bullet-active { background: var(--primary) !important; }
.swiper-button-next, .swiper-button-prev {
  color: var(--primary) !important;
  background: rgba(255,255,255,0.9); border-radius: 50%;
  width: 44px !important; height: 44px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 14px !important; font-weight: 900; }

/* ─── TOAST ──────────────────────────────────────────────────────────────────── */
#cart-toast { z-index: 9999; }

/* ─── ANIMATIONS ─────────────────────────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(9,76,92,0.4); } 70% { box-shadow: 0 0 0 10px rgba(9,76,92,0); } 100% { box-shadow: 0 0 0 0 rgba(9,76,92,0); } }

.animate-fade-up { animation: fadeInUp 0.5s ease forwards; }
.animate-stagger > * { opacity: 0; animation: fadeInUp 0.5s ease forwards; }
.animate-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* ─── IMAGE GALLERY ──────────────────────────────────────────────────────────── */
.thumb-img { cursor: pointer; border: 2px solid transparent; border-radius: 8px; transition: border-color 0.2s; }
.thumb-img.active, .thumb-img:hover { border-color: var(--primary); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .admin-content { margin-left: 0 !important; }
  .section-header h2 { font-size: 1.5rem; }
}
