/* =========================
   Product Page Only Styles
   Global header/footer/font/container/root must stay in app.blade.php
========================= */

/* Breadcrumb */

.breadcrumb-section {
    padding: 26px 0 12px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.breadcrumb a {
    color: #4b5563;
    transition: 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .current {
    color: var(--primary-2);
}

/* =========================
   Product Shell
========================= */

.product-shell {
    padding: 12px 0 38px;
}

.product-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 24px;
    align-items: start;
}

.gallery-card,
.summary-card,
.panel,
.sticky-mini-cart {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(30, 30, 30, 0.08);
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
}

/* =========================
   Gallery
========================= */

.gallery-card {
    padding: 22px;
    position: sticky;
    top: 150px;
    overflow: visible;
}

.main-image {
    min-height: 540px;
    border-radius: 26px;
    background: linear-gradient(135deg, #111827, #d9480fb2 58%, #ffd43b);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.main-image::before {
    content: "";
    position: absolute;
    inset: 30px 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    z-index: -1;
}

.main-image::after {
    content: "";
    position: absolute;
    left: 34px;
    top: 0;
    width: 34px;
    height: 100%;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.08);
}

.book-visual {
    width: min(72%, 360px);
    aspect-ratio: 0.68;
    background: var(--cover-bg, linear-gradient(135deg, #111827, #d9480f 58%, #ffd43b));
    border-radius: 18px 28px 28px 18px;
    box-shadow: 0 35px 75px rgba(0, 0, 0, 0.32);
    color: #fff;
    padding: 46px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
    position: relative;
    overflow: hidden;
}

.book-visual::before {
    content: "";
    position: absolute;
    right: 22px;
    top: 22px;
    left: 22px;
    bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 14px;
}

.book-visual small {
    font-weight: 900;
    opacity: 0.85;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.book-visual strong {
    font-size: 34px;
    line-height: 1.28;
    position: relative;
    z-index: 1;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.book-visual span {
    position: relative;
    z-index: 1;
    font-size: 14px;
    opacity: 0.9;
}

.gallery-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 8;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 40px;
    padding: 9px 15px;

    color: #be123c;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;

    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;

    backdrop-filter: blur(16px) saturate(165%);
    -webkit-backdrop-filter: blur(16px) saturate(165%);

    box-shadow:
        0 14px 34px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);

    transform: translate(24%, -34%);
}

.gallery-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #e11d48;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.thumb {
    border: 2px solid transparent;
    background: #fff;
    border-radius: 20px;
    min-height: 112px;
    cursor: pointer;
    overflow: hidden;
    padding: 8px;
    transition: 0.22s ease;
}

.thumb.active,
.thumb:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.thumb-cover {
    height: 100%;
    min-height: 92px;
    border-radius: 14px;
    background: var(--cover-bg);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    text-align: center;
    padding: 8px;
    line-height: 1.5;
}

/* =========================
   Product Summary
========================= */

.summary-card {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: "";
    position: absolute;
    top: -90px;
    left: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(245, 159, 0, 0.14);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.product-tags .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(35, 86, 216, 0.13);
    background: #f3f6ff;
    color: var(--primary-2);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.product-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.35;
    letter-spacing: -1px;
    color: #111827;
    position: relative;
    z-index: 1;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.rating-row .stars {
    color: var(--accent);
    letter-spacing: -1px;
    font-size: 18px;
}

.review-link {
    color: var(--primary);
    font-weight: 900;
}

/* =========================
   Variant Selector
========================= */

.variant-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: 0.25s ease;
    position: relative;
    z-index: 1;
}

.variant-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.variant-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: #222;
    margin-bottom: 15px;
}

.variant-header i {
    color: #ff6b00;
    font-size: 20px;
}

.variant-select-wrapper {
    position: relative;
}

.variant-select {
    width: 100%;
    height: 55px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 15px;
    font-size: 15px;
    font-weight: 600;
    background: #fafafa;
    outline: none;
    cursor: pointer;
    transition: 0.25s ease;
}

.variant-select:focus {
    border-color: #ff6b00;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15);
}

.variant-note {
    margin-top: 10px;
    font-size: 13px;
    color: #777;
    line-height: 1.8;
}

/* =========================
   Price
========================= */

.price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
    border-radius: 20px;
    padding: 18px 20px;
    margin: 18px 0 20px;
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.08);
    position: relative;
    z-index: 1;
}

.price-label {
    font-size: 14px;
    font-weight: 800;
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid #fed7aa;
    padding: 8px 13px;
    border-radius: 999px;
    white-space: nowrap;
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.old-price {
    color: #a8a8a8;
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 600;
}

.new-price {
    color: #f97316;
    font-size: 32px;
    font-weight: 950;
    line-height: 1.2;
    white-space: nowrap;
}

.discount-badge {
    background: var(--danger);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(224, 49, 49, 0.22);
    white-space: nowrap;
}

/* =========================
   Quick Notes / Specs
========================= */

.quick-note {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.quick-item {
    background: #f8fafc;
    border: 1px solid rgba(30, 30, 30, 0.07);
    border-radius: 20px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.quick-item b {
    font-size: 13px;
}

.quick-item span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.specs-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.spec-item {
    background: #fff;
    border: 1px solid rgba(30, 30, 30, 0.08);
    border-radius: 18px;
    padding: 13px 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    min-height: 48px;
}

.spec-item span:first-child {
    color: var(--muted);
}

.spec-item span:last-child {
    font-weight: 900;
    color: #111827;
    text-align: left;
}

/* =========================
   Purchase Box
========================= */

.purchase-box {
    background: #111827;
    color: #fff;
    border-radius: 28px;
    padding: 18px;
    display: grid;
    gap: 14px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.18);
    position: relative;
    z-index: 1;
}

.qty-cart-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
}

.qty {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    overflow: hidden;
}

.qty button {
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.qty input {
    width: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: center;
    outline: none;
    font-weight: 950;
    font-size: 16px;
}

.add-to-cart {
    border: 0;
    border-radius: 18px;
    color: #211500;
    background: linear-gradient(135deg, var(--accent), #ffd43b);
    font-weight: 950;
    cursor: pointer;
    font-size: 15px;
    transition: 0.22s ease;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(245, 159, 0, 0.25);
}

.secondary-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.secondary-actions button {
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 850;
    transition: 0.2s ease;
}

.secondary-actions button:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.wishlist-btn.active {
    color: #e11d48;
}

.compare-btn.active {
    color: #2563eb;
}

.notify-btn.active {
    color: #f97316;
}

/* =========================
   Share Buttons
========================= */

.share-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.share-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 18px;
    background: #f5f5f5;
    color: #111827;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.purchase-box .share-row {
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    margin-top: 0;
}

.purchase-box .share-list {
    gap: 8px;
}

.purchase-box .share-btn {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.purchase-box .share-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.telegram-btn {
    color: #229ED9;
}

.whatsapp-btn {
    color: #25D366;
}

.instagram-btn {
    color: #E1306C;
}

.bale-btn img {
    width: 22px;
    height: 22px;
}

/* =========================
   Content / Tabs
========================= */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 24px;
    align-items: start;
    padding: 8px 0 38px;
}

.panel {
    padding: 26px;
}

.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(30, 30, 30, 0.08);
    padding-bottom: 14px;
    margin-bottom: 22px;
}

.tab-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: #f3f4f6;
    color: #4b5563;
    cursor: pointer;
    font-weight: 950;
    transition: 0.22s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 25px rgba(35, 86, 216, 0.22);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    margin: 0 0 14px;
    font-size: 26px;
    letter-spacing: -0.5px;
}

.tab-content p {
    color: #4b5563;
    line-height: 2.15;
    margin: 0 0 16px;
    font-size: 15px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding: 0;
}

.feature-list li {
    list-style: none;
    background: #f8fafc;
    border: 1px solid rgba(30, 30, 30, 0.07);
    border-radius: 18px;
    padding: 14px;
    line-height: 1.8;
    color: #374151;
    font-size: 14px;
}

.full-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* =========================
   Reviews
========================= */

.reviews-summary {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 25px;
}

.rating-average {
    text-align: center;
}

.score {
    display: block;
    font-size: 42px;
    font-weight: 950;
    color: #ff9800;
}

.reviews-summary .stars {
    color: #ffc107;
    font-size: 24px;
    margin: 8px 0;
}

.reviews-list {
    margin-bottom: 30px;
}

.review-card,
.review-item {
    background: #fff;
    border: 1px solid rgba(30, 30, 30, 0.08);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
}

.review-card {
    background: #f8fafc;
}

.review-head,
.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.review-head strong {
    font-size: 15px;
}

.review-card p,
.review-item p {
    margin: 0;
    font-size: 14px;
    line-height: 2;
    color: #4b5563;
}

.review-stars {
    color: #ffc107;
}

.review-form {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-form input,
.review-form textarea {
    width: 100%;
    border: 1px solid rgba(30, 30, 30, 0.1);
    border-radius: 16px;
    padding: 14px 16px;
    outline: none;
    background: #fff;
}

.review-form textarea {
    min-height: 120px;
    resize: vertical;
}

.review-form button,
.side-cta {
    border: 0;
    border-radius: 16px;
    padding: 14px 20px;
    background: var(--primary);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
    align-self: flex-start;
}

.rating-select {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: 0.2s ease;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
}

/* =========================
   Sticky Mini Cart
========================= */

.sticky-mini-cart {
    padding: 22px;
    position: sticky;
    top: 150px;
    overflow: hidden;
}

.sticky-mini-cart::before {
    content: "";
    display: block;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, #111827, #d9480f, #ffd43b);
    margin-bottom: 18px;
}

.sticky-mini-cart h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.sticky-mini-cart p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 13px;
}

.side-list {
    display: grid;
    gap: 11px;
    margin-bottom: 18px;
}

.side-list span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

/* =========================
   Related Products
========================= */

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-kicker {
    display: inline-flex;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
}

.section-title {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.8px;
    line-height: 1.4;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.9;
    max-width: 640px;
    font-size: 14px;
}

.product-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    padding: 4px 0 18px;
}

.product-row::-webkit-scrollbar {
    display: none;
}

.related-card {
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(30, 30, 30, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(16, 24, 40, 0.07);
    transition: 0.25s ease;
    min-height: 360px;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.small-cover {
    height: 190px;
    margin: 14px 14px 0;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    display: grid;
    place-items: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-weight: 950;
    font-size: 22px;
    line-height: 1.45;
}

.related-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-body h3 {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.8;
}

.related-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.related-price {
    font-weight: 950;
    color: var(--primary-2);
}

.mini-add {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 15px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1100px) {
    .product-layout,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card,
    .sticky-mini-cart {
        position: static;
    }

    .main-image {
        min-height: 460px;
    }
}

@media (max-width: 820px) {
    .quick-note,
    .specs-mini,
    .full-specs,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .qty-cart-row {
        grid-template-columns: 1fr;
    }

    .secondary-actions {
        grid-template-columns: 1fr;
    }

    .thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .price-box {
        padding: 16px;
    }

    .new-price {
        font-size: 25px;
    }

    .price-label {
        font-size: 12px;
        padding: 7px 10px;
    }
}

@media (max-width: 560px) {
    .breadcrumb-section {
        padding: 18px 0 10px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .gallery-card,
    .summary-card,
    .panel,
    .sticky-mini-cart {
        border-radius: 24px;
        padding: 18px;
    }

    .main-image {
        min-height: 390px;
    }

    .book-visual {
        width: 78%;
        padding: 34px 24px;
    }

    .book-visual strong {
        font-size: 26px;
    }

    .price-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .price-info {
        align-items: flex-start;
    }

    .new-price {
        font-size: 24px;
    }

    .product-row {
        grid-auto-columns: minmax(220px, 82vw);
    }

    .product-title {
        font-size: 28px;
    }

    .tab-content h2 {
        font-size: 22px;
    }

    .share-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .purchase-box .share-row {
        align-items: flex-start;
    }

    .review-head,
    .review-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* =========================
   Related Products - Product Page
========================= */

.related-products-section {
    padding: 10px 0 48px;
}

.related-section-head {
    margin-bottom: 20px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.related-product-card {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(30, 30, 30, 0.08);
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    overflow: visible;
    transition: 0.25s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-top: 10px;
}

.related-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(35, 86, 216, 0.18);
}

.related-product-image {
    position: relative;
    height: 370px;
    margin: 14px 14px 0;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #2356d8);
    display: block;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.35s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.related-book-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-weight: 950;
    font-size: 20px;
    line-height: 1.6;
}

.related-discount-badge {
    position: absolute;
    top: 0;
    right: 14px;
    z-index: 6;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 34px;
    padding: 7px 12px;

    color: #be123c;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;

    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;

    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);

    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);

    transform: translateY(-42%);
}

.related-discount-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #e11d48;
}

.related-stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;

    border-radius: 999px;
    padding: 7px 11px;

    font-size: 11px;
    font-weight: 950;

    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.16);
}

.related-stock-badge.in-stock {
    background: #eaf7ee;
    color: #15803d;
}

.related-stock-badge.out-stock {
    background: #fff1f2;
    color: #be123c;
}

.related-product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-product-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.related-product-meta span {
    background: #f3f6ff;
    color: var(--primary-2);
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 10.5px;
    font-weight: 850;
}

.related-product-title {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.8;
    min-height: 54px;
}

.related-product-title a {
    color: #111827;
}

.related-product-title a:hover {
    color: var(--primary);
}

.related-product-price-row {
    margin-top: auto;
}

.related-price-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.5;
}

.related-price-box del {
    color: #9ca3af;
    font-size: 12px;
}

.related-price-box strong {
    color: var(--primary-2);
    font-size: 16px;
    font-weight: 950;
}

.related-product-actions {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 9px;
    margin-top: 14px;
}

.related-view-btn,
.related-cart-btn {
    min-height: 42px;
    border: 0;
    border-radius: 15px;
    font-weight: 950;
    cursor: pointer;
    transition: 0.22s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.related-view-btn {
    background: #f3f4f6;
    color: #374151;
}

.related-view-btn:hover {
    background: #111827;
    color: #fff;
}

.related-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), #ffd43b);
    color: #211500;
}

.related-cart-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(245, 159, 0, 0.25);
}

.related-cart-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 820px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-product-image {
        height: 220px;
    }
}

@media (max-width: 560px) {
    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .related-product-card {
        border-radius: 22px;
    }

    .related-product-image {
        height: 230px;
        border-radius: 18px;
    }

    .related-product-actions {
        grid-template-columns: 1fr;
    }
}
.book-audio-card {
    position: relative;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    align-items: center;
    margin: 18px 0;
    padding: 14px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 214, 102, 0.22), transparent 36%),
        linear-gradient(135deg, #fffdf7, #fff7ed);
    border: 1px solid rgba(245, 158, 11, 0.22);
    box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
    overflow: hidden;
}

.book-audio-card::before {
    content: "";
    position: absolute;
    inset-inline-start: -40px;
    bottom: -55px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    pointer-events: none;
}

.book-audio-visual {
    width: 86px;
    height: 86px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
}

.book-audio-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-audio-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.book-audio-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.book-audio-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #b45309;
    background: rgba(245, 158, 11, 0.13);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 5px 10px;
    border-radius: 999px;
}

.book-audio-kicker::before {
    content: "🎧";
}

.book-audio-duration {
    font-size: 12px;
    font-weight: 800;
    color: #92400e;
    direction: ltr;
}

.book-audio-content h3 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 800;
    color: #1f2937;
}

.book-audio-content p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.8;
    color: #6b7280;
}

.book-audio-controls {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: center;
}

.book-audio-play {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #d97706);
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.book-audio-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(217, 119, 6, 0.32);
}

.book-audio-play span {
    font-size: 15px;
    line-height: 1;
    transform: translateX(-1px);
}

.book-audio-progress-box {
    min-width: 0;
}

.book-audio-progress {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    accent-color: #f97316;
    cursor: pointer;
}

.book-audio-times {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    direction: ltr;
}

@media (max-width: 768px) {
    .book-audio-card {
        grid-template-columns: 72px 1fr;
        gap: 12px;
        padding: 12px;
        border-radius: 18px;
        margin: 14px 0;
    }

    .book-audio-visual {
        width: 72px;
        height: 72px;
        border-radius: 17px;
    }

    .book-audio-content h3 {
        font-size: 14px;
    }

    .book-audio-content p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .book-audio-controls {
        grid-template-columns: 40px 1fr;
    }

    .book-audio-play {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }
}

@media (max-width: 420px) {
    .book-audio-card {
        grid-template-columns: 1fr;
    }

    .book-audio-visual {
        display: none;
    }
}

/* =========================
   Discount Badges Responsive
========================= */

@media (max-width: 560px) {
    .gallery-badge {
        top: 10px;
        right: 10px;
        min-height: 36px;
        padding: 8px 12px;
        font-size: 11px;
        transform: translate(14%, -30%);
    }

    .related-product-card {
        margin-top: 12px;
    }

    .related-discount-badge {
        right: 12px;
        transform: translateY(-38%);
    }
}
/* لینک نویسنده و انتشارات در مشخصات محصول */
.product-search-links {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

.product-search-link {
    color: #2356d8;
    font-weight: 900;
    line-height: 1.7;
    text-decoration: none;
    border-bottom: 1px dashed rgba(35, 86, 216, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.product-search-link:hover {
    color: #d9480f;
    border-bottom-color: rgba(217, 72, 15, 0.55);
}

.product-search-separator {
    color: #9ca3af;
    font-weight: 700;
}

@media (max-width: 560px) {
    .product-search-links {
        justify-content: flex-start;
    }
}
