/* ============================================
   WOOCOMMERCE BLOCKS (Gutenberg Cart & Checkout)
   ============================================ */

/* Global Block Wrappers */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wc-block-cart,
.wc-block-checkout {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 20px auto 80px !important;
    padding: 0 15px !important;
    font-family: var(--font-family, 'Cairo', sans-serif) !important;
    direction: rtl !important;
    box-sizing: border-box !important;
}

/* Page Title inside Gutenberg */
.wp-block-woocommerce-cart .wp-block-heading,
.wp-block-woocommerce-checkout .wp-block-heading {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--color-primary, #1E5C1E) !important;
    margin-bottom: 25px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid var(--border-light, #ebebeb) !important;
    position: relative !important;
}
.wp-block-woocommerce-cart .wp-block-heading::after,
.wp-block-woocommerce-checkout .wp-block-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent, #4CAF50);
}

/* Filled Cart Block Grid/Flex Layout */
.wp-block-woocommerce-filled-cart-block,
.wc-block-cart {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 992px) {
    .wp-block-woocommerce-filled-cart-block,
    .wc-block-cart {
        flex-direction: row-reverse !important; /* In RTL: items on right, totals sidebar on left */
        justify-content: space-between !important;
        align-items: flex-start !important;
    }

    .wp-block-woocommerce-cart-items-block,
    .wc-block-cart__main {
        flex: 1 1 64% !important;
        width: 64% !important;
        min-width: 0 !important;
    }

    .wp-block-woocommerce-cart-totals-block,
    .wc-block-cart__sidebar {
        flex: 0 0 33% !important;
        width: 33% !important;
        min-width: 320px !important;
        position: sticky !important;
        top: 90px !important;
    }
}

/* Cart Items Container */
.wp-block-woocommerce-cart-items-block,
.wc-block-cart__main,
.wc-block-checkout__main {
    background: #FFFFFF !important;
    border: 1px solid var(--border-light, #EBEBEB) !important;
    border-radius: 16px !important;
    padding: 25px 30px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Cart Totals Sidebar Container */
.wp-block-woocommerce-cart-totals-block,
.wc-block-cart__sidebar,
.wc-block-checkout__sidebar {
    background: #F9FAF9 !important;
    border: 1px solid #E1E8E1 !important;
    border-radius: 16px !important;
    padding: 25px 25px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}


/* Cart Table & Header */
.wc-block-cart-items {
    width: 100%;
    border-collapse: collapse;
}
.wc-block-cart-items-header {
    border-bottom: 2px solid var(--border-light, #EBEBEB);
    padding-bottom: 12px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--color-text-muted, #666);
    font-size: 14px;
}
.wc-block-cart-items__row {
    border-bottom: 1px solid var(--border-light, #EBEBEB) !important;
    padding: 20px 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: background 0.2s ease;
}
.wc-block-cart-items__row:last-child {
    border-bottom: none !important;
}

/* Product Thumbnail */
.wc-block-cart-item__image,
.wc-block-components-product-image {
    width: 90px !important;
    height: 90px !important;
    border-radius: 12px !important;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.wc-block-cart-item__image img,
.wc-block-components-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Product Title & Info */
.wc-block-cart-item__product,
.wc-block-components-product-details {
    flex: 1;
}
.wc-block-components-product-name,
.wc-block-cart-item__product-title a {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1A1A1A !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.wc-block-components-product-name:hover,
.wc-block-cart-item__product-title a:hover {
    color: var(--color-primary, #1E5C1E) !important;
}
.wc-block-components-product-price,
.wc-block-cart-item__product-price {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--color-primary, #1E5C1E) !important;
    margin-top: 6px;
}

/* Quantity Selector */
.wc-block-components-quantity-selector {
    border: 1px solid var(--border-light, #D5DCD5) !important;
    border-radius: 30px !important;
    background: #FDFDFD !important;
    padding: 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}
.wc-block-components-quantity-selector__button {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: none !important;
    background: transparent !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: var(--color-primary, #1E5C1E) !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.1s;
}
.wc-block-components-quantity-selector__button:hover {
    background: var(--color-surface, #E8F5E9) !important;
    transform: scale(1.1);
}
.wc-block-components-quantity-selector__input {
    width: 40px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1A1A1A !important;
    font-family: var(--font-family, 'Cairo', sans-serif) !important;
}

/* Remove button in Block */
.wc-block-cart-item__remove-link,
.wc-block-cart-item__remove {
    background: #FFEBEE !important;
    color: #C62828 !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}
.wc-block-cart-item__remove-link:hover,
.wc-block-cart-item__remove:hover {
    background: #C62828 !important;
    color: #FFFFFF !important;
    transform: scale(1.1);
}

/* Cart Block Sidebar (Totals Card) */
.wc-block-cart__sidebar,
.wc-block-checkout__sidebar {
    background: #F9FAF9 !important;
    border: 1px solid #E1E8E1 !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.wc-block-components-totals-wrapper {
    border: none !important;
    padding: 0 !important;
}
.wc-block-components-totals-wrapper .wc-block-components-totals-item {
    padding: 12px 0 !important;
    border-bottom: 1px solid #E8EFE8 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 15px !important;
    color: #444 !important;
}
.wc-block-components-totals-item__value {
    font-weight: 700 !important;
    color: #1A1A1A !important;
}

/* Total Price Row */
.wc-block-components-totals-item.wc-block-components-totals-footer-item,
.wc-block-components-totals-item--total {
    border-top: 2px solid var(--color-primary, #1E5C1E) !important;
    border-bottom: none !important;
    margin-top: 15px !important;
    padding-top: 18px !important;
}
.wc-block-components-totals-item.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-item--total .wc-block-components-totals-item__label {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1A1A1A !important;
}
.wc-block-components-totals-item.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-item--total .wc-block-components-totals-item__value {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: var(--color-primary, #1E5C1E) !important;
}

/* ============================================
   GUTENBERG CHECKOUT BLOCK LUXURY STYLES
   ============================================ */

/* Checkout Step Cards */
.wc-block-components-checkout-step,
.wc-block-components-checkout-step--contact-information,
.wc-block-components-checkout-step--shipping-address,
.wc-block-components-checkout-step--shipping-option,
.wc-block-components-checkout-step--payment-method {
    background: #FFFFFF !important;
    border: 1px solid #E2EAE2 !important;
    border-radius: 16px !important;
    padding: 26px 28px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 25px !important;
}

/* Step Headings */
.wc-block-components-checkout-step__heading,
.wc-block-components-checkout-step__title,
.wc-block-components-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--color-primary, #1E5C1E) !important;
    font-family: var(--font-family, 'Cairo', sans-serif) !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.wc-block-components-checkout-step__heading::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--color-accent, #4CAF50);
    border-radius: 50%;
}

/* Inputs & Form Controls */
.wc-block-components-text-input,
.wc-block-components-combobox,
.wc-block-components-select {
    margin-bottom: 16px !important;
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox__input,
.wc-block-components-select select,
.wc-block-components-textarea textarea {
    height: 52px !important;
    padding: 12px 18px !important;
    border: 1.5px solid #D5DCD5 !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    font-family: var(--font-family, 'Cairo', sans-serif) !important;
    font-size: 15px !important;
    color: #1A1A1A !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-combobox .wc-block-components-combobox__input:focus,
.wc-block-components-select select:focus,
.wc-block-components-textarea textarea:focus {
    border-color: var(--color-primary, #1E5C1E) !important;
    box-shadow: 0 0 0 4px rgba(30, 92, 30, 0.12) !important;
}

/* Floating labels in Gutenberg inputs */
.wc-block-components-text-input label,
.wc-block-components-combobox label,
.wc-block-components-select label {
    font-family: var(--font-family, 'Cairo', sans-serif) !important;
    font-size: 14px !important;
    color: #666 !important;
    font-weight: 600 !important;
}
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus ~ label {
    color: var(--color-primary, #1E5C1E) !important;
    font-weight: 700 !important;
}

/* Hide unneeded ZIP / Postal Code & Company in Egypt checkout */
.wc-block-components-address-form__postcode,
.wc-block-components-address-form__company,
.wc-block-components-address-form [id*="postcode"],
.wc-block-components-address-form [id*="postal_code"],
.wc-block-components-text-input:has(input[id*="postcode"]),
.wc-block-components-text-input:has(input[id*="postal_code"]) {
    display: none !important;
}

/* Checkbox Styling */
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    accent-color: var(--color-primary, #1E5C1E) !important;
    border-radius: 4px !important;
    margin-left: 8px !important;
}
.wc-block-components-checkbox .wc-block-components-checkbox__label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #444 !important;
}

/* Shipping Options Card */
.wc-block-components-shipping-rates-control {
    border: 1.5px solid #E0EAE0 !important;
    border-radius: 12px !important;
    background: #F9FAF9 !important;
    padding: 16px 20px !important;
}
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__label {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1A1A1A !important;
}

/* Payment Methods Accordion */
.wc-block-components-radio-control-accordion-option {
    border: 1.5px solid #E0EAE0 !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
}
.wc-block-components-radio-control-accordion-option.is-active,
.wc-block-components-radio-control-accordion-option--checked {
    border-color: var(--color-primary, #1E5C1E) !important;
    background: #F4F8F4 !important;
    box-shadow: 0 4px 15px rgba(30, 92, 30, 0.08) !important;
}
.wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__label {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #1A1A1A !important;
}
.wc-block-components-radio-control-accordion-content {
    background: #FFFFFF !important;
    padding: 16px 20px !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #555 !important;
    border-top: 1px solid #E8EFE8 !important;
}

/* Submit Place Order Button */
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-checkout .wc-block-checkout__actions button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 56px !important;
    background: var(--color-primary, #1E5C1E) !important;
    color: #FFFFFF !important;
    padding: 0 30px !important;
    border-radius: 50px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    font-family: var(--font-family, 'Cairo', sans-serif) !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: 25px !important;
    box-shadow: 0 8px 25px rgba(30, 92, 30, 0.3) !important;
    transition: all 0.3s ease !important;
}
.wc-block-components-checkout-place-order-button:hover,
.wp-block-woocommerce-checkout .wc-block-checkout__actions button:hover {
    background: var(--color-primary-hover, #2E7D2E) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(30, 92, 30, 0.45) !important;
}


/* ============================================
   CLASSIC WOOCOMMERCE PAGES & ARCHIVE GRID
   ============================================ */

.woocommerce ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 25px !important;
    margin: 25px 0 50px !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products li.product,
ul.products li.unit-card,
ul.products li.product {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
    list-style: none !important;
}

@media (min-width: 576px) {
    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 992px) {
    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ============================================
   CART PAGE
   ============================================ */

.woocommerce-cart .woocommerce {
    padding: 0 0 60px;
}

/* Cart Table */
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-primary, 'Cairo');
}
.woocommerce table.shop_table th {
    background: var(--color-surface, #f8f8f8);
    padding: 14px 16px;
    font-weight: 700;
    color: var(--color-primary, #1E5C1E);
    border-bottom: 2px solid var(--border-light, #e0e0e0);
    text-align: right;
}
.woocommerce table.shop_table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light, #e0e0e0);
    vertical-align: middle;
}
.woocommerce table.shop_table tbody tr:hover {
    background: var(--color-surface, #f8f8f8);
}

/* Product image in cart */
.woocommerce table.cart .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

/* Product name link */
.woocommerce table.cart .product-name a {
    color: var(--color-text, #333);
    font-weight: 600;
    text-decoration: none;
}
.woocommerce table.cart .product-name a:hover { color: var(--color-primary, #1E5C1E); }

/* Remove button */
.woocommerce table.cart .product-remove a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ffebee;
    color: #c62828;
    border-radius: 50%;
    font-size: 16px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
}
.woocommerce table.cart .product-remove a:hover { background: #c62828; color: #fff; }

/* Quantity input */
.woocommerce .quantity .qty {
    width: 64px;
    padding: 8px;
    border: 1px solid var(--border-light, #e0e0e0);
    border-radius: 6px;
    text-align: center;
    font-family: var(--font-primary, 'Cairo');
    font-size: 15px;
}

/* Cart totals */
.cart-collaterals { margin-top: 40px; }
.cart_totals {
    background: var(--color-surface, #f8f8f8);
    border: 1px solid var(--border-light, #e0e0e0);
    border-radius: 12px;
    padding: 28px;
    max-width: 420px;
    margin-right: auto;
}
.cart_totals h2 {
    font-size: 20px;
    color: var(--color-primary, #1E5C1E);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light, #e0e0e0);
}
.cart_totals table th,
.cart_totals table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light, #e0e0e0);
}
.cart_totals .order-total .amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary, #1E5C1E);
}
.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: var(--color-primary, #1E5C1E);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-primary, 'Cairo');
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.wc-proceed-to-checkout .checkout-button:hover {
    background: var(--color-primary-hover, #2E7D2E);
    transform: translateY(-1px);
}

/* Update cart button */
.woocommerce .actions .button {
    background: var(--color-surface, #f8f8f8);
    color: var(--color-text, #333);
    border: 1px solid var(--border-light, #e0e0e0);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-primary, 'Cairo');
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.woocommerce .actions .button:hover {
    background: var(--color-primary, #1E5C1E);
    color: #fff;
    border-color: var(--color-primary);
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.woocommerce-checkout .woocommerce {
    padding: 0 0 60px;
}

/* Checkout grid */
@media (min-width: 768px) {
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        float: none;
        width: 100%;
    }
    .woocommerce-checkout .col2-set {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Form fields */
.woocommerce form .form-row {
    margin-bottom: 16px;
}
.woocommerce form .form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text, #333);
    font-size: 14px;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-light, #e0e0e0);
    border-radius: 8px;
    font-family: var(--font-primary, 'Cairo');
    font-size: 15px;
    color: var(--color-text, #333);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    direction: rtl;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--color-primary, #1E5C1E);
    box-shadow: 0 0 0 3px rgba(30,92,30,0.1);
}

/* Section headings */
.woocommerce h3#order_review_heading,
.woocommerce-checkout h3 {
    font-size: 20px;
    color: var(--color-primary, #1E5C1E);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light, #e0e0e0);
}

/* Order review table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light, #e0e0e0);
    text-align: right;
}
.woocommerce-checkout-review-order-table th {
    font-weight: 700;
    color: var(--color-primary, #1E5C1E);
    background: var(--color-surface, #f8f8f8);
}
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary, #1E5C1E);
}

/* Place order button */
#place_order {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--color-primary, #1E5C1E);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    font-family: var(--font-primary, 'Cairo');
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-top: 10px;
}
#place_order:hover {
    background: var(--color-primary-hover, #2E7D2E);
    transform: translateY(-1px);
}

/* Payment methods */
.woocommerce-checkout #payment {
    background: var(--color-surface, #f8f8f8);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-light, #e0e0e0);
}
.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.woocommerce-checkout #payment ul.payment_methods li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light, #e0e0e0);
}

/* ============================================
   MY ACCOUNT PAGE
   ============================================ */
.woocommerce-account .woocommerce {
    padding: 0 0 60px;
}

/* Account layout */
.woocommerce-MyAccount-navigation {
    background: var(--color-surface, #f8f8f8);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-light, #e0e0e0);
    margin-bottom: 30px;
}
@media (min-width: 768px) {
    .woocommerce-account .woocommerce {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 30px;
        align-items: start;
    }
    .woocommerce-MyAccount-navigation { margin-bottom: 0; }
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 10px 14px;
    color: var(--color-text, #333);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--color-primary, #1E5C1E);
    color: #fff;
}

/* Account content */
.woocommerce-MyAccount-content h2 {
    font-size: 22px;
    color: var(--color-primary, #1E5C1E);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light, #e0e0e0);
}

/* Orders table */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}
.woocommerce-orders-table th {
    background: var(--color-surface, #f8f8f8);
    padding: 12px 16px;
    font-weight: 700;
    color: var(--color-primary, #1E5C1E);
    border-bottom: 2px solid var(--border-light, #e0e0e0);
    text-align: right;
}
.woocommerce-orders-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light, #e0e0e0);
}

/* Account buttons */
.woocommerce-MyAccount-content .button {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-primary, #1E5C1E);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.woocommerce-MyAccount-content .button:hover {
    background: var(--color-primary-hover, #2E7D2E);
}

/* ============================================
   COUPONS & CHECKOUT LOGIN
   ============================================ */
.woocommerce-form-coupon-toggle,
.woocommerce-form-login-toggle {
    margin-bottom: 20px;
}
.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info {
    background: var(--color-surface, #f8f8f8);
    border: 1px solid var(--border-light, #e0e0e0);
    border-right: 4px solid var(--color-primary, #1E5C1E);
    color: var(--color-text, #333);
    border-radius: 8px;
    padding: 14px 20px;
}
.woocommerce-form-coupon-toggle a,
.woocommerce-form-login-toggle a {
    color: var(--color-primary, #1E5C1E);
    font-weight: 700;
    text-decoration: underline;
}
form.checkout_coupon,
form.woocommerce-form-login {
    background: var(--color-surface, #f8f8f8);
    border: 1px solid var(--border-light, #e0e0e0);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}
form.checkout_coupon .input-text {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid var(--border-light, #e0e0e0);
    border-radius: 8px;
    font-family: var(--font-primary, 'Cairo');
}
form.checkout_coupon .button,
form.woocommerce-form-login .button {
    background: var(--color-primary, #1E5C1E);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 700;
    font-family: var(--font-primary, 'Cairo');
    cursor: pointer;
    transition: background 0.2s;
}
form.checkout_coupon .button:hover,
form.woocommerce-form-login .button:hover {
    background: var(--color-primary-hover, #2E7D2E);
}

/* ============================================
   EMPTY CART STATE
   ============================================ */
.cart-empty.woocommerce-info {
    background: #fff;
    border: 1px solid var(--border-light, #e0e0e0);
    border-radius: 16px;
    padding: 50px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--color-text, #333);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin: 40px auto;
    max-width: 600px;
}
.cart-empty.woocommerce-info::before {
    content: '🛒';
    font-size: 50px;
    display: block;
    margin-bottom: 10px;
}
.return-to-shop {
    text-align: center;
    margin-bottom: 60px;
}
.return-to-shop .button {
    display: inline-block;
    padding: 14px 36px;
    background: var(--color-primary, #1E5C1E);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
}
.return-to-shop .button:hover {
    background: var(--color-primary-hover, #2E7D2E);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,92,30,0.25);
}

/* ============================================
   ORDER RECEIVED / THANK YOU PAGE
   ============================================ */
.woocommerce-order {
    padding: 20px 0 60px;
    max-width: 800px;
    margin: 0 auto;
}
.woocommerce-thankyou-order-received {
    background: #E8F5E9;
    color: #1E5C1E;
    font-size: 20px;
    font-weight: 800;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #C8E6C9;
    margin-bottom: 30px;
}
ul.woocommerce-order-overview {
    list-style: none;
    padding: 20px;
    margin: 0 0 35px;
    background: var(--color-surface, #f8f8f8);
    border-radius: 12px;
    border: 1px solid var(--border-light, #e0e0e0);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    text-align: center;
}
ul.woocommerce-order-overview li {
    font-size: 14px;
    color: var(--color-text-muted, #666);
    border-left: 1px solid var(--border-light, #e0e0e0);
    padding-left: 20px;
}
ul.woocommerce-order-overview li:last-child {
    border-left: none;
    padding-left: 0;
}
ul.woocommerce-order-overview li strong {
    display: block;
    font-size: 16px;
    color: var(--color-primary, #1E5C1E);
    margin-top: 4px;
    font-weight: 700;
}
.woocommerce-customer-details {
    margin-top: 40px;
}
.woocommerce-customer-details address {
    background: var(--color-surface, #f8f8f8);
    border: 1px solid var(--border-light, #e0e0e0);
    border-radius: 12px;
    padding: 20px;
    font-style: normal;
    line-height: 1.8;
    color: var(--color-text, #333);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .woocommerce table.shop_table thead { display: none; }
    .woocommerce table.shop_table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 12px;
    }
    .woocommerce table.shop_table td::before {
        content: attr(data-title);
        font-weight: 700;
        color: var(--color-text-muted, #666);
        font-size: 13px;
    }
    .cart_totals { max-width: 100%; }
    ul.woocommerce-order-overview {
        flex-direction: column;
        align-items: stretch;
    }
    ul.woocommerce-order-overview li {
        border-left: none;
        border-bottom: 1px solid var(--border-light, #e0e0e0);
        padding-left: 0;
        padding-bottom: 12px;
    }
    ul.woocommerce-order-overview li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ============================================
   KITCHEN ARCHIVE 3D BOOKING BANNERS
   ============================================ */
.archive-custom-booking-banner {
    background: linear-gradient(135deg, #113629 0%, #1E5C1E 100%);
    border-radius: 20px;
    padding: 35px 40px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(30, 92, 30, 0.15);
    position: relative;
    overflow: hidden;
}
.archive-custom-booking-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.archive-custom-booking-banner.bottom-banner {
    background: linear-gradient(135deg, #182A1B 0%, #0F1E11 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
}
.acb-content {
    max-width: 750px;
    text-align: right;
}
.acb-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #81C784;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}
.acb-content h2 {
    font-size: 26px;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 10px;
    font-family: var(--font-family, 'Cairo', sans-serif);
    line-height: 1.35;
}
.acb-content p {
    font-size: 14px;
    color: #E0EAE0;
    line-height: 1.7;
    margin: 0 0 20px;
}
.acb-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.btn-booking-main {
    background: #FFFFFF !important;
    color: #1E5C1E !important;
    border-radius: 50px !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    font-family: var(--font-family, 'Cairo', sans-serif) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}
.btn-booking-main:hover {
    background: #4CAF50 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4) !important;
}
.btn-booking-wa {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 50px !important;
    padding: 11px 24px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    font-family: var(--font-family, 'Cairo', sans-serif) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.25s ease !important;
}
.btn-booking-wa:hover {
    background: #25D366 !important;
    border-color: #25D366 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
}
.acb-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.acb-badge-inner {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.acb-badge-inner strong {
    font-size: 26px;
    font-weight: 900;
    color: #4CAF50;
    line-height: 1;
}
.acb-badge-inner span {
    font-size: 11px;
    font-weight: 700;
    color: #FFF;
    margin-top: 4px;
}
@media (max-width: 768px) {
    .archive-custom-booking-banner {
        flex-direction: column;
        padding: 25px 20px;
        text-align: center;
    }
    .acb-content {
        text-align: center;
    }
    .acb-buttons {
        justify-content: center;
    }
    .acb-badge {
        display: none;
    }
}

/* ============================================
   KITCHEN MODULAR UNITS ICON FILTER BAR
   ============================================ */
.kitchen-filter-section {
    background: #FFFFFF;
    border: 1.5px solid var(--border-light, #E2ECE2);
    border-radius: 20px;
    padding: 22px 26px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}
.kitchen-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #EEF3EE;
    flex-wrap: wrap;
    gap: 12px;
}
.kfh-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary, #1E5C1E);
    font-size: 15px;
    font-weight: 800;
    font-family: var(--font-family, 'Cairo', sans-serif);
}
.kfh-title svg {
    color: #4CAF50;
}
.kfh-counter {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    background: #F4F8F4;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid #E0EAE0;
}

/* Nav Pills Grid */
.kitchen-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 600px) {
    .kitchen-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 992px) {
    .kitchen-nav-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.kitchen-nav-pill {
    background: #F9FAF9;
    border: 1.5px solid #E0EAE0;
    border-radius: 16px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-family: var(--font-family, 'Cairo', sans-serif);
    color: #2D3A2D;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}
.kitchen-nav-pill:hover {
    background: #FFFFFF;
    border-color: #4CAF50;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 92, 30, 0.1);
}
.kitchen-nav-pill.active {
    background: linear-gradient(135deg, #1E5C1E 0%, #113629 100%) !important;
    border-color: #1E5C1E !important;
    color: #FFFFFF !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 92, 30, 0.3) !important;
}

.knp-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #E0EAE0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E5C1E;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.kitchen-nav-pill:hover .knp-icon {
    border-color: #4CAF50;
    color: #4CAF50;
}
.kitchen-nav-pill.active .knp-icon {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
}

.knp-label {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.knp-badge-count {
    font-size: 11px;
    font-weight: 800;
    background: #E8F5E9;
    color: #1E5C1E;
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.25s ease;
    min-width: 16px;
}
.kitchen-nav-pill.active .knp-badge-count {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* Empty filter notice */
.kitchen-empty-notice {
    text-align: center;
    background: #FFFFFF;
    border: 1.5px dashed #C8E6C9;
    border-radius: 20px;
    padding: 60px 30px;
    margin: 40px 0;
}
.ken-icon {
    font-size: 48px;
    margin-bottom: 15px;
}
.kitchen-empty-notice h3 {
    font-size: 20px;
    font-weight: 800;
    color: #111A13;
    margin: 0 0 10px;
    font-family: var(--font-family, 'Cairo', sans-serif);
}
.kitchen-empty-notice p {
    font-size: 15px;
    color: #666;
    max-width: 500px;
    margin: 0 auto 25px;
}

/* Unit Meta tags in cards */
.unit-meta-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.unit-type-tag {
    font-size: 10px;
    font-weight: 800;
    color: #1E5C1E;
    background: #E8F5E9;
    border: 1px solid #C8E6C9;
    padding: 2px 8px;
    border-radius: 10px;
}



