/* ==========================================================================
   TRENDLY SHOP — PAGE STYLES
   White-dominant editorial layout. Purple only on hero/footer/header.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ANNOUNCEMENT BAR
   -------------------------------------------------------------------------- */
.announcement-bar {
  background: var(--text-primary);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  position: relative;
  z-index: 100;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ticker-countdown {
  background: #C4A231;
  color: #000000;
  padding: 1px 8px;
  border-radius: 2px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   2. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-card);
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-lg);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-deep);
  flex-shrink: 0;
}

/* The gold "SHOP" text in the logo only */
.site-logo .gradient-text {
  color: var(--brand-gold);
  -webkit-text-fill-color: var(--brand-gold);
}

.logo-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

/* Search */
.header-search { flex-grow: 1; max-width: 420px; position: relative; }

.search-input-wrapper { position: relative; display: flex; align-items: center; }

.search-input-wrapper input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.search-input-wrapper input::placeholder { color: var(--text-muted); }

.search-input-wrapper input:focus {
  border-color: var(--text-primary);
  background: #FFFFFF;
  box-shadow: none;
}

.search-icon {
  position: absolute;
  left: 11px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }

.cart-btn { position: relative; }

.cart-count-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--text-primary);
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

/* --------------------------------------------------------------------------
   3. HERO SECTION — black bg with gold accents
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: #000000;
  padding: var(--space-3xl) 0;
  overflow: hidden;
  color: #fff;
}

/* Subtle gold glow top-right */
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(196,162,49,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: rgba(196,162,49,0.08);
  border: 1px solid rgba(196,162,49,0.25);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #C4A231;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.hero-title {
  color: #FFFFFF;
  margin-bottom: var(--space-md);
  line-height: 1.05;
}

.hero-title .gradient-text {
  color: #C4A231;
  -webkit-text-fill-color: #C4A231;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.60);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-lg);
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.hero-trust-item svg { color: #C4A231; }

/* Showcase card inside hero */
.hero-showcase { position: relative; }

.showcase-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.showcase-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.showcase-floating-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: #C4A231;
  color: #000000;
  padding: 5px 12px;
  border-radius: 2px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.showcase-details {
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   4. TRUST PROPS — white, flat, minimal borders
   -------------------------------------------------------------------------- */
.trust-props-section {
  padding: var(--space-xl) 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-card);
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.prop-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-right: 1px solid var(--border-card);
  transition: background var(--transition-fast);
}

.prop-card:last-child { border-right: none; }

.prop-card:hover { background: var(--bg-surface-elevated); }

.prop-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prop-title { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.prop-desc  { font-size: 0.75rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   5. CATALOG SECTION — white, clean
   -------------------------------------------------------------------------- */
.flash-sale-section {
  padding: var(--space-3xl) 0;
  background: #FFFFFF;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--text-primary);
}

.section-title-wrap h2 { margin-bottom: 4px; }

/* Category filter tabs */
.category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-tab {
  padding: 6px 16px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.category-tab:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.category-tab.active {
  background: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
}

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border-card);
  border: 1px solid var(--border-card);
}

/* --------------------------------------------------------------------------
   6. REVIEWS — light gray bg
   -------------------------------------------------------------------------- */
.reviews-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-card);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.review-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: box-shadow var(--transition-normal);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
}

.review-stars { color: #F59E0B; font-size: 0.95rem; letter-spacing: 2px; }

.review-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
}

.author-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.82rem;
}

.author-info h5 { font-size: 0.88rem; color: var(--text-primary); }
.author-info span { font-size: 0.73rem; color: var(--accent-emerald); display: flex; align-items: center; gap: 4px; }

/* --------------------------------------------------------------------------
   7. FAQ — white, clean accordion
   -------------------------------------------------------------------------- */
.faq-section {
  padding: var(--space-3xl) 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-card);
}

.faq-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border-card);
  overflow: hidden;
}

.faq-item:first-child { border-top: 1px solid var(--border-card); }

.faq-item.open { border-bottom-color: var(--border-card); }

.faq-question {
  width: 100%;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  gap: 16px;
}

.faq-icon {
  transition: transform var(--transition-fast);
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--text-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.1rem;
}

.faq-answer p { font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   8. FOOTER — black, editorial
   -------------------------------------------------------------------------- */
.site-footer {
  background: #000000;
  padding: var(--space-3xl) 0 var(--space-xl);
  color: rgba(255,255,255,0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  max-width: 280px;
  color: rgba(255,255,255,0.38);
  line-height: 1.6;
}

.footer-col h4 {
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.42);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: #FFFFFF; }

.site-footer .site-logo { color: #FFFFFF; }
.site-footer .site-logo .gradient-text {
  color: var(--brand-gold);
  -webkit-text-fill-color: var(--brand-gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.payment-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .container { padding: 0 var(--space-lg); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: var(--space-2xl); }
  .hero-subtitle { margin: 0 auto var(--space-xl); }
  .hero-ctas { justify-content: center; }
  .hero-trust-row { justify-content: center; }
  .props-grid { grid-template-columns: repeat(2, 1fr); }
  .prop-card:nth-child(2) { border-right: none; }
  .prop-card:nth-child(3) { border-top: 1px solid var(--border-card); border-right: 1px solid var(--border-card); }
  .prop-card:last-child { border-top: 1px solid var(--border-card); border-right: none; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

@media (max-width: 640px) {
  .props-grid { grid-template-columns: 1fr; }
  .prop-card { border-right: none; border-bottom: 1px solid var(--border-card); }
  .footer-grid { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .announcement-bar { gap: var(--space-md); font-size: 0.72rem; }
}

@media (max-width: 420px) {
  .products-grid { grid-template-columns: 1fr; }
}
