/*
 * lulu-product v1 (phase 8, 2026-10-30): the product detail page (frontend/pages/products/product-single-v2.blade.php): breadcrumb line,
 * gallery, name / category / facts / buttons / features, details, and the quote-request drawer.
 * Same rules as lulu-cards.css, whose tokens it uses (--lc-accent, --lc-hover, --lc-ink, ...): colours from the theme variables, logical
 * properties only, so it serves right-to-left and left-to-right pages. The theme forces every <p> to 20px (fonts.css): text here is <div>/<span>.
 */

.lp { padding-block: 22px 80px; }
.lp-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 0; list-style: none; font-size: .92rem; color: var(--lc-muted); }
.lp-crumbs li + li::before { content: "/"; margin-inline-end: 10px; opacity: .55; }
.lp-crumbs a { color: var(--lc-muted); text-decoration: none; }
.lp-crumbs a:hover { color: var(--lc-accent); }
.lp-crumbs [aria-current] { color: var(--lc-ink); font-weight: 800; }

.lp-top { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(24px, 4.5vw, 64px); align-items: start; margin-block-start: 26px; }
@media (max-width: 991px) { .lp-top { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---- gallery ---- */
.lp-gallery__main {
    position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #fff;
    border: 1px solid var(--lc-line); border-radius: calc(var(--lc-radius) + 2px); box-shadow: var(--lc-shadow);
}
.lp-slide, .lp-placeholder { position: absolute; inset: 0; display: none; }
.lp-slide.active, .lp-placeholder { display: block; }
.lp-gallery__main .lp-slide img, .lp-gallery__main .lp-placeholder img { display: block; inline-size: 100%; block-size: 100%; max-block-size: none !important; object-fit: cover; } /* the theme caps every .lazy image at 370px with !important (dynamicstyle-rtl.css) */
.lp-placeholder img { object-fit: contain; padding: 18%; opacity: .6; }
.lp-counter {
    position: absolute; inset-block-end: 12px; inset-inline-start: 12px; padding: 2px 12px; border-radius: 999px; z-index: 2;
    font-size: .78rem; font-weight: 700; color: var(--lc-ink); background: rgb(255 255 255 / .92); box-shadow: 0 1px 4px rgb(0 0 0 / .18);
}
.lp-counter bdi { direction: ltr; unicode-bidi: isolate; }
.lp-nav {
    position: absolute; inset-block-start: 50%; z-index: 2; inline-size: 42px; block-size: 42px; margin-block-start: -21px; padding: 0;
    border: 0; border-radius: 50%; cursor: pointer; color: var(--lc-ink); background: rgb(255 255 255 / .92); box-shadow: 0 2px 8px rgb(0 0 0 / .22);
    transition: background .2s ease, color .2s ease;
}
.lp-nav--prev { inset-inline-start: 12px; }
.lp-nav--next { inset-inline-end: 12px; }
.lp-nav::after {
    content: ""; display: block; inline-size: 18px; block-size: 18px; margin: auto; background: currentColor;
    -webkit-mask: var(--lc-arrow) center / contain no-repeat; mask: var(--lc-arrow) center / contain no-repeat;
}
.lp-nav--next::after { transform: scaleX(var(--lc-dir)); }
.lp-nav--prev::after { transform: scaleX(calc(var(--lc-dir) * -1)); }
.lp-nav:hover { color: #fff; background: var(--lc-accent); }
.lp-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 14px; }
.lp-thumb {
    inline-size: 96px; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; cursor: pointer; background: #fff;
    border: 2px solid var(--lc-line); border-radius: 12px; opacity: .78; transition: opacity .2s ease, border-color .2s ease;
}
.lp-thumb img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.lp-thumb:hover { opacity: 1; }
.lp-thumb.active { opacity: 1; border-color: var(--lc-accent); }

/* ---- info ---- */
.lp-chip {
    display: inline-block; padding: 4px 14px; border-radius: 8px; font-size: .88rem; font-weight: 700; text-decoration: none;
    color: var(--lc-accent); background: color-mix(in srgb, var(--lc-accent) 9%, white); transition: background .2s ease, color .2s ease;
}
.lp-chip:hover { color: #fff; background: var(--lc-accent); }
.lp-title { margin: 12px 0 12px; color: var(--lc-ink) !important; font-size: clamp(1.75rem, 4.2vw, 2.7rem); font-weight: 800; line-height: 1.35; }
.lp-lead { color: var(--lc-muted); font-size: 1.05rem; line-height: 1.95; }
.lp-facts { display: grid; gap: 18px; margin: 24px 0 0; }
.lp-fact dt { margin-block-end: 8px; color: var(--lc-ink); font-size: .98rem; font-weight: 800; }
.lp-fact dd { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.lp-tag { padding: 6px 14px; border: 1px solid var(--lc-line); border-radius: 8px; color: var(--lc-muted); background: #fff; font-size: .92rem; }
.lp-tag--code bdi { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--lc-ink); font-weight: 700; }

.lp-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 28px; }
.lp-btn {
    flex: 1 1 190px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-block-size: 56px; padding: 10px 22px;
    border: 2px solid transparent; border-radius: 10px; font-size: 1.05rem; font-weight: 800; line-height: 1.4; text-decoration: none; cursor: pointer;
    transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.lp-btn:hover { transform: translateY(-2px); }
button.lp-btn--primary, a.lp-btn--primary { color: #fff !important; background: var(--lc-accent) !important; border-color: var(--lc-accent); }
button.lp-btn--primary:hover { background: var(--lc-hover) !important; border-color: var(--lc-hover); }
.lp-btn--primary::after {
    content: ""; inline-size: 1.1em; block-size: 1.1em; background: currentColor;
    -webkit-mask: var(--lc-arrow) center / contain no-repeat; mask: var(--lc-arrow) center / contain no-repeat; transform: scaleX(var(--lc-dir));
}
a.lp-btn--outline { color: var(--secondary-color) !important; background: transparent; border-color: var(--secondary-color); }
a.lp-btn--outline:hover { color: #fff !important; background: var(--secondary-color); }
button.lp-btn--wa { color: #fff !important; background: var(--secondary-color) !important; border-color: var(--secondary-color); }
button.lp-btn--wa:hover { background: var(--lc-hover) !important; border-color: var(--lc-hover); }
.lp-btn i { font-size: 1.25em; }
.lp-btn, .lp-field input, .lp-field textarea { font-family: var(--font-family), sans-serif; } /* links get the theme's link font, buttons the browser's: both take the body font */

.lp-features { margin-block-start: 28px; padding: 22px 26px; border: 1px solid var(--lc-line); border-radius: 14px; background: color-mix(in srgb, var(--lc-accent) 4%, white); }
.lp-features h2 { margin: 0 0 14px; color: var(--lc-ink) !important; font-size: 1.3rem; font-weight: 800; }
.lp-features ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lp-features li { display: flex; align-items: flex-start; gap: 12px; color: var(--lc-muted); line-height: 1.7; }
.lp-features li::before {
    content: ""; flex: 0 0 auto; inline-size: 1.15em; block-size: 1.15em; margin-block-start: .28em; background: var(--lc-accent);
    -webkit-mask: var(--lc-check) center / contain no-repeat; mask: var(--lc-check) center / contain no-repeat;
}
.lp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block-start: 24px; color: var(--lc-ink); }
.lp-share ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* ---- details and related ---- */
.lp-details, .lp-related { margin-block-start: 56px; }
.lp-section-title { margin: 0 0 16px; color: var(--lc-ink) !important; font-size: 1.5rem; font-weight: 800; }
.lp-section-title::after { content: ""; display: block; inline-size: 52px; block-size: 4px; margin-block-start: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--lc-accent), var(--lc-accent-2)); }
.lp-prose { margin-block-end: 28px; color: var(--lc-muted); font-size: 1.05rem; line-height: 2; }
.lp-prose p { font-size: 1.05rem !important; margin: 0 0 14px; }
.lp-attrs { inline-size: 100%; max-inline-size: 760px; border-collapse: collapse; }
.lp-attrs th, .lp-attrs td { padding: 12px 16px; border-block-end: 1px solid var(--lc-line); text-align: start; }
.lp-attrs th { inline-size: 32%; color: var(--lc-ink); font-weight: 800; }

/* ---- quote drawer ---- */
:root { --lc-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E"); }
html.lp-locked { overflow: hidden; }
.lp-drawer { position: fixed; inset: 0; z-index: 2147483000; visibility: hidden; }
.lp-drawer[hidden] { display: none; }
.lp-drawer.is-open { visibility: visible; }
.lp-drawer__overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--lc-ink) 55%, transparent); opacity: 0; transition: opacity .28s ease; }
.lp-drawer.is-open .lp-drawer__overlay { opacity: 1; }
.lp-drawer__panel {
    position: absolute; inset-block: 0; inset-inline-end: 0; display: flex; flex-direction: column; inline-size: min(480px, 100%); overflow-y: auto;
    background: #fff; box-shadow: 0 0 40px rgb(0 0 0 / .3); transform: translateX(calc(100% * var(--lc-dir))); transition: transform .32s cubic-bezier(.2, .7, .2, 1);
}
.lp-drawer.is-open .lp-drawer__panel { transform: none; }
.lp-drawer__panel:focus { outline: 0; }
.lp-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-block-end: 4px solid var(--lc-accent); background: #fff; position: sticky; inset-block-start: 0; z-index: 1; }
.lp-drawer__head h2 { margin: 0; color: var(--lc-ink) !important; font-size: 1.3rem; font-weight: 800; }
.lp-drawer__close { inline-size: 40px; block-size: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--lc-ink); background: color-mix(in srgb, var(--lc-ink) 7%, white); transition: background .2s ease, color .2s ease; }
.lp-drawer__close::before {
    content: ""; display: block; inline-size: 18px; block-size: 18px; margin: auto; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lp-drawer__close:hover { color: #fff; background: var(--lc-hover); }
.lp-form { display: grid; gap: 16px; padding: 22px 24px 28px; }
.lp-form__intro { margin: 0; color: var(--lc-muted); font-size: .95rem !important; line-height: 1.8; }
.lp-field label { display: block; margin-block-end: 6px; color: var(--lc-ink); font-weight: 800; font-size: .95rem; }
.lp-field abbr { color: var(--lc-hover); text-decoration: none; }
.lp-field input, .lp-field textarea {
    display: block; inline-size: 100%; padding: 11px 14px; border: 1px solid var(--lc-line); border-radius: 10px; color: var(--lc-ink); background: #fff;
    font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.lp-field input[readonly] { color: var(--lc-muted); background: color-mix(in srgb, var(--lc-ink) 4%, white); }
.lp-field input:focus, .lp-field textarea:focus { outline: 0; border-color: var(--lc-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lc-accent) 18%, transparent); }
.lp-field [aria-invalid="true"] { border-color: var(--lc-hover); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lc-hover) 14%, transparent); }
.lp-field__error { display: block; margin-block-start: 5px; color: var(--lc-hover); font-size: .85rem; font-weight: 700; }
.lp-form__submit { inline-size: 100%; flex: none; margin-block-start: 6px; }

@media (prefers-reduced-motion: reduce) {
    .lp-drawer__overlay, .lp-drawer__panel, .lp-btn, .lp-nav, .lp-thumb { transition: none !important; }
}
