/* ============================================
   House of Sarai — Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --pink: #F2C4CE;
  --pink-dark: #E8A6B5;
  --ivory: #FFFFF0;
  --cream: #FFF8E7;
  --dark: #2C2C2C;
  --dark-light: #555;
  --gold: #C9A96E;
  --gold-dark: #B8944E;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--dark);
  background-color: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.4);
}

.btn-order {
  background-color: var(--dark);
  color: var(--white);
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.85rem;
}

.btn-order:hover {
  background-color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--cream);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity var(--transition);
}

.brand-link:hover {
  opacity: 0.8;
}

.logo {
  height: 56px;
  width: 56px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2.5px solid var(--gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--dark-light);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--dark);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--pink) 100%);
  padding: 100px 0 120px;
  text-align: center;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.hero-tagline {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 3.2rem;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--dark-light);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ============================================
   Shop / Filter Section
   ============================================ */
.shop {
  padding: 80px 0 100px;
  background-color: var(--ivory);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--dark-light);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 28px;
  border: 1.5px solid var(--pink-dark);
  border-radius: 50px;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  background-color: var(--pink);
  border-color: var(--pink);
}

.filter-btn.active {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* ============================================
   Product Grid
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-card.hidden {
  display: none;
}

.product-gallery {
  padding: 0 0 14px;
}

.product-img {
  position: relative;
  overflow: hidden;
  background-color: var(--cream);
  aspect-ratio: 1;
}

.product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.product-image.primary {
  opacity: 1;
}

.product-image.secondary {
  opacity: 0;
}

.product-card:hover .product-image.primary {
  opacity: 0;
}

.product-card:hover .product-image.secondary {
  opacity: 1;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

/* When a thumbnail is clicked, keep the primary visible until the user leaves the card */
.product-card.clicked .product-image.primary {
  opacity: 1 !important;
}
.product-card.clicked .product-image.secondary {
  opacity: 0 !important;
}

.product-card.clicked .product-image {
  transition: none;
}

.product-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 14px 0;
}

.thumb {
  width: 48px;
  height: 48px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.thumb:hover,
.thumb.active {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ============================================
   About Section
   ============================================ */
.about {
  padding: 80px 0 100px;
  background-color: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.about-card {
  text-align: center;
  padding: 40px 28px;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--dark-light);
  line-height: 1.7;
}

/* Trust Stats */
.trust-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--dark-light);
  margin-top: 4px;
}

/* subtle divider used in About section */
.about-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent);
  margin: 24px 0 36px;
  border-radius: 2px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--gold);
}

.footer-col ul li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Inline contact logos shown before text */
.footer-inline-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .trust-stats {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .thumb {
    width: 42px;
    height: 42px;
  }

  .filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 20px;
    font-size: 0.8rem;
  }

  .shop {
    padding: 60px 0 80px;
  }

  .about {
    padding: 60px 0 80px;
  }

  .footer-col ul li a {
    font-size: 0.88rem;
    gap: 7px;
  }

  .footer-inline-icon {
    width: 13px;
    height: 13px;
  }

  .footer {
    padding: 64px 0 20px;
  }
}
