/* ========================================
   FOOTER — Layout, typography & spacing
   ======================================== */
#site-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 72px 32px 0;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(160px, 1fr));
  gap: 48px 56px;
  align-items: start;
}

.footer-brand,
.footer-col {
  min-width: 0;
}

/* — Brand block — */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
}

.footer-tagline {
  margin-bottom: 28px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #707070;
}

/* — Social buttons — */
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #808080;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.social-btn:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

/* — Link columns — */
.footer-col h4 {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e8e8e8;
  line-height: 1;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin: 0;
}

.footer-col ul li a {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.6;
  color: #9a9a9a;
  transition: color 0.2s ease, padding-left 0.15s ease;
  text-decoration: none;
  display: block;
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}

/* — Footer bottom bar — */
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 0 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-bottom p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #606060;
}

/* Payment section removed — no longer displayed in footer */

.woocommerce nav.woocommerce-pagination,
.shop-products .page-numbers {
  margin-top: 48px;
}

.shop-products .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 0;
  padding: 0;
  list-style: none;
}

.shop-products .page-numbers li {
  list-style: none;
}

.shop-products .page-numbers a,
.shop-products .page-numbers span {
  min-width: 46px;
  height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: #111;
  color: #cfcfcf;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.shop-products .page-numbers a:hover,
.shop-products .page-numbers .current {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.shop-sidebar .widget {
  margin-bottom: 24px;
}

.shop-sidebar .widget:last-child {
  margin-bottom: 0;
}

.shop-sidebar .widget-title {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6f6f6f;
}

.shop-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: 80px;
  background: #111;
  border: 1px solid #2a2a2a;
  padding: 24px;
}

.shop-sidebar .price_slider_wrapper .ui-widget-content {
  height: 6px;
  margin-bottom: 18px;
  border: 0;
  background: #232323;
  border-radius: 999px;
}

.shop-sidebar .price_slider_wrapper .ui-slider .ui-slider-range {
  background: var(--yellow);
}

.shop-sidebar .price_slider_wrapper .ui-slider .ui-slider-handle {
  top: -7px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--yellow);
  background: var(--black);
  border-radius: 50%;
}

.shop-sidebar .price_slider_amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.shop-sidebar .price_slider_amount .button {
  order: 1;
  margin: 0;
  min-height: 50px;
  padding: 0 28px;
  background: var(--white) !important;
  color: var(--black) !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--font-display) !important;
  font-size: 1rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

.shop-sidebar .price_slider_amount .price_label {
  order: 2;
  font-family: var(--font-ui);
  font-size: 15px;
  color: #d4d4d4;
}

.shop-sidebar .price_slider_amount .price_label span {
  color: var(--white);
}

/* Footer link & social text-decoration reset */
.footer-col ul li a,
.footer-socials a {
  text-decoration: none;
}

/* Footer columns: consistent flex structure */
.footer-col {
  display: flex;
  flex-direction: column;
}

/* Payment icons: ensure consistent display */
.footer-payment .payment-icon {
  flex-shrink: 0;
}

/* ========================================
   RESPONSIVE — Tablet
   ======================================== */
@media (max-width: 1024px) {
  #site-footer {
    padding: 56px 24px 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-socials {
    gap: 8px;
  }

  .shop-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .shop-sidebar {
    position: static;
  }
}

/* ========================================
   RESPONSIVE — Mobile
   ======================================== */
@media (max-width: 768px) {
  #site-footer {
    padding: 40px 16px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-tagline {
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-col h4 {
    font-size: 12px;
    margin-bottom: 14px;
    padding-bottom: 8px;
  }

  .footer-col ul {
    gap: 14px;
  }

  .footer-col ul li a {
    font-size: 15px;
    line-height: 1.6;
    padding: 3px 0;
    min-height: 36px;
    display: flex;
    align-items: center;
  }

  .footer-col ul li a:hover {
    padding-left: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 24px 0 24px;
  }

  .footer-bottom p {
    font-size: 11px;
  }

  .footer-payment {
    justify-content: center;
    gap: 8px;
  }

  .footer-payment .payment-icon {
    width: 48px;
    height: 30px;
    padding: 4px 7px;
  }

  .shop-sidebar,
  .shop-products .products-grid {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ========================================
   PAGE CONTENT — Livraison, FAQ, CGV, etc.
   ======================================== */

/* Scope all overrides to .page-content so hero/home headings are untouched */
.page-content h2,
.page-content h3,
.page-content h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: #e8e8e8;
}

/* Section headings — readable size, clear separation */
.page-content h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  margin-top: 44px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a2a;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  margin-top: 32px;
  margin-bottom: 12px;
  color: #c8c8c8;
}

.page-content h4 {
  font-size: 0.95rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: #b0b0b0;
}

/* Body text */
.page-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.page-content p:last-child {
  margin-bottom: 0;
}

/* Bold text — lift it slightly above the base gray */
.page-content strong,
.page-content b {
  color: #e0e0e0;
  font-weight: 600;
}

/* Lists */
.page-content ul,
.page-content ol {
  margin: 0 0 18px 0;
  padding-left: 22px;
}

.page-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Tables (delivery times, etc.) */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.page-content table th {
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  border-bottom: 1px solid #2a2a2a;
}

.page-content table td {
  padding: 12px 14px;
  color: #b0b0b0;
  border-bottom: 1px solid #1e1e1e;
}

.page-content table tr:last-child td {
  border-bottom: none;
}

.page-content table td:first-child {
  color: #d0d0d0;
}

/* Links inside content */
.page-content a {
  color: #c8c8c8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  color: #fff;
}

/* Responsive: mobile */
@media (max-width: 768px) {
  .page-content h2 {
    font-size: 1.1rem;
    margin-top: 36px;
    margin-bottom: 12px;
  }

  .page-content h3 {
    font-size: 1rem;
    margin-top: 28px;
  }

  .page-content table th,
  .page-content table td {
    padding: 10px 10px;
    font-size: 13px;
  }
}

/* ========================================
   SEARCH OVERLAY
   ======================================== */

#header-search {
  /* Override inline styles — becomes a full-screen overlay */
  position: fixed !important;
  inset: 0 !important;
  z-index: 3000 !important;
  background: rgba(0, 0, 0, 0.96) !important;
  border-top: none !important;
  padding: 0 !important;

  /* Flex centering (JS sets display:flex on open) */
  align-items: center;
  justify-content: center;
}

/* Inner box that holds the form */
#header-search .search-form,
#header-search form[role="search"],
#header-search form {
  width: min(640px, 88vw);
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid #2a2a2a;
  background: #111;
}

/* Text input */
#header-search input[type="search"],
#header-search input[name="s"] {
  flex: 1;
  height: 56px;
  padding: 0 20px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-ui);
  font-size: 16px;
  color: #e8e8e8;
  letter-spacing: 0.02em;
}

#header-search input[type="search"]::placeholder,
#header-search input[name="s"]::placeholder {
  color: #555;
}

/* Submit button */
#header-search input[type="submit"],
#header-search button[type="submit"] {
  height: 56px;
  padding: 0 24px;
  background: var(--white);
  color: var(--black);
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease;
  white-space: nowrap;
}

#header-search input[type="submit"]:hover,
#header-search button[type="submit"]:hover {
  background: #e0e0e0;
}

/* Hint text below input */
#header-search::after {
  content: "Appuyez sur Échap pour fermer";
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a3a3a;
  pointer-events: none;
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 768px) {
  #header-search form {
    flex-direction: column;
    border: none;
    background: transparent;
    gap: 12px;
  }

  #header-search input[type="search"],
  #header-search input[name="s"] {
    height: 52px;
    background: #111;
    border: 1px solid #2a2a2a;
    width: 100%;
    font-size: 16px; /* Prevents iOS auto-zoom */
  }

  #header-search input[type="submit"],
  #header-search button[type="submit"] {
    height: 50px;
    width: 100%;
  }

  #header-search::after {
    bottom: 24px;
    font-size: 10px;
  }
}

/* ========================================
   MY ACCOUNT PAGE (WooCommerce)
   ======================================== */

/* Page layout: sidebar nav + content side by side */
.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* — Navigation sidebar — */
.woocommerce-MyAccount-navigation {
  position: sticky;
  top: 100px;
}

.woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #1e1e1e;
}

.woocommerce-MyAccount-navigation ul li {
  margin: 0;
  border-bottom: 1px solid #1e1e1e;
}

.woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.15s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover {
  color: #e8e8e8;
  background: #111;
  padding-left: 22px;
}

/* Active / current item */
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--active a {
  color: #e8e8e8;
  background: #111;
  border-left: 3px solid var(--yellow, #F5C400);
  padding-left: 15px;
}

/* Logout link — visually separated */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
  border-top: 1px solid #2a2a2a;
  margin-top: 4px;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #555;
  font-size: 11px;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  color: #e44;
  background: transparent;
  padding-left: 18px;
}

/* — Main content area — */
.woocommerce-MyAccount-content {
  min-width: 0; /* prevent overflow in grid */
}

/* Dashboard welcome text */
.woocommerce-MyAccount-content p {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.75;
  color: #888;
  margin-bottom: 16px;
}

.woocommerce-MyAccount-content p a {
  color: #c8c8c8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* — Orders table — */
.woocommerce-orders-table,
.woocommerce-account table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.woocommerce-orders-table th,
.woocommerce-account table.shop_table th {
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #555;
  border-bottom: 1px solid #2a2a2a;
}

.woocommerce-orders-table td,
.woocommerce-account table.shop_table td {
  padding: 14px 14px;
  color: #999;
  border-bottom: 1px solid #1a1a1a;
  vertical-align: middle;
}

.woocommerce-orders-table tbody tr:last-child td,
.woocommerce-account table.shop_table tbody tr:last-child td {
  border-bottom: none;
}

/* Order number — make it stand out */
.woocommerce-orders-table .order-number a,
.woocommerce-account table.shop_table .order-number a {
  color: #e8e8e8;
  font-weight: 600;
  text-decoration: none;
}

/* Status badges */
.woocommerce-orders-table .order-status,
.woocommerce-account mark.order-status {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #1a1a1a;
  color: #888;
  border-radius: 2px;
}

/* View order button */
.woocommerce-orders-table .woocommerce-button,
.woocommerce-account .button,
.woocommerce-account .woocommerce-Button {
  display: inline-block;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8e8e8;
  background: transparent;
  border: 1px solid #2a2a2a;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.woocommerce-account .button:hover,
.woocommerce-account .woocommerce-Button:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* Section headings inside account */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8e8e8;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e1e1e;
}

/* Form fields in account */
.woocommerce-account .woocommerce-form-row input.input-text,
.woocommerce-account .woocommerce-address-fields input,
.woocommerce-account .woocommerce-address-fields select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: #111;
  border: 1px solid #2a2a2a;
  color: #e8e8e8;
  font-family: var(--font-ui);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.woocommerce-account .woocommerce-form-row input.input-text:focus,
.woocommerce-account .woocommerce-address-fields input:focus {
  border-color: #555;
}

.woocommerce-account .woocommerce-form-row label,
.woocommerce-account .woocommerce-address-fields label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
}

/* — Mobile — */
@media (max-width: 768px) {
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .woocommerce-MyAccount-navigation {
    position: static;
  }

  .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .woocommerce-MyAccount-navigation ul li {
    border-right: 1px solid #1e1e1e;
    border-bottom: 1px solid #1e1e1e;
  }

  .woocommerce-MyAccount-navigation ul li a {
    padding: 12px 14px;
    font-size: 10px;
  }

  .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
    grid-column: 1 / -1;
    text-align: center;
    border-top: 1px solid #2a2a2a;
    margin-top: 0;
  }

  .woocommerce-orders-table th:nth-child(n+4),
  .woocommerce-orders-table td:nth-child(n+4) {
    display: none; /* hide extra columns on mobile */
  }
}
