/* =========================================================
    MODAL
========================================================= */

.product-view-modal .modal-content {
    border: none;
    overflow: hidden;
    background: #f7faf8;
}

.product-view-modal .modal-body {
    padding: 18px;
}

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

.product-view-header {
    padding: 18px 22px;
    background: #fff;
    border-bottom: 1px solid #e6eeea;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #12332b;
    margin: 0;
}

.product-top-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    background: #e7f6ef;
    color: #0d7a52;
}

.theme-badge.warning {
    background: #fff4db;
    color: #d97706;
}

.theme-badge.success {
    background: #dcfce7;
    color: #15803d;
}

/* =========================================================
    TOP LAYOUT
========================================================= */

.top-layout {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 20px;
    align-items: start;
}

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

.gallery-layout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.thumbs-column {
    width: 78px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 2px;
}

.thumbs-column::-webkit-scrollbar {
    width: 5px;
}

.thumbs-column::-webkit-scrollbar-thumb {
    background: #cad5d0;
    border-radius: 20px;
}

.thumb-item {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: .2s;
    background: #fff;
    flex-shrink: 0;
}

.thumb-item.active {
    border-color: #0d7a52;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image-wrapper {
    flex: 1;
    height: 420px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4ece7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================================================
    DETAILS
========================================================= */

.details-side {
    background: #fff;
    border: 1px solid #e5ece8;
    border-radius: 18px;
    padding: 18px;
}

.compact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px dashed #e6ece9;
}

.info-item label {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
    flex-shrink: 0;
}

.info-item span {
    color: #17212b;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

/* =========================================================
    COA
========================================================= */

.compact-card {
    background: #fff;
    border: 1px solid #e5ece8;
    border-radius: 16px;
    padding: 16px 18px;
}

.section-mini-title {
    font-size: 15px;
    font-weight: 700;
    color: #12332b;
    margin-bottom: 12px;
}

.coa-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.coa-links a {
    background: #eef7f3;
    color: #0d7a52;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: .2s;
}

.coa-links a:hover {
    background: #dff3ea;
}

/* =========================================================
    ACCORDION
========================================================= */

.custom-accordion .accordion-item {
    border: 1px solid #e5ece8;
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 12px;
    background: #fff;
}

.custom-accordion .accordion-button {
    background: #fff;
    box-shadow: none !important;
    padding: 15px 18px;
    font-weight: 700;
    color: #12332b;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: #f3faf7;
    color: #0d7a52;
}

.custom-accordion .accordion-body {
    padding: 18px;
    border-top: 1px solid #edf2ef;
    color: #4b5563;
    line-height: 1.7;
    font-size: 14px;
}

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

@media(max-width:1199px) {

    .top-layout {
        grid-template-columns: 1fr;
    }

    .main-image-wrapper {
        height: 360px;
    }
}

@media(max-width:767px) {

    .gallery-layout {
        flex-direction: column-reverse;
    }

    .thumbs-column {
        width: 100%;
        flex-direction: row;
        max-height: unset;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .compact-info-grid {
        grid-template-columns: 1fr;
    }

    .main-image-wrapper {
        height: 300px;
    }

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