/*
Theme Name: Elixor
Theme URI: https://elixorpeptides.com
Description: Elixor Peptides storefront for WooCommerce. Port of the validated Shopify design (elx-* sections). Research use only.
Version: 0.3.8
Requires at least: 6.4
Requires PHP: 8.0
WC requires at least: 8.0
Text Domain: elixor
*/

/* Base: the section styles (assets/css/elx-sections.css) are copied as is from the Shopify theme.
   This file only holds what Shopify's Horizon theme provided around them. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: #2B1B0E; font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: #2B1B0E; }
a:hover { color: #8A5527; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #FFFFFF; }

/* Header: as in the homepage mockup (design/maquette-accueil) */
.elx-header { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid #EFE3D8; }
.elx-header__bar { max-width: 1360px; margin: 0 auto; padding: 14px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.elx-header__left { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.elx-header__logo { display: flex; align-items: center; }
.elx-header__logo img { height: 32px; width: auto; display: block; }
.elx-nav { display: flex; flex-wrap: wrap; gap: 32px; font-size: 14px; font-weight: 500; }
.elx-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.elx-nav li { position: relative; }
.elx-nav a { text-decoration: none; }
.elx-nav .sub-menu { display: none; position: absolute; top: 100%; left: -16px; z-index: 60; min-width: 240px; flex-direction: column; gap: 0; padding: 10px 0; background: #FFFFFF; border: 1px solid #EFE3D8; border-radius: 14px; box-shadow: 0 20px 40px -24px rgba(43,27,14,.35); }
.elx-nav .sub-menu a { display: block; padding: 8px 16px; font-weight: 400; }
.elx-nav li:hover > .sub-menu, .elx-nav li:focus-within > .sub-menu { display: flex; }
.elx-header__right { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 500; }
.elx-header__right a { text-decoration: none; }
.elx-header__menu-btn { display: none; appearance: none; background: none; border: 0; padding: 6px; color: #2B1B0E; cursor: pointer; }
@media (max-width: 749px) {
  .elx-header__bar { padding: 12px 20px; }
  .elx-header__logo img { height: 24px; }
  .elx-header__left { gap: 16px; }
  .elx-header__menu-btn { display: inline-flex; }
  .elx-nav { display: none; width: 100%; order: 3; }
  .elx-header.is-open .elx-nav { display: block; }
  .elx-nav ul { flex-direction: column; gap: 14px; padding: 8px 0 12px; }
  .elx-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 6px 0 0 12px; min-width: 0; }
  .elx-header__signin { display: none; }
}

/* Generic pages (About, FAQ, policies…) */
.elx-page { max-width: 860px; margin: 0 auto; padding: 72px 40px 104px; }
.elx-page__title { margin: 0 0 32px; font-family: var(--elx-tight); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }
.elx-page__content h2 { margin: 40px 0 14px; font-family: var(--elx-tight); font-weight: 400; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.elx-page__content p, .elx-page__content ul, .elx-page__content ol { margin: 0 0 14px; }
.elx-page__content li { margin-bottom: 6px; }
.elx-page__content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; background: #F9EEE6; border-radius: 16px; overflow: hidden; }
.elx-page__content th, .elx-page__content td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #EADBCD; }
.elx-page__content hr { border: 0; border-top: 1px solid #EADBCD; margin: 40px 0 20px; }
@media (max-width: 749px) { .elx-page { padding: 48px 20px 72px; } }
/* Blog article (single.php, 0.3.6) */
.elx-post__back { display: inline-block; margin-bottom: 20px; font-size: 14px; }
.elx-post .elx-page__title { margin-bottom: 12px; }
.elx-post__meta { margin: 0 0 28px; font-size: 14px; }
.elx-post__media { margin: 0 0 32px; border-radius: 16px; overflow: hidden; background: #F4E3D6; }
.elx-post__media img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }
.elx-post .elx-page__content h3 { margin: 24px 0 8px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.elx-post .elx-page__content table { display: block; overflow-x: auto; }
.elx-post .elx-page__content td, .elx-post .elx-page__content th { vertical-align: top; }


/* Contact form (inc/contact.php) */
.elx-contact { margin: 32px 0 0; padding: 32px; background: #F9EEE6; border-radius: 24px; scroll-margin-top: 140px; }
.elx-contact__form { display: grid; gap: 18px; }
.elx-contact__field { display: grid; gap: 6px; margin: 0 !important; }
.elx-contact__field label { font-size: 14px; font-weight: 500; }
.elx-contact__field input, .elx-contact__field textarea { width: 100%; box-sizing: border-box; padding: 14px 16px; font: inherit; font-size: 16px; color: #2B1B0E; background: #FFFFFF; border: 1px solid #DCC8B6; border-radius: 12px; }
.elx-contact__field textarea { resize: vertical; min-height: 140px; }
.elx-contact__field input:focus, .elx-contact__field textarea:focus { outline: 2px solid #8A5527; outline-offset: 1px; border-color: #8A5527; }
.elx-contact__field.is-error input, .elx-contact__field.is-error textarea { border-color: #A3261B; }
.elx-contact__msg, .elx-contact__error { color: #A3261B; font-size: 14px; }
.elx-contact__ok { padding: 14px 16px; background: #FFFFFF; border-radius: 12px; font-weight: 500; }
.elx-contact__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.elx-contact .elx-btn { justify-self: start; }
@media (max-width: 749px) { .elx-contact { padding: 20px; } .elx-contact .elx-btn { justify-self: stretch; } }
