/* Jabador-inspired layout for CRÉATION BY KHADIJA (v1.8.0). Loaded after theme.css. */
:root { --jb-ink: #1c1a17; --jb-mist: #f5f2ec; --jb-line: #e4ddd0; --jb-muted: #6f675b; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--jb-line); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.site-header .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px clamp(16px, 4vw, 48px); }
.site-header .brand { justify-self: center; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); }
.site-header .brand-logo { width: 52px; height: 52px; object-fit: contain; }
.site-header .header-actions { justify-self: start; display: flex; gap: 6px; }
.site-header .header-start { justify-self: end; display: flex; align-items: center; gap: 8px; }
.site-header .icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; position: relative; background: none; border: 0; color: var(--jb-ink); cursor: pointer; }
.site-header .icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.site-header .header-count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 16px; height: 16px; border-radius: 8px; background: var(--gold); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 700; }
.site-header .header-menu-label { font-size: 13px; letter-spacing: .04em; }
.site-header .main-nav { display: flex; justify-content: center; gap: clamp(14px, 2.6vw, 36px); padding: 0 16px 12px; flex-wrap: wrap; }
.site-header .main-nav a { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--jb-ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-header .main-nav a:hover { border-color: var(--gold); }
@media (max-width: 860px) {
  .site-header .header-inner { grid-template-columns: auto 1fr auto; }
  .site-header .brand { justify-self: start; }
  .site-header .header-menu-label { display: none; }
  .site-header .main-nav { display: none; }
  .site-header .main-nav.is-open { display: flex; flex-direction: column; align-items: start; padding: 8px 20px 16px; border-top: 1px solid var(--jb-line); }
}
.announcement-bar { background: var(--green); color: #fff; }
.announcement-inner { font-size: 12px; letter-spacing: .05em; }

/* Shared */
.jb-wrap { max-width: 1280px; margin-inline: auto; padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 48px); }
.jb-section { background: #fff; }
.jb-section--mist { background: var(--jb-mist); }
.jb-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.jb-head h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); margin: 6px 0 8px; color: var(--jb-ink); }
.jb-head p { color: var(--jb-muted); margin: 0; max-width: 60ch; }
.jb-kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.jb-link { color: var(--green); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.jb-empty { color: var(--jb-muted); text-align: center; padding: 24px 0; }

/* Full-screen hero */
.jb-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.jb-hero__media, .jb-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.jb-hero__media img { object-fit: cover; object-position: center top; }
.jb-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,18,.78) 0%, rgba(10,22,18,.25) 55%, rgba(10,22,18,.1) 100%); }
.jb-hero__content { position: relative; z-index: 1; max-width: 680px; padding: clamp(24px, 6vw, 80px); margin-inline-start: 0; }
.jb-hero__label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
.jb-hero h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; margin: 14px 0 18px; }
.jb-hero h1 em { color: var(--gold); font-style: italic; }
.jb-hero p { font-size: clamp(15px, 1.4vw, 18px); max-width: 52ch; opacity: .92; }
.jb-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Bento collections */
.jb-bento { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, minmax(200px, 30vh)); gap: 14px; }
.jb-bento__tile { position: relative; overflow: hidden; border-radius: 6px; background: #ddd; }
.jb-bento__tile--big { grid-row: span 2; }
.jb-bento__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.jb-bento__tile:hover img { transform: scale(1.04); }
.jb-bento__caption { position: absolute; inset-inline-start: 0; bottom: 0; padding: 14px 18px; background: linear-gradient(to top, rgba(0,0,0,.55), transparent); color: #fff; width: 100%; box-sizing: border-box; }
.jb-bento__caption span { font-family: Georgia, serif; font-size: clamp(18px, 2vw, 26px); }
.jb-bento__tile:nth-child(n+2) { grid-column: auto; }
@media (max-width: 720px) {
  .jb-bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 180px; }
  .jb-bento__tile--big { grid-column: span 2; grid-row: span 1; }
}

/* Best-sellers carousel */
.jb-carousel__controls { display: flex; gap: 8px; }
.jb-carousel__btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--jb-line); background: #fff; font-size: 22px; cursor: pointer; color: var(--jb-ink); }
.jb-carousel__btn:hover { border-color: var(--gold); }
.jb-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 26vw, 280px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.jb-carousel__track::-webkit-scrollbar { display: none; }
.jb-card { scroll-snap-align: start; }
.jb-card__media { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: var(--jb-mist); }
.jb-card__media img { width: 100%; height: 100%; object-fit: cover; }
.jb-card__body { padding-top: 12px; display: grid; gap: 4px; }
.jb-card__title { color: var(--jb-ink); text-decoration: none; font-size: 15px; }
.jb-card__price { color: var(--green); font-weight: 600; }

/* Story banner tweaks */
#brand-story .craft-banner { border-radius: 6px; }

/* Size guide */
.jb-size { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.jb-size__copy p { color: var(--jb-muted); }
.jb-size__tool { background: #fff; border: 1px solid var(--jb-line); border-radius: 6px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.jb-size__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.jb-size__fields label { display: grid; gap: 6px; font-size: 14px; color: var(--jb-muted); }
.jb-size__fields input { padding: 12px; border: 1px solid var(--jb-line); border-radius: 4px; font: inherit; }
.jb-size__result { font-weight: 600; color: var(--green); margin: 0; min-height: 1.4em; }
.jb-size__hint { color: var(--jb-muted); margin: 0; }
@media (max-width: 860px) { .jb-size { grid-template-columns: 1fr; } }

/* Reviews */
.jb-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.jb-review { margin: 0; padding: 28px; background: var(--jb-mist); border-radius: 6px; }
.jb-review blockquote { margin: 0 0 14px; font-family: Georgia, serif; font-size: 17px; line-height: 1.55; color: var(--jb-ink); }
.jb-review figcaption { font-size: 13px; color: var(--jb-muted); letter-spacing: .04em; }

/* Le Mag — true YouCan page links only; no decorative substitute articles. */
.jb-mag { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.jb-mag__item { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.jb-mag__media { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #e8e1d6; }
.jb-mag__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.jb-mag__media:hover img, .jb-mag__media:focus-visible img { transform: scale(1.035); }
.jb-mag__media:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.jb-mag__category { margin: 14px 0 0; color: var(--gold); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.jb-mag h3 { font-family: Georgia, serif; font-weight: 400; font-size: 22px; line-height: 1.3; margin: 8px 0; }
.jb-mag h3 a { color: var(--jb-ink); text-decoration: none; }
.jb-mag h3 a:hover, .jb-mag h3 a:focus-visible { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.jb-mag__excerpt { color: var(--jb-muted); margin: 0 0 12px; }
.jb-mag__read-more { color: var(--green); font-size: 13px; font-weight: 700; margin-top: auto; padding-top: 10px; border-bottom: 1px solid var(--gold); }
.jb-mag__read-more:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.jb-card__placeholder { min-height: 100%; display: grid; place-items: center; padding: 12px; color: var(--jb-muted); font-size: 12px; text-align: center; }

/* Footer */
.site-footer .footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 48px); max-width: 1280px; margin-inline: auto; }
.site-footer .footer-brand { display: grid; gap: 14px; }
.site-footer .footer-note { color: var(--jb-muted); margin: 0; }
.site-footer .footer-links { display: grid; gap: 10px; align-content: start; }
.site-footer .footer-links strong { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.site-footer .footer-links a { color: inherit; text-decoration: none; opacity: .85; }
.site-footer .footer-links a:hover { opacity: 1; text-decoration: underline; }
.site-footer .footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px clamp(16px, 4vw, 48px); border-top: 1px solid var(--jb-line); font-size: 13px; color: var(--jb-muted); }
@media (max-width: 860px) { .site-footer .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .footer-top { grid-template-columns: 1fr; } }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Overflow safety: grid/flex children must be allowed to shrink on small screens */
.jb-wrap, .jb-wrap > *, .jb-head > *, .jb-size > *, .jb-size__tool { min-width: 0; max-width: 100%; box-sizing: border-box; }
.jb-carousel { width: 100%; min-width: 0; overflow: hidden; }
.jb-carousel__track { width: 100%; max-width: 100%; }
.jb-size { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .jb-size { grid-template-columns: minmax(0, 1fr); } }
.jb-size__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.jb-size__fields input { width: 100%; min-width: 0; box-sizing: border-box; }

/* ===== Pages: collection, product, cart (v1.9.0) ===== */
.page-heading { background: var(--jb-mist); padding: clamp(36px, 6vw, 64px) clamp(16px, 4vw, 48px); text-align: center; }
.page-heading h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(30px, 4vw, 48px); }
.page-heading p { color: var(--jb-muted); max-width: 60ch; margin: 10px auto 0; }

/* Collection grid: squarer cards, quieter hover, like the reference listing */
.product-card { border-radius: 4px; border-color: var(--jb-line); }
.product-card:hover { transform: none; box-shadow: none; }
.product-card:hover .product-card__image img { transform: scale(1.03); }
.product-card__image img { transition: transform .5s ease; }
.product-grid { gap: clamp(12px, 2vw, 24px); }

/* Product detail: sticky gallery on desktop, comfortable spacing */
.product-detail { gap: clamp(24px, 4vw, 56px); }
.product-gallery { border-radius: 6px; }
@media (min-width: 861px) {
  .product-detail > .product-gallery { position: sticky; top: 96px; }
}
.product-detail-price { font-size: clamp(20px, 2vw, 26px); }
.product-description { color: var(--jb-muted); line-height: 1.7; }
.product-gallery-thumb { border-radius: 4px; }
.product-gallery-thumb.is-active { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Cart: rows become cards on phones so nothing forces sideways scroll */
.cart-table { display: block; }
.cart-table tbody { display: block; }
.cart-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 16px 0; border-bottom: 1px solid var(--jb-line); }
.cart-table td { display: block; border: 0; padding: 0; text-align: start; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .cart-table { display: table; }
  .cart-table thead { display: table-header-group; }
  .cart-table tbody { display: table-row-group; }
  .cart-table tr { display: table-row; padding: 0; }
  .cart-table th, .cart-table td { display: table-cell; padding: 15px; border-bottom: 1px solid var(--jb-line); text-align: start; }
}
.cart-form, .cart-form * { max-width: 100%; box-sizing: border-box; }
.cart-form input[type="number"], .cart-form input[type="text"] { min-width: 0; }

/* ===== Hero cinematic Ken Burns: one still image, 28s zoom/pan, face-safe mobile framing ===== */
.jb-hero__still { will-change: transform; transform-origin: 50% 0%; animation: jbKenBurns 28s ease-in-out infinite alternate; }
.jb-hero[data-paused="true"] .jb-hero__still { animation-play-state: paused; }
@keyframes jbKenBurns {
  0%   { transform: scale(1.01) translate3d(0, 0, 0); }
  50%  { transform: scale(1.045) translate3d(-0.4%, 0, 0); }
  100% { transform: scale(1.08) translate3d(-0.8%, 0, 0); }
}
.jb-hero__pause { position: relative; z-index: 1; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 10px 16px; font-size: 12px; letter-spacing: .08em; cursor: pointer; }
.jb-hero__pause:hover, .jb-hero__pause:focus-visible { border-color: var(--gold); color: var(--gold); outline: 2px solid transparent; }
.jb-hero__pause:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* Portrait viewports crop the sides; anchor the image to the top and reduce zoom so the face is never cut. */
@media (max-width: 720px) {
  .jb-hero__media img.jb-hero__still { object-position: center top; transform-origin: 50% 0%; animation-name: jbKenBurnsMobile; }
  @keyframes jbKenBurnsMobile {
    0%   { transform: scale(1.005) translate3d(0, 0, 0); }
    50%  { transform: scale(1.025) translate3d(0, 0, 0); }
    100% { transform: scale(1.045) translate3d(0, 0, 0); }
  }
}
@media (prefers-reduced-motion: reduce) { .jb-hero__still { animation: none !important; transform: none !important; } }

/* ===== Toutes les créations grid (v1.11.0) ===== */
.jb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.jb-grid [hidden] { display: none !important; }
.jb-grid__more { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 8px; }
@media (max-width: 1024px) { .jb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .jb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .jb-grid { grid-template-columns: minmax(0, 1fr); } }
