/* ============================================
   LUXE — Upgrade Styles
   ============================================ */

/* ---- Hero: real photo background ---- */
.hero-photo {
  background-image: url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?w=1920&h=1080&fit=crop&q=80');
  background-size: cover;
  background-position: center 30%;
}
.hero-photo .hero-image-grid { display: none; }
.hero-photo .hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(10,10,10,0.88) 0%,
    rgba(10,10,10,0.58) 50%,
    rgba(10,10,10,0.22) 100%
  );
}

/* ---- Product cards: real images ---- */
.product-img {
  overflow: hidden;
  background: #111 !important;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-img img {
  transform: scale(1.07);
}
.product-silhouette { display: none; }

/* ---- Product rating ---- */
.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 4px 0 8px;
}
.stars {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1.5px;
  line-height: 1;
}
.rating-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.02em;
}
.rating-count {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.02em;
}

/* ---- Sale badge ---- */
.badge-sale {
  background: #b33 !important;
  color: #fff !important;
}

/* ---- Sale price ---- */
.product-price-group {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.sale-price { color: #b33; }
.product-price-original {
  font-size: 13px;
  color: var(--grey);
  text-decoration: line-through;
  font-weight: 400;
  font-family: var(--font-sans);
}

/* ---- Modal rating ---- */
.modal-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.modal-rating .stars { font-size: 15px; color: var(--gold); }
.modal-rating .rating-val { font-size: 12px; font-weight: 700; color: var(--black); }
.modal-rating .rating-count { font-size: 12px; color: var(--grey); }

/* ---- Category grid: 4 columns ---- */
.category-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  text-decoration: none;
  display: block;
}
.category-img {
  position: relative;
  overflow: hidden;
}
.cat-img-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cat-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.65) 0%,
    rgba(10,10,10,0.08) 55%
  );
  transition: background 0.4s ease;
}
.category-card:hover .cat-img-real { transform: scale(1.08); }
.category-card:hover .cat-img-overlay {
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.75) 0%,
    rgba(10,10,10,0.18) 55%
  );
}
.category-info { position: relative; z-index: 1; }

/* ---- Inline search bar ---- */
.products-search-bar {
  display: flex;
  align-items: center;
  max-width: 520px;
  margin: 0 auto 28px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 2px;
  background: var(--white);
  padding: 0 16px;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.products-search-bar:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.products-search-bar > svg { color: var(--grey); flex-shrink: 0; }
.products-search-bar input {
  flex: 1;
  height: 48px;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--black);
  background: transparent;
}
.products-search-bar input::placeholder { color: rgba(0,0,0,0.32); }
.search-clear-btn {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: var(--grey);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, background 0.2s;
  cursor: pointer;
  flex-shrink: 0;
}
.search-clear-btn.visible { opacity: 1; pointer-events: all; }
.search-clear-btn:hover { background: rgba(0,0,0,0.14); color: var(--black); }

/* ---- No results state ---- */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--grey);
  grid-column: 1 / -1;
}
.no-results svg { opacity: 0.25; margin: 0 auto 16px; display: block; }
.no-results p { font-family: var(--font-serif); font-size: 22px; font-weight: 400; color: var(--black); margin-bottom: 8px; }
.no-results span { font-size: 13px; color: var(--grey); }

/* ---- Nav page links (About / Contact in desktop nav) ---- */
.nav-page-link {
  display: none;
  color: var(--grey-2) !important;
}
@media (min-width: 1024px) {
  .nav-page-link {
    display: inline-block;
    margin-left: 4px;
    transition: color 0.2s;
  }
  .nav-page-link:hover { color: var(--black) !important; }
}

/* ---- Account nav (auth buttons + logged-in dropdown) ---- */
.account-nav {
  position: relative;
  display: flex;
  align-items: center;
}
/* Login / Sign Up button pair */
.auth-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 2px;
  transition: background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.auth-btn--ghost {
  color: var(--black);
  border: 1px solid rgba(0,0,0,.25);
  background: transparent;
}
.auth-btn--ghost:hover {
  border-color: var(--black);
  background: rgba(0,0,0,.04);
}
.auth-btn--solid {
  color: #fff;
  background: var(--black);
  border: 1px solid var(--black);
}
.auth-btn--solid:hover {
  background: var(--gold);
  border-color: var(--gold);
}
/* Logged-in account menu */
.account-user {
  position: relative;
}
.account-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  padding: 6px 4px;
  text-decoration: none;
  line-height: 0;
  transition: color 0.2s;
}
.account-btn:hover { color: var(--gold); }
.account-name {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 160px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s;
  z-index: 1000;
}
.account-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.account-dropdown-item {
  display: block;
  padding: 13px 20px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.account-dropdown-item:hover {
  background: var(--gold);
  color: #fff;
}
.account-dropdown-item + .account-dropdown-item {
  border-top: 1px solid rgba(0,0,0,.07);
}

/* ---- Footer legal row: more links ---- */
.footer-legal { gap: 20px; flex-wrap: wrap; }
.footer-legal a { white-space: nowrap; }

/* ---- Social link hover colors ---- */
.social-link {
  transition: color 0.2s, transform 0.2s;
}
.social-link:hover {
  color: var(--gold) !important;
  transform: translateY(-2px);
}

/* ---- Announcement bar link ---- */
.announcement-bar a { transition: opacity 0.2s; }
.announcement-bar a:hover { opacity: 0.75; }

/* ---- Responsive: 4-col → 2-col categories ---- */
@media (max-width: 1000px) {
  .category-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .category-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .products-search-bar { margin-bottom: 20px; }
}
