@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #fff7f2;
  --bg-secondary: #ffe9ec;
  --card-bg: rgba(255, 255, 255, 0.85);
  --accent-primary: #ff6b81;
  --accent-secondary: #ffb347;
  --accent-third: #6bcf9b;
  --text-primary: #2a2a2a;
  --text-secondary: #6b7280;
  
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
  
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 50px;
  
  --shadow-sm: 0 4px 12px rgba(255, 107, 129, 0.05);
  --shadow-md: 0 8px 32px rgba(255, 107, 129, 0.08);
  --shadow-hover: 0 12px 40px rgba(255, 107, 129, 0.15);
}

/* =========================================
   RESET & BASE STYLES
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* =========================================
   LAYOUT & CONTAINERS
========================================= */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section-pad {
  padding: var(--spacing-desktop) 0;
}

.section-pad-sm {
  padding: 50px 0;
}

.bg-secondary {
  background-color: var(--bg-secondary);
}

.text-center {
  text-align: center;
}

.section-header {
  margin-bottom: 50px;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #ff8fa3);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 107, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 129, 0.4);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--accent-primary);
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(255, 107, 129, 0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a.nav-link {
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  padding: 5px 0;
}

.main-nav a.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
}

.main-nav a.nav-link:hover::after,
.main-nav a.nav-link.active::after {
  width: 100%;
}

.main-nav a.nav-link:hover {
  color: var(--accent-primary);
}

.nav-toggle, .nav-toggle-label {
  display: none;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 247, 242, 0.9), rgba(255, 233, 236, 0.6));
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
  animation: fadeIn 1s ease-in-out;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* =========================================
   PAGE BANNERS
========================================= */
.page-banner {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  text-align: center;
  overflow: hidden;
}

.page-banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 247, 242, 0.85);
  backdrop-filter: blur(5px);
  z-index: -1;
}

.page-banner h1 {
  font-size: 3.5rem;
  color: var(--text-primary);
}

/* =========================================
   GRID SYSTEMS
========================================= */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

/* =========================================
   CARDS (PRODUCTS & CATEGORIES)
========================================= */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 107, 129, 0.3);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-img-wrapper {
  overflow: hidden;
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.card-price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-primary);
}

/* Category Cards */
.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1 / 1;
  display: block;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 42, 42, 0.8) 0%, rgba(42, 42, 42, 0) 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.category-title {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
}

/* =========================================
   FEATURES / WHY CHOOSE US
========================================= */
.feature-box {
  text-align: center;
  padding: 30px 20px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* =========================================
   TESTIMONIALS
========================================= */
.testimonial-card {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.rating {
  color: var(--accent-secondary);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.quote {
  font-style: italic;
  margin-bottom: 20px;
}

.customer-name {
  font-weight: 700;
  color: var(--text-primary);
}

/* =========================================
   FORMS
========================================= */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(107, 114, 128, 0.2);
  border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.custom-cake-img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  height: 100%;
  object-fit: cover;
}

/* =========================================
   SHOP FILTERS
========================================= */
.shop-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-primary);
  color: #fff;
}

/* =========================================
   FOOTER
========================================= */
.main-footer {
  background: #ffffff;
  padding: 80px 0 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 20px;
  display: block;
}

.footer-desc {
  max-width: 300px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* =========================================
   LEGAL PAGES
========================================= */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 50px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  margin: 30px 0 15px;
}

.legal-content p, .legal-content li {
  margin-bottom: 15px;
}

.legal-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

/* =========================================
   ANIMATIONS
========================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 1024px) {
  .section-pad { padding: var(--spacing-tablet) 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .section-pad { padding: var(--spacing-mobile) 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .hero-content h1 { font-size: 2.5rem; }
  .page-banner h1 { font-size: 2.5rem; }
  .section-header h2 { font-size: 2rem; }
  
  /* Mobile Menu */
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
  }
  
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background: var(--text-primary);
    height: 2px;
    width: 24px;
    position: relative;
    transition: all 0.3s;
  }
  
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: '';
    position: absolute;
  }
  
  .nav-toggle-label span::before { bottom: 8px; }
  .nav-toggle-label span::after { top: 8px; }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 20px 0;
    gap: 15px;
  }
  
  .main-nav .btn-nav {
    display: block;
    margin: 0 24px 24px;
    text-align: center;
  }
  
  .nav-toggle:checked ~ .main-nav {
    max-height: 400px;
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span {
    background: transparent;
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: rotate(45deg);
    bottom: 0;
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
  }
}