/* ============================================================
   SINGLE PRODUCT PAGE: MAIN LAYOUT & TITLE
============================================================ */

body.single-product .product_title {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 40px 0 20px 0 !important;
    padding: 0 !important;
    font-size: 36px !important;
    color: #0a3d62 !important;
}

body.single-product .product_title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #1e90ff;
    margin: 15px auto 0;
    border-radius: 2px;
}

.woocommerce-product-gallery__image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   PRODUCT DETAILS: PRICE, DESC, & QUANTITY
============================================================ */

.single-product div.product p.price,
.single-product div.product span.price {
    color: #1b8f3c !important;
    font-size: 24px;
    font-weight: 700;
}

.woocommerce-product-details__short-description {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.single-product div.product form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.single-product div.product form.cart .quantity input.qty {
    width: 70px;
    height: 46px;
    padding: 0 5px;
    text-align: center;
    background-color: #ffffff;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #0a3d62;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    -moz-appearance: textfield;
}

/* Remove default browser arrows */
.single-product div.product form.cart .quantity input.qty::-webkit-inner-spin-button,
.single-product div.product form.cart .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.single-product div.product .button.alt {
    background-color: #1e90ff !important;
    color: #ffffff !important;
    height: 46px;
    padding: 0 30px !important;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.single-product div.product .button.alt:hover {
    background-color: #ffd700 !important;
    color: #003f82 !important;
    transform: translateY(-2px);
}

/* ============================================================
   TABS & DESCRIPTION CONTENT
============================================================ */

.woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #eee !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #1e90ff !important;
}

.woocommerce-tabs ul.tabs li.active::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: #1e90ff;
    position: absolute;
    bottom: -2px;
}

.single-product .description h2,
.single-product .description h3 {
    color: #0a3d62;
    font-weight: 700;
    border-bottom: 2px solid #1e90ff;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* ============================================================
   WOOCOMMERCE MESSAGES (Top Notice Bar)
============================================================ */

.woocommerce-message {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #f0f7ff !important;
    border-top: 3px solid #1e90ff !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    border: 1px solid #eee !important;
}

.woocommerce-message::before {
    content: "\f058" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    color: #1b8f3c !important;
    position: static !important;
    margin-right: 12px !important;
    font-size: 18px !important;
}

.woocommerce-message .button.wc-forward {
    background: #1e90ff !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    float: none !important;
    margin-left: auto !important;
}

.woocommerce-message .button.wc-forward:hover {
    background: #0f6ed4 !important;
}

/* ============================================================
   RELATED PRODUCTS — Card layout matching the online store
============================================================ */

.related.products h2 {
    text-align: center;
    color: #0a3d62;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Cards: flex column so button always sits at the bottom */
.site-main ul.products li.product {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.25s ease !important;
}

.site-main ul.products li.product:hover {
    transform: translateY(-5px);
}

.woocommerce ul.products li.product a img {
    border-radius: 12px !important;
    margin-bottom: 15px !important;
}

/* Title: fixed min-height keeps cards aligned across a row */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 48px !important;
    margin-bottom: 10px !important;
    display: block !important;
    text-align: center !important;
}

/* Price: margin-top:auto pushes price + button to the card bottom */
.woocommerce ul.products li.product .price {
    display: block !important;
    text-align: center !important;
    margin-top: auto !important;
    margin-bottom: 15px !important;
    color: #1b8f3c !important;
    font-weight: 700;
}

/* Button: full width + gold hover, matching the online store exactly */
.woocommerce ul.products li.product .button {
    background-color: #0057b7 !important;
    color: #ffffff !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
    transition: background 0.3s ease, transform 0.18s ease !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #ffd700 !important;
    color: #003f82 !important;
    transform: translateY(-2px);
}