/* ═══ DETAIL PAGE ═══ */
.detail-wrap { padding: 3rem 0 5rem; }

.breadcrumb-nav {
    font-size: 0.8rem;
    color: var(--site-muted);
    margin-bottom: 2rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.breadcrumb-nav a { color: var(--secondary-30-light); text-decoration: none; transition: color 0.2s; }
.breadcrumb-nav a:hover { color: var(--secondary-30); }
.breadcrumb-nav i { font-size: 0.6rem; color: var(--site-muted); }

.product-img-hero {
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--site-surface), var(--site-surface));
    position: relative;
    aspect-ratio: 1/1;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.product-img-hero img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-img-hero:hover img { transform: scale(1.04); }
.product-img-placeholder-detail {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1rem; color: var(--site-muted); font-size: 4rem;
}
.product-img-placeholder-detail span { font-size: 0.9rem; font-weight: 600; color: var(--site-muted); }
.img-badge-overlay {
    position: absolute; bottom: 16px; left: 16px;
    display: flex; gap: 0.5rem;
}
.img-badge {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
    background: rgba(0,0,0,0.7); color: #fff;
    border-radius: 100px; padding: 0.3rem 0.8rem;
    backdrop-filter: blur(8px);
}
.img-badge.gold { background: var(--accent-10); color: #000; }

.product-info { padding-left: 2rem; }
@media(max-width:768px) { .product-info { padding-left: 0; margin-top: 2rem; } }

.product-shades-fieldset { min-width: 0; border: 0; padding: 0; }
.product-shades-legend { float: none; width: auto; padding: 0; font-size: 0.8rem; letter-spacing: 0.05em; }
.shade-option {
    appearance: none; display: inline-flex; flex: 0 0 68px; flex-direction: column;
    align-items: center; gap: 0.35rem; min-height: 82px; padding: 0.2rem;
    border: 0; border-radius: 12px; background: transparent; color: var(--site-muted);
    font: inherit; cursor: pointer; text-align: center;
    transition: background-color 0.16s ease, color 0.16s ease;
}
.shade-option[hidden] { display: none !important; }
.shade-option .shade-circle {
    width: 55px; height: 55px; flex: 0 0 auto;
    border: 2px solid var(--site-border); background: var(--site-surface);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.shade-option:hover .shade-circle { transform: scale(1.05); }
.shade-option[aria-pressed="true"] { color: var(--site-text); }
.shade-option[aria-pressed="true"] .shade-circle {
    border-color: var(--site-cta-bg); box-shadow: 0 0 0 3px var(--site-accent-tint);
}
.shade-option:focus-visible { outline: 2px solid var(--site-cta-bg); outline-offset: 2px; }
.shade-option:focus-visible .shade-circle { transform: scale(1.05); }
.shade-option-name {
    display: block; max-width: 68px; overflow: hidden; white-space: nowrap;
    text-overflow: ellipsis; font-size: 0.72rem;
}

.product-category-tag {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    background: var(--primary-60-soft);
    border: 1px solid var(--secondary-30-border);
    color: var(--secondary-30-light);
    border-radius: 100px;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1rem;
}

.product-name-detail {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--secondary-30);
    margin-bottom: 1rem;
}

.rating-row {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.5rem;
}
.stars { display: flex; gap: 2px; }
.stars i { color: var(--site-warning); font-size: 0.85rem; }
.rating-score { font-size: 0.875rem; font-weight: 700; color: var(--secondary-30); }
.rating-count { font-size: 0.8rem; color: var(--site-muted); }

.price-block {
    display: flex; align-items: flex-end; gap: 1rem;
    margin-bottom: 1.75rem;
}
.price-main {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--secondary-30);
    line-height: 1;
}
.price-currency { font-size: 1.2rem; font-weight: 700; color: var(--site-muted); margin-bottom: 0.3rem; }
.price-note { font-size: 0.8rem; color: var(--site-muted); }

.divider-line { height: 1px; background: var(--site-panel-tint); margin: 1.75rem 0; }

.product-description {
    font-size: 0.95rem;
    color: var(--secondary-30-muted);
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.spec-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
    margin-bottom: 2rem;
}
.spec-item {
    background: var(--primary-60-soft);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    border: 1px solid var(--site-border);
}
.spec-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--site-muted); margin-bottom: 0.25rem; }
.spec-value { font-size: 0.9rem; font-weight: 700; color: var(--secondary-30); }

.cta-group { display: flex; flex-direction: column; gap: 0.875rem; }
.btn-cta-primary {
    width: 100%;
    padding: 1rem;
    background: var(--accent-10);
    color: #171717;
    border: none;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    letter-spacing: 0.01em;
}
.btn-cta-primary:hover { background: #e5c100; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-cta-primary:active { transform: translateY(0); }

.btn-cta-secondary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,180,0,0.08));
    color: var(--secondary-30);
    border: 1px solid rgba(255,215,0,0.4);
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    text-decoration: none;
}
.btn-cta-secondary:hover {
    background: linear-gradient(135deg, var(--accent-10), #FDB931);
    color: #000;
    border-color: var(--accent-10);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.3);
}

.trust-row {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    margin-top: 1.5rem;
}
.trust-item {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.78rem; color: var(--site-muted); font-weight: 500;
}
.trust-item i { color: var(--site-success); font-size: 0.75rem; }

/* ═══ RELATED SECTION ═══ */
.related-section { padding: 4rem 0 5rem; background: var(--primary-60-soft); }
.related-card {
    background: var(--site-surface);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--site-border);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column;
}
.related-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.related-card-img {
    height: 180px; background: linear-gradient(135deg, var(--site-surface), var(--site-surface));
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--site-muted);
}
.related-card-body { padding: 1rem 1.25rem 1.25rem; }
.related-card-name { font-size: 0.9rem; font-weight: 700; color: var(--secondary-30); margin-bottom: 0.25rem; }
.related-card-price { font-size: 0.9rem; font-weight: 800; color: var(--secondary-30); }

/* ═══ INSTAGRAM-STYLE CAROUSEL DOTS ═══ */
.carousel-indicators.insta-dots-container {
    position: relative !important;
    bottom: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    transition: transform 0.3s ease;
    gap: 8px !important;
    z-index: 15 !important;
}
.carousel-indicators.insta-dots-container [data-bs-target] {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: #d1d5db !important; /* Light gray for inactive dots */
    border: none !important;
    padding: 0 !important;
    text-indent: -999px !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important; /* Override Bootstrap default opacity */
    margin: 0 !important; /* Override Bootstrap default margin */
    flex-shrink: 0 !important;
}
.carousel-indicators.insta-dots-container [data-bs-target].active {
    background-color: var(--site-surface) !important; /* Dark theme color for active dot */
    transform: scale(1.3) !important; /* Slightly enlarge the active dot */
}

#calcW, #calcH { min-width: 0; }
#unitSelect { width: 80px; flex-shrink: 0; }

.product-breadcrumb-current { color: var(--site-text); font-weight: 600; }
.product-carousel-inner { border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--site-surface); }
.product-carousel-item { height: 100%; }
.product-image-cover { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder-icon { font-size: 3rem; margin-bottom: 1rem; }
.product-carousel-control { background-color: rgba(0, 0, 0, 0.5); border-radius: 50%; padding: 1.5rem; }
.insta-dots-wrapper { overflow: hidden; max-width: 72px; width: fit-content; margin: 1.25rem auto 0.5rem; display: flex; }
.price-block--area { align-items: flex-start; flex-direction: column; gap: 0.5rem; width: 100%; }
.price-currency--area { font-size: 0.95rem; font-weight: 700; }
.product-area-base-rate { font-size: 1.25rem; }
.product-area-unit { font-size: 0.9rem; }
.area-size-label { font-size: 0.8rem; letter-spacing: 0.05em; }
.area-size-icon { color: var(--site-accent-text); }
.area-size-multiply { font-size: 0.85rem; }
.area-total-row { border-color: var(--site-border) !important; }
.area-total-label { font-size: 0.85rem; }
.area-total-meta { font-size: 0.75rem; }
.price-main--area-total { line-height: 1; color: var(--site-text) !important; }
.product-palette-icon { color: var(--site-accent-text); }
.product-color-category-label { font-size: 0.65rem; letter-spacing: 0.08em; border-left: 2px solid #d97706; padding-left: 8px; }
.product-detail-actions { gap: 1rem; margin-top: 2rem; margin-bottom: 1.5rem; }
.product-detail-cta { padding: 0.8rem 1.2rem; }
.related-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--site-accent-text); margin-bottom: 0.5rem; }
.related-title { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.related-section-link { font-size: 0.875rem; }
.related-card-img--product { aspect-ratio: 1; overflow: hidden; border-radius: 0; }
.related-card-image { border-radius: 12px; }
.related-card-name--product { font-size: 1.1rem; color: var(--site-text); }
.related-card-price--product { font-weight: 600; color: var(--site-muted); }
.related-card-link { font-size: 0.85rem; font-weight: 700; color: var(--site-text); text-decoration: none; display: flex; align-items: center; gap: 4px; }
.related-card-link-icon { font-size: 0.75rem; }
.related-empty { padding: 2rem 0; }


@media (max-width: 767px) { .detail-wrap .row { --bs-gutter-x: 1.5rem; } }
