
.product-detail-page {
    padding: 30px 40px 50px;
    background: #f8fafc;
    min-height: calc(100vh - 70px);
}


/* ==========================================
   HEADER
========================================== */

.product-detail-header {

    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 25px;

}

.product-detail-subtitle {

    display: block;

    color: #6b7280;

    font-size: 13px;

    margin-bottom: 4px;

}

.product-detail-header h2 {

    margin: 0;

    font-size: 24px;

    font-weight: 700;

    color: #111827;

}

.btn-back {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    height: 42px;

    padding: 0 18px;

    border: 1px solid #d1d5db;

    border-radius: 9px;

    background: #ffffff;

    color: #374151;

    text-decoration: none;

    font-size: 14px;

    font-weight: 500;

    transition: .2s;

}

.btn-back:hover {

    background: #f3f4f6;

    color: #111827;

}


/* ==========================================
   MAIN CARD
========================================== */

.product-main-card {

    display: grid;

    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);

    gap: 35px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    padding: 25px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, .05);

}


/* ==========================================
   GALLERY
========================================== */

.product-gallery {

    min-width: 0;

}

.product-main-image {

    width: 100%;

    height: 480px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border-radius: 14px;

    background: #f8fafc;

    border: 1px solid #e5e7eb;

}

.product-main-image img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;

    transition: transform .3s ease;

}

.product-main-image img:hover {

    transform: scale(1.03);

}


/* ==========================================
   THUMBNAILS
========================================== */

.product-thumbnails {

    display: flex;

    gap: 10px;

    margin-top: 12px;

    overflow-x: auto;

    padding-bottom: 5px;

}

.product-thumbnail {

    width: 72px;

    height: 72px;

    flex-shrink: 0;

    border-radius: 9px;

    border: 2px solid transparent;

    overflow: hidden;

    cursor: pointer;

    background: #f8fafc;

    transition: .2s;

}

.product-thumbnail:hover {

    border-color: #9ca3af;

}

.product-thumbnail.active {

    border-color: var(--darkBlue);

}

.product-thumbnail img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}


/* ==========================================
   NO IMAGE
========================================== */

.product-no-image-detail {

    width: 100%;

    height: 480px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    color: #9ca3af;

    background: #f8fafc;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

}

.product-no-image-detail i {

    font-size: 50px;

}


/* ==========================================
   PRODUCT INFO
========================================== */

.product-info {

    display: flex;

    flex-direction: column;

    padding: 5px 5px 0;

}

.product-category {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    width: fit-content;

    padding: 6px 10px;

    border-radius: 6px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 12px;

    font-weight: 600;

}

.product-title {

    margin: 15px 0 12px;

    color: #111827;

    font-size: 27px;

    line-height: 1.35;

    font-weight: 700;

}


/* ==========================================
   PRICE
========================================== */

.product-detail-price {

    margin: 5px 0 20px;

}

.price-promo-row {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

}

.price-promo {

    color: var(--darkBlue);

    font-size: 28px;

    font-weight: 800;

}

.price-old {

    color: #9ca3af;

    font-size: 14px;

    text-decoration: line-through;

}

.discount-badge {

    padding: 5px 8px;

    border-radius: 6px;

    background: #dc2626;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

}

.price-normal {

    color: var(--darkBlue);

    font-size: 28px;

    font-weight: 800;

}


/* ==========================================
   PRODUCT INFO GRID
========================================== */

.product-info-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

}

.product-info-item {

    padding: 13px;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    background: #f9fafb;

}

.product-info-item span {

    display: block;

    color: #6b7280;

    font-size: 12px;

    margin-bottom: 5px;

}

.product-info-item span i {

    margin-right: 5px;

}

.product-info-item strong {

    color: #1f2937;

    font-size: 14px;

}


/* ==========================================
   DIVIDER
========================================== */

.product-divider {

    height: 1px;

    background: #e5e7eb;

    margin: 22px 0;

}


/* ==========================================
   DESCRIPTION
========================================== */

.product-description h5 {

    margin-bottom: 8px;

    color: #111827;

    font-size: 15px;

    font-weight: 700;

}

.product-description p {

    margin: 0;

    color: #6b7280;

    font-size: 14px;

    line-height: 1.7;

}


/* ==========================================
   SELLER
========================================== */

.seller-info {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 20px;

    padding: 13px;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    background: #ffffff;

}

.seller-icon {

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #f3f4f6;

    color: #4b5563;

}

.seller-data span {

    display: block;

    color: #9ca3af;

    font-size: 11px;

}

.seller-data strong {

    display: block;

    color: #1f2937;

    font-size: 14px;

}


/* ==========================================
   WHATSAPP BUTTON
========================================== */

.btn-whatsapp {

    width: 100%;

    min-height: 52px;

    margin-top: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border: none;

    border-radius: 10px;

    background: #1a9d4a;

    color: #ffffff;

    text-decoration: none;

    font-size: 15px;

    font-weight: 700;

    transition: all .2s ease;

}

.btn-whatsapp:hover {

    background: #1ebe5d;

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow: 0 5px 12px rgba(37, 211, 102, .25);

}

.btn-whatsapp i {

    font-size: 24px;

}

.btn-whatsapp span {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    line-height: 1.2;

}

.btn-whatsapp small {

    font-size: 10px;

    font-weight: 400;

    opacity: .9;

}

.btn-whatsapp.disabled {

    background: #9ca3af;

    cursor: not-allowed;

    transform: none;

}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 991px) {

    .product-detail-page {

        padding: 25px 20px 40px;

    }

    .product-main-card {

        grid-template-columns: 1fr;

    }

    .product-main-image,
    .product-no-image {

        height: 400px;

    }

}


@media (max-width: 576px) {

    .product-detail-page {

        padding: 20px 12px 30px;

    }

    .product-detail-header {

        align-items: flex-start;

        gap: 15px;

    }

    .product-detail-header h2 {

        font-size: 20px;

    }

    .product-main-card {

        padding: 15px;

        gap: 20px;

        border-radius: 12px;

    }

    .product-main-image,
    .product-no-image {

        height: 300px;

    }

    .product-title {

        font-size: 21px;

    }

    .price-promo,
    .price-normal {

        font-size: 23px;

    }

    .product-info-grid {

        grid-template-columns: 1fr;

    }

}
