/* ============================================
   FASHION PALACE - Premium Shared Styles
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --primary: #1a1a2e;
  --accent: #c9a96e;
  --accent-dark: #b08d55;
  --accent-light: #f5eeda;
  --red: #dc3545;
  --green: #16a34a;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --bg: #ffffff;
  --bg-warm: #faf8f5;
  --bg-soft: #f5f3ef;
  --border: #e8e5df;
  --border-light: #f0ede8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.06);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 100px;
  --max-w: 1360px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-sans); }

/* ---- Scroll Reveal Animation ---- */
.fp-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fp-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Announcement Bar ---- */
.announcement-bar {
  background: var(--primary);
  color: #fff;
  padding: 11px 24px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
}
.topbar-left, .topbar-right { position: relative; z-index: 1; }
.topbar-left { text-align: left; }
.topbar-right { text-align: right; }
@media (max-width: 600px) {
  .announcement-bar { font-size: 10.5px; padding: 9px 12px; letter-spacing: 0.5px; }
}
.announcement-bar::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 200%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: shimmer 8s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-50%); } 100% { transform: translateX(50%); } }
.announcement-bar a { color: var(--accent); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--accent); padding-bottom: 1px; transition: opacity 0.3s; }
.announcement-bar a:hover { opacity: 0.8; }

/* ---- Header ---- */
header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  gap: 32px;
}
.logo { display: flex; align-items: center; gap: 4px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}
nav { display: flex; gap: 8px; align-items: center; }
nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.3s var(--ease);
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  position: relative;
}
nav a:hover { color: var(--text); background: var(--bg-soft); }
nav a.sale { color: var(--red); font-weight: 600; }
nav a.sale:hover { background: #fef2f2; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.header-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}
.header-actions button:hover { background: var(--bg-soft); transform: scale(1.05); }
.header-actions button:active { transform: scale(0.95); }
.cart-count {
  position: absolute;
  top: 2px;
  right: 0px;
  background: var(--accent);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  box-shadow: 0 2px 6px rgba(201,169,110,0.4);
}
.hamburger { display: none; background: none; border: none; cursor: pointer; font-size: 22px; width: 42px; height: 42px; border-radius: 50%; transition: background 0.3s; }
.hamburger:hover { background: var(--bg-soft); }

/* ---- Buttons ---- */
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 15px 40px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26,26,46,0.25); }
.btn-primary:hover::after { left: 100%; }
.btn-primary:active { transform: translateY(0); }

.btn-accent {
  background: var(--accent);
  color: var(--primary);
  padding: 15px 40px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  letter-spacing: 0.3px;
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,169,110,0.3); }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 14px 36px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.35s var(--ease);
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 24px; font-size: 12.5px; }

/* ---- Sections ---- */
.section { padding: 90px 32px; max-width: var(--max-w); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.section-subtitle {
  text-align: center;
  font-size: 15.5px;
  color: var(--text-light);
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 20px;
  border-radius: 2px;
}

/* ---- Product Cards ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border-light);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
  display: block;
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-img-wrap {
  position: relative;
  background: var(--bg-warm);
  aspect-ratio: 4/5;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red);
  color: #fff;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(220,53,69,0.3);
}
.product-info { padding: 18px 20px 20px; }
.product-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--text);
  transition: color 0.3s;
}
.product-card:hover .product-info h3 { color: var(--accent-dark); }
.product-info .desc {
  font-size: 13px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.product-info .reviews { font-size: 12.5px; color: var(--accent); margin-bottom: 10px; letter-spacing: 1px; }
.product-info .reviews span { color: var(--text-muted); font-size: 12px; letter-spacing: 0; margin-left: 4px; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-original { font-size: 13.5px; color: var(--text-muted); text-decoration: line-through; }
.price-sale { font-size: 18px; font-weight: 700; color: var(--red); }
.price-regular { font-size: 18px; font-weight: 700; color: var(--primary); }

/* ---- Quick Add Button on Product Cards ---- */
.product-quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 13px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
  cursor: pointer;
}
.product-card:hover .product-quick-add { transform: translateY(0); }

/* ---- Footer ---- */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.6);
  padding: 72px 32px 32px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.2px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.footer-col a:hover { color: var(--accent); padding-left: 4px; }
.footer-col p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.5); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 16px;
  transition: all 0.3s var(--ease);
  border: 1px solid rgba(255,255,255,0.08);
}
.social-links a:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); transform: translateY(-3px); }

/* ---- Newsletter ---- */
.newsletter-section {
  background: var(--bg-warm);
  padding: 80px 32px;
  text-align: center;
}
.newsletter-inner {
  max-width: 580px;
  margin: 0 auto;
}
.newsletter-inner h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}
.newsletter-inner p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.7;
}
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color 0.3s;
}
.newsletter-form:focus-within { border-color: var(--accent); }
.newsletter-form input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  background: transparent;
  color: var(--text);
}
.newsletter-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}
.newsletter-form button:hover { background: #2d2d4e; }

/* ---- Trust Badges ---- */
.trust-section { padding: 48px 32px; background: var(--bg); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-light);
}
.trust-icon {
  font-size: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Testimonials ---- */
.testimonials-section { padding: 100px 32px; background: var(--bg-warm); }
.testimonials-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border-light);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-text { font-size: 14.5px; line-height: 1.75; color: var(--text-light); margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--accent-dark);
}
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--text); }
.testimonial-role { font-size: 12px; color: var(--text-muted); }

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transition: bottom 0.4s var(--ease);
  box-shadow: var(--shadow-xl);
  white-space: nowrap;
  backdrop-filter: blur(10px);
}
.toast.show { bottom: 32px; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 32px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-light); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb span { color: var(--border); margin: 0 10px; }

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 100px 32px;
}
.empty-state .icon { font-size: 64px; margin-bottom: 20px; }
.empty-state h2 { font-size: 26px; margin-bottom: 10px; color: var(--primary); font-family: var(--font-display); }
.empty-state p { color: var(--text-light); margin-bottom: 28px; font-size: 15px; }

/* ---- Loading Skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--bg-warm) 50%, var(--bg-soft) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  }
  nav.show { display: flex; }
  nav a { padding: 12px 16px; border-radius: var(--radius); font-size: 14.5px; }
  nav a:hover { background: var(--bg-warm); }
  .hamburger { display: flex; align-items: center; justify-content: center; }
  .header-inner { padding: 12px 20px; }
  .section { padding: 64px 20px; }
  .section-title { font-size: 28px; }
  .section-subtitle { font-size: 14px; margin-bottom: 32px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
  .product-img-wrap { aspect-ratio: 4/5; }
  .product-info { padding: 14px 14px 16px; }
  .product-info h3 { font-size: 13px; }
  .product-info .desc { display: none; }
  .price-sale, .price-regular { font-size: 15px; }
  .product-quick-add { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .social-links { justify-content: center; }
  .trust-inner { gap: 24px; }
  .trust-item { font-size: 12px; gap: 8px; }
  .trust-icon { width: 40px; height: 40px; font-size: 18px; }
  .newsletter-form { flex-direction: column; border-radius: var(--radius); }
  .newsletter-form input { padding: 14px 20px; text-align: center; }
  .newsletter-form button { border-radius: 0 0 var(--radius) var(--radius); }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-info { padding: 10px 10px 14px; }
  .product-info h3 { font-size: 12.5px; margin-bottom: 6px; }
  .product-info .reviews { font-size: 11px; margin-bottom: 6px; }
  .price-sale, .price-regular { font-size: 14px; }
  .price-original { font-size: 12px; }
  .badge { font-size: 10px; padding: 3px 10px; top: 10px; left: 10px; }
  .section { padding: 48px 16px; }
  .section-title { font-size: 24px; }
}
