/* Restoration patch for Ma Montre Enfant */

/* ── Global ── */
html {
  background-color: #fff !important;
}

body {
  background: #fff;
}

/* ── Hide JS-only overlays (main cause of broken footer area) ── */
.mfp-hide,
#main-menu,
#login-form-popup,
.mobile-sidebar,
.lightbox-content.mfp-hide {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ── HEADER TOP BAR ── */
#header,
.header-wrapper {
  background: #fff;
  position: relative;
  z-index: 100;
}

.header-main {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 8px 0;
  min-height: 80px !important;
  height: auto !important;
}

.header-main .header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.header-main .flex-left {
  justify-self: start;
}

.header-main #logo {
  justify-self: center;
  width: auto !important;
  max-width: 260px;
}

.header-main .flex-right {
  justify-self: end;
}

/* Single logo only */
picture.header-logo-dark,
.header-logo-dark {
  display: none !important;
}

#logo img {
  max-height: 72px !important;
  width: auto;
  margin: 0 auto;
}

#logo a {
  display: block;
  line-height: 0;
}

.header-nav,
.mobile-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav > li,
.mobile-nav > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-button .button.round {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #cc3333;
  color: #fff;
  border: none;
}

.header-cart-title {
  display: none;
}

/* Search field */
.header-search-form .searchform .flex-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 320px;
}

.header-search-form .search-field {
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 8px 12px;
  font-size: 14px;
  min-width: 200px;
}

.header-search-form .ux-search-submit {
  border-radius: 0 4px 4px 0;
  background: #dd9933;
  color: #fff;
  border: 1px solid #dd9933;
  padding: 0 14px;
}

.header-bg-container {
  display: none;
}

.top-divider {
  display: none;
}

/* ── HEADER NAV BAR (orange) ── */
#wide-nav.header-bottom {
  background: #dd9933 !important;
  padding: 0;
  min-height: 0 !important;
}

#wide-nav .flex-row.container {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.header-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.header-bottom-nav > li {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.header-bottom-nav > li > a,
.header-bottom-nav .nav-top-link {
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  display: inline-block;
  white-space: nowrap;
  line-height: 1.3 !important;
}

.header-bottom-nav > li > a:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Dropdown menus */
.header-bottom .sub-menu,
.header-bottom .nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 6px 0;
  margin: 0;
  list-style: none;
  z-index: 200;
}

.header-bottom .has-dropdown:hover > .sub-menu {
  display: block;
}

.header-bottom .sub-menu li {
  list-style: none;
  margin: 0;
}

.header-bottom .sub-menu a {
  color: #333 !important;
  text-transform: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  display: block;
  letter-spacing: 0;
}

.header-bottom .sub-menu a:hover {
  background: #fff8e6;
}

.icon-angle-down::before {
  content: " ▾";
  font-style: normal;
  font-size: 10px;
}

/* ── MAIN CONTENT ── */
#main {
  padding: 1.5rem 0 2.5rem;
  background: #fff;
}

#main .col-inner > p,
#main .col-inner > h2,
#main .col-inner > h3,
#main .col-inner > ul {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Product grid */
.woocommerce .products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
}

.woocommerce .products .product-small {
  margin: 0;
  float: none;
  width: auto;
}

.woocommerce .products .product-small .box {
  border: 1px solid #ececec;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.woocommerce .products .product-small .box-image {
  background: #fafafa;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.woocommerce .products .product-small .box-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.woocommerce .products .product-small .box-text {
  padding: 12px 10px 16px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.woocommerce span.price,
.woocommerce .price {
  color: #cc3333;
  font-weight: 700;
  font-size: 1.05em;
}

.woocommerce .button.product_type_external,
.woocommerce a.button {
  border-radius: 4px;
  font-size: 12px;
  padding: 8px 12px;
}

.add-to-cart-button {
  margin-top: auto;
}

/* ── FOOTER ── */
.footer-wrapper {
  margin-top: 0;
  background: #ffff99;
}

.absolute-footer {
  background: #ffff99 !important;
  padding: 24px 15px;
  text-align: center;
  border-top: 3px solid #dd9933;
}

.absolute-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.absolute-footer .footer-secondary,
.absolute-footer .footer-primary,
.absolute-footer .pull-left,
.absolute-footer .pull-right {
  float: none !important;
  width: 100%;
  text-align: center;
}

.absolute-footer .payment-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.absolute-footer .payment-icon svg {
  height: 28px;
  width: auto;
  opacity: 0.85;
}

.copyright-footer {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

.copyright-footer a {
  color: #333;
  text-decoration: underline;
}

.copyright-footer a:hover {
  color: #cc3333;
}

/* Cookie bar */
.flatsome-cookies {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid #dd9933;
  padding: 14px 20px;
  z-index: 9999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.flatsome-cookies__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.flatsome-cookies__text {
  flex: 1;
  font-size: 13px;
  color: #444;
  min-width: 200px;
}

.flatsome-cookies__buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Icon fallbacks */
.icon-menu::before { content: "☰"; font-style: normal; }
.icon-search::before { content: "⌕"; font-style: normal; }
.icon-user::before { content: "👤"; font-style: normal; font-size: 14px; }
.icon-shopping-cart::before { content: "🛒"; font-style: normal; font-size: 14px; }

/* Responsive */
.hide-for-medium { display: block; }
.show-for-medium { display: none !important; }

@media (max-width: 849px) {
  .hide-for-medium { display: none !important; }
  .show-for-medium { display: block !important; }

  .header-main .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .header-main #logo {
    max-width: 180px;
  }

  #logo img {
    max-height: 56px !important;
  }

  .woocommerce .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .header-bottom .sub-menu {
    position: static;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.15);
  }

  .header-bottom .sub-menu a {
    color: #fff !important;
    padding-left: 24px;
  }
}

@media (max-width: 549px) {
  .woocommerce .products {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    font-size: 1.4rem;
  }
}

/* ══════════════════════════════════════════
   PAGE TYPE DIFFERENTIATION
   ══════════════════════════════════════════ */

.container,
.row.category-page-row,
.shop-container,
.content-area,
.blog-wrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* ── Shop / category page banner ── */
.page-title {
  background: linear-gradient(135deg, #dd9933 0%, #b87a1f 100%);
  color: #fff;
  margin-bottom: 0;
  position: relative;
}

.page-title-bg,
.page-title .title-overlay,
.page-title .title-bg {
  display: none;
}

.page-title-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-title h1,
.page-title .shop-page-title {
  color: #fff !important;
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
}

.woocommerce-breadcrumb,
.woocommerce-breadcrumb a {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.woocommerce-breadcrumb .divider {
  opacity: 0.7;
  margin: 0 6px;
}

.woocommerce-ordering .orderby,
.woocommerce-result-count {
  color: #fff;
  font-size: 13px;
}

.woocommerce-ordering .orderby {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 4px;
  padding: 6px 10px;
}

body.woocommerce-shop #main,
body.tax-product_cat #main,
body.archive.post-type-archive-product #main {
  padding-top: 1.5rem;
}

/* Category SEO text at bottom */
.term-description {
  max-width: 900px;
  margin: 2.5rem auto 0;
  padding: 1.75rem 2rem;
  background: #fff8e6;
  border-left: 4px solid #dd9933;
  border-radius: 0 8px 8px 0;
  line-height: 1.7;
}

.term-description h2 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  color: #333;
}

.term-description h2:first-child {
  margin-top: 0;
}

/* ── Homepage hero (only on .home) ── */
body.home .home-hero {
  background: linear-gradient(135deg, #fff8e6 0%, #fff 60%);
  border: 2px solid #dd9933;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

body.home .home-hero h1 {
  font-size: 1.75rem;
  color: #333;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

body.home .home-intro {
  font-size: 1.05rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

body.home .home-category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

body.home .home-category-nav a {
  display: inline-block;
  padding: 10px 18px;
  background: #fff;
  border: 2px solid #dd9933;
  border-radius: 6px;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

body.home .home-category-nav a:hover {
  background: #dd9933;
  color: #fff;
}

body.home .home-category-nav .home-cat-cta {
  background: #cc3333;
  border-color: #cc3333;
  color: #fff;
}

body.home .home-category-nav .home-cat-cta:hover {
  background: #a82828;
  border-color: #a82828;
}

/* Section titles on homepage */
body.home .section-title-container {
  margin: 2rem 0 1.25rem;
}

body.home .section-title-main {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Guide article — homepage only */
body.home .home-guide {
  margin-top: 3rem;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
}

body.home .home-guide-title {
  text-align: center;
  color: #dd9933;
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #dd9933;
}

body.home .home-guide h2 {
  font-size: 1.15rem;
  color: #444;
  margin-top: 1.75rem;
}

body.home .home-guide h3 {
  font-size: 1rem;
  color: #555;
}

/* Limit product grids on home to feel like "highlights" */
body.home .woocommerce.columns-4 .products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ── Blog page ── */
.page-header-blog {
  background: linear-gradient(135deg, #663399 0%, #8844bb 100%);
  color: #fff;
  text-align: center;
  padding: 2rem 15px;
  margin-bottom: 2rem;
}

.page-header-blog h1 {
  color: #fff !important;
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
}

.page-header-blog p {
  margin: 0;
  opacity: 0.92;
  font-size: 1rem;
}

body.blog .blog-wrapper .row-large {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

body.blog .article-inner {
  border: 1px solid #ececec;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.blog .entry-header-text {
  padding: 1.25rem 1.5rem 0;
}

body.blog .entry-title {
  font-size: 1.35rem;
  margin: 0.5rem 0;
}

body.blog .entry-title a {
  color: #333;
  text-decoration: none;
}

body.blog .entry-title a:hover {
  color: #663399;
}

body.blog .entry-category a {
  color: #663399;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-decoration: none;
}

body.blog .entry-image img {
  width: 100%;
  height: auto;
  display: block;
}

body.blog .entry-content {
  padding: 1rem 1.5rem 1.5rem;
  line-height: 1.7;
}

/* ── Contact page ── */
body.page-id-150 .section-title-main {
  color: #dd9933;
  font-size: 1.75rem;
}

body.page-id-150 .wpcf7-form {
  max-width: 560px;
  margin: 1.5rem auto 0;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
}

body.page-id-150 .wpcf7-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #444;
}

body.page-id-150 .wpcf7-form input,
body.page-id-150 .wpcf7-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
}

body.page-id-150 .wpcf7-form input[type="submit"] {
  background: #dd9933;
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 24px;
  width: auto;
}

body.page-id-150 .wpcf7-form input[type="submit"]:hover {
  background: #c47f1a;
}

/* ── Single product page ── */
body.single-product .product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 15px;
}

body.single-product .product-gallery {
  background: #fafafa;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #ececec;
}

body.single-product .product-info.summary {
  padding: 0.5rem 0;
}

body.single-product .product_title {
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 0.75rem;
}

body.single-product .woocommerce-product-details__short-description {
  line-height: 1.7;
  color: #555;
  margin-bottom: 1rem;
}

body.single-product .woocommerce-tabs {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 15px;
}

@media (max-width: 849px) {
  body.blog .blog-wrapper .row-large {
    grid-template-columns: 1fr;
  }

  body.single-product .product-container {
    grid-template-columns: 1fr;
  }

  .page-title-inner {
    flex-direction: column;
    text-align: center;
  }

  body.home .home-category-nav a {
    font-size: 13px;
    padding: 8px 14px;
  }
}
