/* =========================================================
   PRODUCT DETAILS PAGE
   File: product_details.html
========================================================= */


/* =========================================================
   PRODUCT DETAILS SECTION
   Main product gallery + product information
========================================================= */

.product-details-page-header {
    padding-top: 25px;
    padding-bottom: 15px;
}


/* =========================================================
   PRODUCT DETAILS WRAPPER
   Two-column desktop layout
========================================================= */

.product_details_wrapper {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 50px;

    align-items: start;
}


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

.product-gallery {
    background: #fff;

    padding: 25px;

    border: 1px solid #e5e7eb;

    border-radius: 15px;
}


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

.main-image {
    width: 100%;

    height: 500px;

    display: flex;

    justify-content: center;

    align-items: center;

    background: #fff;

    border-radius: 12px;

    overflow: hidden;
}


/* Main product image */

.main-image img {
    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;

    transition: transform .4s ease;
}


/* Main image hover */

.main-image img:hover {
    transform: scale(1.03);
}


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

.thumbnail-images {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 20px;

    overflow-x: auto;

    padding-bottom: 5px;
}


/* Thumbnail */

.thumbnail-images img {
    width: 80px;

    height: 80px;

    flex-shrink: 0;

    object-fit: contain;

    background: #fff;

    border: 2px solid #e5e7eb;

    border-radius: 8px;

    padding: 5px;

    cursor: pointer;

    transition: .3s;
}


/* Thumbnail hover */

.thumbnail-images img:hover {
    border-color: #2563eb;

    transform: translateY(-3px);
}


/* Active thumbnail */

.thumbnail-images img.active {
    border-color: #2563eb;

    box-shadow:
        0 0 0 2px rgba(37, 99, 235, .12);
}


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

.product-info {
    padding: 10px 0;
}


/* =========================================================
   PRODUCT CATEGORY
========================================================= */

.product-info .product-category {
    display: inline-block;

    color: #2563eb;

    font-size: 14px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .5px;

    margin-bottom: 10px;
}


/* =========================================================
   PRODUCT TITLE
========================================================= */

.product-title {
    margin: 0 0 18px;

    color: #111827;

    font-size: 36px;

    line-height: 1.3;

    font-weight: 700;
}


/* =========================================================
   PRODUCT RATING
========================================================= */

.product-info .product-rating {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 20px;
}


.product-info .product-rating .stars {
    display: flex;

    gap: 4px;
}


.product-info .product-rating i {
    color: #fbbf24;

    font-size: 17px;
}


.product-info .product-rating span {
    color: #6b7280;

    font-size: 14px;
}


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

.product-info .product-price {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 15px;

    margin-bottom: 25px;
}


/* Current price */

.product-info .current-price {
    color: #2563eb;

    font-size: 34px;

    font-weight: 700;
}


/* Old price */

.product-info .old-price {
    color: #9ca3af;

    font-size: 18px;

    text-decoration: line-through;
}


/* Discount */

.product-info .discount {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 20px;

    background: #fee2e2;

    color: #dc2626;

    font-size: 13px;

    font-weight: 700;
}


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

.product-description {
    color: #6b7280;

    font-size: 16px;

    line-height: 1.8;

    margin-bottom: 25px;
}


/* =========================================================
   PRODUCT META INFORMATION
========================================================= */

.product-meta {
    padding: 20px 0;

    margin-bottom: 25px;

    border-top: 1px solid #e5e7eb;

    border-bottom: 1px solid #e5e7eb;
}


.product-meta p {
    margin: 10px 0;

    color: #6b7280;

    font-size: 15px;
}


.product-meta strong {
    color: #111827;

    margin-right: 5px;
}


/* Product stock */

.product-meta .stock {
    color: #16a34a;

    font-weight: 700;
}


/* =========================================================
   QUANTITY
========================================================= */

.quantity-box {
    margin: 30px 0;
}


.quantity-box label {
    display: block;

    margin-bottom: 12px;

    color: #111827;

    font-size: 16px;

    font-weight: 600;
}


/* Quantity control */

.quantity-control {
    display: flex;

    align-items: center;

    width: 170px;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    overflow: hidden;

    background: #fff;
}


/* Quantity buttons */

.quantity-control button {
    width: 50px;

    height: 50px;

    border: none;

    background: #f3f4f6;

    color: #111827;

    font-size: 22px;

    font-weight: 700;

    cursor: pointer;

    transition: .3s;
}


/* Quantity button hover */

.quantity-control button:hover {
    background: #2563eb;

    color: #fff;
}


/* Quantity input */

.quantity-control input {
    width: 70px;

    height: 50px;

    border: none;

    outline: none;

    background: #fff;

    color: #111827;

    text-align: center;

    font-size: 18px;

    font-weight: 600;
}


/* Remove number spinner */

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;

    margin: 0;
}


.quantity-control input[type="number"] {
    -moz-appearance: textfield;
}


/* =========================================================
   PRODUCT BUTTONS
========================================================= */

.product-buttons {
    display: flex;

    gap: 18px;

    flex-wrap: wrap;

    margin-bottom: 25px;
}


/* Common button */

.add-cart-btn,
.buy-btn {
    flex: 1;

    min-width: 180px;

    padding: 15px 30px;

    border: none;

    border-radius: 8px;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: .3s;
}


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

.add-cart-btn {
    background: #2563eb;

    color: #fff;
}


.add-cart-btn:hover {
    background: #1d4ed8;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, .20);
}


/* =========================================================
   BUY NOW
========================================================= */

.buy-btn {
    background: #111827;

    color: #fff;
}


.buy-btn:hover {
    background: #000;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(17, 24, 39, .20);
}


/* =========================================================
   WISHLIST
========================================================= */

.wishlist {
    margin: 25px 0;
}


.wishlist a {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;

    color: #374151;

    font-weight: 600;

    transition: .3s;
}


.wishlist a i {
    color: #ef4444;

    font-size: 18px;

    transition: .3s;
}


.wishlist a:hover {
    color: #2563eb;
}


.wishlist a:hover i {
    transform: scale(1.15);
}


/* =========================================================
   PRODUCT SHARE
========================================================= */

.product-share {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 25px;

    padding-top: 25px;

    border-top: 1px solid #e5e7eb;
}


.product-share span {
    color: #111827;

    font-weight: 600;
}


.product-share a {
    width: 42px;

    height: 42px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 50%;

    text-decoration: none;

    background: #f3f4f6;

    color: #374151;

    transition: .3s;
}


.product-share a:hover {
    background: #2563eb;

    color: #fff;

    transform: translateY(-3px);
}


/* =========================================================
   PRODUCT TABS SECTION
========================================================= */

.product_tabs {
    padding: 80px 0 100px;

    background: #fff;
}


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

.tabs-header {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-bottom: 30px;

    border-bottom: 2px solid #e5e7eb;
}


.tab-btn {
    padding: 14px 28px;

    border: none;

    background: #f3f4f6;

    color: #374151;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    border-radius: 8px 8px 0 0;

    transition: .3s;
}


/* Active tab */

.tab-btn.active {
    background: #2563eb;

    color: #fff;
}


/* Tab hover */

.tab-btn:hover {
    background: #2563eb;

    color: #fff;
}


/* =========================================================
   TAB CONTENT
========================================================= */

.tab-content {
    border: 1px solid #e5e7eb;

    border-radius: 12px;

    padding: 35px;

    background: #fff;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, .03);
}


/* =========================================================
   TAB BOX
========================================================= */

.tab-box {
    display: none;

    margin-bottom: 35px;
}


.tab-box.active {
    display: block;
}


.tab-box:last-child {
    margin-bottom: 0;
}


/* Tab heading */

.tab-box h3 {
    margin-bottom: 20px;

    color: #111827;

    font-size: 28px;
}


/* Tab paragraphs */

.tab-box p {
    color: #6b7280;

    line-height: 1.9;

    margin-bottom: 18px;
}


/* =========================================================
   SPECIFICATION TABLE
========================================================= */

.spec-table-wrapper {
    width: 100%;

    overflow-x: auto;
}


.spec-table {
    width: 100%;

    border-collapse: collapse;
}


.spec-table tr {
    border-bottom: 1px solid #e5e7eb;
}


.spec-table th,
.spec-table td {
    padding: 16px 20px;

    text-align: left;
}


.spec-table th {
    width: 220px;

    background: #f8fafc;

    color: #111827;

    font-weight: 600;
}


.spec-table td {
    color: #4b5563;
}


/* =========================================================
   REVIEW ITEMS
========================================================= */

.review-item {
    padding: 15px 0;

    border-bottom: 1px solid #e5e7eb;
}


.review-item:last-child {
    border-bottom: none;
}


.review-item p {
    margin: 0;

    color: #4b5563;
}


/* =========================================================
   RELATED PRODUCTS
========================================================= */

.related_products {
    padding: 100px 0 80px;

    background: #f8fafc;

    border-top: 1px solid #f1f5f9;
}


/* =========================================================
   RELATED PRODUCTS TITLE
========================================================= */

.related_products .section-title {
    text-align: center;

    margin-bottom: 50px;
}


.related_products .section-title h2 {
    font-size: 36px;

    color: #111827;

    margin-bottom: 12px;
}


.related_products .section-title p {
    max-width: 600px;

    margin: auto;

    color: #6b7280;

    line-height: 1.7;
}


/* =========================================================
   RELATED PRODUCTS GRID
========================================================= */

.related_products .products-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {
    background: #fff;

    border: 1px solid #e5e7eb;

    border-radius: 15px;

    overflow: hidden;

    transition: .35s;
}


.product-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, .08);
}


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

.product-image {
    position: relative;

    overflow: hidden;

    background: #fff;

    z-index: 1;
}


.product-image img {
    width: 100%;

    height: 250px;

    object-fit: contain;

    display: block;

    transition: transform .4s ease;
}


.product-card:hover .product-image img {
    transform: scale(1.05);
}


/* =========================================================
   PRODUCT BADGE
========================================================= */

.badge {
    position: absolute;

    top: 15px;

    left: 15px;

    z-index: 100;

    background: #ef4444;

    color: #fff;

    padding: 6px 12px;

    border-radius: 30px;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   PRODUCT CONTENT
========================================================= */

.product-content {
    padding: 22px;
}


.product-content .product-category {
    color: #2563eb;

    font-size: 14px;

    font-weight: 600;
}


.product-content h3 {
    margin: 12px 0;

    line-height: 1.4;
}


.product-content h3 a {
    text-decoration: none;

    color: #111827;

    transition: .3s;
}


.product-content h3 a:hover {
    color: #2563eb;
}


/* =========================================================
   PRODUCT CARD RATING
========================================================= */

.product-content .product-rating {
    display: flex;

    gap: 4px;

    margin-bottom: 15px;
}


.product-content .product-rating i {
    color: #fbbf24;
}


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

.product-content .product-price {
    display: flex;

    gap: 12px;

    align-items: center;

    flex-wrap: wrap;
}


.product-content .current-price {
    font-size: 22px;

    color: #2563eb;

    font-weight: 700;
}


.product-content .old-price {
    font-size: 16px;

    color: #9ca3af;

    text-decoration: line-through;
}


/* =========================================================
   TABLET
   992px and below
========================================================= */

@media (max-width: 992px) {

    /* Product details becomes single column */

    .product_details_wrapper {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    /* Related products */

    .related_products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* Main image */

    .main-image {
        height: 420px;
    }


    /* Related section spacing */

    .related_products {
        padding-top: 90px;
    }

}


/* =========================================================
   MOBILE
   768px and below
========================================================= */

@media (max-width: 768px) {


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

    .product_details {
        padding: 60px 0;
    }


    /* Product gallery */

    .product-gallery {
        padding: 20px;
    }


    /* Product info */

    .product-info {
        padding: 20px 0;
    }


    /* Main image */

    .main-image {
        height: 320px;
    }


    /* Thumbnail */

    .thumbnail-images {
        flex-wrap: wrap;

        justify-content: center;
    }


    .thumbnail-images img {
        width: 70px;

        height: 70px;
    }


    /* Product title */

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


    /* Product price */

    .product-info .current-price {
        font-size: 30px;
    }


    /* Quantity */

    .quantity-control {
        width: 160px;
    }


    .quantity-control button {
        width: 45px;

        height: 45px;
    }


    .quantity-control input {
        width: 70px;

        height: 45px;
    }


    /* Product buttons */

    .product-buttons {
        flex-direction: column;
    }


    .add-cart-btn,
    .buy-btn {
        width: 100%;

        min-width: 100%;
    }


    /* =====================================================
       PRODUCT TABS
    ===================================================== */

    .product_tabs {
        padding: 60px 0 80px;
    }


    /* Tab buttons */

    .tabs-header {
        flex-direction: column;

        border-bottom: none;
    }


    .tab-btn {
        width: 100%;

        border-radius: 8px;
    }


    /* Tab content */

    .tab-content {
        padding: 25px;
    }


    /* =====================================================
       SPECIFICATION TABLE
    ===================================================== */

    .spec-table th,
    .spec-table td {
        display: block;

        width: 100%;
    }


    .spec-table th {
        padding-bottom: 5px;
    }


    .spec-table td {
        padding-top: 5px;

        padding-bottom: 15px;
    }


    /* =====================================================
       RELATED PRODUCTS
    ===================================================== */

    .related_products {
        padding: 80px 0 60px;
    }


    .related_products .products-grid {
        grid-template-columns: 1fr;
    }


    /* Product image */

    .related_products .product-image img {
        height: 220px;
    }


    /* Related section heading */

    .related_products .section-title h2 {
        font-size: 30px;
    }

}


/* =========================================================
   SMALL MOBILE
   480px and below
========================================================= */

@media (max-width: 480px) {


    /* Product details */

    .product_details {
        padding: 40px 0;
    }


    /* Product gallery */

    .product-gallery {
        padding: 15px;
    }


    /* Main image */

    .main-image {
        height: 260px;
    }


    /* Product title */

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


    /* Product price */

    .product-info .current-price {
        font-size: 27px;
    }


    /* Description */

    .product-description {
        font-size: 15px;
    }


    /* Quantity */

    .quantity-control {
        width: 150px;
    }


    /* Product tabs */

    .product_tabs {
        padding: 50px 0 70px;
    }


    /* Tab content */

    .tab-content {
        padding: 20px;
    }


    /* Tab heading */

    .tab-box h3 {
        font-size: 23px;
    }


    /* =====================================================
       RELATED PRODUCTS
    ===================================================== */

    .related_products {
        padding: 70px 0 50px;
    }


    .related_products .section-title {
        margin-bottom: 35px;
    }


    /* Related products heading */

    .related_products .section-title h2 {
        font-size: 26px;
    }


    /* Product card */

    .product-content {
        padding: 18px;
    }


    /* Product card image */

    .related_products .product-image img {
        height: 200px;
    }

}
