/*
Theme Name: 🦙 BABY LLAMA BABY
Theme URI: https://example.com
Author: Antigravity
Author URI: https://example.com
Description: A custom, lightweight Elementor-ready WordPress theme starring a baby llama.
Version: 1.0.6
Text Domain: baby-llama
*/

:root {
  --wp--preset--color--bg-color: #F8F4EC;
  --wp--preset--color--bd-color: #E2D6CC;
  --wp--preset--color--text-dark: #132640;
  --wp--preset--color--text-light: #8E919D;
  --wp--preset--color--text-link: #EEA12C;
  --wp--preset--color--text-hover: #C96F10;
  --wp--preset--color--text-link-2: #9DADAD;
  --wp--preset--color--text-link-3: #C3B0AC;
  --wp--preset--font-family--p-font: 'DM Sans', sans-serif;
  --wp--preset--font-family--h-1-font: 'Quicksand', sans-serif;
  
  --e-global-color-primary: var(--wp--preset--color--text-dark);
  --e-global-color-secondary: var(--wp--preset--color--text-link);
  --e-global-color-text: var(--wp--preset--color--text-light);
  --e-global-color-accent: var(--wp--preset--color--text-link-2);
  --e-global-typography-primary-font-family: var(--wp--preset--font-family--h-1-font);
  --e-global-typography-secondary-font-family: var(--wp--preset--font-family--p-font);
  --e-global-typography-text-font-family: var(--wp--preset--font-family--p-font);
  --e-global-typography-accent-font-family: var(--wp--preset--font-family--h-1-font);
}

body {
    background-color: var(--wp--preset--color--bg-color);
    color: var(--wp--preset--color--text-dark);
    font-family: var(--wp--preset--font-family--p-font);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--wp--preset--font-family--h-1-font);
    color: var(--wp--preset--color--text-dark);
}

a {
    color: var(--wp--preset--color--text-link);
}
a:hover {
    color: var(--wp--preset--color--text-hover);
}

/* Header & Navbar */
.site-header {
    background-color: var(--wp--preset--color--bg-color);
    border-bottom: 1px solid var(--wp--preset--color--bd-color);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: var(--wp--preset--font-family--h-1-font);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wp--preset--color--text-dark);
}

.site-branding .llama-icon {
    font-size: 2.2rem;
}

.main-navigation ul.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-navigation ul.nav-menu li a {
    text-decoration: none;
    color: var(--wp--preset--color--text-dark);
    font-weight: 600;
    font-family: var(--wp--preset--font-family--p-font);
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.main-navigation ul.nav-menu li a:hover,
.main-navigation ul.nav-menu li.current-menu-item > a {
    color: var(--wp--preset--color--text-link);
}

.menu-placeholder {
    color: var(--wp--preset--color--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Global Content Layout */
.site-main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: 60vh;
}

/* --- WOOCOMMERCE SINGLE PRODUCT PAGE --- */
.woocommerce .woocommerce-breadcrumb {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    font-size: 0.9rem;
    color: #8E919D;
    display: flex;
    flex-wrap: wrap;
    line-height: 1.5;
}

.woocommerce div.product {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Gallery & Thumbnails Layout */
.woocommerce div.product div.images {
    width: 50%;
    float: left;
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
}

.woocommerce div.product div.images .flex-viewport {
    flex: 1;
    min-width: 0;
    border-radius: 8px;
    background-color: #f4f4f4;
    overflow: hidden;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.woocommerce div.product div.images .flex-control-thumbs {
    width: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    width: 100%;
    padding: 0;
    list-style: none;
}

.woocommerce div.product div.images .flex-control-thumbs img {
    border-radius: 4px;
    background-color: #f4f4f4;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    height: auto;
}

.woocommerce div.product div.images .flex-control-thumbs img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs img:hover {
    border-color: #f59f9f;
}

/* Product Summary Layout */
.woocommerce div.product div.summary {
    width: 45%;
    float: right;
    padding-left: 20px;
}

/* Typography */
.woocommerce div.product .product_title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: var(--wp--preset--font-family--h-1-font);
    margin-bottom: 5px;
}

.woocommerce div.product p.price, 
.woocommerce div.product span.price {
    color: #6b8e73;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.woocommerce div.product .woocommerce-product-rating {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #8E919D;
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce .star-rating {
    color: #6b8e73;
}



/* Description */
.woocommerce div.product .woocommerce-product-details__short-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Stock Progress */
.bl-stock-progress {
    margin-bottom: 25px;
}

.bl-stock-progress p {
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    color: #666;
}

.bl-progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
}

.bl-progress-fill {
    height: 100%;
    background-color: #ed4f49;
    border-radius: 2px;
}

/* Form Elements */
.woocommerce div.product form.cart {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.woocommerce div.product form.cart div.quantity {
    margin: 0;
}

/* Styling for Variations Layout */
.woocommerce div.product form.cart .variations {
    width: 100%;
    margin-bottom: 15px;
    display: block;
}

.woocommerce div.product form.cart .variations tbody,
.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td.value {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0;
    margin: 0;
}

.woocommerce div.product form.cart .variations th {
    padding-right: 15px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.woocommerce div.product form.cart .variations td.value {
    margin-bottom: 25px;
}

.woocommerce div.product form.cart .variations select {
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    outline: none;
    background: #fff;
    cursor: pointer;
    min-width: 150px;
}

/* Quantity Input With Buttons */
.woocommerce div.product form.cart div.quantity {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    border: 1px solid #ddd;
    overflow: hidden;
    height: 50px;
    width: 140px;
    margin-right: 15px;
}

.woocommerce .quantity .qty {
    width: 50px;
    height: 100%;
    border: none;
    text-align: center;
    font-weight: 600;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
}

.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce .quantity .qty-btn {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
    color: #555;
    transition: background 0.3s;
    user-select: none;
}

.woocommerce .quantity .qty-btn:hover {
    background: #f4f4f4;
}

/* Variation Pills generated via JS */
.variation-pills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.variation-pill {
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: 0.3s;
    user-select: none;
}

.variation-pill:hover,
.variation-pill.active {
    border-color: #6b8e73;
    color: #6b8e73;
    background: rgba(107, 142, 115, 0.05);
}

/* Buttons */
.woocommerce div.product form.cart .single_add_to_cart_button {
    background-color: #f59f9f;
    color: #fff;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    transition: 0.3s;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background-color: #e48f8f;
    color: #fff;
}

.woocommerce div.product form.cart .single_add_to_cart_button:active {
    background-color: #d87c7c;
    color: #fff;
    transform: scale(0.98);
}



/* Tabs Redesign */
.woocommerce div.product .woocommerce-tabs {
    clear: both;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none;
    background: transparent;
    margin: 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    border-radius: 25px;
    color: #666;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    background: #6b8e73;
    color: #fff;
}

.woocommerce div.product .woocommerce-tabs .panel {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #555;
    line-height: 1.8;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
    display: none;
}

/* Responsive Customization */
@media (max-width: 768px) {
    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        width: 100%;
        float: none;
    }
    
    .woocommerce div.product div.images {
        flex-direction: column;
    }
    
    .woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
    .woocommerce div.product div.images .flex-control-thumbs {
        width: 100%;
    }
    
    .woocommerce div.product div.images .flex-control-thumbs {
        flex-direction: row;
        margin-top: 15px;
    }
    
    .woocommerce div.product div.images .flex-control-thumbs li {
        width: 25%;
    }
}

/* Related Products Section */
.related.products {
    clear: both;
    margin-top: 60px;
    padding-top: 40px;
}

.related.products > h2 {
    text-align: left;
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #1a1a1a;
}

/* Fix WooCommerce float-based grid — force CSS grid */
.related.products ul.products,
.woocommerce ul.products,
ul.products.columns-3,
ul.products.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
}

/* Kill all WooCommerce float widths on individual items */
.related.products ul.products li.product,
ul.products.columns-3 li.product,
ul.products.columns-4 li.product,
.woocommerce ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
}

/* Hide truly empty product placeholders */
.related.products ul.products li.product:empty {
    display: none !important;
}

.related.products ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    float: none !important;
    clear: none !important;
}

.related.products ul.products li.product a {
    text-decoration: none;
}

.related.products ul.products li.product a img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.related.products ul.products li.product a img:hover {
    transform: scale(1.03);
}

.related.products ul.products li.product .woocommerce-loop-product__title,
.related.products ul.products li.product h2 {
    font-size: 1rem !important;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: center;
    font-family: var(--wp--preset--font-family--p-font);
}

.related.products ul.products li.product .price {
    font-size: 0.95rem !important;
    color: #6b8e73 !important;
    margin-bottom: 12px;
    display: block;
    text-align: center;
}

.related.products ul.products li.product .price del {
    color: #999 !important;
    font-weight: 400;
}

.related.products ul.products li.product .price ins {
    color: #6b8e73 !important;
    font-weight: 700;
    text-decoration: none;
}

.related.products ul.products li.product a.button,
.related.products ul.products li.product a.add_to_cart_button {
    display: inline-block !important;
    background-color: #8da992 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: background-color 0.3s;
    text-decoration: none;
    margin-top: 5px;
}

.related.products ul.products li.product a.button:hover,
.related.products ul.products li.product a.add_to_cart_button:hover {
    background-color: #6b8e73 !important;
    color: #fff !important;
}

/* Sale badge on related products */
.related.products ul.products li.product .onsale {
    background-color: #8da992;
    color: #fff;
    border-radius: 50%;
    min-height: 40px;
    min-width: 40px;
    line-height: 40px;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

@media (max-width: 1024px) {
    .related.products ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .related.products ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .related.products ul.products li.product a img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .related.products ul.products,
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
    .related.products ul.products li.product a img {
        height: 280px;
    }
}

/* --- HIDE SIDEBAR WIDGETS --- */
.widget-area,
.sidebar,
#secondary,
aside#secondary,
.woocommerce-sidebar,
body.woocommerce .widget_search,
body.woocommerce .widget_pages,
body.woocommerce .widget_archives,
body.woocommerce .widget_categories,
body.woocommerce .widget_recent_entries,
body.woocommerce .widget_meta,
body .widget_search,
body .widget_pages,
body .widget_archives,
body .widget_categories,
body .widget_recent_entries,
body .widget_meta {
    display: none !important;
}

/* ============================================
   WOOCOMMERCE BLOCKS — CART PAGE
   ============================================ */

/* Page wrapper */
.woocommerce-cart .site-main {
    padding: 0px !important;
}
.wp-block-woocommerce-cart {
    width: 92% !important;
    max-width: 1100px;
    margin: 40px auto !important;
}

/* Two-column layout */
.wc-block-cart {
    display: flex !important;
    gap: 40px !important;
    align-items: flex-start;
    flex-wrap: wrap;
}

.wc-block-cart__main {
    flex: 1 1 580px !important;
    min-width: 0;
}

.wc-block-cart__sidebar {
    flex: 0 0 340px !important;
    width: 340px !important;
}

/* Cart items header */
.wc-block-cart-items__header {
    display: flex;
    padding: 14px 0 !important;
    border-bottom: 2px solid #E2D6CC !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8E919D !important;
}

/* Individual cart item */
.wc-block-cart-item {
    display: flex !important;
    align-items: center;
    padding: 20px 0 !important;
    border-bottom: 1px solid #f0ece4 !important;
    gap: 20px;
}

/* Product image */
.wc-block-cart-item__image img,
.wc-block-cart-item__image a img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    border: 2px solid #f0ece4 !important;
}

/* Product description */
.wc-block-cart-item__description {
    flex: 1;
}

.wc-block-cart-item__individual-item-price {
    color: #6b8e73 !important;
    font-weight: 700 !important;
}

/* Product name link */
.wc-block-cart-item__product-name,
.wc-block-cart-item__description a {
    color: #1a1a1a !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
}

.wc-block-cart-item__description a:hover {
    color: #6b8e73 !important;
}

/* Variation info (like Size: 12 Months) */
.wc-block-cart-item__meta {
    font-size: 0.82rem;
    color: #8E919D;
    margin-top: 4px;
}

/* Quantity selector */
.wc-block-components-quantity-selector {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #E2D6CC !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    background: #fff !important;
    width: 120px !important;
    height: 42px !important;
}

.wc-block-components-quantity-selector__button {
    width: 38px !important;
    height: 42px !important;
    background: transparent !important;
    border: none !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #555 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s !important;
}

.wc-block-components-quantity-selector__button:hover {
    background: #f4f1eb !important;
}

.wc-block-components-quantity-selector__value {
    flex: 1 !important;
    text-align: center !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    background: transparent !important;
    width: 40px !important;
}

/* Remove / delete button */
.wc-block-cart-item__remove-link,
.wc-block-cart-item__remove button,
button.wc-block-cart-item__remove-link {
    color: #ccc !important;
    font-size: 0.82rem !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
}

.wc-block-cart-item__remove-link:hover,
button.wc-block-cart-item__remove-link:hover {
    color: #ed4f49 !important;
}

/* Prices in cart */
.wc-block-cart-item__total .price,
.wc-block-cart-item__prices {
    color: #6b8e73 !important;
    font-weight: 700 !important;
}

/* Cart totals sidebar */
.wc-block-cart__totals-fields,
.wc-block-components-totals-wrapper,
.wc-block-cart__sidebar .wc-block-components-totals-wrapper {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 28px !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.07) !important;
    border: 1px solid #f0ece4 !important;
}

.wc-block-components-totals-item {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0ece4 !important;
    font-size: 0.95rem;
    color: #555;
}

.wc-block-components-totals-item__label {
    color: #555;
    font-weight: 500;
}

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

.wc-block-components-totals-footer-item {
    padding: 16px 0 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    border-bottom: none !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: #1a1a1a !important;
}

/* Coupon toggle */
.wc-block-components-totals-coupon {
    background: #f9f7f2;
    border-radius: 10px;
    padding: 14px !important;
    margin: 10px 0 !important;
}

.wc-block-components-totals-coupon__form input {
    border: 1px solid #E2D6CC !important;
    border-radius: 20px !important;
    padding: 9px 16px !important;
    font-size: 0.9rem !important;
}

.wc-block-components-totals-coupon__form button {
    background: #8da992 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 9px 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
}

.wc-block-components-totals-coupon__form button:hover {
    background: #6b8e73 !important;
}

/* Proceed to Checkout button */
.wc-block-cart__submit-container .wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block a,
.wc-block-cart__submit .wc-block-cart__submit-button {
    display: block !important;
    width: 100% !important;
    background-color: #f59f9f !important;
    color: #fff !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 16px 30px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    margin-top: 16px !important;
    font-family: var(--wp--preset--font-family--p-font) !important;
}

.wc-block-cart__submit-container .wc-block-cart__submit-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block a:hover {
    background-color: #e48f8f !important;
}

@media (max-width: 768px) {
    .wc-block-cart {
        flex-direction: column !important;
    }
    .wc-block-cart__sidebar {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
}

/* ============================================
   WOOCOMMERCE BLOCKS — CHECKOUT PAGE
   ============================================ */

.woocommerce-checkout .site-main, 
.wp-block-woocommerce-checkout {
    padding: 0px !important;
    width: 97% !important;
    margin: auto !important;
    max-width: 1100px;
    box-sizing: border-box !important;
}

/* Main layout */
.wc-block-checkout {
    display: flex !important;
    gap: 40px !important;
    align-items: flex-start;
    flex-wrap: wrap;
}

.wc-block-checkout__main {
    flex: 1 1 550px !important;
    min-width: 0;
}

.wc-block-checkout__sidebar {
    flex: 0 0 340px !important;
    width: 340px !important;
    position: sticky;
    top: 100px;
}

/* Section headings */
.wc-block-components-checkout-step__title,
.wc-block-checkout__main h2 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    font-family: var(--wp--preset--font-family--h-1-font) !important;
    margin-bottom: 16px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #f0ece4 !important;
}

/* Input fields */
.wc-block-components-text-input input,
.wc-block-components-select select,
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout select,
.wc-block-checkout textarea {
    width: 100% !important;
    border: 1px solid #E2D6CC !important;
    border-radius: 10px !important;
    font-family: var(--wp--preset--font-family--p-font) !important;
    color: #333 !important;
    background: #fff !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-select select:focus,
.wc-block-checkout input:focus,
.wc-block-checkout select:focus {
    border-color: #8da992 !important;
    box-shadow: 0 0 0 3px rgba(141,169,146,0.15) !important;
}

/* Field labels typography only (don't break absolute positioning) */
.wc-block-components-text-input label,
.wc-block-components-select label {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #666 !important;
}

/* Static labels that aren't floating */
.wc-block-checkout__sidebar label,
.wc-block-components-checkout-step label:not(.wc-block-components-text-input label):not(.wc-block-components-radio-control label) {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #555 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

/* Form step */
.wc-block-components-checkout-step {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05) !important;
    border: 1px solid #f0ece4 !important;
}

/* Order summary sidebar Container */
.wc-block-checkout__sidebar {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05) !important;
    border: 1px solid #f0ece4 !important;
    margin-bottom: 20px !important;
}

/* Strip ALL default box styling from inner WooCommerce sidebar components so there are no empty rectangles or extra borders */
.woocommerce-checkout .wc-block-checkout__sidebar [class*="wc-block-components-panel"],
.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary,
.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Hide truly empty blocks that leave gaps */
.woocommerce-checkout .wc-block-components-panel:empty,
.woocommerce-checkout div[class*="totals-item"]:empty,
.woocommerce-checkout .wc-block-components-checkout-step:empty {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0ece4 !important;
}

.woocommerce-checkout .wc-block-components-order-summary__button,
.woocommerce-checkout .wc-block-components-order-summary-button {
    font-weight: 600 !important;
    color: #6b8e73 !important;
    font-size: 1rem !important;
}

/* Order summary items */
.woocommerce-checkout .wc-block-components-order-summary-item {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid #f0ece4 !important;
    align-items: flex-start !important;
    width: 100% !important;
}

.woocommerce-checkout .wc-block-components-order-summary-item__image {
    width: 70px !important;
    flex-shrink: 0 !important;
}

.woocommerce-checkout .wc-block-components-order-summary-item__image img {
    width: 70px !important;
    height: 70px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    border: 2px solid #f0ece4 !important;
    display: block !important;
}

.woocommerce-checkout .wc-block-components-order-summary-item__info,
.woocommerce-checkout .wc-block-components-order-summary-item__description {
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    min-width: 100px !important;
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce-checkout .wc-block-components-order-summary-item__name {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    white-space: normal !important;
    word-break: normal !important;
    line-height: 1.4 !important;
    display: block !important;
    max-width: 100% !important;
}

.woocommerce-checkout .wc-block-components-order-summary-item__quantity,
.woocommerce-checkout .wc-block-components-order-summary-item__individual-prices {
    font-size: 0.85rem !important;
    color: #8E919D !important;
    margin-top: 4px !important;
    display: block !important;
}

.woocommerce-checkout .wc-block-components-order-summary-item__full-price {
    color: #6b8e73 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin-top: 6px !important;
    display: block !important;
    text-align: right !important;
    flex-shrink: 0 !important;
}

/* Totals in sidebar */
.wc-block-components-totals-item {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0ece4 !important;
}

.wc-block-components-totals-footer-item {
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    color: #1a1a1a !important;
}

/* Payment methods */
.wc-block-components-radio-control__option {
    padding: 14px !important;
    border-radius: 10px !important;
    border: 1px solid #E2D6CC !important;
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer;
    transition: border-color 0.3s;
}

.wc-block-components-radio-control__option:hover {
    border-color: #8da992 !important;
}

.wc-block-components-radio-control__option input[type="radio"]:checked + span {
    color: #6b8e73 !important;
    font-weight: 600 !important;
}

/* Place Order button — darker salmon */
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-checkout-order-summary-block button[type="submit"],
button.wc-block-components-checkout-place-order-button {
    display: block !important;
    width: 100% !important;
    background-color: #e07070 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 17px 30px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
    font-family: var(--wp--preset--font-family--p-font) !important;
    margin-top: 10px !important;
}

.wc-block-components-checkout-place-order-button:hover {
    background-color: #c85f5f !important;
}

/* Checkbox */
.wc-block-components-checkbox input[type="checkbox"] {
    accent-color: #8da992;
}

/* Notices */
.wc-block-components-notice-banner {
    border-radius: 10px !important;
    padding: 14px 18px !important;
    margin-bottom: 16px !important;
}

.wc-block-components-notice-banner.is-error {
    background: rgba(237,79,73,0.07) !important;
    border-left: 4px solid #ed4f49 !important;
}

.wc-block-components-notice-banner.is-success {
    background: rgba(141,169,146,0.1) !important;
    border-left: 4px solid #8da992 !important;
}

@media (max-width: 900px) {
    .wc-block-cart {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .wc-block-cart__main,
    .wc-block-cart__sidebar {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    .wc-block-checkout {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .wc-block-checkout__main {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    .wc-block-checkout__sidebar {
        width: 100% !important;
        flex: 1 1 100% !important;
        position: static !important;
        margin-top: 10px !important;
    }
    .wc-block-components-order-summary-item {
        flex-wrap: nowrap !important;
    }
    /* Make cart items stack nicer on mobile */
    .wc-block-cart-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .wc-block-cart-item__quantity {
        margin-top: 10px;
    }
}

