﻿/* =========================================
   PAGE
========================================= */

.product-details-page {
    padding: 40px 0;
    background: #f8fbff;
    min-height: 100vh;
}

/* =========================================
   CONTAINER
========================================= */

.product-container {
    max-width: 1350px;
    margin: auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* =========================================
   IMAGE
========================================= */

.product-image-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid #e5edf6;
    box-shadow: 0 10px 30px rgba(15,23,42,0.04);
}

    .product-image-card img {
        width: 100%;
        object-fit: contain;
    }

/* =========================================
   CONTENT
========================================= */

.product-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(37,99,235,0.10);
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-content h1 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}

.product-description {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 20px;
}

/* =========================================
   PRICE
========================================= */

.product-price {
    font-size: 28px;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 20px;
}

/* =========================================
   FEATURES
========================================= */

.product-features {
    display: grid;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
    grid-template-columns: repeat(3, 1fr);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
}

    .feature-item i {
        color: #16a34a;
    }

/* =========================================
   QUANTITY
========================================= */

.quantity-wrapper {
    margin-bottom: 36px;
}

    .quantity-wrapper label {
        display: block;
        margin-bottom: 14px;
        font-size: 15px;
        font-weight: 700;
        color: #0f172a;
    }

.quantity-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    overflow: hidden;
}

    .quantity-box button {
        width: 52px;
        height: 52px;
        border: none;
        background: #fff;
        font-size: 24px;
        cursor: pointer;
        transition: 0.2s;
    }

        .quantity-box button:hover {
            background: #f1f5f9;
        }

    .quantity-box input {
        width: 70px;
        height: 52px;
        border: none;
        text-align: center;
        font-size: 18px;
        font-weight: 700;
        outline: none;
    }

/* =========================================
   ACTIONS
========================================= */

.product-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.add-cart-btn,
.buy-now-btn {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #2453ff, #003dff);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: .3s;
}

.add-cart-btn {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 10px 25px rgba(37,99,235,0.20);
}

    .add-cart-btn:hover {
        transform: translateY(-2px);
    }

.buy-now-btn {
    background: #fff;
    border: 1px solid #dbe3ef;
    color: #0f172a;
}

    .buy-now-btn:hover {
        background: #f8fafc;
    }

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:991px) {

    .product-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-content h1 {
        font-size: 24px;
    }

    .product-price {
        font-size: 24px;
    }
}

@media(max-width:576px) {

    .product-details-page {
        padding: 24px 0;
    }

    .product-content h1 {
        font-size: 22px;
    }

    .product-description {
        font-size: 13px;
    }

    .product-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-actions {
        flex-direction: column;
    }

    .add-cart-btn,
    .buy-now-btn {
        width: 100%;
    }
}
/* =========================================
   PRODUCT IMAGE
========================================= */

.product-main-image {
    width: 100%;
    max-width: 520px;
    margin: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

    .product-main-image:hover {
        transform: scale(1.03);
    }

.product-image-card {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}