/* =====================================================
   PRODUCT DETAILS PAGE
===================================================== */


/* =====================================================
   GENERAL
===================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #333333;
    background: #ffffff;
}

a {
    text-decoration: none;
}


/* =====================================================
   CART COUNT
   NAVBAR DESIGN CONTROLLED BY main.css
===================================================== */

.cart-btn {
    position: relative;
}

.cart-count {
    min-width: 18px;
    height: 18px;

    padding: 0 5px;

    position: absolute;
    top: -5px;
    right: -6px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: #A9B5A0;
    color: #ffffff;

    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}


/* =====================================================
   BREADCRUMB
===================================================== */

.product-breadcrumb {
    width: 90%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 28px 0 15px;

    display: flex;
    align-items: center;

    gap: 10px;

    color: #999999;

    font-size: 13px;
}

.product-breadcrumb a {
    color: #777777;

    transition: 0.3s ease;
}

.product-breadcrumb a:hover {
    color: #443C36;
}

.product-breadcrumb span:last-child {
    color: #443C36;
}


/* =====================================================
   PRODUCT DETAILS PAGE
===================================================== */

.product-details-page {
    width: 100%;

    padding: 35px 0 70px;
}

.product-details-container {
    width: 90%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 65px;

    align-items: center;
}


/* =====================================================
   PRODUCT IMAGE
===================================================== */

.product-details-image {
    width: 100%;
    height: 560px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #fafafa;

    border: 1px solid #eeeeee;
    border-radius: 16px;
}

.product-details-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition: transform 0.4s ease;
}

.product-details-image:hover img {
    transform: scale(1.025);
}


/* =====================================================
   PRODUCT INFORMATION
===================================================== */

.product-details-info {
    width: 100%;
}


/* =====================================================
   CATEGORY
===================================================== */

.details-category {
    margin: 0 0 12px;

    color: #443C36;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* =====================================================
   PRODUCT NAME
===================================================== */

.product-details-info h1 {
    margin: 0 0 18px;

    color: #222222;

    font-family: Georgia, serif;

    font-size: 43px;
    font-weight: 600;

    line-height: 1.2;
}


/* =====================================================
   PRICE
===================================================== */

.details-price {
    margin: 0 0 13px;

    color: #443C36;

    font-size: 25px;
    font-weight: 700;
}


/* =====================================================
   STOCK STATUS
===================================================== */

.details-stock {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 7px 11px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 600;
}

.details-stock small {
    padding-left: 7px;

    border-left: 1px solid currentColor;

    font-size: 10px;
    font-weight: 500;

    opacity: 0.75;
}


/* AVAILABLE */

.details-stock.available {
    background: #f1f7f2;

    color: #54705a;

    border: 1px solid #d8e6da;
}


/* UNAVAILABLE */

.details-stock.unavailable {
    background: #fff3f3;

    color: #a95353;

    border: 1px solid #efd7d7;
}


/* STOCK DOT */

.stock-dot {
    width: 7px;
    height: 7px;

    display: inline-block;

    flex-shrink: 0;

    border-radius: 50%;

    background: currentColor;
}


/* =====================================================
   LINE
===================================================== */

.details-line {
    width: 100%;
    height: 1px;

    margin: 25px 0;

    background: #eeeeee;
}


/* =====================================================
   DESCRIPTION
===================================================== */

.details-description {
    max-width: 560px;

    margin: 0 0 30px;

    color: #777777;

    font-size: 15px;

    line-height: 1.8;
}


/* =====================================================
   QUANTITY SECTION
===================================================== */

.quantity-section {
    margin-bottom: 28px;
}

.quantity-title {
    margin: 0 0 10px;

    color: #333333;

    font-size: 13px;
    font-weight: 600;
}


/* =====================================================
   QUANTITY CONTROL
===================================================== */

.quantity-control {
    width: fit-content;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 8px;
}

.quantity-btn {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    background: #ffffff;
    color: #333333;

    font-size: 20px;

    cursor: pointer;

    transition: 0.3s ease;
}

.quantity-btn:hover {
    background: #F5F0E8;

    color: #443C36;
}


/* =====================================================
   DISABLED QUANTITY BUTTON
===================================================== */

.quantity-btn:disabled {
    background: #f5f5f5;

    color: #bbbbbb;

    cursor: not-allowed;

    opacity: 0.65;
}

.quantity-btn:disabled:hover {
    background: #f5f5f5;

    color: #bbbbbb;
}


/* =====================================================
   QUANTITY INPUT
===================================================== */

.quantity-control input {
    width: 50px;
    height: 42px;

    border: none;

    border-left: 1px solid #eeeeee;
    border-right: 1px solid #eeeeee;

    outline: none;

    text-align: center;

    background: #ffffff;
    color: #333333;

    font-size: 14px;
    font-weight: 600;
}


/* REMOVE NUMBER INPUT ARROWS */

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;

    margin: 0;
}

.quantity-control input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}


/* =====================================================
   QUANTITY STOCK TEXT
===================================================== */

.quantity-stock-text {
    margin: 8px 0 0;

    color: #999999;

    font-size: 10px;

    line-height: 1.5;
}


/* =====================================================
   PRODUCT ACTIONS
===================================================== */

.details-actions {
    width: 100%;

    margin-bottom: 32px;

    display: flex;
    align-items: center;

    gap: 12px;
}

.details-actions form {
    margin: 0;
    padding: 0;

    flex: 1;
}


/* =====================================================
   ADD TO CART BUTTON
===================================================== */

.details-add-cart-btn {
    width: 100%;
    min-height: 48px;

    padding: 13px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 8px;

    background: #222222;
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;
}

.details-add-cart-btn:hover {
    background: #333333;
}


/* =====================================================
   ORDER NOW BUTTON
===================================================== */

.details-order-btn {
    width: 100%;
    min-height: 48px;

    padding: 13px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 8px;

    background: #A9B5A0;
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;
}

.details-order-btn:hover {
    background: #443C36;
}


/* =====================================================
   DISABLED PRODUCT BUTTONS
===================================================== */

.details-add-cart-btn:disabled,
.details-order-btn:disabled {
    background: #eeeeee;

    color: #999999;

    cursor: not-allowed;

    opacity: 1;
}

.details-add-cart-btn:disabled:hover,
.details-order-btn:disabled:hover {
    background: #eeeeee;

    color: #999999;

    transform: none;
}


/* =====================================================
   EXTRA INFORMATION
===================================================== */

.product-extra-info {
    width: 100%;

    padding-top: 25px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;

    border-top: 1px solid #eeeeee;
}

.extra-info-item {
    padding: 15px;

    display: flex;
    align-items: flex-start;

    gap: 12px;

    background: #fafafa;

    border: 1px solid #eeeeee;
    border-radius: 10px;
}

.extra-info-item > span {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #F5F0E8;

    border-radius: 50%;

    font-size: 17px;
}

.extra-info-item strong {
    display: block;

    margin-bottom: 5px;

    color: #333333;

    font-size: 12px;
}

.extra-info-item p {
    margin: 0;

    color: #888888;

    font-size: 11px;

    line-height: 1.5;
}


/* =====================================================
   BACK TO SHOP
===================================================== */

.back-shop-section {
    width: 90%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 0 0 70px;

    text-align: center;
}

.back-shop-btn {
    padding: 11px 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    color: #555555;

    border: 1px solid #dddddd;
    border-radius: 30px;

    font-size: 13px;

    transition: 0.3s ease;
}

.back-shop-btn:hover {
    color: #443C36;

    border-color: #A9B5A0;
}


/* =====================================================
   RESPONSIVE - TABLET
===================================================== */

@media (max-width: 1000px) {

    .product-details-container {
        gap: 40px;
    }


    .product-details-image {
        height: 470px;
    }


    .product-details-info h1 {
        font-size: 36px;
    }


    .product-extra-info {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   RESPONSIVE - MOBILE
===================================================== */

@media (max-width: 700px) {

    /* BREADCRUMB */

    .product-breadcrumb {
        width: 92%;

        padding: 22px 0 10px;

        overflow-x: auto;

        white-space: nowrap;

        font-size: 11px;
    }


    /* PRODUCT */

    .product-details-page {
        padding: 20px 0 50px;
    }


    .product-details-container {
        width: 92%;

        grid-template-columns: 1fr;

        gap: 32px;
    }


    .product-details-image {
        height: 420px;

        border-radius: 12px;
    }


    .details-category {
        font-size: 11px;
    }


    .product-details-info h1 {
        margin-bottom: 14px;

        font-size: 32px;
    }


    .details-price {
        font-size: 22px;
    }


    .details-description {
        font-size: 14px;
    }


    /* STOCK */

    .details-stock {
        font-size: 10px;
    }


    /* ACTION BUTTONS */

    .details-actions {
        flex-direction: column;

        gap: 10px;
    }


    .details-actions form {
        width: 100%;

        flex: none;
    }


    .details-add-cart-btn,
    .details-order-btn {
        width: 100%;
    }


    /* EXTRA INFORMATION */

    .product-extra-info {
        grid-template-columns: 1fr;
    }


    /* BACK */

    .back-shop-section {
        width: 92%;

        padding-bottom: 50px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 450px) {

    .product-details-image {
        height: 340px;
    }


    .product-details-info h1 {
        font-size: 28px;
    }


    .details-price {
        font-size: 21px;
    }


    .quantity-btn {
        width: 40px;
        height: 40px;
    }


    .quantity-control input {
        width: 48px;
        height: 40px;
    }


    .details-stock {
        max-width: 100%;

        flex-wrap: wrap;
    }

}
