/* ==========================================================================
   VESTRA FASHION E-COMMERCE - CORE STYLESHEET
   Light Theme: Clean White, Lavender Accents, Purple Buttons
   ========================================================================== */

:root {
  --vestra-bg: #FFFFFF;
  --vestra-surface: #FAFAFC;
  --vestra-purple: #7C3AED;
  --vestra-purple-hover: #6D28D9;
  --vestra-purple-light: #8B5CF6;
  --vestra-purple-dark: #5B21B6;
  --vestra-lavender: #F3EEFF;
  --vestra-text: #202027;
  --vestra-text-muted: #71717A;
  --vestra-text-subtle: #A1A1AA;
  --vestra-border: #E5E5EB;
  --vestra-success: #15803D;
  --vestra-error: #DC2626;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 24px -4px rgba(124, 58, 237, 0.12);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--vestra-text);
  background-color: var(--vestra-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #7C3AED, #9333EA, #6D28D9);
  color: #FFFFFF;
  padding: 8px 16px;
  font-size: 12px;
  text-align: center;
  position: relative;
  z-index: 50;
}
.announcement-bar a {
  text-decoration: underline;
  margin-left: 6px;
  font-weight: 700;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--vestra-border);
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--vestra-purple);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}
.logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--vestra-text);
}
.logo-sub {
  font-size: 9px;
  font-weight: 700;
  color: var(--vestra-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-top: -3px;
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item {
  position: relative;
}
.nav-link {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--vestra-text);
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover, .nav-link.active {
  color: var(--vestra-purple);
  background: var(--vestra-lavender);
}
.nav-link.sale {
  color: #E11D48;
}

/* Mega Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background: #FFFFFF;
  border: 1px solid var(--vestra-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 60;
}
.nav-item:hover .dropdown-menu {
  display: block;
}
.dropdown-link {
  display: block;
  font-size: 12px;
  padding: 8px 12px;
  color: var(--vestra-text);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.dropdown-link:hover {
  background: var(--vestra-lavender);
  color: var(--vestra-purple);
}

/* Header Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input {
  width: 220px;
  padding: 8px 14px 8px 34px;
  font-size: 12px;
  border: 1px solid var(--vestra-border);
  border-radius: 999px;
  background: var(--vestra-surface);
  outline: none;
  transition: all 0.2s;
}
.search-input:focus {
  border-color: var(--vestra-purple);
  background: #FFFFFF;
  width: 260px;
}
.search-icon-btn {
  position: absolute;
  left: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--vestra-text-subtle);
}

.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--vestra-border);
  background: #FFFFFF;
  color: var(--vestra-text);
  cursor: pointer;
  transition: all 0.2s;
}
.action-btn:hover {
  background: var(--vestra-lavender);
  color: var(--vestra-purple);
  border-color: var(--vestra-purple);
}
.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--vestra-purple);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFC 50%, #F3EEFF 100%);
  border-bottom: 1px solid var(--vestra-border);
  padding: 40px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 32px;
}
.hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero-title span {
  color: var(--vestra-purple);
}
.hero-subtitle {
  font-size: 15px;
  color: var(--vestra-text-muted);
  max-width: 500px;
  margin-bottom: 24px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--vestra-purple);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}
.btn-primary:hover {
  background: var(--vestra-purple-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: #FFFFFF;
  color: var(--vestra-purple);
  border: 2px solid rgba(124, 58, 237, 0.3);
}
.btn-secondary:hover {
  background: var(--vestra-lavender);
}
.hero-metrics {
  display: flex;
  gap: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--vestra-border);
}
.metric-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--vestra-text);
}
.metric-lbl {
  font-size: 11px;
  color: var(--vestra-text-muted);
}
.hero-image-wrap {
  aspect-ratio: 4 / 4.5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid #FFFFFF;
  position: relative;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.section-desc {
  font-size: 12px;
  color: var(--vestra-text-muted);
}
.view-all-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--vestra-purple);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.view-all-link:hover {
  text-decoration: underline;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.category-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--vestra-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-card:hover img {
  transform: scale(1.05);
}
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #FFFFFF;
}
.category-card-title {
  font-size: 14px;
  font-weight: 800;
}
.category-card-subtitle {
  font-size: 11px;
  color: #E5E7EB;
}

/* Product Card */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: #FFFFFF;
  border: 1px solid var(--vestra-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}
.product-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.product-card-img-wrap {
  aspect-ratio: 3 / 4;
  background: var(--vestra-surface);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.product-card:hover .product-card-img-wrap img.primary-img {
  display: none;
}
.product-card:hover .product-card-img-wrap img.secondary-img {
  display: block;
}
.product-card-img-wrap img.secondary-img {
  display: none;
}
.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--vestra-purple);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}
.badge-angle {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--vestra-purple);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}
.product-card:hover .badge-angle {
  opacity: 1;
}
.btn-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vestra-text-muted);
  transition: all 0.2s;
  z-index: 10;
}
.btn-wishlist:hover {
  background: #FFFFFF;
  color: var(--vestra-purple);
}
.btn-wishlist.active {
  background: var(--vestra-lavender);
  color: var(--vestra-purple);
}

.product-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.product-brand {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--vestra-purple);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.product-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--vestra-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}
.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--vestra-border);
}
.price-sale {
  font-size: 15px;
  font-weight: 800;
}
.price-base {
  font-size: 11px;
  color: var(--vestra-text-subtle);
  text-decoration: line-through;
}

/* Multi-Brand Section */
.marketplace-section {
  background: var(--vestra-surface);
  border-top: 1px solid var(--vestra-border);
  border-bottom: 1px solid var(--vestra-border);
  padding: 36px 0;
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.brand-pill {
  background: #FFFFFF;
  border: 1px solid var(--vestra-border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  transition: all 0.2s;
}
.brand-pill:hover {
  background: var(--vestra-lavender);
  border-color: var(--vestra-purple);
  transform: translateY(-2px);
}
.brand-pill-name {
  font-size: 12px;
  font-weight: 800;
  display: block;
}
.brand-pill-count {
  font-size: 10px;
  color: var(--vestra-text-muted);
}

/* Coupon Banner */
.coupon-banner {
  background: linear-gradient(135deg, var(--vestra-purple) 0%, #6D28D9 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}
.coupon-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 6px;
}
.coupon-sub {
  font-size: 13px;
  color: var(--vestra-lavender);
}
.coupon-code-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--vestra-surface);
  border-top: 1px solid var(--vestra-border);
  margin-top: 48px;
}
.footer-trust-bar {
  border-bottom: 1px solid var(--vestra-border);
  background: #FFFFFF;
  padding: 20px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--vestra-lavender);
  color: var(--vestra-purple);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-title {
  font-size: 12px;
  font-weight: 700;
}
.trust-sub {
  font-size: 11px;
  color: var(--vestra-text-muted);
}

.footer-main {
  padding: 40px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 12px;
  color: var(--vestra-text-muted);
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--vestra-purple);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--vestra-text-muted);
  margin-bottom: 8px;
}

/* Mobile Menu & Drawer Styles */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--vestra-text);
  padding: 6px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}
.mobile-menu-btn:hover {
  background: var(--vestra-lavender);
  color: var(--vestra-purple);
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 290px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 1000;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  overflow-y: auto;
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--vestra-border);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav-links a {
  display: block;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--vestra-text);
  transition: all 0.2s;
}
.mobile-nav-links a:hover {
  background: var(--vestra-lavender);
  color: var(--vestra-purple);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  font-weight: 600;
  display: none;
  z-index: 10000;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .coupon-banner { flex-direction: column; text-align: center; gap: 16px; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .search-input { width: 140px; }
  .search-input:focus { width: 170px; }
  .header-inner { gap: 0.75rem; }
}
@media (max-width: 480px) {
  .search-form { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
