/*
Theme Name: Ma Poupée LOL
Theme URI: https://mapoupeelol.fr
Author: Ma Poupée LOL
Description: Thème custom pour mapoupeelol.fr - Site dédié aux poupées LOL Surprise
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mapoupeelol
*/

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

:root {
  --color-pink: #e91e8c;
  --color-pink-light: #fdf2f8;
  --color-pink-hover: #d11a7d;
  --color-dark: #1a1a2e;
  --color-text: #4a4a68;
  --color-text-light: #6b7280;
  --color-bg: #f8f9fa;
  --color-white: #ffffff;
  --color-turquoise: #c5e8e0;
  --max-width: 1200px;
  --header-height: 60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

a { color: var(--color-pink); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-pink-hover); }

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

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  line-height: 1.3;
  font-weight: 700;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== TOP BAR (barre rose) ========== */
.top-bar {
  background: var(--color-pink);
  padding: 8px 0;
}

.top-bar nav,
.top-bar ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-bar li a,
.top-bar a {
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 0;
  transition: opacity 0.2s;
}

.top-bar a:hover { color: var(--color-white); opacity: 0.8; }

/* ========== HEADER ========== */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo - compact like original */
.site-logo {
  flex-shrink: 0;
  line-height: 0;
}
.site-logo img,
.site-logo .custom-logo-link,
.site-logo .custom-logo-link img,
.custom-logo-link img.custom-logo {
  height: 60px !important;
  width: auto !important;
  max-width: 60px !important;
  display: block;
}

/* Main nav - fills remaining space */
.main-nav {
  flex: 1;
}
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.main-nav li {
  position: relative;
}
.main-nav li a {
  color: var(--color-dark);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  display: block;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  border-radius: 6px;
}
.main-nav a:hover {
  background: rgba(233,30,140,0.08);
  color: var(--color-pink);
}

/* Sub-menus - hidden by default, shown on hover */
.sub-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-radius: 8px;
  min-width: 200px;
  z-index: 200;
  padding: 8px 0;
  list-style: none;
  margin: 0;
}
.menu-item-has-children:hover > .sub-menu { display: block !important; }
.sub-menu li { margin: 0; }
.sub-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--color-dark);
  border-radius: 0;
}
.sub-menu a:hover { background: rgba(233,30,140,0.08); color: var(--color-pink); }

.drawer-close { display: none !important; }
.drawer-overlay { display: none; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-dark);
  padding: 8px;
}

/* ========== HERO SECTION ========== */
.hero {
  background: var(--color-turquoise);
  padding: 40px 0;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-content { flex: 1; }

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--color-dark);
}

.hero p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero-image {
  flex: 0 0 400px;
  text-align: center;
}

.hero-image img { max-height: 350px; width: auto; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-outline {
  border-color: var(--color-dark);
  color: var(--color-dark);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

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

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

/* ========== SECTIONS ========== */
.section {
  padding: 60px 0;
}

.section-alt { background: var(--color-bg); }
.section-pink { background: var(--color-pink-light); }

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-pink);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

/* ========== COLLECTIONS GRID ========== */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.collection-card {
  text-align: center;
  transition: transform 0.2s;
}

.collection-card:hover { transform: translateY(-4px); }

.collection-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.collection-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
}

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

.category-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.category-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
}

.category-card h3 {
  font-size: 16px;
  font-weight: 600;
}

/* ========== PRODUCTS GRID (WooCommerce) ========== */
.products-grid,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
}

.woocommerce ul.products li.product,
.product-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  padding: 0;
}

.woocommerce ul.products li.product:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.woocommerce ul.products li.product img,
.product-card img {
  width: 100%;
  border-radius: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px 4px;
  color: var(--color-dark);
}

.woocommerce ul.products li.product .price {
  color: var(--color-pink);
  font-weight: 700;
  font-size: 18px;
  padding: 4px 16px;
}

.woocommerce ul.products li.product .button,
.product-card .btn {
  display: inline-block;
  margin: 8px 16px 16px;
  background: var(--color-pink);
  color: var(--color-white);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.woocommerce ul.products li.product .button:hover { background: var(--color-pink-hover); }

/* ========== CTA CARDS ========== */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cta-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.cta-card h3 { font-size: 18px; margin-bottom: 8px; }
.cta-card p { font-size: 14px; color: var(--color-text-light); margin-bottom: 16px; }

/* ========== PAGE CONTENT ========== */
.page-content {
  padding: 40px 0 60px;
}

.page-content h1 { font-size: 32px; margin-bottom: 20px; }
.page-content h2 { font-size: 24px; margin: 30px 0 12px; color: var(--color-pink); }
.page-content h3 { font-size: 20px; margin: 24px 0 10px; }
.page-content p { margin-bottom: 16px; }
.page-content img { border-radius: 8px; margin: 16px 0; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--color-dark);
  color: #aaa;
  padding: 40px 0 20px;
}

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

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

.footer-col a {
  display: block;
  color: #aaa;
  font-size: 14px;
  padding: 4px 0;
}

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

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .collections-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-image { flex: 0 0 300px; }
}

/* Desktop nav reset */
@media (min-width: 769px) {
  .main-nav { display: flex !important; position: static !important; width: auto !important; height: auto !important; box-shadow: none !important; padding: 0 !important; overflow: visible !important; right: auto !important; }
  .drawer-close, .drawer-overlay { display: none !important; }
}

@media (max-width: 768px) {
  /* Top bar - scrollable on mobile */
  .top-bar nav, .top-bar ul { gap: 15px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 0 16px; }
  .top-bar li a { font-size: 11px; white-space: nowrap; }

  /* Header - logo left, hamburger right */
  .site-header .container { padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; }
  .site-logo { order: 1; }
  .mobile-toggle { order: 2; }
  .site-logo img,
  .site-logo .custom-logo-link img,
  .custom-logo-link img.custom-logo,
  .site-logo .custom-logo-link,
  img.custom-logo { height: 40px !important; width: 40px !important; max-width: 40px !important; }
  .mobile-toggle { display: block; font-size: 28px; background: none; border: none; cursor: pointer; color: var(--color-dark); padding: 8px; margin-left: auto; }

  /* Drawer menu - slides from right */
  .main-nav {
    display: block !important;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 9999;
    overflow-y: auto;
    padding: 60px 0 20px;
    transition: right 0.3s ease;
  }
  .main-nav.active {
    right: 0 !important;
  }
  .main-nav > ul {
    flex-direction: column !important;
    gap: 0 !important;
    width: 100%;
  }
  .main-nav li {
    display: block !important;
    width: 100%;
  }
  .main-nav li a {
    padding: 14px 24px !important;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0 !important;
    display: block;
    font-size: 15px !important;
  }
  .main-nav .sub-menu {
    position: static !important;
    display: none !important;
    box-shadow: none;
    border: none;
    padding: 0 0 0 20px;
    min-width: auto;
    border-radius: 0;
  }
  .main-nav .menu-item-has-children:hover > .sub-menu { display: block !important; }
  .main-nav .sub-menu a { font-size: 13px !important; padding: 10px 24px !important; color: var(--color-text); }

  /* Overlay behind drawer */
  .drawer-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
  }
  .drawer-overlay.active { display: block; }
  .drawer-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-dark);
    padding: 4px 12px;
    line-height: 1;
  }

  /* Content responsive */
  .hero .container { flex-direction: column; text-align: center; }
  .hero-image { flex: none; }
  .hero h1 { font-size: 28px; }
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-grid { grid-template-columns: 1fr; }
  .sub-menu { position: static !important; box-shadow: none; border: none; padding-left: 16px; }
}

@media (max-width: 480px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .top-bar nav { gap: 12px; }
  .top-bar a { font-size: 11px; }
}

/* ========== WOOCOMMERCE OVERRIDES ========== */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { margin-bottom: 20px; }

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  padding: 8px 14px;
  border-radius: 6px;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--color-pink);
  border-color: var(--color-pink);
}



/* ===== FALLBACK: WC default buttons ===== */
.woocommerce div.product .single_add_to_cart_button,
.woocommerce div.product a.button {
  background: var(--color-pink) !important;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
}
.woocommerce div.product .single_add_to_cart_button:hover,
.woocommerce div.product a.button:hover {
  background: var(--color-pink-hover) !important;
}

/* ========== RANK MATH BREADCRUMBS ========== */
.breadcrumbs {
  padding: 12px 0;
  font-size: 13px;
  color: var(--color-text-light);
}

.breadcrumbs a { color: var(--color-pink); }

/* ========== GUTENBERG BLOCKS ========== */
.entry-content > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.entry-content > .alignfull { max-width: none; }
.entry-content > .alignwide { max-width: calc(var(--max-width) + 200px); }

/* ========== SINGLE POUPEE PAGE ========== */
.mpl-single-product { padding: 20px 0 60px; }
.mpl-single-product .breadcrumbs { margin-bottom: 20px; }
.mpl-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.mpl-product-gallery { position: sticky; top: 120px; }
.mpl-main-image { width: 100%; border-radius: 12px; height: auto; }
.mpl-product-page-title { font-size: 28px; font-weight: 700; color: var(--color-dark); margin-bottom: 16px; line-height: 1.3; }
.mpl-price-block { font-size: 28px; font-weight: 700; color: var(--color-pink); margin-bottom: 20px; display: inline-block; background: rgba(233,30,140,0.08); padding: 10px 24px; border-radius: 10px; }
.mpl-price-block del { color: #999; font-size: 18px; font-weight: 400; margin-right: 8px; }
.mpl-current-price { color: var(--color-pink); }
.mpl-short-desc { font-size: 15px; line-height: 1.8; color: var(--color-text); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #eee; }
.mpl-cta-block { margin-bottom: 28px; }
.mpl-cta-button { display: block; width: 100%; text-align: center; background: var(--color-pink); color: #fff !important; font-size: 18px; font-weight: 700; padding: 18px 32px; border-radius: 10px; text-decoration: none; transition: background 0.2s, transform 0.1s, box-shadow 0.2s; box-shadow: 0 4px 14px rgba(233,30,140,0.3); }
.mpl-cta-button:hover { background: var(--color-pink-hover); color: #fff !important; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233,30,140,0.4); text-decoration: none; }
.mpl-cta-note { font-size: 12px; color: #999; text-align: center; margin-top: 10px; }
.mpl-characteristics { margin-bottom: 28px; background: #f9f9fb; border-radius: 12px; padding: 20px 24px; }
.mpl-characteristics h3 { font-size: 15px; font-weight: 700; color: var(--color-dark); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.mpl-characteristics ul { list-style: none; padding: 0; margin: 0; }
.mpl-characteristics li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.mpl-characteristics li:last-child { border-bottom: none; }
.mpl-char-label { font-weight: 600; color: var(--color-dark); }
.mpl-char-value { color: var(--color-text); text-align: right; }
.mpl-char-value a { color: var(--color-pink); text-decoration: none; }
.mpl-long-desc { margin-top: 40px; border-top: 1px solid #eee; padding-top: 40px; grid-column: 1 / -1; }
.mpl-long-desc h2 { font-size: 22px; margin-bottom: 16px; color: var(--color-dark); }
.mpl-long-desc p { font-size: 15px; line-height: 1.8; color: var(--color-text); margin-bottom: 16px; }

/* ========== PRODUCTS GRID (shortcode) ========== */
.mpl-products-grid { display: grid; gap: 24px; }
.mpl-cols-4 { grid-template-columns: repeat(4, 1fr); }
.mpl-cols-3 { grid-template-columns: repeat(3, 1fr); }
.mpl-cols-2 { grid-template-columns: repeat(2, 1fr); }
.mpl-product-card { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; }
.mpl-product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.mpl-product-link { text-decoration: none; color: inherit; }
.mpl-product-img img { width: 100%; border-radius: 8px; height: auto; }
.mpl-product-title { font-size: 14px; font-weight: 600; color: var(--color-dark); margin: 10px 0 6px; }
.mpl-product-price { color: var(--color-pink); font-weight: 700; font-size: 16px; display: block; margin-bottom: 8px; }
.mpl-product-price del { color: #999; font-weight: 400; font-size: 13px; margin-right: 6px; }
.mpl-product-btn { display: block; text-align: center; background: var(--color-pink); color: #fff !important; border-radius: 8px; font-weight: 600; padding: 10px 16px; margin-top: 10px; font-size: 13px; text-decoration: none; }
.mpl-product-btn:hover { background: var(--color-pink-hover); }

/* Responsive single poupee */
@media (max-width: 768px) {
  .mpl-product-layout { grid-template-columns: 1fr; gap: 20px; }
  .mpl-product-gallery { position: static; }
  .mpl-product-page-title { font-size: 22px; }
  .mpl-price-block { font-size: 22px; }
  .mpl-cols-4 { grid-template-columns: repeat(2, 1fr); }

  
  .mobile-search-toggle {
    display: flex !important;
  }
}
@media (max-width: 480px) {
  .mpl-cols-4, .mpl-cols-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ========== SEO CONTENT ========== */
.seo-content { max-width: 900px; margin: 0 auto; }
.seo-content h2 { font-size: 26px; font-weight: 700; color: var(--color-dark); margin-bottom: 16px; }
.seo-content h3 { font-size: 20px; font-weight: 600; color: var(--color-pink); margin-top: 32px; margin-bottom: 12px; }
.seo-content p { font-size: 16px; line-height: 1.8; color: var(--color-text); margin-bottom: 16px; }
.seo-content a { color: var(--color-pink); text-decoration: none; font-weight: 500; }
.seo-content a:hover { text-decoration: underline; }
.seo-content strong { color: var(--color-dark); }

/* ========== RELATED PRODUCTS ========== */
.mpl-related { margin-top: 50px; padding-top: 40px; border-top: 1px solid #eee; }
.mpl-related h2 { font-size: 22px; font-weight: 700; color: var(--color-pink); text-transform: uppercase; margin-bottom: 24px; }

/* Chevron for dropdown menus */
.main-nav .menu-item-has-children > a::after {
  content: '\25BE';
  margin-left: 4px;
  font-size: 12px;
  opacity: 0.6;
}

/* Custom SVG chevron for dropdown menus */
.main-nav .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 5px;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a1a2e' d='M0,8.057l9.52,9.507a3.507,3.507,0,0,0,4.948,0L24,8.046,21.879,5.929l-9.531,9.517a.5.5,0,0,1-.707,0L2.121,5.94Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.6;
}

/* Custom SVG arrow for Amazon buttons */
.mpl-product-btn::after,
.mpl-cta-btn::after,
.mpl-cta-button::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 6px;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M21.5,0H9V3h9.879L.026,21.853l2.121,2.121L21,5.121V15h3V2.5c0-1.378-1.121-2.5-2.5-2.5Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
@media (max-width: 480px) {
  .mpl-product-card { padding: 8px; }
  .mpl-product-title { font-size: 13px; }
  .mpl-product-price { font-size: 14px; }
  .mpl-product-btn { font-size: 12px; padding: 6px 10px; }
}

/* Header Search Bar */
.header-search {
  display: flex;
  align-items: center;
  margin-left: 20px;
  max-width: 260px;
  border: 2px solid #e91e8c;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
}
.header-search-input {
  border: none;
  outline: none;
  padding: 8px 16px;
  font-size: 14px;
  width: 100%;
  background: transparent;
  color: #333;
}
.header-search-input::placeholder {
  color: #999;
}
.header-search-btn {
  border: none;
  background: #e91e8c;
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-search-btn:hover {
  background: #c4177a;
}
.mobile-search-toggle { display: none; border: none; background: none; cursor: pointer; color: #e91e8c; padding: 8px; }


/* Mobile search bar below header */
.mobile-search-bar {
  display: none;
}
@media (max-width: 768px) {
  .desktop-search { display: none !important; }
  .mobile-search-bar {
    display: block;
    padding: 10px 16px;
    background: #fdf2f8;
  }
  .mobile-search-bar .header-search {
    display: flex;
    margin: 0;
    max-width: 100%;
    border-radius: 30px;
  }
}


/* Hero Search Bar */
.hero-search {
  display: flex;
  max-width: 500px;
  margin-top: 24px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: 16px;
  background: #fff;
  color: #333;
}
.hero-search-input::placeholder { color: #999; }
.hero-search-btn {
  border: none;
  background: var(--color-primary, #e91e8c);
  color: #fff;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.hero-search-btn:hover { background: #c4177a; }

/* Sticky Search Bar (appears on scroll) */
.sticky-search-bar {
  position: fixed;
  top: var(--header-height, 70px);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 2px solid #e91e8c;
  padding: 8px 0;
  z-index: 150;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}
.sticky-search-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-search-bar .header-search {
  max-width: 500px;
  margin: 0 auto;
}

/* Mobile: always show search below header, hide hero search */
@media (max-width: 768px) {
  .hero-search { max-width: 100%; }
  .sticky-search-bar {
    position: relative;
    top: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    border-bottom: 1px solid #eee;
    background: #fdf2f8;
  }
  .sticky-search-bar .header-search { max-width: 100%; }
}


/* Search Suggestions */
.search-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #eee;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 400;
  overflow: hidden;
  min-width: 100%;
  box-sizing: border-box;
}
.suggestion-item {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  border-bottom: 1px solid #f5f5f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: #fdf2f8; color: #e91e8c; }

/* Hide native search clear button (Chrome X) */
input[type='search']::-webkit-search-cancel-button,
input[type='search']::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
