@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Nunito+Sans:wght@400;500;600;700;800&display=swap");

/* Systeme visuel principal */
:root {
  --th-bg: #f7f1e8;
  --th-surface: #fbf7f1;
  --th-surface-soft: #efe4d6;
  --th-ink: #3f3a34;
  --th-muted: #7a6250;
  --th-line: #ddcdbb;
  --th-green: #a8b89f;
  --th-green-2: #5f755d;
  --th-honey: #c9a277;
  --th-primary: #d8896c;
  --th-primary-hover: #c9785a;
  --th-secondary: #a8b89f;
  --th-secondary-hover: #91a287;
  --th-radius: 16px;
  --th-radius-lg: 24px;
  --th-shadow: 0 8px 24px rgba(78, 67, 46, 0.12);
}

html,
body {
  background: var(--th-bg);
  color: var(--th-ink);
}

body,
input,
button,
select,
textarea {
  font-family: "Nunito Sans", "Nunito", "Avenir Next", "Segoe UI", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  color: var(--th-green-2);
  font-weight: 700;
  letter-spacing: 0.01em;
}

a {
  color: var(--th-green-2);
}

a:hover,
a:focus {
  color: var(--th-green);
  text-decoration: none;
}

.container {
  max-width: 1320px;
}

#wrapper {
  background: transparent;
}

#header {
  margin: 1rem 1rem 0;
  border: 1px solid var(--th-line);
  border-radius: var(--th-radius-lg);
  background: linear-gradient(180deg, var(--th-surface) 0%, var(--th-surface-soft) 100%);
  box-shadow: var(--th-shadow);
}

.header-main-row {
  align-items: center;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.header-top-right .menu {
  width: 100%;
}

.top-menu a[data-depth="0"] {
  color: #13110f !important;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  margin-right: 0.2rem;
}

.top-menu a[data-depth="0"]:hover,
.top-menu .current a[data-depth="0"] {
  color: #1a1815 !important;
  background: var(--th-surface-soft);
}

.header-top-right .top-menu[data-depth="0"] {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.12rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.header-top-right .top-menu[data-depth="0"] > li {
  flex: 0 0 auto;
}

.header-top-right .top-menu[data-depth="0"]::-webkit-scrollbar {
  display: none;
}

/* Une seule recherche : sous le menu */
.header-top-right #search_widget,
.header-top-right .search-widget,
.header-top-right .search-widgets {
  display: none !important;
}

.header-search-full {
  margin-top: 0;
  display: block !important;
}

.header-search-full .container {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.header-search-row {
  padding-top: 0;
  padding-bottom: 0.55rem;
}

.header-search-full #search_widget,
.header-search-full .search-widget,
.header-search-full .search-widgets {
  display: block !important;
  width: 100%;
  visibility: visible !important;
  opacity: 1 !important;
}

.header-search-full #search_widget form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-search-full #search_widget input[type="text"] {
  border-radius: 999px;
  border: 1px solid var(--th-line);
  background: var(--th-surface);
  min-height: 44px;
  padding: 0.6rem 1rem;
}

#wrapper .container,
#footer .container {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.block-category,
.featured-products,
.product-accessories,
.card,
.block-categories,
#left-column .facet,
.page-content.page-cms,
.contact-form,
.authentication-form,
.cart-summary,
.checkout-step {
  background: var(--th-surface);
  border: 1px solid var(--th-line);
  border-radius: var(--th-radius);
  box-shadow: var(--th-shadow);
}

.block-category,
.page-content.page-cms,
.contact-form,
.authentication-form,
.cart-summary,
.checkout-step {
  padding: 1.15rem;
}

.products,
.product-accessories .products {
  gap: 1.2rem;
}

.product-miniature .thumbnail-container {
  border: 1px solid #e6dcc8;
  border-radius: 14px;
  padding: 0.7rem;
  background: #fffef8;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-miniature:hover .thumbnail-container {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(96, 79, 52, 0.16);
}

.product-title a {
  color: var(--th-green-2);
  font-weight: 700;
}

.price,
.product-price,
.current-price .value {
  color: var(--th-green-2);
  font-weight: 800;
}

.btn,
button[type="submit"] {
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  padding: 0.62rem 1.25rem;
}

.btn-primary,
.btn-primary:focus,
.btn-primary:active {
  background: var(--th-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--th-primary-hover);
}

.btn-secondary,
.btn-default {
  background: var(--th-secondary);
  color: #fff;
}

.btn-secondary:hover,
.btn-default:hover {
  background: var(--th-secondary-hover);
}

.breadcrumb {
  background: transparent;
  padding: 0.8rem 0;
}

.breadcrumb li a,
.text-muted,
.facet-label a {
  color: var(--th-muted) !important;
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control {
  border-radius: 12px;
  border-color: var(--th-line);
  min-height: 42px;
  background: var(--th-surface);
}

.form-control:focus,
input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
  border-color: #c8b07f;
  box-shadow: 0 0 0 0.2rem rgba(200, 176, 127, 0.18);
}

#footer {
  background-color: var(--th-surface-soft);
  background-image: url("../footer.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.footer-container {
  margin: 2rem 1rem 1rem;
  border-radius: var(--th-radius-lg);
  background: transparent;
  border: 1px solid var(--th-line);
}

#footer .container,
#footer .row,
#footer .block_newsletter,
#footer .block-social,
#footer .links,
#footer .text-sm-center,
#footer .footer-container {
  background: transparent !important;
}

.footer-container a,
#footer a,
.footer-container .h3,
#footer .h3 {
  color: var(--th-ink) !important;
}

.footer-container a:hover,
.footer-container a:focus,
.footer-container a:active,
.footer-container a:visited,
#footer a:hover,
#footer a:focus,
#footer a:active,
#footer a:visited {
  color: var(--th-green-2) !important;
  text-decoration: none;
}

.block-social ul li a {
  border-radius: 999px;
  background: #fffef8;
  border: 1px solid #d8c8a6;
}

@media (max-width: 991.98px) {
  #header {
    margin: 0.45rem 0.45rem 0;
  }

  .header-main-row {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }
}

/* Retire la hauteur fixe du carousel */
.carousel .carousel-inner {
  height: auto !important;
}

/* Home: slider en pleine largeur, juste sous le header */
body#index #content.page-home {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body#index #carousel {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
}

body#index #carousel .carousel-inner,
body#index #carousel .carousel-item,
body#index #carousel figure {
  width: 100% !important;
}

body#index #carousel img {
  width: 100% !important;
  height: auto !important;
}

/* Masquage temporaire du carousel home */
body#index #carousel,
body#index .homeslider-container {
  display: none !important;
}
