/* Elixor shop pages. Replaces what Shopify's Horizon theme drew around the elx-* blocks:
   product page layout (gallery left, sticky details right), buy buttons, related products,
   collection grid, cart / checkout / account touches. Colours and radii from the Horizon settings
   (pill buttons, 14px variant buttons, 16px cards). */

/* ---------- product page ---------- */
.elx-pp *, .elx-pp *::before, .elx-pp *::after { box-sizing: border-box; }
.elx-pp { max-width: 1360px; margin: 0 auto; padding: 24px 40px 0; color: #2B1B0E; }
.elx-pp__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.elx-pp__media { display: flex; flex-direction: column; gap: 4px; }
.elx-pp__img img { display: block; width: 100%; height: auto; max-height: calc(100vh - 120px); object-fit: contain; background: #FFFFFF; }
.elx-pp__img--empty { aspect-ratio: 1 / 1; background: #F4E3D6; border-radius: 16px; }
.elx-pp__details { position: sticky; top: 88px; padding-block: 24px; display: flex; flex-direction: column; gap: 28px; }
.elx-pp__head { display: flex; flex-direction: column; gap: 12px; }
.elx-pp__title { margin: 0; font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 400; font-size: 32px; line-height: 1.15; letter-spacing: -0.01em; }
.elx-pp__price { margin: 4px 0 0; font-size: 18px; }
.elx-pp__price del { color: #8A6E58; margin-right: 8px; }
.elx-pp__price ins { text-decoration: none; }
.elx-pp__divider { width: 100%; margin: 0; border: 0; border-top: 1px solid #EADBCD; }

/* WooCommerce add-to-cart form, styled like Horizon buy buttons (quantity + pill button). */
.elx-pp__buy form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.elx-pp__buy .quantity { flex: 0 0 auto; }
.elx-pp__buy .quantity input.qty { width: 96px; height: 52px; border: 1px solid #2B1B0E; border-radius: 999px; text-align: center; font: inherit; font-size: 16px; color: #2B1B0E; background: #FFFFFF; }
.elx-pp__buy button.single_add_to_cart_button { flex: 1 1 200px; height: 52px; border: 0; border-radius: 999px; background: #2B1B0E; color: #FFFFFF; font: inherit; font-weight: 500; font-size: 15px; cursor: pointer; transition: background-color .2s; }
.elx-pp__buy button.single_add_to_cart_button:hover { background: #4A3020; }
.elx-pp__buy .stock { margin: 0 0 8px; font-size: 14px; color: #5A4636; }

/* Related products (Horizon product-recommendations: 4 columns, 2 on mobile) */
.elx-related .elx-wrap { padding-block: 24px 96px; }
.elx-related__h { margin: 0 0 24px; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 24px; line-height: 1.2; }
.elx-related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 12px; }
.elx .elx-related__card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.elx-related__media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; background: #F4E3D6; }
.elx-related__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.elx-related__t { font-size: 15px; font-weight: 500; }
.elx-related__p { font-size: 14px; color: #5A4636; }

@media (max-width: 989px) {
  .elx-pp__grid { grid-template-columns: 1fr; gap: 8px; }
  .elx-pp__details { position: static; }
}
@media (max-width: 749px) {
  .elx-pp { padding: 0 20px; }
  .elx-pp__media { margin-inline: -20px; }
  .elx-pp__title { font-size: 26px; }
  .elx-related__grid { grid-template-columns: 1fr 1fr; }
  .elx-related .elx-wrap { padding-block: 16px 72px; }
}

/* ---------- collection pages (provisional, no mockup yet) ---------- */
.elx-coll .elx-wrap { padding-block: 72px 104px; }
.elx-coll__head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.elx-coll__desc p { margin: 0 0 10px; }
.elx-coll__pager { margin-top: 48px; }
.elx-coll__pager ul { list-style: none; display: flex; gap: 8px; padding: 0; justify-content: center; }
.elx-coll__pager a, .elx-coll__pager span { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid #DCC8B6; text-decoration: none; }
.elx-coll__pager .current { background: #2B1B0E; color: #FFFFFF; border-color: #2B1B0E; }
@media (max-width: 749px) { .elx-coll .elx-wrap { padding-block: 48px 72px; } }

/* ---------- notices, cart, checkout, account ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 24px; padding: 14px 18px; border-radius: 14px; background: #F9EEE6; color: #2B1B0E; font-size: 14px; border: 0; }
.woocommerce-error { background: #FBE4DC; }
.woocommerce-message .button, .woocommerce-info .button { float: right; margin-left: 12px; }
.elx-page--wc { max-width: 1200px; }
.elx-page--wc .elx-page__content table { background: transparent; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .wc-block-components-button:not(.is-link) {
  border-radius: 999px !important; background: #2B1B0E !important; color: #FFFFFF !important; border: 0 !important; padding: 14px 26px !important; font-weight: 500 !important; font-family: 'Inter', sans-serif !important;
}
.woocommerce .button:hover, .wc-block-components-button:not(.is-link):hover { background: #4A3020 !important; }
.woocommerce input.input-text, .woocommerce select, .woocommerce textarea, .wc-block-components-text-input input { border: 1px solid #DCC8B6 !important; border-radius: 4px !important; }

/* Cart and checkout: research use only notice (v0.3.3) */
.elx-ruobox--checkout { max-width: 1200px; margin: 0 auto 24px; box-sizing: border-box; }
