/* Shared CSS for the 12 Product Element atoms (v1.56.00). */

.lyra-bt-atom {
    --lyra-bt-atom-accent: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    box-sizing: border-box;
}
.lyra-bt-atom *, .lyra-bt-atom *::before, .lyra-bt-atom *::after { box-sizing: border-box; }

/* Alignment utilities */
.lyra-bt-atom--align-left   { text-align: left; }
.lyra-bt-atom--align-center { text-align: center; }
.lyra-bt-atom--align-right  { text-align: right; }

/* ─── Title ───────────────────────────────────────────────────────── */
.lyra-bt-atom--product-title {
    margin: 0 0 8px;
    line-height: 1.2;
    font-weight: 800;
}
.lyra-bt-atom--product-title.lyra-bt-atom--h1_hero  { font-size: 30px; }
.lyra-bt-atom--product-title.lyra-bt-atom--h2_card  { font-size: 20px; font-weight: 700; }
.lyra-bt-atom--product-title.lyra-bt-atom--inline   { font-size: inherit; font-weight: inherit; display: inline; margin: 0; }
.lyra-bt-atom__title-link { color: inherit; text-decoration: none; }
.lyra-bt-atom__title-link:hover { text-decoration: underline; }

/* ─── Price ───────────────────────────────────────────────────────── */
.lyra-bt-atom--product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}
.lyra-bt-atom--product-price.lyra-bt-atom--align-center { justify-content: center; }
.lyra-bt-atom--product-price.lyra-bt-atom--align-right  { justify-content: flex-end; }
.lyra-bt-atom--product-price.lyra-bt-atom--large_hero          { font-size: 28px; }
.lyra-bt-atom--product-price.lyra-bt-atom--compact_inline      { font-size: 15px; font-weight: 700; }
.lyra-bt-atom--product-price.lyra-bt-atom--with_currency_label { font-size: 22px; }
.lyra-bt-atom__price-base {
    color: #94a3b8;
    font-weight: 500;
    text-decoration: line-through;
    font-size: 0.7em;
}
.lyra-bt-atom__price-now  { color: #0f172a; }
.lyra-bt-atom__price-ccy  {
    font-size: 0.55em;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.04em;
}
.lyra-bt-atom--price-missing { color: #cbd5e1; font-style: italic; font-weight: 400; }

/* ─── Add to Cart ─────────────────────────────────────────────────── */
.lyra-bt-atom--product-add-to-cart {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.lyra-bt-atom--product-add-to-cart.lyra-bt-atom--sticky_bottom {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 8px rgba(15,23,42,0.08);
    z-index: 50;
    justify-content: center;
}
.lyra-bt-atom__qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
}
.lyra-bt-atom__qty-step {
    width: 36px;
    background: #f8fafc;
    border: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}
.lyra-bt-atom__qty-step:hover { background: #f1f5f9; }
.lyra-bt-atom__qty-input {
    width: 54px;
    padding: 0 6px;
    border: 0;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    background: #fff;
    font-family: inherit;
}
.lyra-bt-atom__qty-input:focus { outline: none; }
.lyra-bt-atom__qty-help { font-size: 11px; color: #94a3b8; width: 100%; margin-top: 2px; }
.lyra-bt-atom__atc-btn {
    position: relative;
    padding: 11px 22px;
    background: var(--lyra-bt-atom-accent);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: filter 0.15s;
    font-family: inherit;
    min-width: 140px;
}
.lyra-bt-atom__atc-btn:hover { filter: brightness(0.92); }
.lyra-bt-atom__atc-btn:disabled {
    background: #cbd5e1;
    color: #fff;
    cursor: not-allowed;
}
.lyra-bt-atom__atc-btn.is-loading .lyra-bt-atom__atc-label { opacity: 0; }
.lyra-bt-atom__atc-spinner {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: lyra-bt-atom-spin 0.8s linear infinite;
}
.lyra-bt-atom__atc-btn.is-loading .lyra-bt-atom__atc-spinner { opacity: 1; }
@keyframes lyra-bt-atom-spin { to { transform: rotate(360deg); } }
.lyra-bt-atom__atc-status {
    font-size: 13px;
    min-width: 100%;
    margin-top: 4px;
}
.lyra-bt-atom__atc-status[data-state="success"] { color: #16a34a; font-weight: 600; }
.lyra-bt-atom__atc-status[data-state="error"]   { color: #dc2626; font-weight: 600; }

/* ─── Rating ──────────────────────────────────────────────────────── */
.lyra-bt-atom--product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    font-size: 14px;
}
.lyra-bt-atom--product-rating.lyra-bt-atom--align-center { justify-content: center; }
.lyra-bt-atom--product-rating.lyra-bt-atom--align-right  { justify-content: flex-end; }
.lyra-bt-atom__rating-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.lyra-bt-atom__rating-link:hover .lyra-bt-atom__rating-num { text-decoration: underline; }
.lyra-bt-atom__stars {
    display: inline-flex;
    letter-spacing: 1px;
    color: #facc15;
    font-size: 16px;
    line-height: 1;
}
.lyra-bt-atom__star {
    position: relative;
    display: inline-block;
    width: 1em;
    overflow: hidden;
    vertical-align: middle;
}
.lyra-bt-atom__star-bg {
    color: #e2e8f0;
    display: inline-block;
}
.lyra-bt-atom__star-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    overflow: hidden;
    color: #facc15;
    white-space: nowrap;
}
.lyra-bt-atom__rating-num   { font-weight: 700; color: #0f172a; }
.lyra-bt-atom__rating-count { color: #64748b; font-size: 0.9em; }

/* ─── Images ──────────────────────────────────────────────────────── */
.lyra-bt-atom--product-images {
    position: relative;
    max-width: 640px;
}
.lyra-bt-atom__img-main {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}
.lyra-bt-atom__img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lyra-bt-atom__img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 8px, #e2e8f0 8px, #e2e8f0 16px);
}
.lyra-bt-atom__img-count {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(15,23,42,0.75);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
}
.lyra-bt-atom__img-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 6px;
    margin-top: 8px;
}
.lyra-bt-atom__img-thumb {
    aspect-ratio: 1 / 1;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s;
}
.lyra-bt-atom__img-thumb.is-active { border-color: var(--lyra-bt-atom-accent, #0f172a); }
.lyra-bt-atom__img-thumb:hover     { border-color: #94a3b8; }
.lyra-bt-atom__img-thumb img       { width: 100%; height: 100%; object-fit: cover; display: block; }
.lyra-bt-atom__img-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: rgba(255,255,255,0.92);
    color: #0f172a;
    font-size: 22px;
    line-height: 34px;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    box-shadow: 0 1px 4px rgba(15,23,42,0.1);
}
.lyra-bt-atom__img-arrow:hover { background: #fff; }
.lyra-bt-atom__img-arrow--prev { left: 8px; }
.lyra-bt-atom__img-arrow--next { right: 8px; }

/* Zoom-on-hover: scale the main image on hover with transform-origin set by JS */
.lyra-bt-atom--zoom_on_hover .lyra-bt-atom__img-main img {
    transition: transform 0.15s;
    transform-origin: center center;
}
.lyra-bt-atom--zoom_on_hover .lyra-bt-atom__img-main:hover img { transform: scale(1.8); }

/* ─── Meta ────────────────────────────────────────────────────────── */
.lyra-bt-atom--product-meta {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}
.lyra-bt-atom--product-meta a { color: #475569; text-decoration: none; }
.lyra-bt-atom--product-meta a:hover { color: var(--lyra-bt-atom-accent, #0f172a); text-decoration: underline; }
.lyra-bt-atom__meta-sep { color: #cbd5e1; margin: 0 3px; }
.lyra-bt-atom--stacked_labeled .lyra-bt-atom__meta-row { margin-bottom: 4px; }
.lyra-bt-atom--stacked_labeled .lyra-bt-atom__meta-row strong { color: #0f172a; margin-right: 6px; }
.lyra-bt-atom__meta-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569 !important;
    font-size: 11px;
    font-weight: 600;
    margin: 2px 4px 2px 0;
    text-decoration: none !important;
}
.lyra-bt-atom__meta-badge--tag { background: #fef3c7; color: #92400e !important; }
.lyra-bt-atom__meta-badge:hover { background: #e2e8f0; }

/* ─── Stock ───────────────────────────────────────────────────────── */
.lyra-bt-atom--product-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    font-weight: 600;
}
.lyra-bt-atom__stock-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.lyra-bt-atom--stock-in_stock     { color: #16a34a; }
.lyra-bt-atom--stock-in_stock     .lyra-bt-atom__stock-dot { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.2); }
.lyra-bt-atom--stock-low_stock    { color: #ca8a04; }
.lyra-bt-atom--stock-low_stock    .lyra-bt-atom__stock-dot { background: #ca8a04; box-shadow: 0 0 0 3px rgba(202,138,4,0.2); }
.lyra-bt-atom--stock-out_of_stock { color: #dc2626; }
.lyra-bt-atom--stock-out_of_stock .lyra-bt-atom__stock-dot { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.2); }
.lyra-bt-atom--product-stock.lyra-bt-atom--badge_pill {
    padding: 5px 11px;
    background: #f8fafc;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 12px;
}
.lyra-bt-atom--product-stock.lyra-bt-atom--urgency_banner {
    display: flex;
    padding: 10px 14px;
    background: color-mix(in srgb, currentColor 10%, #fff);
    border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

/* ─── Short Description ───────────────────────────────────────────── */
.lyra-bt-atom--product-short-description {
    color: #334155;
    font-size: 15px;
    line-height: 1.55;
}
.lyra-bt-atom--product-short-description.lyra-bt-atom--bullet_list { padding-left: 20px; }
.lyra-bt-atom--product-short-description.lyra-bt-atom--bullet_list li { margin-bottom: 4px; }
.lyra-bt-atom__desc-toggle {
    background: transparent;
    border: 0;
    color: var(--lyra-bt-atom-accent, #0f172a);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    padding: 0;
    font-size: inherit;
}
.lyra-bt-atom__desc-toggle:hover { color: #475569; }

/* ─── Additional Information ──────────────────────────────────────── */
.lyra-bt-atom--product-additional-info .lyra-bt-atom__info-heading {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
}
.lyra-bt-atom__info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.lyra-bt-atom__info-table th,
.lyra-bt-atom__info-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}
.lyra-bt-atom__info-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    width: 30%;
}
.lyra-bt-atom__info-dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; }
.lyra-bt-atom__info-dl dt { font-weight: 600; color: #475569; }
.lyra-bt-atom__info-dl dd { margin: 0; }
.lyra-bt-atom__info-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.lyra-bt-atom__info-pill {
    display: inline-block;
    padding: 5px 11px;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 12px;
    color: #475569;
}
.lyra-bt-atom__info-pill strong { color: #0f172a; font-weight: 600; margin-right: 3px; }

/* ─── Content (long description) ──────────────────────────────────── */
.lyra-bt-atom--product-content { color: #334155; line-height: 1.65; font-size: 16px; }
.lyra-bt-atom--product-content p { margin: 0 0 14px; }
.lyra-bt-atom--product-content.lyra-bt-atom--card_wrapped {
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.lyra-bt-atom--product-content.lyra-bt-atom--two_col_meta {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 720px) {
    .lyra-bt-atom--product-content.lyra-bt-atom--two_col_meta { grid-template-columns: 1fr; }
}
.lyra-bt-atom__content-sidebar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
}
.lyra-bt-atom__content-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
.lyra-bt-atom__content-meta-row:last-child { border-bottom: 0; }
.lyra-bt-atom__content-meta-row span { color: #64748b; }
.lyra-bt-atom__content-meta-row strong { color: #0f172a; }

/* ─── Data Tabs ───────────────────────────────────────────────────── */
.lyra-bt-atom--product-data-tabs { margin: 16px 0; }
.lyra-bt-atom__tabs-bar {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.lyra-bt-atom__tab-trigger {
    background: transparent;
    border: 0;
    padding: 11px 18px;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    font-family: inherit;
}
.lyra-bt-atom__tab-trigger:hover    { color: #0f172a; }
.lyra-bt-atom__tab-trigger.is-active{ color: var(--lyra-bt-atom-accent, #0f172a); border-bottom-color: var(--lyra-bt-atom-accent, #0f172a); }
.lyra-bt-atom__tabs-panels { padding: 16px 0; line-height: 1.6; color: #334155; }
.lyra-bt-atom__tab-panel p { margin: 0 0 12px; }
.lyra-bt-atom--pills_compact .lyra-bt-atom__tabs-bar { border-bottom: 0; gap: 6px; margin-bottom: 10px; }
.lyra-bt-atom--pills_compact .lyra-bt-atom__tab-trigger {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 7px 14px;
    margin: 0;
}
.lyra-bt-atom--pills_compact .lyra-bt-atom__tab-trigger.is-active {
    background: var(--lyra-bt-atom-accent, #0f172a);
    color: #fff;
    border-color: var(--lyra-bt-atom-accent, #0f172a);
}
.lyra-bt-atom--is-sticky .lyra-bt-atom__tabs-bar {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
}
.lyra-bt-atom--accordion .lyra-bt-atom__acc-item { border-bottom: 1px solid #e2e8f0; }
.lyra-bt-atom--accordion .lyra-bt-atom__acc-trigger {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 14px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    text-align: left;
    font-family: inherit;
}
.lyra-bt-atom__acc-chevron { transition: transform 0.2s; color: #64748b; }
.lyra-bt-atom__acc-item.is-open .lyra-bt-atom__acc-chevron { transform: rotate(180deg); }
.lyra-bt-atom__acc-content {
    display: none;
    padding: 0 4px 16px;
    color: #334155;
    line-height: 1.6;
}
.lyra-bt-atom__acc-item.is-open .lyra-bt-atom__acc-content { display: block; }

/* ─── Related ─────────────────────────────────────────────────────── */
.lyra-bt-atom--product-related { margin: 24px 0; }
.lyra-bt-atom__related-heading {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
}
.lyra-bt-atom--card_grid .lyra-bt-atom__related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.lyra-bt-atom--horizontal_row .lyra-bt-atom__related-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.lyra-bt-atom--horizontal_row .lyra-bt-atom__related-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
}
.lyra-bt-atom--compact_list .lyra-bt-atom__related-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lyra-bt-atom__related-card {
    display: block;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.lyra-bt-atom__related-card:hover { border-color: #cbd5e1; box-shadow: 0 2px 6px rgba(15,23,42,0.06); }
.lyra-bt-atom__related-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f8fafc;
}
.lyra-bt-atom__related-img--placeholder {
    background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 8px, #e2e8f0 8px, #e2e8f0 16px);
}
.lyra-bt-atom__related-body { padding: 10px 12px; }
.lyra-bt-atom__related-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lyra-bt-atom__related-price {
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
}
.lyra-bt-atom--compact_list .lyra-bt-atom__related-card {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 8px;
}
.lyra-bt-atom--compact_list .lyra-bt-atom__related-img {
    width: 60px; height: 60px;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
}
.lyra-bt-atom--compact_list .lyra-bt-atom__related-body { padding: 0; }
.lyra-bt-atom--compact_list .lyra-bt-atom__related-price { text-align: right; }
