/* Custom WooCommerce Single Product Page Styling for Conformity Globe */

/* Brand Colors:
   Primary: #154683 (Navy Blue)
   Accent/Secondary: #6DC05A (Green)
   Body Text: #334155 (Slate 700)
   Muted Text: #64748b (Slate 500)
   Background: #f8fafc (Slate 50)
   Border: #e2e8f0 (Slate 200)
*/

/* 1. Page/Layout Structure */
.single-product .site-main {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 20px !important;
}

@media (min-width: 768px) {
    .single-product div.product {
        display: grid !important;
        grid-template-columns: 1.1fr 0.9fr !important;
        gap: 60px !important;
        align-items: start !important;
        margin-top: 20px !important;
        margin-bottom: 60px !important;
    }
    
    .single-product div.product div.images,
    .single-product div.product .summary {
        float: none !important;
        width: 100% !important;
    }

    .single-product div.product .woocommerce-tabs,
    .single-product div.product .related.products {
        grid-column: span 2 !important;
    }
}

/* 2. Gallery Container */
.single-product div.product div.images {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 10px 30px rgba(21, 70, 131, 0.03) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.single-product div.product div.images:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 40px rgba(21, 70, 131, 0.07) !important;
}

.single-product div.product div.images img {
    border-radius: 10px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

/* WooCommerce zoom/gallery tweaks */
.woocommerce-product-gallery__trigger {
    background-color: #154683 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    top: 15px !important;
    right: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
}

/* 3. Product Summary Information */
.single-product div.product .summary {
    display: flex !important;
    flex-direction: column !important;
    padding: 10px 0 !important;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    font-size: 14px !important;
    color: #64748b !important;
    margin-bottom: 25px !important;
}
.woocommerce-breadcrumb a {
    color: #154683 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
.woocommerce-breadcrumb a:hover {
    color: #6DC05A !important;
}

/* Title */
.single-product .product_title {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif !important;
    font-size: 38px !important;
    font-weight: 800 !important;
    color: #154683 !important;
    line-height: 1.25 !important;
    margin: 0 0 15px 0 !important;
    letter-spacing: -0.5px !important;
}

/* Price */
.single-product p.price {
    font-size: 34px !important;
    font-weight: 800 !important;
    color: #6DC05A !important;
    margin-bottom: 25px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.single-product p.price del {
    font-size: 22px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

.single-product p.price ins {
    text-decoration: none !important;
    background: transparent !important;
}

/* Short Description */
.woocommerce-product-details__short-description {
    font-size: 16px !important;
    line-height: 1.65 !important;
    color: #475569 !important;
    margin-bottom: 30px !important;
    padding-bottom: 25px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* 4. Cart Form & Buttons (If price exists) */
.single-product form.cart {
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
    align-items: center !important;
}

.single-product form.cart .quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 2px 5px !important;
    background: #f8fafc !important;
}

.single-product form.cart .quantity input.qty {
    border: none !important;
    background: transparent !important;
    width: 60px !important;
    text-align: center !important;
    font-weight: 600 !important;
    color: #154683 !important;
    font-size: 16px !important;
    height: 40px !important;
}

.single-product form.cart .button.single_add_to_cart_button {
    background-color: #6DC05A !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(109, 192, 90, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.single-product form.cart .button.single_add_to_cart_button:hover {
    background-color: #154683 !important;
    box-shadow: 0 4px 14px rgba(21, 70, 131, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* 5. Custom B2B Inquiry Box (For products without price) */
.cg-inquiry-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #154683 !important;
    border-radius: 8px !important;
    padding: 28px !important;
    margin-bottom: 35px !important;
    box-shadow: 0 4px 15px rgba(21, 70, 131, 0.01) !important;
}

.cg-inquiry-note {
    font-size: 16px !important;
    color: #334155 !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.55 !important;
    font-weight: 500 !important;
}

.cg-inquiry-button.button {
    display: inline-block !important;
    background-color: #6DC05A !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    border: none !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(109, 192, 90, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.cg-inquiry-button.button:hover {
    background-color: #154683 !important;
    box-shadow: 0 4px 14px rgba(21, 70, 131, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* 6. Product Meta */
.product_meta {
    font-size: 14px !important;
    color: #64748b !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 20px !important;
    margin-top: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.product_meta span {
    font-weight: 500 !important;
}

.product_meta a {
    color: #154683 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.product_meta a:hover {
    color: #6DC05A !important;
}

/* 7. Tabs Layout (Description & Reviews) */
.woocommerce-tabs.wc-tabs-wrapper {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 40px !important;
    box-shadow: 0 10px 30px rgba(21, 70, 131, 0.02) !important;
}

.woocommerce-tabs ul.tabs.wc-tabs {
    display: flex !important;
    border-bottom: 2px solid #f1f5f9 !important;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 30px !important;
}

.woocommerce-tabs ul.tabs.wc-tabs li {
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 0 15px 0 !important;
    position: relative !important;
}

.woocommerce-tabs ul.tabs.wc-tabs li a {
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-decoration: none !important;
    padding: 0 !important;
    transition: color 0.3s ease !important;
}

.woocommerce-tabs ul.tabs.wc-tabs li:hover a {
    color: #154683 !important;
}

.woocommerce-tabs ul.tabs.wc-tabs li.active {
    border-bottom: none !important;
}

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

.woocommerce-tabs ul.tabs.wc-tabs li.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background-color: #6DC05A !important;
    border-radius: 3px !important;
}

/* Panel Content Styling */
.woocommerce-tabs .woocommerce-Tabs-panel {
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #475569 !important;
}

.woocommerce-tabs .woocommerce-Tabs-panel h2 {
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #154683 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

/* 8. Related Products Section */
.related.products {
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 50px !important;
    margin-top: 50px !important;
}

.related.products > h2 {
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #154683 !important;
    text-align: center !important;
    margin-bottom: 40px !important;
}

/* Related Product Cards Grid */
.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Prevent WooCommerce default pseudo-elements from acting as grid cells */
.related.products ul.products::before,
.related.products ul.products::after {
    display: none !important;
    content: none !important;
}

.related.products ul.products li.product {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 0 !important;
    width: auto !important;
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 4px 15px rgba(21, 70, 131, 0.02) !important;
    transition: all 0.3s ease !important;
}

.related.products ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(21, 70, 131, 0.08) !important;
    border-color: #6DC05A !important;
}

.related.products ul.products li.product img {
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
    height: auto !important;
}

.related.products ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #154683 !important;
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
}

.related.products ul.products li.product .price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #6DC05A !important;
    margin-top: auto !important;
    margin-bottom: 15px !important;
}

.related.products ul.products li.product .button {
    background-color: #154683 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    margin-top: auto !important;
    border: none !important;
}

.related.products ul.products li.product .price + .button {
    margin-top: 0 !important;
}

.related.products ul.products li.product .button:hover {
    background-color: #6DC05A !important;
}

/* ==========================================================================
   9. Shop Page / Product Archive Styling
   ========================================================================== */
.post-type-archive-product .site-main,
.tax-product_cat .site-main {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 20px !important;
}

/* Shop Header */
.woocommerce-products-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(21, 70, 131, 0.03) 0%, rgba(109, 192, 90, 0.03) 100%);
    border-radius: 16px;
    border: 1px solid rgba(21, 70, 131, 0.05);
}

.woocommerce-products-header__title {
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-size: 38px !important;
    font-weight: 800 !important;
    color: #154683 !important;
    margin: 0 0 10px 0 !important;
}

.woocommerce-archive-description {
    font-size: 16px;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Ordering and Result Bar */
.woocommerce-result-count {
    color: #64748b !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    margin: 15px 0 !important;
}

.woocommerce-ordering {
    margin: 10px 0 !important;
}

.woocommerce-ordering select {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: #154683 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 10px 30px 10px 15px !important;
    background-color: #ffffff !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    outline: none !important;
    transition: border-color 0.3s ease !important;
}

.woocommerce-ordering select:focus {
    border-color: #154683 !important;
}

/* Shop Products Grid */
.post-type-archive-product ul.products,
.tax-product_cat ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    margin: 40px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.post-type-archive-product ul.products::before,
.post-type-archive-product ul.products::after,
.tax-product_cat ul.products::before,
.tax-product_cat ul.products::after {
    display: none !important;
    content: none !important;
}

.post-type-archive-product ul.products li.product,
.tax-product_cat ul.products li.product {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin: 0 !important;
    width: auto !important;
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 10px 30px rgba(21, 70, 131, 0.015) !important;
    transition: all 0.3s ease !important;
}

.post-type-archive-product ul.products li.product:hover,
.tax-product_cat ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px rgba(21, 70, 131, 0.06) !important;
    border-color: #6DC05A !important;
}

.post-type-archive-product ul.products li.product img,
.tax-product_cat ul.products li.product img {
    border-radius: 10px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    height: auto !important;
}

.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
.tax-product_cat ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #154683 !important;
    line-height: 1.4 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
}

.post-type-archive-product ul.products li.product .price,
.tax-product_cat ul.products li.product .price {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #6DC05A !important;
    margin-top: auto !important;
    margin-bottom: 20px !important;
}

.post-type-archive-product ul.products li.product .button,
.tax-product_cat ul.products li.product .button {
    background-color: #154683 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    margin-top: auto !important;
    border: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-type-archive-product ul.products li.product .price + .button,
.tax-product_cat ul.products li.product .price + .button {
    margin-top: 0 !important;
}

.post-type-archive-product ul.products li.product .button:hover,
.tax-product_cat ul.products li.product .button:hover {
    background-color: #6DC05A !important;
    transform: translateY(-2px);
}

/* Shop Pagination */
nav.woocommerce-pagination {
    margin-top: 50px !important;
    text-align: center !important;
}

nav.woocommerce-pagination ul {
    display: inline-flex !important;
    gap: 8px !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

nav.woocommerce-pagination ul li {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

nav.woocommerce-pagination ul li span.current {
    background: #154683 !important;
    color: #ffffff !important;
    border-color: #154683 !important;
}

nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #154683 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

nav.woocommerce-pagination ul li a:hover {
    background: #6DC05A !important;
    color: #ffffff !important;
    border-color: #6DC05A !important;
}


/* ==========================================================================
   10. Cart Page Styling
   ========================================================================== */
.woocommerce-cart .site-main {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 20px !important;
}

/* Cart Table Layout */
.woocommerce-cart table.shop_table.cart {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

.woocommerce-cart table.shop_table.cart th {
    background-color: #154683 !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 16px 20px !important;
    border: none !important;
    text-transform: uppercase;
}

.woocommerce-cart table.shop_table.cart td {
    padding: 20px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    vertical-align: middle !important;
    color: #334155 !important;
    font-size: 15px !important;
}

.woocommerce-cart table.shop_table.cart tr:last-child td {
    border-bottom: none !important;
}

/* Product Remove Button */
.woocommerce-cart table.shop_table.cart a.remove {
    color: #94a3b8 !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    transition: color 0.3s ease !important;
}

.woocommerce-cart table.shop_table.cart a.remove:hover {
    color: #ef4444 !important;
    background: transparent !important;
}

/* Product Thumbnail */
.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
    width: 70px !important;
    height: auto !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
}

/* Product Name */
.woocommerce-cart table.shop_table.cart td.product-name a {
    color: #154683 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-family: 'Outfit', sans-serif !important;
}

.woocommerce-cart table.shop_table.cart td.product-name a:hover {
    color: #6DC05A !important;
}

/* Quantity input in cart */
.woocommerce-cart table.shop_table.cart td.product-quantity .quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 2px 5px !important;
    background: #f8fafc !important;
}

.woocommerce-cart table.shop_table.cart td.product-quantity .quantity input.qty {
    border: none !important;
    background: transparent !important;
    width: 50px !important;
    text-align: center !important;
    font-weight: 600 !important;
    color: #154683 !important;
    height: 34px !important;
}

/* Subtotal / Price */
.woocommerce-cart table.shop_table.cart td.product-subtotal,
.woocommerce-cart table.shop_table.cart td.product-price {
    font-weight: 700 !important;
    color: #6DC05A !important;
    font-size: 16px !important;
}

/* Actions panel (Coupon + Update Cart) */
.woocommerce-cart table.shop_table.cart td.actions {
    background-color: #f8fafc !important;
    padding: 20px !important;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.woocommerce-cart table.shop_table.cart td.actions input#coupon_code {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    width: 160px !important;
    height: 44px !important;
    background: #ffffff !important;
}

.woocommerce-cart table.shop_table.cart td.actions button.button {
    background-color: #154683 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    border: none !important;
    height: 44px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-transform: uppercase;
}

.woocommerce-cart table.shop_table.cart td.actions button.button:hover {
    background-color: #6DC05A !important;
}

/* Update Cart Button alignment */
.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"] {
    background-color: #64748b !important;
    float: right !important;
}
.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"]:hover {
    background-color: #154683 !important;
}

/* Cart Collaterals (Totals Card) */
.cart-collaterals {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 40px !important;
}

.cart-collaterals .cart_totals {
    width: 100% !important;
    max-width: 480px !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 10px 30px rgba(21, 70, 131, 0.01) !important;
    float: none !important;
}

.cart-collaterals .cart_totals h2 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #154683 !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 12px !important;
}

.cart-collaterals .cart_totals table {
    width: 100% !important;
    margin-bottom: 25px !important;
}

.cart-collaterals .cart_totals table tr td,
.cart-collaterals .cart_totals table tr th {
    padding: 12px 0 !important;
    border-top: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    text-align: left !important;
    font-size: 15px !important;
}

.cart-collaterals .cart_totals table tr th {
    color: #64748b !important;
    font-weight: 600 !important;
    width: 35% !important;
}

.cart-collaterals .cart_totals table tr td {
    color: #334155 !important;
    font-weight: 500 !important;
    text-align: right !important;
}

.cart-collaterals .cart_totals table tr.order-total th {
    font-weight: 800 !important;
    color: #154683 !important;
    font-size: 18px !important;
}

.cart-collaterals .cart_totals table tr.order-total td {
    font-weight: 800 !important;
    color: #6DC05A !important;
    font-size: 22px !important;
}

/* Checkout CTA Button */
.wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    background-color: #6DC05A !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    padding: 16px 24px !important;
    border-radius: 8px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(109, 192, 90, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #154683 !important;
    box-shadow: 0 4px 14px rgba(21, 70, 131, 0.3) !important;
    transform: translateY(-2px) !important;
}


/* ==========================================================================
   11. Checkout Page Styling
   ========================================================================== */
.woocommerce-checkout .site-main {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 20px !important;
}

@media (min-width: 992px) {
    .woocommerce-checkout form.checkout {
        display: grid !important;
        grid-template-columns: 1.15fr 0.85fr !important;
        gap: 50px !important;
        align-items: start !important;
    }
}

/* Left Column: Customer details form */
.woocommerce-checkout #customer_details {
    margin-bottom: 30px !important;
    float: none !important;
    width: 100% !important;
}

.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review_heading {
    font-family: 'Outfit', sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #154683 !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 12px !important;
}

/* Fields Styling */
.woocommerce-checkout .form-row {
    padding: 0 !important;
    margin-bottom: 20px !important;
}

.woocommerce-checkout .form-row label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    width: 100% !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: #154683 !important;
    box-shadow: 0 0 0 3px rgba(21, 70, 131, 0.1) !important;
}

/* Right Column: Order Review Panel */
.woocommerce-checkout #order_review_heading {
    margin-top: 0 !important;
}

.woocommerce-checkout #order_review {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 10px 30px rgba(21, 70, 131, 0.02) !important;
    float: none !important;
    width: 100% !important;
}

/* Order Review Table */
.woocommerce-checkout table.shop_table {
    border: none !important;
    width: 100% !important;
    margin-bottom: 25px !important;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    padding: 14px 0 !important;
    border-top: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    text-align: left !important;
    font-size: 15px !important;
    background: transparent !important;
}

.woocommerce-checkout table.shop_table th {
    color: #64748b !important;
    font-weight: 600 !important;
}

.woocommerce-checkout table.shop_table td {
    color: #334155 !important;
    text-align: right !important;
}

.woocommerce-checkout table.shop_table td.product-name {
    text-align: left !important;
    font-weight: 600 !important;
    color: #154683 !important;
}

.woocommerce-checkout table.shop_table td.product-total {
    font-weight: 700 !important;
}

.woocommerce-checkout table.shop_table tr.cart-subtotal th,
.woocommerce-checkout table.shop_table tr.order-total th {
    color: #154683 !important;
}

.woocommerce-checkout table.shop_table tr.order-total th {
    font-weight: 800 !important;
    font-size: 16px !important;
}

.woocommerce-checkout table.shop_table tr.order-total td {
    font-weight: 800 !important;
    color: #6DC05A !important;
    font-size: 20px !important;
}

/* Payment Gateways Panel */
.woocommerce-checkout #payment {
    background-color: #f8fafc !important;
    border-radius: 12px !important;
    padding: 20px !important;
    border: 1px solid #e2e8f0 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    list-style: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 15px !important;
    font-size: 14px !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    font-weight: 700 !important;
    color: #154683 !important;
    cursor: pointer !important;
    margin-left: 8px !important;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 10px 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #64748b !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: #ffffff !important;
}

/* Place Order Button */
.woocommerce-checkout #payment button#place_order {
    display: block !important;
    background-color: #6DC05A !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    padding: 16px 24px !important;
    border-radius: 8px !important;
    text-align: center !important;
    width: 100% !important;
    border: none !important;
.woocommerce-checkout #payment button#place_order:hover {
    background-color: #154683 !important;
    box-shadow: 0 4px 14px rgba(21, 70, 131, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   12. WooCommerce Blocks (Cart & Checkout) Overrides
   ========================================================================== */

/* Main Container spacing */
.wp-block-woocommerce-cart,
.wc-block-cart,
.wp-block-woocommerce-checkout,
.wc-block-checkout {
    margin-top: 30px !important;
}

/* Cart Items Title */
.wc-block-cart__title {
    font-family: 'Outfit', sans-serif !important;
    color: #154683 !important;
    font-weight: 800 !important;
}

/* Item Row Card styling */
.wc-block-cart-items-row {
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 20px 0 !important;
}

/* Product name link */
.wc-block-components-product-name {
    font-family: 'Outfit', sans-serif !important;
    color: #154683 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
}
.wc-block-components-product-name:hover {
    color: #6DC05A !important;
}

/* Quantity Selector styling */
.wc-block-components-quantity-selector {
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
}

.wc-block-components-quantity-selector input {
    color: #154683 !important;
    font-weight: 700 !important;
}

/* Cart Totals container card */
.wc-block-cart__totals,
.wc-block-cart-totals {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 10px 30px rgba(21, 70, 131, 0.01) !important;
}

/* Title of Totals */
.wc-block-cart-totals__title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #154683 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 12px !important;
    margin-bottom: 20px !important;
}

/* Cart Total prices */
.wc-block-components-totals-item {
    font-size: 15px !important;
    color: #334155 !important;
}

.wc-block-components-totals-item__label {
    color: #64748b !important;
    font-weight: 600 !important;
}

.wc-block-components-totals-item__value {
    color: #334155 !important;
    font-weight: 700 !important;
}

/* Final Estimated Total Row */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-weight: 800 !important;
    color: #154683 !important;
    font-size: 18px !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-weight: 800 !important;
    color: #6DC05A !important;
    font-size: 24px !important;
}

/* Proceed to Checkout button styling */
.wc-block-cart__submit-button,
.wc-block-cart__submit-button a,
.wc-block-cart__submit button,
.wc-block-cart-totals__checkout-button a,
.wc-block-cart-totals__checkout-button button,
.wc-block-components-checkout-button a,
.wc-block-components-checkout-button button,
.wc-block-components-checkout-button button.wc-block-components-checkout-button__button {
    background-color: #6DC05A !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    padding: 16px 24px !important;
    border-radius: 8px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(109, 192, 90, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    cursor: pointer !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-cart__submit-button a:hover,
.wc-block-cart__submit button:hover,
.wc-block-cart-totals__checkout-button a:hover,
.wc-block-cart-totals__checkout-button button:hover,
.wc-block-components-checkout-button a:hover,
.wc-block-components-checkout-button button:hover,
.wc-block-components-checkout-button button.wc-block-components-checkout-button__button:hover {
    background-color: #154683 !important;
    box-shadow: 0 4px 14px rgba(21, 70, 131, 0.3) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

/* --- Checkout Block Specific Layout --- */

/* Left main content block */
.wc-block-checkout__main {
    padding-right: 0 !important;
}

/* Form Steps (Contact, Shipping, Payment) */
.wc-block-components-checkout-step {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 30px !important;
    margin-bottom: 25px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(21, 70, 131, 0.01) !important;
}

/* Step Headings */
.wc-block-components-checkout-step__title,
.wc-block-components-checkout-step h2,
.wc-block-components-checkout-step h3 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #154683 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 10px !important;
}

/* Fields wrapper styling */
.wc-block-components-text-input,
.wc-block-components-textarea,
.wc-block-components-select {
    margin-bottom: 15px !important;
}

/* Inputs, textareas, selects */
.wc-block-components-text-input input,
.wc-block-components-textarea textarea,
.wc-block-components-select select,
.wc-block-components-combobox input {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-textarea textarea:focus,
.wc-block-components-select select:focus,
.wc-block-components-combobox input:focus {
    border-color: #154683 !important;
    box-shadow: 0 0 0 3px rgba(21, 70, 131, 0.1) !important;
}

/* Floating labels adjustments (WooCommerce Blocks uses floating labels inside inputs) */
.wc-block-components-text-input label,
.wc-block-components-textarea label {
    color: #64748b !important;
    font-weight: 500 !important;
}

/* Checkout Sidebar (Order Summary) Card */
.wc-block-checkout__sidebar,
.wc-block-components-sidebar {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 10px 30px rgba(21, 70, 131, 0.02) !important;
}

.wc-block-checkout__sidebar h2,
.wc-block-checkout__sidebar h3 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #154683 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 12px !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

/* Payment Info Notice box */
.wc-block-components-notice-banner {
    border-radius: 8px !important;
    border-left: 4px solid #ef4444 !important;
    background: #fef2f2 !important;
    color: #991b1b !important;
    font-weight: 500 !important;
}

/* Place Order button style override for Blocks */
.wc-block-checkout__actions button,
.wc-block-components-checkout-button button,
.wc-block-components-checkout-button button.wc-block-components-checkout-button__button {
    background-color: #6DC05A !important;
    border: 2px solid #6DC05A !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    padding: 16px 24px !important;
    border-radius: 8px !important;
    text-align: center !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(109, 192, 90, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    display: block !important;
    text-decoration: none !important;
}

.wc-block-checkout__actions button:hover,
.wc-block-components-checkout-button button:hover,
.wc-block-components-checkout-button button.wc-block-components-checkout-button__button:hover {
    background-color: #154683 !important;
    border-color: #154683 !important;
    box-shadow: 0 4px 14px rgba(21, 70, 131, 0.3) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   13. Full Page & Universal Blocks Styling (Cart & Checkout)
   ========================================================================== */

/* Page Background & Layout Containers */
.page-id-14, .page-id-15 {
    background-color: #f8fafc !important;
}

.page-id-14 .site-main,
.page-id-15 .site-main {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 20px !important;
    background: transparent !important;
}

.page-id-14 .entry-content,
.page-id-15 .entry-content {
    background: transparent !important;
    padding: 0 !important;
}

/* Page Titles */
.page-id-14 h1.entry-title,
.page-id-15 h1.entry-title,
.page-id-14 h1.page-title,
.page-id-15 h1.page-title {
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-size: 44px !important;
    font-weight: 850 !important;
    color: #154683 !important;
    text-align: center !important;
    margin-bottom: 50px !important;
    letter-spacing: -1px !important;
    position: relative !important;
}

.page-id-14 h1.entry-title::after,
.page-id-15 h1.entry-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80px !important;
    height: 4px !important;
    background-color: #6DC05A !important;
    border-radius: 2px !important;
}

/* Universal Button overrides for Gutenberg Blocks Cart */
.wc-block-cart button,
.wp-block-woocommerce-cart button,
.wc-block-cart a.button,
.wp-block-woocommerce-cart a.button {
    background-color: #6DC05A !important;
    border: 2px solid #6DC05A !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    padding: 16px 24px !important;
    border-radius: 8px !important;
    text-align: center !important;
    width: 100% !important;
    box-shadow: 0 4px 14px rgba(109, 192, 90, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.wc-block-cart button:hover,
.wp-block-woocommerce-cart button:hover,
.wc-block-cart a.button:hover,
.wp-block-woocommerce-cart a.button:hover {
    background-color: #154683 !important;
    border-color: #154683 !important;
    box-shadow: 0 4px 14px rgba(21, 70, 131, 0.3) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

/* Universal Button overrides for Gutenberg Blocks Checkout */
.wc-block-checkout button,
.wp-block-woocommerce-checkout button,
.wc-block-checkout a.button,
.wp-block-woocommerce-checkout a.button {
    background-color: #6DC05A !important;
    border: 2px solid #6DC05A !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    padding: 16px 24px !important;
    border-radius: 8px !important;
    text-align: center !important;
    width: 100% !important;
    box-shadow: 0 4px 14px rgba(109, 192, 90, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.wc-block-checkout button:hover,
.wp-block-woocommerce-checkout button:hover,
.wc-block-checkout a.button:hover,
.wp-block-woocommerce-checkout a.button:hover {
    background-color: #154683 !important;
    border-color: #154683 !important;
    box-shadow: 0 4px 14px rgba(21, 70, 131, 0.3) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

/* 6. Policy & Legal Pages Styling */
.cg-policy-page {
    max-width: 900px;
    margin: 60px auto;
    padding: 50px 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(21, 70, 131, 0.02);
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #334155;
    box-sizing: border-box;
}

.cg-policy-page h1 {
    font-size: 38px;
    font-weight: 800;
    color: #154683;
    margin-top: 0;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.cg-policy-updated {
    font-size: 14px;
    color: #64748b;
    margin-top: 0;
    margin-bottom: 35px;
    font-style: italic;
}

.cg-policy-page h2 {
    font-size: 22px;
    font-weight: 700;
    color: #154683;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
}

.cg-policy-page p, 
.cg-policy-page li {
    font-size: 15.5px;
    line-height: 1.7;
    color: #475569;
}

.cg-policy-page p {
    margin-top: 0;
    margin-bottom: 20px;
}

.cg-policy-page ul {
    margin-top: 0;
    margin-bottom: 25px;
    padding-left: 20px;
}

.cg-policy-page li {
    margin-bottom: 10px;
}

.cg-policy-page a {
    color: #6DC05A;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.cg-policy-page a:hover {
    color: #154683;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .cg-policy-page {
        margin: 30px 15px;
        padding: 30px 20px;
    }
    
    .cg-policy-page h1 {
        font-size: 28px;
    }
    
    .cg-policy-page h2 {
        font-size: 18px;
        margin-top: 30px;
    }
}

/* 7. PECB Logo & Certification Badges */
.woocommerce ul.products li.product,
.related.products ul.products li.product {
    position: relative !important;
}

.cg-pecb-loop-badge {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 10 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    width: auto !important;
    height: auto !important;
    pointer-events: none !important;
    transition: all 0.3s ease !important;
}

.cg-pecb-loop-badge img {
    height: 14px !important;
    max-height: 14px !important;
    width: auto !important;
    max-width: 40px !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    border: none !important;
    box-shadow: none !important;
}

.woocommerce ul.products li.product:hover .cg-pecb-loop-badge {
    transform: scale(1.05) !important;
    background-color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(21, 70, 131, 0.15) !important;
}

.cg-pecb-single-badge-container {
    margin-bottom: 20px !important;
    display: block !important;
    clear: both !important;
}

.cg-pecb-single-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    box-shadow: 0 4px 12px rgba(21, 70, 131, 0.04) !important;
    width: auto !important;
    height: auto !important;
}

.cg-pecb-single-logo {
    height: 20px !important;
    max-height: 20px !important;
    width: auto !important;
    max-width: 50px !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    border: none !important;
    box-shadow: none !important;
}

.cg-pecb-single-text {
    font-size: 11.5px !important;
    font-weight: 800 !important;
    color: #154683 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* Cart item badge styling */
.cg-pecb-cart-title-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.cg-pecb-cart-badge-logo {
    height: 16px !important;
    max-height: 16px !important;
    width: auto !important;
    max-width: 40px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
