/* Surprise Ville Main Stylesheet v1 */
:root {
  --brand: #D42B2B;
  /* Surprise Ville Logo Red */
  --brand-dark: #b02020;
  --secondary: #4B0082;
  --hero-bg: #4B0082;
  /* Professional Dark Purple/Indigo */
  --pink: #D42B2B;
  --primary: #D42B2B;
  --text: #333;
  --gray: #666;
  --light: #f9f9f9;
  --border: #e0e0e0;
  --radius: 8px;
}

/* GLOBAL HERO BANNER STYLE */
.hero-banner {
  background: var(--hero-bg);
  padding: 40px 20px;
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
}

.hero-banner h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #fff;
}

.hero-banner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 40px 15px;
  }

  .hero-banner h1 {
    font-size: 2rem;
  }

  .hero-banner p {
    font-size: 1rem;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #fff;
  color: var(--text);
  padding-top: 110px;
}

/* Space for fixed header */

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* HEADER WRAPPER */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* TOP BAR */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 5%;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo img {
  height: 35px;
}

/* SEARCH BAR */
.search-box {
  flex: 1;
  max-width: 500px;
  margin: 0 20px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #f5f5f5;
  font-size: 0.95rem;
  transition: 0.2s;
}

.search-input:focus {
  background: #fff;
  border-color: var(--brand);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

/* RIGHT ACTIONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
}

.nav-item {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item:hover {
  color: var(--brand);
}

.cart-icon-wrap {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
}

/* SUB NAV (Categories) */
.sub-nav {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 5%;
  gap: 15px;
  font-size: 0.85rem;
  background: #fff;
  position: relative;
  z-index: 1002;
  overflow: visible;
  white-space: nowrap;
}

.sub-nav::-webkit-scrollbar {
  display: none;
}

/* Header Dropdown Styles */
.h-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #555;
  font-weight: 500;
  gap: 4px;
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.h-nav-item:hover,
.h-nav-item.active {
  color: var(--brand);
}

.h-nav-item i {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.h-nav-item:hover i {
  transform: rotate(180deg);
}

.h-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #eee;
  border-top: 2px solid var(--brand);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  display: none;
  flex-direction: column;
  padding: 8px 0;
  z-index: 1100;
}

.h-nav-item:hover .h-dropdown {
  display: flex;
}

.h-drop-link {
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #555;
  transition: 0.2s;
  display: block;
}

.h-drop-link:hover {
  background: #f9f9f9;
  color: var(--brand);
  padding-left: 25px;
  /* Slide effect */
}

/* REST OF STYLES... */
.city-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

/* ... (rest of CSS unchanged mostly) */
.city-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
}

.mobile-toggle {
  display: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Ensure Mobile Menu is hidden on desktop */
.mobile-menu-sidebar,
.mobile-menu-overlay {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .top-bar {
    padding: 0 15px;
    height: 60px;
  }

  .search-box {
    display: none;
  }

  .sub-nav {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    display: block;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 2001;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
  }

  .mobile-menu-sidebar.active {
    left: 0;
  }

  .mm-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
  }

  .mm-close {
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
  }

  .mm-user {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mm-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    object-fit: cover;
  }

  .mm-links {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
  }

  .mm-links a {
    display: block;
    padding: 12px 20px;
    color: #444;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: 0.2s;
  }

  .mm-links a:hover {
    background: #f4f4f4;
    color: var(--brand);
    border-left-color: var(--brand);
  }

  .mm-links a i {
    width: 25px;
    color: #888;
  }

  .mm-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
  }

  .mm-sub-links {
    display: none;
    background: #f9f9f9;
    border-left: 3px solid #eee;
  }

  .mm-sub-links.open {
    display: block;
    animation: slideDown 0.3s ease-out;
  }

  .mm-item-head {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-right: 20px;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-5px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* --- INDEX PAGE STYLES --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
}

/* === HERO SECTION (SLIDER) === */
.hero-container {
    width: 100%;
    position: relative;
    padding-top: 40%; /* Desktop ratio */
    overflow: hidden;
    background: #f0f0f0;
}

/* Modern aspect-ratio fallback */
@supports (aspect-ratio: 2000/800) {
    .hero-container {
        aspect-ratio: 2000 / 800;
        padding-top: 0;
        height: auto;
    }
}

.homeHeroSwiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 25px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Wavy Bottom (SVG Separator) */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

@media (max-width: 768px) {
    .hero-container {
        padding-top: 56.25%; /* 16:9 ratio for mobile */
    }
    @supports (aspect-ratio: 16/9) {
        .hero-container {
            aspect-ratio: 16 / 9;
            padding-top: 0;
        }
    }

    .hero-wave svg {
        height: 20px; /* Smaller wave on mobile */
    }
}

.hero-wave .shape-fill {
    fill: #F9F9F9;
    /* Match body background */
}

/* === FAST NAVIGATION (ICONS) === */
.quick-cats {
    margin-top: -40px;
    /* Pull up into wave area */
    position: relative;
    z-index: 10;
    padding: 0 5%;
}

.cat-scroll-wrap {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 10px;
    justify-content: flex-start;
    /* scrollable on mobile */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.cat-scroll-wrap::-webkit-scrollbar {
    display: none;
}

/* Center on desktop if few items */
@media(min-width: 900px) {
    .cat-scroll-wrap {
        justify-content: center;
    }
}

.q-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    text-decoration: none;
    transition: transform 0.2s;
}

.q-cat-item:hover {
    transform: translateY(-5px);
}

.q-cat-img-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
    border: 2px solid white;
    margin-bottom: 8px;
}

.q-cat-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    text-align: center;
}


/* === SECTION BANNERS === */
.promo-banner {
    width: 100%;
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-align: center;
    color: white;
    background: #000;
    /* Fallback */
}

.promo-banner img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 250px;
    object-fit: cover;
}

/* Placeholder Banner Styles mimicking generated images */
.banner-ph-birthday {
    background: linear-gradient(to right, #111, #333);
    padding: 40px 20px;
    border-radius: 0;
    /* Full width feel */
}

.banner-ph-anniversary {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    padding: 40px 20px;
}

.banner-ph-kids {
    background: linear-gradient(120deg, #89f7fe 0%, #66a6ff 100%);
    padding: 40px 20px;
}

/* === PRODUCT GRID & SECTIONS === */
.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 5%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin-top: 5px;
    border-radius: 2px;
}

.p-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* PRODUCT CARD - CHERISHX STYLE */
.p-card {
    background: white;
    border-radius: 15px;
    /* Softer rounded corners */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Very subtle shadow */
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.p-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.p-img-wrap {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.p-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.p-card:hover .p-img {
    transform: scale(1.05);
}

.p-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.p-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.p-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #222;
}

.p-old-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: #999;
    margin-right: 5px;
}

.p-book-btn {
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .p-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile View All Button (Hidden on Desktop) */
.mobile-view-all {
    display: none;
}

@media (max-width: 768px) {

    /* Horizontal Scroll for Products */
    .p-grid {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 15px;
        /* Space for scroll/shadow */
        scroll-snap-type: x mandatory;
        padding-right: 20px;
        /* Right padding for last item visibility */
    }

    .p-grid::-webkit-scrollbar {
        display: none;
    }

    .p-card {
        min-width: 240px;
        /* Approximately 65% width */
        flex-shrink: 0;
        scroll-snap-align: start;
        margin-bottom: 5px;
        /* Slight margin */
    }

    /* Hide Top View All Link */
    .section-header a {
        display: none;
    }

    /* Style Bottom View All Button */
    .mobile-view-all {
        display: block;
        text-align: center;
        margin-top: 10px;
    }

    .mobile-view-all a {
        display: block;
        width: 100%;
        padding: 12px 15px;
        background: #fff;
        color: var(--accent);
        /* Using accent color for button text */
        font-weight: 700;
        border: 1px solid #fad7e2;
        /* Light pink border */
        border-radius: 50px;
        /* Pill shape */
        text-decoration: none;
        /* box-shadow: 0 4px 10px rgba(0,0,0,0.05); */
    }

    .hero-container {
        aspect-ratio: 1730 / 909; /* Maintain same ratio on mobile to show fully */
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-container {
        padding: 30px 15px;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

/* === TESTIMONIALS SECTION === */
.testimonials-section {
    background: #fff;
    padding: 60px 5%;
    margin: 40px 0;
    border-radius: 20px;
}

.testimonial-heading {
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-heading h2 {
    font-size: 2.2rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 10px;
}

.testimonial-heading p {
    color: #666;
    font-weight: 500;
}

/* Video Reviews Marquee */
.video-marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-bottom: 20px;
}

.video-grid {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marquee-video 160s linear infinite;
}

.video-marquee-container:hover .video-grid,
.video-marquee-container.stopped .video-grid {
    animation-play-state: paused;
}

@keyframes marquee-video {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.video-card {
    width: 200px;
    /* Controlled width for marquee consistency */
    flex-shrink: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9/16;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.3s;
}

.video-card:hover img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Google Reviews */
.google-reviews-wrap {
    background: #fdf2f2;
    padding: 30px;
    border-radius: 15px;
}

.google-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.g-logo {
    width: 40px;
}

.g-stat {
    font-weight: 800;
    font-size: 1.2rem;
}

.g-stars {
    color: #fbbc04;
    font-size: 1.1rem;
}

/* Google Reviews Marquee */
.google-marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.g-grid {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marquee-google 240s linear infinite;
}

.google-marquee-container:hover .g-grid {
    animation-play-state: paused;
}

@keyframes marquee-google {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.g-card {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Inline Video Playback */
.video-card.playing {
    cursor: default;
}

.video-card.playing img,
.video-card.playing .play-btn {
    display: none;
}

.video-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Clean Instagram UI Masking */
.video-container.instagram-active {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.video-container.instagram-active::before,
.video-container.instagram-active::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    background: #000;
    z-index: 10;
}

.video-container.instagram-active::before {
    top: 0;
    height: 50px;
    /* Cover IG Header */
}

.video-container.instagram-active::after {
    bottom: 0;
    height: 100px;
    /* Cover IG Footer */
}

.video-container.instagram-active iframe {
    position: absolute;
    top: 0;
    left: 0;
    height: 100% !important;
}

@media (max-width: 768px) {
    .video-grid {
        animation-duration: 100s;
        /* Even slower on small screens */
    }

    .g-grid {
        animation-duration: 140s;
    }

    .video-card {
        width: 160px;
    }

    .g-card {
        width: 260px;
    }

    .video-card {
        min-width: 180px;
    }
}

/* --- HERO SLIDER STYLES --- */
.hero-slide-content {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Subtle gradient overlay for better text/logo visibility if any */
.hero-slide-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.2) 100%);
}

.hero-container {
    position: relative;
    z-index: 1;
}

/* Removed fixed height media queries for hero banner to support aspect-ratio */

/* Custom swiper bullets for more premium look */
.homeHeroSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: 0.6;
    transition: all 0.3s;
}
.homeHeroSwiper .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 5px;
    opacity: 1;
    background: #fff;
}
