body {
    font-family:
        "Poppins",
        Arial,
        Helvetica,
        sans-serif;

    background: var(--background);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}


/* ==========================================
   SECOND CHANCE STORE
   PRODUCT MODAL — STEP 1
   CARREFOUR-INSPIRED FOUNDATION
========================================== */

:root {

    --modal-blue: #0038a8;
    --modal-blue-dark: #002b80;

    --modal-red: #e2001a;

    --modal-text: #1f2937;
    --modal-muted: #6b7280;

    --modal-border: #e5e7eb;

    --modal-overlay: rgba(0, 0, 0, 0.55);

    --modal-white: #ffffff;

    --modal-radius: 10px;

}


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

.product-modal {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

}


.product-modal[hidden] {

    display: none !important;

}


/* ==========================================
   OVERLAY
========================================== */

.product-modal-overlay {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background: var(--modal-overlay);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 24px;

    box-sizing: border-box;

}


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

.product-modal-content {

    position: relative;

    width: 100%;

    max-width: 950px;

    max-height: 90vh;

    background: var(--modal-white);

    border-radius: var(--modal-radius);

    overflow-y: auto;

    overflow-x: hidden;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25);

}


/* ==========================================
   CLOSE BUTTON
========================================== */

.product-modal-close {

    position: absolute;

    top: 16px;
    right: 16px;

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--modal-border);

    border-radius: 50%;

    background: #ffffff;

    color: #333;

    cursor: pointer;

    z-index: 20;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;

}


.product-modal-close:hover {

    background: #f5f5f5;

    color: var(--modal-red);

}


.product-modal-close:active {

    transform: scale(0.94);

}


.product-modal-close
.material-symbols-outlined {

    font-size: 22px;

}


/* ==========================================
   PRODUCT IMAGE GALLERY
========================================== */

#product-modal-body > .product-image-gallery {

    grid-column: 1;

    grid-row: 1 / -1;

    min-width: 0;
    min-height: 520px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 32px;

    box-sizing: border-box;

    background: #f7f7f7;

    border-right:
        1px solid var(--modal-border);

}


/* ==========================================
   MAIN IMAGE AREA
========================================== */

.product-main-image-container {

    width: 100%;

    max-width: 430px;

    height: 400px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #ffffff;

    border-radius: 8px;

    overflow: hidden;

}


/* ==========================================
   MAIN PRODUCT IMAGE
========================================== */

.product-main-image {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    

}


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

.product-image-thumbnails {

    width: 100%;

    max-width: 430px;

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 16px;

    justify-content: center;

}


/* ==========================================
   THUMBNAIL BUTTON
========================================== */

.product-image-thumbnail {

    width: 72px;

    height: 72px;

    padding: 4px;

    background: #ffffff;

    border: 1px solid #dcdcdc;

    border-radius: 6px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


/* ==========================================
   THUMBNAIL IMAGE
========================================== */

.product-image-thumbnail img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    border: none !important;

    padding: 0 !important;

    border-radius: 3px;

}


/* ==========================================
   ACTIVE THUMBNAIL
========================================== */

.product-image-thumbnail.active {

    border:
        2px solid var(--modal-blue);

    box-shadow:
        0 0 0 1px var(--modal-blue);

}


/* ==========================================
   THUMBNAIL HOVER
========================================== */

.product-image-thumbnail:hover {

    border-color:
        var(--modal-blue);

}




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

.product-modal-content::-webkit-scrollbar {

    width: 7px;

}

.product-modal-content::-webkit-scrollbar-track {

    background: transparent;

}

.product-modal-content::-webkit-scrollbar-thumb {

    background: #c9c9c9;

    border-radius: 10px;

}

.product-modal-content::-webkit-scrollbar-thumb:hover {

    background: #999999;

}




/* ==========================================
   PRODUCT NAME
========================================== */

.product-modal-name {

    margin: 0;

    color: var(--modal-text);

    font-size: 1.65rem;

    font-weight: 700;

    line-height: 1.3;

}


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

.product-modal-price {

    margin: 10px 0 24px;

    color: var(--modal-blue);

    font-size: 1.65rem;

    font-weight: 700;

    line-height: 1.2;

}


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

.product-modal-description {

    margin-bottom: 24px;

}


.product-modal-description-title {

    margin: 0 0 8px;

    color: var(--modal-text);

    font-size: 0.95rem;

    font-weight: 700;

}


.product-modal-description-text {

    margin: 0;

    color: #4b5563;

    font-size: 0.95rem;

    line-height: 1.6;

}


/* ==========================================
   LOW-KEY PRODUCT INFORMATION
========================================== */

.product-modal-info {

    margin: 0;

    padding: 10px 0;

    border-bottom: 1px solid #f1f1f1;

    color: var(--modal-muted);

    font-size: 0.82rem;

    font-weight: 400;

}


/* ==========================================
   NEGOTIABLE / PRICE STATUS
========================================== */

.product-modal-negotiable {

    display: inline-flex;

    align-self: flex-start;

    margin: 16px 0 0;

    padding: 6px 10px;

    border-radius: 6px;

    background: #f3f7ff;

    color: var(--modal-blue);

    font-size: 0.8rem;

    font-weight: 600;

}



#product-modal-body {

    width: 100%;

    display: grid;

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

    gap: 36px;

    padding: 32px;

    box-sizing: border-box;

    max-height: calc(90vh - 20px);

    overflow-y: auto;

    color: var(--modal-text);

}




/* ==========================================
   RIGHT SIDE — PRODUCT DETAILS
========================================== */

.product-modal-details {

    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-start;

}


/* ==========================================
   PRIMARY PRODUCT INFORMATION
========================================== */

.product-primary-details {

    padding-bottom: 18px;

    border-bottom: 1px solid #eeeeee;

}


/* ==========================================
   PRODUCT NAME
========================================== */

.product-primary-details h2 {

    margin: 0 0 12px 0;

    font-size: 26px;

    line-height: 1.25;

    font-weight: 700;

    color: #1f2937;

}


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

.product-primary-details p {

    margin: 0;

    font-size: 27px;

    line-height: 1.2;

    font-weight: 800;

    color: var(--modal-blue);

}




/* ==========================================
   PRODUCT INFORMATION GRID
========================================== */

.product-info-grid {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 8px;

    margin-top: 20px;

}


/* ==========================================
   INDIVIDUAL PRODUCT INFORMATION BOX
========================================== */

.product-modal-info,
.product-modal-negotiable {

    margin: 0;

    padding: 8px 12px;

    background: #f5f5f5;

    border: 1px solid #e8e8e8;

    border-radius: 7px;

    color: #6b7280;

    font-size: 13px;

    line-height: 1.3;

    white-space: nowrap;

}


/* ==========================================
   NEGOTIABLE
========================================== */

.product-modal-negotiable {

    color: #6b7280;

}


/* ==========================================
   HOVER — VERY SUBTLE
========================================== */

.product-modal-info:hover,
.product-modal-negotiable:hover {

    background: #f1f1f1;

}



/* ==========================================
   ADD TO CART BUTTON
========================================== */

.add-to-cart-button {

    width: 42px;
    height: 42px;

    padding: 0;

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

    border: none;

    border-radius: 8px;

    background: var(--modal-blue);

    color: #ffffff;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease;

}


/* ==========================================
   PLUS ICON
========================================== */

.add-to-cart-button
.material-symbols-outlined {

    font-size: 22px;

    line-height: 1;

}


/* ==========================================
   HOVER
========================================== */

.add-to-cart-button:hover {

    background: var(--modal-blue-dark);

}


/* ==========================================
   CLICK
========================================== */

.add-to-cart-button:active {

    transform: scale(0.94);

}


/* ==========================================
   DISABLED
========================================== */

.add-to-cart-button:disabled {

    cursor: default;

    opacity: 0.7;

}