/* ========== Base ========== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f6f6f6;
    color: #222;
}

/* ========== Product Details ========== */
.product-details {
    width: 90%;
    max-width: 1100px;
    margin: 30px auto;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 18px;
}

/* ========== Image ========== */
.product-image {
    width: 100%;
    background-color: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: 0.35s ease;
}

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

/* ========== Info ========== */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-info h1 {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.4;
}

.price {
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
    color: #111;
}

.description {
    margin: 0;
    line-height: 1.8;
    color: #666;
    font-size: 0.98rem;
}

/* ========== Actions ========== */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

/* Quantity box */
.quantity-box {
    display: flex;
    align-items: center;
    width: fit-content;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
}

.qty-btn {
    width: 45px;
    height: 45px;
    border: none;
    background-color: #f3f3f3;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.qty-btn:hover {
    background-color: #e7e7e7;
}

.qty-input {
    width: 60px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 1rem;
    outline: none;
}

/* Buttons */
.add-to-cart-btn,
.whatsapp-btn {
    border: none;
    text-decoration: none;
    text-align: center;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    display: inline-block;
}

/* Main button */
.add-to-cart-btn {
    background-color: #111;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.add-to-cart-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* WhatsApp button */
.whatsapp-btn {
    background-color: #25d366;
    color: #fff;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.18);
}

.whatsapp-btn:hover {
    background-color: #1ebe5b;
    transform: translateY(-2px);
}

/* ========== Error Box ========== */
.error-Box {
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    background-color: #fff;
    color: #c0392b;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.error-Box h3 {
    margin: 0;
    font-size: 1.1rem;
}

.divider {
    border: none;
    height: 1px;
    background: linear-gradient(to left, transparent, #ddd, transparent);
    margin: 20px 0;
}

/* ========== Tablet and up ========== */
@media (min-width: 768px) {
    .product-details {
        padding: 25px;
    }

    .product-info h1 {
        font-size: 2rem;
    }

    .price {
        font-size: 1.6rem;
    }

    .product-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}

/* ========== Desktop ========== */
@media (min-width: 992px) {
    .product-details {
        flex-direction: row;
        align-items: center;
        gap: 35px;
    }

    .product-image,
    .product-info {
        flex: 1;
    }

    .product-image img {
        height: 500px;
    }

    .product-info h1 {
        font-size: 2.3rem;
    }

    .description {
        font-size: 1rem;
    }
}