/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Astra Child Theme
 Author:       Brainstorm Force
 Author URI:   https://wpastra.com/
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/
/* ===================================================
   Custom Single Product Page Layout & Styling
=================================================== */

.custom-single-product-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Two-column layout */
.product-main-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.product-gallery-column {
    flex: 1 1 48%;
    max-width: 48%;
}

.product-info-column {
    flex: 1 1 48%;
    max-width: 48%;
}

@media (max-width: 768px) {
    .product-gallery-column,
    .product-info-column {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Badges & Titles */
.stock-badge.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.custom-product-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

.custom-product-rating {
    margin-bottom: 15px;
    font-size: 14px;
    color: #ff9800;
}
.star-placeholder .review-count {
    color: #666;
    margin-left: 6px;
    font-size: 13px;
}

/* Pricing */
.custom-price-wrapper {
    font-size: 24px;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 20px;
}
.custom-price-wrapper del {
    color: #888;
    font-size: 18px;
    margin-right: 8px;
}
.custom-price-wrapper ins {
    text-decoration: none;
}

/* Highlights Box */
.product-highlights {
    background: #f9f9fb;
    border-left: 4px solid #111;
    padding: 14px 18px;
    border-radius: 4px;
    margin: 20px 0;
}
.product-highlights ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.product-highlights li {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}
.product-highlights li:last-child {
    margin-bottom: 0;
}
.product-highlights .icon {
    margin-right: 6px;
}

/* Add to Cart Button */
.custom-add-to-cart-box form.cart {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}
.custom-add-to-cart-box .single_add_to_cart_button {
    background: #000000 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    border-radius: 6px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    flex-grow: 1;
}
.custom-add-to-cart-box .single_add_to_cart_button:hover {
    background: #2b2b2b !important;
}

/* COD Trust Badges */
.trust-badge-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 15px;
    margin-top: 25px;
}
.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.badge-icon {
    font-size: 22px;
}
.badge-text strong {
    display: block;
    font-size: 13px;
    color: #111;
}
.badge-text span {
    font-size: 11px;
    color: #666;
}

@media (max-width: 600px) {
    .trust-badge-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Sticky Bottom Bar */
.sticky-product-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 10px 20px;
    box-sizing: border-box;
    transition: bottom 0.3s ease-in-out;
}
.sticky-product-bar.is-visible {
    bottom: 0;
}
.sticky-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sticky-product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sticky-thumb img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}
.sticky-title {
    font-weight: 600;
    font-size: 14px;
    color: #111;
}
.sticky-price {
    color: #d32f2f;
    font-weight: 700;
    font-size: 14px;
}
.sticky-order-btn {
    background: #000000;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
}
.sticky-order-btn:hover {
    background: #333333;
    color: #fff;
}