/* ============================================================
   VILLOWS DTRENDZ — Main Styles
   Brand: Purple (#4a0080) + Cream (#faf9f6)
   ============================================================ */

:root {
  --purple: #4a0080;
  --purple-light: #7b2ff7;
  --purple-pale: #f3eaff;
  --cream: #faf9f6;
  --pink: #e91e8c;
  --pink-light: #fff0f8;
  --text: #1a1a1a;
  --text-muted: #777;
  --border: #eee;
  --white: #fff;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --radius: 14px;
  --font: 'Outfit', 'Segoe UI', sans-serif;
  --header-h: 60px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideIn { from{transform:translateX(100%)} to{transform:translateX(0)} }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }

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

.header-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; height: var(--header-h);
  max-width: 1200px; margin: 0 auto;
}

.logo { height: 44px; width: auto; }
.logo-link { flex-shrink: 0; }

.search-bar {
  flex: 1; display: flex; align-items: center;
  background: #f5f0ff; border-radius: 24px;
  padding: 0 4px 0 16px; position: relative;
  max-width: 500px;
}
.search-bar input {
  flex: 1; border: none; background: none;
  font-size: 14px; outline: none; color: var(--text);
  padding: 10px 0;
}
.search-bar button {
  background: var(--purple); color: white;
  padding: 8px 16px; border-radius: 20px;
  font-size: 14px;
}

.search-suggestions {
  position: absolute; top: 100%; left: 0; right: 0;
  background: white; border-radius: 12px;
  box-shadow: var(--shadow); z-index: 100;
  display: none; overflow: hidden; margin-top: 4px;
}
.search-suggestions.show { display: block; }
.suggestion-item {
  padding: 10px 16px; font-size: 13px;
  cursor: pointer; border-bottom: 1px solid #f5f5f5;
}
.suggestion-item:hover { background: var(--purple-pale); }

.header-actions {
  display: flex; align-items: center; gap: 2px;
}
.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #3a0070;
  transition: background .18s, color .18s, transform .15s;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: #f0e8ff;
  color: #4a0080;
  transform: scale(1.08);
}
.icon-btn svg {
  display: block;
  flex-shrink: 0;
}
.badge {
  position: absolute; top: 3px; right: 3px;
  background: #e91e8c; color: white;
  font-size: 9.5px; font-weight: 800;
  min-width: 15px; height: 15px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 1.5px solid #fff;
  line-height: 1;
}

.menu-btn {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; width: 36px;
}
.menu-btn span {
  display: block; height: 2px; background: var(--text);
  border-radius: 2px; transition: .3s;
}

/* Category nav */
.cat-nav {
  border-top: 1px solid #f0e8ff;
  background: white; overflow: hidden;
}
.cat-nav-inner {
  display: flex; gap: 0; overflow-x: auto;
  padding: 0 16px; scrollbar-width: none;
  max-width: 1200px; margin: 0 auto;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-item {
  white-space: nowrap; padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: #555;
  border-bottom: 2px solid transparent;
  transition: .2s; flex-shrink: 0;
}
.cat-nav-item:hover, .cat-nav-item.active {
  color: var(--purple); border-bottom-color: var(--purple);
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero-section {
  height: 300px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f3eaff, #fff0f8);
}
.hero-placeholder {
  height: 100%; display: flex; align-items: center;
  padding: 0 32px;
}
.hero-text h1 {
  font-size: 36px; font-weight: 800; color: var(--purple);
}
.hero-text p { font-size: 16px; color: #777; margin: 8px 0 20px; }

@media(max-width:600px) {
  .hero-section { height: 200px; }
  .hero-text h1 { font-size: 24px; }
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--purple); color: white;
  padding: 12px 24px; border-radius: 24px;
  font-size: 14px; font-weight: 700; border: none;
  transition: .2s; cursor: pointer;
}
.btn-primary:hover { background: var(--purple-light); transform: translateY(-1px); }
.btn-full { width: 100%; justify-content: center; }

.btn-outline {
  display: inline-flex; align-items: center;
  border: 2px solid var(--purple); color: var(--purple);
  padding: 10px 22px; border-radius: 24px;
  font-size: 14px; font-weight: 600;
}

/* ── PANELS ──────────────────────────────────────────────────── */
.panel-section { padding: 24px 0 28px; }
.bg-cream { background: var(--cream); }
.bg-pink-light { background: var(--pink-light); }

.panel-header { text-align: center; margin-bottom: 16px; padding: 0 16px; }
.panel-header h2 {
  font-size: 22px; font-weight: 800; color: var(--text); margin: 0 0 3px;
}
.panel-header p { font-size: 13px; color: var(--text-muted); }

.scroll-row {
  display: flex; flex-wrap: nowrap; gap: 12px;
  overflow-x: auto; padding: 4px 16px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
  width: 100%; box-sizing: border-box;
}
.scroll-row::-webkit-scrollbar { display: none; }

/* ── PRODUCT CARD ────────────────────────────────────────────── */
.product-card {
  flex: 0 0 155px; min-width: 155px; max-width: 155px;
  background: white; border-radius: var(--radius);
  overflow: hidden; flex-shrink: 0;
  box-shadow: var(--shadow);
  transition: transform .18s; cursor: pointer;
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.product-card:active { transform: scale(.97); }
.product-card:hover { transform: translateY(-3px); }

.card-img {
  position: relative; width: 100%; height: 190px;
  overflow: hidden; background: #f5f0ff; flex-shrink: 0;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.product-card:hover .card-img img { transform: scale(1.05); }

.card-badge {
  position: absolute; top: 7px; left: 7px;
  background: #e6f4ea; color: #1e7e34;
  border: 1px solid #b7dfbe; font-size: 9px;
  font-weight: 700; padding: 2px 7px; border-radius: 20px;
  text-transform: uppercase;
}
.card-badge.new { background: var(--pink); color: white; border-color: var(--pink); }
.card-badge.sale { background: #ff5722; color: white; border-color: #ff5722; }

.card-disc {
  position: absolute; top: 7px; right: 7px;
  background: #2d7a2d; color: white;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 8px;
}

.card-info {
  padding: 8px 10px 10px; flex: 1;
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.card-name {
  font-size: 12px; font-weight: 600; color: var(--text);
  margin: 0 0 3px; line-height: 1.35;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.card-color {
  font-size: 10.5px; color: #9b59b6;
  margin: 0 0 5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; }
.card-fab-badge {
  font-size: 10px; font-weight: 700;
  background: var(--purple-pale); color: var(--purple);
  padding: 2px 7px; border-radius: 12px;
  border: 1px solid #c9a0f0; white-space: nowrap;
}
.card-prices { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.card-price { font-size: 13px; font-weight: 800; color: var(--text); }
.card-mrp { font-size: 11px; color: #bbb; text-decoration: line-through; }
.card-off {
  font-size: 10px; font-weight: 700;
  background: #2d7a2d; color: white;
  padding: 1px 5px; border-radius: 8px;
}

/* Out of stock overlay */
.card-oos {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
}
.card-oos span {
  background: #888; color: white;
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}

/* ── QUICK CATEGORIES ────────────────────────────────────────── */
.quick-cats {
  padding: 16px; display: flex;
  gap: 12px; overflow-x: auto;
  scrollbar-width: none;
}
.quick-cats::-webkit-scrollbar { display: none; }
.quick-cat-item {
  flex: 0 0 70px; text-align: center; cursor: pointer;
}
.quick-cat-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--purple-pale); margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; transition: .2s; overflow: hidden;
}
.quick-cat-icon:hover { background: var(--purple); }
.quick-cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.quick-cat-name { font-size: 11px; font-weight: 600; color: var(--text-muted); }

/* ── TRUST SECTION ───────────────────────────────────────────── */
.trust-section { display: none; } /* replaced by marquee */
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; max-width: 800px; margin: 0 auto;
}
.trust-item {
  text-align: center; padding: 16px 8px;
  border-radius: var(--radius); background: var(--cream);
}
.trust-item span { font-size: 28px; display: block; margin-bottom: 8px; }
.trust-item strong { font-size: 13px; display: block; }
.trust-item small { font-size: 11px; color: var(--text-muted); }

@media(max-width:600px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── FOOTER ──────────────────────────────────────────────────── */
#main-footer {
  background: #1a0030; color: #ccc;
  padding: 40px 16px 20px; margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; max-width: 1200px; margin: 0 auto 32px;
}
.footer-col h4 {
  color: white; font-size: 14px; font-weight: 700;
  margin-bottom: 12px;
}
.footer-col p, .footer-col li {
  font-size: 13px; line-height: 1.8; color: #aaa;
}
.footer-col ul { list-style: none; }
.footer-col a:hover { color: white; }
.social-links { display: flex; gap: 12px; margin-top: 12px; font-size: 20px; }
.footer-bottom {
  border-top: 1px solid #333; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #777; flex-wrap: wrap; gap: 8px;
}

@media(max-width:768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── CART SIDEBAR ────────────────────────────────────────────── */
.sidebar {
  position: fixed; right: -100%; top: 0; bottom: 0;
  width: 380px; max-width: 100vw;
  background: white; z-index: 2000;
  transition: right .3s; overflow-y: auto;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
}
.sidebar.open { right: 0; }
@media(max-width:768px) {
  .sidebar { width: 100vw; top: 0 !important; max-height: 100dvh; }
}
.sidebar-header {
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.sidebar-header h3 { font-size: 18px; font-weight: 700; }
.sidebar-header button { font-size: 20px; padding: 4px 8px; }
.cart-footer {
  padding: 16px 20px; border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-total {
  display: flex; justify-content: space-between;
  font-size: 16px; font-weight: 600; margin-bottom: 12px;
}

/* ── MOBILE MENU ─────────────────────────────────────────────── */
.mobile-menu {
  position: fixed; left: -100%; top: 0; bottom: 0;
  width: 280px; background: white; z-index: 2000;
  transition: left .3s; overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0,0,0,.15);
}
.mobile-menu.open { left: 0; }
.mobile-menu-header {
  padding: 16px 20px; background: var(--purple); color: white;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 700;
}
.mobile-menu-header button { color: white; font-size: 20px; }
.mobile-menu-links { padding: 16px 0; }
.mobile-menu-links a {
  display: block; padding: 12px 20px;
  font-size: 15px; border-bottom: 1px solid #f5f5f5;
}
.mobile-menu-links a:hover { background: var(--purple-pale); color: var(--purple); }

/* ── OVERLAY ─────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 1500;
  display: none;
}
.overlay.show { display: block; }

/* ── WHATSAPP FLOAT ──────────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 20px; right: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 999; transition: .2s;
  animation: pulse 2s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ── TOAST ───────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%); z-index: 3000;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: #1a1a1a; color: white;
  padding: 12px 20px; border-radius: 24px;
  font-size: 14px; font-weight: 600;
  animation: fadeIn .3s ease;
  white-space: nowrap;
}
.toast.success { background: #2d7a2d; }
.toast.error { background: #c0392b; }

/* ── MOBILE ──────────────────────────────────────────────────── */
@media(max-width: 768px) {
  .menu-btn { display: flex; }
  .search-bar { display: none; }
  .search-bar.mobile-show { display: flex; position: fixed; top: 60px; left: 0; right: 0; z-index: 100; border-radius: 0; padding: 8px 16px; background: white; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
  #search-toggle { display: flex; }
  .cat-nav { display: none; }
}
@media(min-width: 769px) {
  #search-toggle { display: none; }
}
