/* ==========================================================================
   My Cutie Pies - Master Custom Stylesheet (Spacing, Margins, Header Clearance)
   ========================================================================== */

:root {
  --primary-color: #8366a6;
  --primary-dark: #5c3c77;
  --text-dark: #3E606B;
  --text-body: #4B4B4B;
  --bg-light: #faf7f2;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-body);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

/* Global Container Side Padding Override (Fixes 0-padding bug from fullwidth CSS) */
.container, 
.container-fluid {
  padding-left: 35px !important;
  padding-right: 35px !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .container, 
  .container-fluid {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Hero Page Banner Header Clearance & Center Alignment */
.page-banner,
.hero-slide-container {
  padding: 95px 20px 75px 20px !important;
  min-height: 260px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
  width: 100% !important;
}

.page-banner .container,
.page-banner .container-fluid,
.hero-slide-container .container,
.hero-slide-container .hero-content-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  max-width: 850px !important;
}

.page-banner h1,
.page-banner h2,
.page-banner h3,
.hero-slide-container h1,
.hero-slide-container h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 3rem !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  text-align: center !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.page-banner p,
.hero-slide-container p,
.hero-slide-container .hero-subtitle {
  font-size: 1.15rem !important;
  color: #f0e6f8 !important;
  max-width: 750px !important;
  margin: 0 auto 15px auto !important;
  line-height: 1.6 !important;
  text-align: center !important;
  width: 100% !important;
}

/* Section Margins & Vertical Rhythm */
section,
.catalog-main-section,
.events-section,
.franchise-section,
.heritage-section,
.pillars-section,
.faq-section,
.privacy-policy-section,
.branches-main-section,
.design-cake-section,
.faq-main-section,
.faq-link-banner {
  padding-top: 75px !important;
  padding-bottom: 75px !important;
  box-sizing: border-box !important;
}

/* Section Titles & Subtitles Spacing */
.section-title-large,
h1.section-title-large,
h2.section-title-large {
  text-align: center !important;
  color: #3E606B !important;
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  font-size: 2.4rem !important;
  line-height: 1.25 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.section-subtitle-sub {
  text-align: center !important;
  color: #665275 !important;
  font-weight: 400 !important;
  font-size: 1.1rem !important;
  margin-top: 0 !important;
  margin-bottom: 50px !important; /* Generous gap before cards/content */
  line-height: 1.6 !important;
}

/* Vertically Centered 1-Line Navigation Links */
.main-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.main-nav .nav-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  align-items: center !important;
  gap: 24px;
  margin: 0 !important;
  padding: 0 !important;
}

.main-nav .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1;
  padding: 10px 0;
  transition: color 0.25s ease;
}

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

/* Header Right Action Icons (Far Right Alignment) */
.header-icon-link {
  color: #381f52;
  font-size: 1.25rem;
  text-decoration: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.25s ease;
  position: relative;
}

.header-icon-link:hover {
  background-color: #f6eefc;
  color: var(--primary-color);
}

.cart-badge-count {
  position: absolute;
  top: 2px;
  right: 1px;
  background-color: #8366a6;
  color: #ffffff;
  font-size: 0.65rem;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Mega Menu Dropdown */
.mega-menu-parent {
  position: static !important;
}

.sub-menu-dropdown {
  position: absolute;
  top: 100%;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease-in-out;
  z-index: 9999;
  border-top: 2px solid var(--primary-color);
}

.dropdown-item-has-children::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
  display: block;
}

.dropdown-item-has-children:hover .sub-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.standard-dropdown {
  left: auto;
  min-width: 200px;
  padding: 10px 0;
  border-radius: 4px;
}

.standard-dropdown a {
  display: block;
  padding: 8px 20px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.standard-dropdown a:hover {
  background-color: #f6eefc;
  color: var(--primary-color);
}

.mega-menu-box {
  left: 0;
  right: 0;
  width: 100%;
  padding: 30px 40px;
  box-sizing: border-box;
}

.mega-menu-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.mega-column {
  flex: 1;
}

.mega-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #8366a6;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0e6f5;
  text-transform: capitalize;
}

.mega-column ul li a {
  display: block;
  padding: 5px 0;
  color: #444444;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.mega-column ul li a:hover {
  color: #8366a6;
  padding-left: 6px;
}

/* Card Spacing & Shadow Margins */
.category-anchor-block {
  margin-top: 55px !important;
  margin-bottom: 65px !important;
}

.catalog-product-card,
.event-article-card,
.value-box-card,
.branch-store-card,
.contact-card-box,
.franchise-spec-box,
.policy-box {
  margin-bottom: 25px !important;
  box-shadow: 0 6px 20px rgba(131, 102, 166, 0.07) !important;
  border-radius: 16px !important;
}

.btn-explore-wrapper {
  text-align: center;
  margin-top: 50px !important;
  margin-bottom: 60px !important;
}

.btn-pill-purple {
  display: inline-block;
  border-radius: 30px;
  border: none;
  padding: 14px 42px;
  background-color: #F0E5FF;
  color: #5B368C;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(91, 54, 140, 0.08);
}

.btn-pill-purple:hover {
  background-color: #8366a6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(131, 102, 166, 0.25);
}

/* Full-Width Edge-to-Edge Product Slider Layout */
.carousel-slider-container {
  position: relative;
  overflow: hidden;
  padding: 10px 45px;
  margin-top: 15px;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  gap: 18px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #eaeaea;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  color: #333333;
  font-size: 1.15rem;
  transition: all 0.25s ease;
}

.slider-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(131, 102, 166, 0.3);
}

.carousel-slider-container .slider-btn.prev { left: 0px; }
.carousel-slider-container .slider-btn.next { right: 0px; }

/* Testimonials Review Section & Enlarged Container */
.testimonials-section {
  background-color: #faf7f2;
  padding: 75px 0 !important;
  text-align: center;
}

.testimonial-card {
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 55px 70px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.04);
  position: relative;
  box-sizing: border-box;
}

.testimonial-card .slider-btn.prev { left: 20px; }
.testimonial-card .slider-btn.next { right: 20px; }

#testi-quote {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #4b4b4b;
  padding: 0 50px;
  margin: 0 auto 25px auto;
}

.testimonial-stars {
  color: #ffc107;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.testimonial-author {
  font-weight: 700;
  color: #55b253;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.testimonial-date {
  font-size: 0.88rem;
  color: #999999;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.dot-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4d4d4;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot-indicator.active {
  background: #8366a6;
  width: 12px;
  height: 12px;
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 35px 25px;
  }
  #testi-quote {
    padding: 0;
    font-size: 1rem;
  }
  .mega-menu-grid {
    flex-direction: column;
  }
  .page-banner {
    padding: 85px 15px 55px 15px !important;
  }
  .page-banner h1 {
    font-size: 2.2rem !important;
  }
}

/* Category Filter Buttons Spacing & Margins */
.menu-filter-btn {
  margin: 6px 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.menu-filter-btn i,
.menu-filter-btn svg,
.menu-filter-btn .fa,
.menu-filter-btn .fas,
.menu-filter-btn .far,
.menu-filter-btn .fab {
  margin-right: 8px !important;
  display: inline-block !important;
}

#filter-buttons-wrapper {
  gap: 12px 14px !important;
  margin-bottom: 25px !important;
}


