@charset "utf-8";
/* CSS Document */

/* ==========================
   Product Details Layout
   ========================== */

#product_details {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
#Product_details_header {
    background: linear-gradient(135deg, #2d6a4f, #40916c);
    padding: 1.25rem;
    text-align: center;
}

.header_txt {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Main Content */
#product_details {
    display: flex;
    flex-wrap: wrap;
}

/* Product Image Section */
#product_details_productimage {
    flex: 1 1 450px;
    padding: 2rem;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#product_details_productimage a {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

#lgimage {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

#lgimage:hover {
    transform: scale(1.02);
}

.product_details_xgtxt {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #2d6a4f;
    font-weight: 600;
}

/* Product Info Section */
#product_details_productinfo {
    flex: 1 1 500px;
    padding: 2rem;
    box-sizing: border-box;
}

/* Product Name */
#product_details_nameID {
    margin-bottom: 1.5rem;
}

.product_details_productname {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.product_details_productid {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #777;
}

/* Description */
#product_details_productdesc {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Price */
#product_details_pricepoint {
    margin-bottom: 1.5rem;
}

#product_details_price {
    font-size: 2rem;
    font-weight: 700;
    color: #2d6a4f;
}

/* Delivery City */
#localcityselect {
    margin-bottom: 1.5rem;
}

#local_city {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fff;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

#local_city:focus {
    outline: none;
    border-color: #40916c;
    box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.15);
}

/* Add To Cart Button */
#itempage_buybutton {
    margin-top: 1rem;
}

#itempage_buybutton input[type="image"] {
    max-width: 260px;
    width: 100%;
    height: auto;
    transition: transform 0.25s ease;
    cursor: pointer;
}

#itempage_buybutton input[type="image"]:hover {
    transform: translateY(-2px);
}

/* Back Button */
#itempage_backbutton {
    width: 100%;
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #fafafa;
}

#itempage_backbutton img {
    max-width: 140px;
    height: auto;
    transition: opacity 0.25s ease;
}

#itempage_backbutton img:hover {
    opacity: 0.85;
}

/* ==========================
   Tablet
   ========================== */

@media (max-width: 900px) {
    #product_details {
        flex-direction: column;
    }

    #product_details_productimage,
    #product_details_productinfo {
        flex: 1 1 100%;
    }

    .product_details_productname {
        font-size: 1.75rem;
    }
}

/* ==========================
   Mobile
   ========================== */

@media (max-width: 600px) {

    #product_details {
        margin: 1rem;
        border-radius: 14px;
    }

    #Product_details_header {
        padding: 1rem;
    }

    .header_txt {
        font-size: 1.25rem;
    }

    #product_details_productimage,
    #product_details_productinfo {
        padding: 1.25rem;
    }

    .product_details_productname {
        font-size: 1.5rem;
    }

    #product_details_price {
        font-size: 1.75rem;
    }

    #local_city {
        font-size: 16px; /* prevents iOS zoom */
    }

    #itempage_buybutton input[type="image"] {
        max-width: 100%;
    }
}

/* Improve old align=center behavior */
div[align="center"] {
    width: 100%;
}