/*
 * Additions for the Laravel version of the theme. style.css is the Next.js build output
 * and stays untouched; everything the Blade templates need on top of it lives here,
 * built only from the design's own tokens.
 */

/* --- Product page ------------------------------------------------------- */
.pdp-gallery [data-pdp-main] { aspect-ratio: 1 / 1; }
.pdp-thumbs { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.pdp-thumb {
  display: block; width: 100%; height: 100%; padding: 0; border: 0;
  background: none; cursor: pointer; border-radius: inherit;
}
.pdp-thumb img { aspect-ratio: 1 / 1; display: block; }
.pdp-thumb[aria-current='true'] img { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-30); }
.pdp-cart-form { display: contents; }
.pdp-lead { color: var(--muted); line-height: 2; margin: 0; }
.pdp-price[data-sale='true'] { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pdp-price .price-was { color: var(--muted); font-size: .7em; }
.pdp-description { margin-block-start: 64px; }
.pdp-description h2 { margin: 0 0 20px; font-size: 19px; }
.pdp-description .article-body img { max-width: 100%; height: auto; border-radius: var(--r-card); }

/* --- Listing ------------------------------------------------------------- */
/* Attribute chips are labels around a visually hidden checkbox. */
label.plp-chip { cursor: pointer; }
label.plp-chip:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.plp-applied .chip { text-decoration: none; }

/* --- Flash messages (session success / errors) ------------------------- */
.toast-stack .toast { transform: none; position: static; color: var(--ink); }
.toast .icon-btn { margin-inline-start: auto; }
.toast.error svg:first-child { color: var(--danger, #c0392b); }
.toast.success svg:first-child { color: var(--orange); }

/* The phone tab bar would cover the filter drawer's apply button. */
body:has(.plp[data-filters-open='true']) .tab-bar { display: none; }

/* --- Link pagination (blog), styled like the listing's page buttons ----- */
.plp-pages ol a {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: var(--r-control); background: var(--paper);
  color: var(--ink); font-size: 13px; text-decoration: none;
}
.plp-pages ol a[aria-current='page'] { border-color: var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; }
.plp-pages [aria-disabled='true'] { opacity: .45; pointer-events: none; }

/* --- Blog ---------------------------------------------------------------- */
/* An article without a picture shows the brand mark small and centred, not stretched. */
img[data-placeholder='true'] { object-fit: contain !important; padding: 18%; opacity: .5; }
.blog-filters { width: min(100%, var(--article-w)); margin: 0 auto 28px; }
.blog-filters .chip { text-decoration: none; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--r-card); }
.article-body table { width: 100%; border-collapse: collapse; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: 8px 10px; }
.article-overline { color: var(--muted); font-size: 14px; margin: 0 0 6px; }

/* --- Panel forms (form builder) ------------------------------------------ */
.panel-form { display: grid; gap: 22px; }
.panel-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel-form-fields .panel-form-wide, .panel-form-captcha { grid-column: 1 / -1; }
@media (max-width: 720px) { .panel-form-fields { grid-template-columns: 1fr; } }
.panel-form > .btn { justify-self: start; }
.panel-form-choices { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.panel-form-choice { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.panel-form-choice input { accent-color: var(--orange); }
.panel-form-captcha-row { display: flex; align-items: center; gap: 10px; }
.panel-form-captcha-row .input { max-width: 180px; text-align: center; letter-spacing: .2em; }
.panel-form-captcha-row img { border: 1px solid var(--line); border-radius: var(--r-control); background: #fff; }
.field .error { color: var(--danger); font-size: 11px; }
.contact-form-section { margin-block-start: 48px; }

/* --- Contact / showroom --------------------------------------------------- */
.showroom-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.showroom-facts a + a { margin-inline-start: 14px; }
.showroom-socials { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.showroom-socials a + a { margin-inline-start: 0; }

/* --- FAQ / panel pages ----------------------------------------------------- */
.faq-list { margin-block: 28px 8px; }
.faq-list .accordion-item-body { padding: 14px 16px; line-height: 2; color: var(--ink); }
.panel-page .article-hero { margin-block-end: 24px; }
.about-page .about-band { margin-block: 36px; }

/* --- OTP login --------------------------------------------------------- */
.otp-input { font-size: 22px; letter-spacing: .6em; text-align: center; font-variant-numeric: tabular-nums; }
.otp-timer b { font-variant-numeric: tabular-nums; }
.otp-resend { display: flex; align-items: center; gap: 10px; margin-block-start: 16px; color: var(--muted); }
.otp-resend p { margin: 0; }
.auth-page .account-next a { color: inherit; text-decoration: underline; }

/* --- Shop flow ------------------------------------------------------------ */
.cart-line-qty form, .cart-line > form { display: contents; }
.cart-line-body small { color: var(--muted); font-size: 12px; }
.cart-summary-note { color: var(--muted); font-size: 12px; margin: 10px 0 0; text-align: center; }
.cart-clear { text-align: center; margin-block-start: 12px; }
.checkout-payment { align-items: center; }
.checkout-payment-cost { margin-inline-start: auto; font-weight: 700; white-space: nowrap; font-size: 13px; }
.checkout-note-field { margin-block-start: 18px; }
.checkout-summary-total { border-block-start: 1px solid var(--line); padding-block-start: 10px; font-weight: 700; }
.checkout-summary .link-button { display: block; text-align: center; margin-block-start: 12px; }
.checkout-edit { margin-block: 8px 0; }
.notice { position: relative; }
.notice .notice-action { margin-inline-start: auto; align-self: center; }
.payment-result .order-confirm { max-width: 720px; margin-inline: auto; display: grid; gap: 18px; }
.order-track-error { grid-column: 1 / -1; }
.order-track-result { margin-block-start: 24px; display: grid; gap: 18px; }
.order-tracking-code { margin: 0; color: var(--muted); }
.order-tracking-code b { color: var(--ink); }
.order-track-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 720px) { .order-track-steps { grid-template-columns: 1fr; } }
/* A fourth column for the shipping cost; a finished step shows a tick instead of its number. */
.checkout-payment:has(.checkout-payment-cost) { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.build-track-badge .step-check { display: none; }
.build-track li[data-state='done'] .build-track-badge .step-num { display: none; }
.build-track li[data-state='done'] .build-track-badge .step-check { display: inline-block; }

/* --- /fa/pages review index: build status per page ------------------------ */
.review-status[data-status='built'] { background: color-mix(in srgb, var(--success) 12%, var(--paper) 88%); color: var(--ink); }
.review-status[data-status='login'] { background: color-mix(in srgb, var(--orange) 14%, var(--paper) 86%); color: var(--ink); }
.review-status[data-status='none'] { background: var(--paper-3); color: var(--muted); }
.review-row .review-status { white-space: nowrap; }
.review-row[aria-disabled='true'] { opacity: .6; cursor: default; }
/* Title · status · path · arrow on one line (the design's row had no status column). */
.review-group .review-row { grid-template-columns: minmax(0, 1fr) auto auto 16px; }
@media (max-width: 640px) {
  .review-group .review-row { grid-template-columns: minmax(0, 1fr) auto; }
  .review-group .review-row code { grid-column: 1 / -1; }
}
