/*
  INDORAN — صفحه تک محصول
  بعد از style.css، hero-premium.css و products.css لود می‌شود
  (هیروی این صفحه از کلاس مشترک .catalog-hero در products.css استفاده می‌کند).
*/

/* =========================================
   NOT FOUND STATE
========================================= */
.not-found-state {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 460px;
    margin: 0 auto;
    padding: 90px 20px;
    text-align: center;
    color: var(--muted);
}

.not-found-state.show {
    display: flex;
}

.not-found-state i {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    color: var(--primary-dark);
    background: #fff6e5;
    border-radius: 50%;
    font-size: 1.4rem;
}

.not-found-state h1 {
    color: var(--dark);
    font-size: 1.3rem;
}

/* =========================================
   PRODUCT DETAIL
========================================= */
.product-detail {
    display: none;
}

.product-detail.show {
    display: block;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 55px;
    align-items: start;
}

/* ---------- GALLERY ---------- */
.product-photo-frame {
    position: relative;
    overflow: hidden;
    padding: 30px;
    background: linear-gradient(155deg, #ffffff 0%, var(--light) 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.product-photo-frame::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    z-index: 0;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(244, 165, 28, .18), transparent 72%);
    border-radius: 50%;
}

.product-photo-frame::after {
    content: "";
    position: absolute;
    bottom: -90px;
    left: -90px;
    z-index: 0;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(18, 24, 32, .05), transparent 72%);
    border-radius: 50%;
}

.product-photo-inner {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.product-photo-inner img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .5s ease;
}

.product-photo-frame:hover .product-photo-inner img {
    transform: scale(1.05);
}

.photo-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 40px;
    box-shadow: 0 8px 20px rgba(20, 31, 42, .08);
    font-size: .72rem;
    font-weight: 700;
}

.photo-chip i {
    color: var(--primary-dark);
}

.photo-chip-quality {
    top: 20px;
    right: 20px;
    color: var(--muted);
}

.photo-chip-code {
    bottom: 20px;
    left: 20px;
    color: var(--dark);
    font-family: "JetBrains Mono", monospace;
}

.product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.product-thumbs button {
    overflow: hidden;
    width: 66px;
    height: 52px;
    padding: 0;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 10px;
    transition: .2s;
}

.product-thumbs button.active {
    border-color: var(--primary);
}

.product-thumbs img {
    height: 100%;
}

/* ---------- INFO ---------- */
.product-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 40px;
    padding: 7px 15px;
    font-size: .78rem;
    font-weight: 700;
}

.info-badge-cat {
    color: var(--primary-dark);
    background: #fff6e5;
}

.info-badge-code {
    color: var(--dark);
    background: var(--white);
    border: 1px solid var(--border);
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
}

.product-info h1 {
    margin-bottom: 14px;
    color: var(--dark);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.5;
    font-weight: 900;
}

.product-info > p.product-desc {
    color: var(--muted);
    font-size: .95rem;
    line-height: 2;
    margin-bottom: 22px;
}

.product-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
    padding: 18px 20px;
    background: var(--light);
    border-radius: 14px;
    list-style: none;
}

.product-highlights li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .8rem;
}

.product-highlights li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 14px;
    margin-inline-start: 12px;
    background: var(--border);
}

.product-highlights li i {
    color: var(--primary-dark);
    font-size: .82rem;
}

.product-highlights li strong {
    color: var(--dark);
    font-weight: 800;
}

.product-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.product-cta-row .btn {
    flex: 1 1 auto;
    min-height: 56px;
    padding: 10px 26px;
    border-radius: 12px;
    font-size: .92rem;
}

.product-cta-row .btn-primary {
    box-shadow: 0 12px 28px rgba(244, 165, 28, .28);
}

.product-cta-row .btn-whatsapp {
    color: var(--white);
    background: #25a95b;
    box-shadow: 0 12px 28px rgba(37, 169, 91, .22);
}

.product-cta-row .btn-whatsapp:hover {
    background: #1e8c49;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(37, 169, 91, .3);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-size: .78rem;
    font-weight: 600;
}

.trust-row div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.trust-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    place-items: center;
    color: var(--primary-dark);
    background: #fff6e5;
    border-radius: 50%;
    font-size: .75rem;
}

/* =========================================
   PANELS: COMPATIBILITY + SHARE
========================================= */
.product-panel {
    position: relative;
    overflow: hidden;
    margin-top: 34px;
    padding: 36px 38px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.product-panel::before {
    content: "";
    position: absolute;
    top: -60px;
    left: -60px;
    z-index: 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(244, 165, 28, .08), transparent 70%);
    border-radius: 50%;
}

.product-panel > * {
    position: relative;
    z-index: 1;
}

.product-panel h2 {
    margin-bottom: 4px;
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 800;
}

.product-panel > p {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.9;
}

/* ---------- COMPATIBILITY GRID ---------- */
.compat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.compat-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: .82rem;
    font-weight: 600;
    transition: .2s;
}

.compat-item:hover {
    background: var(--white);
    border-color: rgba(244, 165, 28, .35);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.compat-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    place-items: center;
    color: var(--primary-dark);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: .82rem;
}

.compat-item:hover .compat-icon {
    color: var(--dark);
    background: var(--primary);
    border-color: var(--primary);
}

/* ---------- SHARE ---------- */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 8px 20px 8px 8px;
    color: var(--dark);
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 40px;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.share-btn:hover {
    background: #fff6e5;
    border-color: rgba(244, 165, 28, .4);
    transform: translateY(-2px);
}

.share-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    place-items: center;
    color: var(--primary-dark);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: .85rem;
    transition: .2s;
}

.share-btn:hover .share-icon {
    color: var(--dark);
    background: var(--primary);
    border-color: var(--primary);
}

.share-copied-msg {
    display: none;
    margin-top: 16px;
    padding: 10px 14px;
    color: var(--primary-dark);
    background: #fff6e5;
    border-radius: 8px;
    font-size: .78rem;
}

.share-copied-msg.show {
    display: block;
}

/* =========================================
   RELATED PRODUCTS
========================================= */
.related-section {
    background: var(--light);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .product-page-header {
        padding: 108px 0 22px;
    }

    .product-thumbs button {
        width: 54px;
        height: 44px;
    }

    .product-photo-frame {
        padding: 18px;
    }

    .photo-chip {
        padding: 6px 11px;
        font-size: .66rem;
    }

    .product-cta-row .btn {
        flex: 1 1 100%;
    }

    .product-highlights li:not(:last-child)::after {
        display: none;
    }

    .product-panel {
        padding: 26px 22px;
    }
}
