/* =========================================================
   Sweet Bliss Bakery — Main Stylesheet
   ========================================================= */

:root {
  --cream: #FFF8F0;
  --pink: #F8D7DA;
  --brown: #5A3825;
  --dark-brown: #321E16;
  --gold: #C9A227;
  --white: #FFFFFF;
  --text-muted: #7A6A5E;
  --shadow-soft: 0 10px 30px rgba(50, 30, 22, 0.08);
  --shadow-hover: 0 18px 40px rgba(50, 30, 22, 0.16);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark-brown);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

section { padding: 90px 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--dark-brown);
  line-height: 1.2;
  font-weight: 700;
}

.section-tag {
  display: inline-block;
  color: var(--gold);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin-bottom: 16px;
}

.section-desc {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.section-header {
  text-align: center;
  margin: 0 auto 50px;
  max-width: 680px;
}

.section-header .section-desc { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brown);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--dark-brown);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: #b08d1f;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  border-color: var(--brown);
  color: var(--brown);
}
.btn-outline:hover {
  background: var(--brown);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-outline-light {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--brown);
}

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(50, 30, 22, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brown);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo span { color: var(--gold); font-style: italic; font-size: 1.1rem; }

.main-nav ul {
  display: flex;
  gap: 34px;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
  padding: 6px 0;
  color: var(--dark-brown);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--gold);
  transition: width 0.3s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-btn {
  position: relative;
  font-size: 1.25rem;
  color: var(--brown);
  transition: color 0.25s ease, transform 0.25s ease;
}
.icon-btn:hover { color: var(--gold); transform: translateY(-2px); }

.icon-badge {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--brown);
  transition: all 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  background: linear-gradient(120deg, var(--cream) 40%, var(--pink) 100%);
  overflow: hidden;
  padding: 60px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero-text .section-tag { animation: fadeInUp 0.8s ease both; }

.hero-text h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 34px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-image {
  position: relative;
  animation: fadeIn 1.2s ease 0.2s both;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: -26px; left: -26px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-badge .num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
}
.hero-badge .label { font-size: 0.78rem; color: var(--text-muted); }

.hero-decor {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  z-index: 0;
}
.hero-decor.d1 { width: 220px; height: 220px; background: var(--pink); top: -60px; right: 10%; }
.hero-decor.d2 { width: 140px; height: 140px; background: var(--gold); opacity: 0.15; bottom: 30px; right: 30%; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Category cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.category-card .cat-image { height: 200px; overflow: hidden; }
.category-card .cat-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.category-card:hover .cat-image img { transform: scale(1.08); }
.category-card .cat-body { padding: 24px; }
.category-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.category-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.category-card .explore-link {
  font-weight: 600; color: var(--gold); font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- About ---------- */
.about-section .container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.about-image { position: relative; }
.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  height: 480px; width: 100%; object-fit: cover;
}
.about-text p { color: var(--text-muted); margin: 18px 0 28px; }

.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.stat-item .num {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  color: var(--gold);
  font-weight: 700;
}
.stat-item .label { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.product-thumb { position: relative; height: 210px; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.1); }

.wishlist-heart {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--brown);
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}
.wishlist-heart:hover, .wishlist-heart.active { color: #d64550; transform: scale(1.1); }

.badge-sale {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
}

.quick-view-btn {
  position: absolute;
  bottom: -50px; left: 0; right: 0;
  text-align: center;
  background: rgba(50,30,22,0.85);
  color: var(--white);
  padding: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: bottom 0.3s ease;
}
.product-card:hover .quick-view-btn { bottom: 0; }

.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.product-body .desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 14px; flex: 1; }

.price-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.price-current { font-weight: 700; color: var(--brown); font-size: 1.08rem; }
.price-old { text-decoration: line-through; color: #b3a89e; font-size: 0.88rem; }

.add-cart-btn {
  width: 100%;
  padding: 11px;
  border-radius: 50px;
  background: var(--cream);
  border: 2px solid var(--brown);
  color: var(--brown);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.add-cart-btn:hover { background: var(--brown); color: var(--white); }

/* ---------- Filter tabs ---------- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.filter-tab {
  padding: 10px 26px;
  border-radius: 50px;
  border: 2px solid var(--brown);
  color: var(--brown);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  background: transparent;
  transition: all 0.3s ease;
}
.filter-tab.active, .filter-tab:hover {
  background: var(--brown);
  color: var(--white);
}

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.why-card {
  text-align: center;
  background: var(--white);
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}
.why-card:hover { transform: translateY(-8px); }
.why-icon {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--pink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  color: var(--brown);
  margin: 0 auto 18px;
}
.why-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.why-card p { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- Special offer ---------- */
.offer-section {
  background: linear-gradient(120deg, var(--brown), var(--dark-brown));
  color: var(--white);
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.offer-section h2 { color: var(--white); }
.offer-section p { color: #e7d9cd; margin: 14px 0 30px; font-size: 1.1rem; }
.offer-section .container { max-width: 700px; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p.review { color: var(--text-muted); font-style: italic; margin-bottom: 20px; }
.testimonial-user { display: flex; align-items: center; gap: 12px; }
.testimonial-user .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--pink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; color: var(--brown);
}
.testimonial-user .name { font-weight: 600; font-size: 0.92rem; }
.testimonial-user .role { color: var(--text-muted); font-size: 0.78rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-brown);
  color: #e6d9cd;
  padding: 70px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 46px;
}
.footer-logo { font-family: var(--font-heading); font-size: 1.5rem; color: var(--white); margin-bottom: 12px; }
.footer-tagline { font-size: 0.88rem; color: #c9b8aa; margin-bottom: 20px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; font-family: var(--font-body); font-weight: 600; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: #c9b8aa; font-size: 0.9rem; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid #5a4638;
  display: flex; align-items: center; justify-content: center;
  color: #e6d9cd;
  transition: all 0.25s ease;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.footer-bottom {
  border-top: 1px solid #4a382c;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #b3a094;
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--pink), var(--cream));
  padding: 70px 0 60px;
  text-align: center;
}
.page-banner h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 10px; }
.breadcrumb { color: var(--text-muted); font-size: 0.9rem; }
.breadcrumb a { color: var(--brown); font-weight: 600; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; }
.form-control {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #e6d9cd;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.94rem;
  transition: border-color 0.25s ease;
}
.form-control:focus { outline: none; border-color: var(--gold); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 0.92rem;
}
.alert-success { background: #e2f3e5; color: #2c6e3f; }
.alert-error { background: #fbe3e3; color: #a12f2f; }

/* ---------- Cards / generic panel ---------- */
.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 34px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3.4rem; color: var(--pink); margin-bottom: 20px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
