﻿/* =========================================================
   SIKMART PRODUCT PAGE
   Compact Modern E-Commerce Layout
   ========================================================= */


/* =========================================================
   PAGE CONTAINER
   ========================================================= */

.product-container {
    width: 100%;
    max-width: 1180px;
    margin: 20px auto 40px;
    padding: 0 14px;
    box-sizing: border-box;
}


/* =========================================================
   MAIN PRODUCT CARD
   ========================================================= */

.product-details {
    width: 100%;
    display: grid !important;
    grid-template-columns: 46% 54% !important;
    gap: 25px !important;
    align-items: start;
    padding: 18px !important;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   IMAGE SECTION
   ========================================================= */

.product-image-box {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box;
}


    /* =========================================================
   MAIN IMAGE
   ========================================================= */

    .product-image-box .product-main-image {
        width: 90% !important;
        max-width: 350px !important;
        height: 350px !important;
        object-fit: contain !important;
        display: block !important;
        background: #f8fafc !important;
        border: 1px solid #edf0f3;
        border-radius: 11px;
        box-sizing: border-box;
    }


/* =========================================================
   THUMBNAILS
   ========================================================= */

.product-image-gallery {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 10px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    box-sizing: border-box;
}


.product-image-thumbnail {
    width: 65px !important;
    height: 65px !important;
    min-width: 65px !important;
    max-width: 65px !important;
    flex: 0 0 65px !important;
    padding: 3px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
    transition: all .2s ease;
}


    .product-image-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 5px;
    }


    .product-image-thumbnail:hover {
        border-color: #22c55e !important;
        transform: translateY(-2px);
    }


    .product-image-thumbnail.active {
        border-color: #2563eb !important;
        box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
    }


/* =========================================================
   PRODUCT INFORMATION
   ========================================================= */

.product-info {
    width: 100% !important;
    min-width: 0;
    padding: 3px 8px 0 2px !important;
    box-sizing: border-box;
}


    /* =========================================================
   PRODUCT NAME
   ========================================================= */

    .product-info .product-name {
        font-size: 24px !important;
        line-height: 1.25 !important;
        font-weight: 700 !important;
        margin: 0 0 7px !important;
        color: #172033 !important;
    }


    /* =========================================================
   RATING
   ========================================================= */

    .product-info .product-rating-summary {
        display: flex !important;
        align-items: center;
        gap: 6px;
        margin: 0 0 11px !important;
        font-size: 12px !important;
    }


    .product-info .rating-star {
        font-size: 16px !important;
        line-height: 1;
    }


        .product-info .rating-star.filled {
            color: #f59e0b !important;
        }


.rating-number {
    font-size: 12px !important;
    color: #334155;
}


.rating-count {
    font-size: 12px !important;
    color: #64748b;
}


/* =========================================================
   PRICE BOX
   ========================================================= */

.product-info .product-price-box {
    position: relative;
    width: 95%;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
    margin: 4px 0 13px !important;
    padding: 11px 12px !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 8px !important;
    box-sizing: border-box;
}


/* SALE */

.product-info .sale-label {
    position: absolute !important;
    top: -8px !important;
    right: 9px !important;
    padding: 3px 8px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: .5px;
}


/* OLD PRICE */

.product-info .old-price {
    display: inline-block !important;
    color: #dc2626 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    text-decoration: line-through !important;
    text-decoration-thickness: 2px !important;
    margin: 0 !important;
}


/* NEW PRICE */

.product-info .new-price {
    display: inline-block !important;
    color: #16a34a !important;
    font-size: 24px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    margin: 0 !important;
}


/* DISCOUNT */

.product-info .discount-label {
    display: inline-block !important;
    padding: 5px 7px !important;
    background: yellow !important;
    color: #15803d !important;
    border-radius: 5px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    margin: 0 !important;
}


/* =========================================================
   PRODUCT DETAILS
   ========================================================= */

.product-info .product-description-box {
    width: 95%;
    margin: 0 0 12px !important;
    padding: 10px 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #2563eb !important;
    border-radius: 7px !important;
    box-sizing: border-box;
}


    /* Heading */

    .product-info .product-description-box h2 {
        margin: 2px !important;
        padding: 0 !important;
        font-size: 15px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        color: #1e3a8a !important;
    }


    /* Description */

    .product-info .product-description-box .product-description {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 12.5px !important;
        line-height: 1.3 !important;
        color: #475569 !important;
        white-space: pre-line !important;
    }


/* =========================================================
   SPECIFICATIONS
   ========================================================= */

.product-info .product-specifications {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 10px !important;
    padding: 5px 20px !important;
    margin: 0 0 11px !important;
    border: none !important;
    box-sizing: border-box;
}


.product-info .product-specification {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 30px !important;
    margin: 0 !important;
    background: #fccbcb;
    border-radius: 5px;
    font-size: 11.5px !important;
    box-sizing: border-box;
}


    .product-info .product-specification strong {
        color: darkred !important;
        font-weight: 700 !important;
    }


    .product-info .product-specification span {
        color: #0f172a !important;
        font-weight: 600 !important;
        text-align: right;
    }


/* =========================================================
   STOCK
   ========================================================= */

.product-info .product-stock {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px !important;
    padding: 5px 5px !important;
    border-radius: 5px;
    font-size: 12px !important;
    font-weight: 700 !important;
}


    .product-info .product-stock.available {
        color: #15803d !important;
        background: #dcfce7 !important;
    }


    .product-info .product-stock.out-of-stock {
        color: #b91c1c !important;
        background: #fee2e2 !important;
    }


/* =========================================================
   CART AREA
   ========================================================= */

.product-info .add-cart-form {
    width: 80%;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    margin: 0 0 8px !important;
}


.product-info .product-quantity {
    display: flex !important;

    align-items: center;
    gap: 10px;
    margin: 0 !important;
}


    .product-info .product-quantity label {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: black;
    }


    .product-info .product-quantity input {
        width: 55px !important;
        height: 37px !important;
        padding: 4px !important;
        text-align: center;
        font-size: 13px !important;
        border: 1px solid black !important;
        border-radius: 6px !important;
        box-sizing: border-box;
    }


/* CART BUTTON */

.product-info .add-cart-button {
    width: auto !important;
    flex: 1;
    height: 37px !important;
    padding: 0 18px !important;
    border: none !important;
    border-radius: 6px !important;
    background: #16a34a !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all .2s ease;
}


    .product-info .add-cart-button:hover {
        background: #15803d !important;
        transform: translateY(-1px);
    }


/* =========================================================
   BACK SHOP
   ========================================================= */

.product-info .back-shop {
    display: inline-block;
    margin-top: 10px !important;
    color: #2563eb !important;
    font-size: 14px !important;
    background: #f0f4f8 !important;
    border: solid 2px;
    border-radius: 10px;
    padding: 5px 10px;
    font-weight: 600;
    text-decoration: none;
    
}


    .product-info .back-shop:hover {
        text-decoration: underline;
    }



/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .product-details {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        padding: 15px !important;
    }


    .product-image-box {
        max-width: 560px !important;
        margin: 0 auto;
    }


    .product-info {
        padding: 0 !important;
    }


        .product-info .product-name {
            font-size: 23px !important;
        }


    .product-image-box .product-main-image {
        height: auto !important;
        aspect-ratio: 1 / 1;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .product-container {
        margin: 10px auto 25px;
        padding: 0 8px;
    }


    .product-details {
        padding: 9px !important;
        border-radius: 10px;
    }


    .product-info .product-name {
        font-size: 20px !important;
        line-height: 1.25 !important;
    }


    .product-image-box .product-main-image {
        height: auto !important;
        aspect-ratio: 1 / 1;
    }


    .product-image-gallery {
        justify-content: flex-start !important;
    }


    .product-info .product-price-box {
        padding: 10px !important;
    }


    .product-info .new-price {
        font-size: 21px !important;
    }


    .product-info .old-price {
        font-size: 12px !important;
    }


    .product-info .product-description-box h2 {
        font-size: 14px !important;
    }


    .product-info .product-description-box .product-description {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }


    .product-info .product-specifications {
        grid-template-columns: 1fr !important;
    }


    .product-info .add-cart-form {
        gap: 7px;
    }


    .product-info .add-cart-button {
        font-size: 12px !important;
        padding: 0 10px !important;
    }


    .product-affiliate form {
        flex-direction: column;
    }


    .product-affiliate input,
    .product-affiliate button {
        width: 100%;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .product-details {
        padding: 7px !important;
    }


    .product-info .product-name {
        font-size: 18px !important;
    }


    .product-info .new-price {
        font-size: 20px !important;
    }
}

/* =========================================================
   STOCK + RATING — 50% / 50% ROW
   ========================================================= */

.product-status-row {
    width: 95%;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: center;
    gap: 5px;
    margin: 0 0 12px;
    box-sizing: border-box;
}


/* LEFT — STOCK */

.product-stock-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}


    .product-stock-box .product-stock {
        display: inline-flex !important;
        align-items: center;
        gap: 3px;
        margin: 0 !important;
        padding: 5px 8px !important;
        border-radius: 5px;
        font-size: 12px !important;
        font-weight: 700 !important;
    }


        .product-stock-box .product-stock.available {
            color: #15803d !important;
            background: #dcfce7 !important;
        }


        .product-stock-box .product-stock.out-of-stock {
            color: #b91c1c !important;
            background: #fee2e2 !important;
        }


/* RIGHT — RATING */

.product-rating-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


    .product-rating-box .product-rating-summary {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
        margin: 0 !important;
        font-size: 15px !important;
    }


    .product-rating-box .rating-stars-display {
        display: flex;
        gap: 1px;
    }


    .product-rating-box .rating-star {
        font-size: 20px !important;
        line-height: 1;
    }


        .product-rating-box .rating-star.filled {
            color: #f59e0b !important;
        }


    .product-rating-box .rating-number {
        font-size: 20px !important;
        color: #065e27;
    }


    .product-rating-box .rating-count {
        font-size: 12px !important;
        font-weight: 600;
        margin-top: 2px;
        color: #0954f8;
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .product-status-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 5px;
    }


    .product-rating-box {
        justify-content: flex-end;
    }


        .product-rating-box .rating-star {
            font-size: 14px !important;
        }


        .product-rating-box .rating-number,
        .product-rating-box .rating-count {
            font-size: 10px !important;
        }
}