/* =====================================================
   DIGITAL PRODUCT DETAILS PAGE
   Version: 1.0
===================================================== */

.product-details-page {
    background: #f8faff;
    min-height: 70vh;
    padding-bottom: 85px;
}

/* BREADCRUMBS */

.product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    padding: 30px 0;
    color: #64748b;
    font-size: 13px;
}

.product-breadcrumb a {
    color: #6258f5;
    font-weight: 600;
}

.product-breadcrumb span:last-child {
    overflow-wrap: anywhere;
}

/* MAIN LAYOUT */

.product-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 45px;
    align-items: start;
    margin-bottom: 65px;
}

.product-preview {
    min-width: 0;
}

.product-preview-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 430px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: linear-gradient(135deg, #e8e7ff, #e8f4ff);
}

.product-preview-icon {
    font-size: 135px;
}

.product-preview-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    padding: 8px 15px;
    border-radius: 8px;
    background: white;
    color: #6258f5;
    font-size: 12px;
    font-weight: 800;
}

.product-preview-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    color: #64748b;
    font-size: 13px;
}

/* PRODUCT DETAILS */

.product-details-content {
    min-width: 0;
}

.product-detail-category {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 13px;
    border-radius: 7px;
    background: #eeedff;
    color: #6258f5;
    font-size: 12px;
    font-weight: 800;
}

.product-details-content h1 {
    margin-bottom: 18px;
    color: #111827;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.25;
    letter-spacing: -1px;
}

.product-detail-description {
    margin-bottom: 25px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.85;
}

.product-detail-pricing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.product-detail-pricing strong {
    color: #111827;
    font-size: 37px;
    font-weight: 800;
}

.product-detail-pricing del {
    color: #94a3b8;
    font-size: 20px;
}

.product-detail-discount {
    padding: 7px 11px;
    border-radius: 7px;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 800;
}

/* PRODUCT FEATURES */

.product-quick-features {
    margin-bottom: 30px;
}

.product-quick-features h2 {
    margin-bottom: 17px;
    font-size: 18px;
}

.product-quick-features ul,
.product-included-list {
    padding: 0;
    list-style: none;
}

.product-quick-features li,
.product-included-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 13px;
    color: #475569;
    font-size: 14px;
}

.product-quick-features li span,
.product-included-list li span {
    color: #16a34a;
    font-weight: 800;
}

/* PURCHASE */

.product-purchase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.product-buy-button,
.product-back-button {
    min-height: 50px;
    padding-inline: 25px;
}

.product-buy-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.product-buy-button:disabled:hover {
    transform: none;
}

.product-purchase-note {
    margin-top: 15px;
    color: #64748b;
    font-size: 12px;
}

/* INFORMATION */

.product-information-section {
    margin-bottom: 75px;
}

.product-information-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 25px;
}

.product-information-card {
    min-width: 0;
    padding: 30px;
    border: 1px solid #e8ecf4;
    border-radius: 17px;
    background: white;
}

.product-information-card h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.product-information-card h3 {
    margin: 25px 0 15px;
    font-size: 17px;
}

.product-information-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.9;
}

.product-information-card > ul:not(.product-included-list) {
    padding-left: 20px;
}

.product-information-card > ul:not(.product-included-list) li {
    margin-bottom: 10px;
    color: #475569;
    font-size: 14px;
}

.product-info-divider {
    height: 1px;
    margin: 25px 0;
    background: #e8ecf4;
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.product-meta-row span {
    color: #64748b;
}

.product-meta-row strong {
    text-align: right;
    color: #111827;
}

/* RELATED PRODUCTS */

.related-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.related-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #6258f5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.related-heading h2 {
    font-size: clamp(25px, 3vw, 34px);
}

.related-heading > a {
    color: #6258f5;
    font-size: 14px;
    font-weight: 700;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.related-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8ecf4;
    border-radius: 16px;
    background: white;
}

.related-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: linear-gradient(135deg, #eeeaff, #e7f3ff);
}

.related-product-image span {
    font-size: 65px;
}

.related-product-content {
    padding: 20px;
}

.related-product-category {
    color: #6258f5;
    font-size: 11px;
    font-weight: 800;
}

.related-product-content h3 {
    min-height: 48px;
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

.related-product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.related-product-price strong {
    font-size: 19px;
}

.related-product-price del {
    color: #94a3b8;
    font-size: 13px;
}

.related-view-button {
    display: block;
    padding: 11px;
    border-radius: 9px;
    background: #f0efff;
    color: #6258f5;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

/* NOT FOUND */

.product-not-found {
    padding: 100px 20px;
    text-align: center;
}

.product-not-found-icon {
    margin-bottom: 20px;
    font-size: 70px;
}

.product-not-found h1 {
    margin-bottom: 15px;
    font-size: 34px;
}

.product-not-found p {
    margin-bottom: 25px;
    color: #64748b;
}

/* TABLET */

@media (max-width: 1000px) {

    .product-main-layout {
        gap: 25px;
    }

    .product-preview-image {
        min-height: 350px;
    }

    .product-preview-icon {
        font-size: 100px;
    }
}

/* MOBILE */

@media (max-width: 768px) {

    .product-details-page {
        padding-bottom: 55px;
    }

    .product-breadcrumb {
        padding: 22px 0;
        font-size: 12px;
    }

    .product-main-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 45px;
    }

    .product-preview-image {
        min-height: 290px;
    }

    .product-preview-icon {
        font-size: 95px;
    }

    .product-details-content h1 {
        font-size: 29px;
    }

    .product-detail-pricing strong {
        font-size: 32px;
    }

    .product-information-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .product-information-card {
        padding: 22px;
    }

    .product-information-section {
        margin-bottom: 50px;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

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

    .related-product-image span {
        font-size: 48px;
    }

    .related-product-content {
        padding: 13px;
    }

    .related-product-content h3 {
        min-height: 55px;
        font-size: 13px;
    }

    .related-product-price strong {
        font-size: 17px;
    }

    .related-product-price del {
        font-size: 11px;
    }

    .related-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .product-purchase-actions {
        flex-direction: column;
    }

    .product-buy-button,
    .product-back-button {
        width: 100%;
    }
}