:root {
    --primary-blue: #00459A;
    --dark-orange: #f47920;
    --light-bg: #fffcf7;
    --orange: #ff9800;
    --leafgreen: #48822A;
    --light-blue: #5ba4d0;
    --dark-blue: #003d6b;
}

body {
    /*font-family: 'Georgia', 'Times New Roman', serif;*/
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
    color: #333;
    line-height: 1.6;
}

/* Hide site tagline/description */
.site-description {
    display: none !important;
}

/* Header Styles */
.top-banner {
    background-color: var(--dark-orange);
    color: white;
    font-size: 13px;
    padding: 8px 0;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.navbar {
    background-color: var(--primary-blue);
    padding: 0;
}

.navbar-brand {
    background-color: var(--light-bg);
    padding: 20px 25px !important;
    margin: 0;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.navbar-brand::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--light-bg);
}

.navbar-brand img {
    height: 45px;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 8px 20px !important;
    transition: opacity 0.3s;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
    font-size: 15px;
}

.navbar-nav .nav-link:hover {
    opacity: 0.8;
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-icons a {
    color: white;
    font-size: 18px;
    text-decoration: none;
}

.cart-badge {
    background-color: white;
    color: var(--primary-blue);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

/* Breadcrumb */
.breadcrumb-section {
    background-color: var(--light-bg);
    padding: 15px 0;
}

.breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #333;
}

/* Product Cards - Improved Styles */
.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    margin-bottom: 30px;
    background: white;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    padding: 20px;
    background: white;
    text-align: center;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--orange);
    color: white;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.product-category {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    min-height: 45px;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
    line-height: 1.4;
}

.product-title a {
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.3s;
}

.product-title a:hover {
    color: var(--primary-blue) !important;
    text-decoration: none !important;
}

.product-rating {
    margin-bottom: 10px;
}

.product-rating i {
    color: #ffd700;
    font-size: 13px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-left: 8px;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

/* Add to Cart Button Styles - Full Width */
.btn-add-cart,
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.add_to_cart_button,
.single_add_to_cart_button {
    background-color: #8bc34a !important;
    color: white !important;
    border: none !important;
    padding: 12px !important;
    width: 100% !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    transition: background-color 0.3s !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 15px !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin-top: 10px !important;
}

.btn-add-cart:hover,
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover {
    background-color: #7cb342 !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

/* Specific styles for your custom template */
.product-card .btn-add-cart {
    background-color: #8bc34a;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
    font-size: 15px;
    display: block;
    text-align: center;
    margin-top: 10px;
}

.product-card .btn-add-cart:hover {
    background-color: #7cb342;
}

/* Ensure product card body doesn't have padding affecting button width */
.product-body {
    padding: 20px;
}

/* Remove any margins or padding from button containers */
.product-body .button-container,
.woocommerce .product .actions {
    padding: 0;
    margin: 0;
}

/* Force full width on specific WooCommerce elements */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    width: 100% !important;
    display: block !important;
    margin: 10px 0 0 0 !important;
}

/* Product Links - Remove default blue styles */
.woocommerce ul.products li.product a {
    text-decoration: none !important;
    color: inherit !important;
}

.woocommerce ul.products li.product a:hover {
    text-decoration: none !important;
    color: inherit !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #333 !important;
    text-decoration: none !important;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.woocommerce ul.products li.product .woocommerce-loop-product__title:hover {
    color: var(--primary-blue) !important;
    text-decoration: none !important;
}

/* Cart Styles */
.success-message {
    background-color: var(--leafgreen);
    color: white;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.cart-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #ddd;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.progress-step.active .step-circle {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.step-label {
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
    font-size: 14px;
    text-align: center;
}

/* Features Section */
.features-section {
    background-color: var(--dark-orange);
    padding: 40px 0;
    margin-top: 50px;
}

.feature-box {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 40px;
    color: var(--leafgreen);
    margin-bottom: 15px;
}

.feature-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.feature-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 40px 0 20px;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.footer h5 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.footer ul li a:hover {
    opacity: 0.7;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 5px;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 20px;
    font-size: 13px;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
    font-weight: 600;
}

/* WooCommerce Elements */
.woocommerce .product_title,
.woocommerce .related > h2,
.woocommerce .upsells > h2,
.woocommerce .cross-sells > h2,
.woocommerce .cart_totals h2,
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
.woocommerce-checkout #order_review_heading {
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.woocommerce .price,
.woocommerce .amount,
.woocommerce .product .price {
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.woocommerce .quantity .qty {
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

/* Form Elements */
input, textarea, select {
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

button {
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

/* Remove default link styles */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .product-title {
        min-height: auto;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
    }
    
    .btn-add-cart,
    .woocommerce .button,
    .add_to_cart_button {
        padding: 10px !important;
        font-size: 14px !important;
    }
    
    .navbar-brand img {
        height: 35px;
    }
}
/* Empty Cart Styles */
.empty-cart-message {
    background-color: var(--light-bg);
    border-radius: 10px;
    margin: 40px 0;
}

.empty-cart-message i {
    color: var(--dark-orange);
}

.empty-cart-message h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.empty-cart-message .btn {
    background-color: var(--leafgreen);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
}

.empty-cart-message .btn:hover {
    background-color: #3a6a1f;
}

/* Cart specific styles - Add these to your renvida-common.css file */

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 80px;
    height: 80px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-right: 20px;
}

.item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.item-name a {
    color: #333;
    text-decoration: none;
}

.item-name a:hover {
    color: var(--primary-blue);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.quantity input.qty {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px;
}

.item-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-right: 20px;
}

.item-remove {
    margin-left: auto;
}

.btn-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    text-decoration: none;
}

.btn-remove:hover {
    color: #e53935;
}

.cart-actions {
    margin-top: 20px;
    padding: 15px 0;
}

.cart-actions .button {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.cart-actions .button:hover {
    opacity: 0.9;
}
/**
 * ADD THESE STYLES TO THE END OF YOUR renvida-common.css FILE
 * Location: wp-content/themes/renvida/assets/css/renvida-common.css
 * 
 * Copy everything below and paste at the end of your existing CSS file
 */

/* =============================================================================
   CART TABLE & STRUCTURE
   ========================================================================== */
.cart-table {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.woocommerce-cart-form {
    margin-bottom: 30px;
}

/* Cart Item Row - Make sure all elements align properly */
.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
    flex-wrap: nowrap;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Item Image */
.item-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
}

.item-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Item Details */
.item-details {
    flex: 1;
    min-width: 150px;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.item-name a {
    color: #333 !important;
    text-decoration: none !important;
}

.item-name a:hover {
    color: var(--primary-blue) !important;
}

/* Quantity Controls */
.quantity-controls,
.quantity {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.quantity input.qty,
.woocommerce-cart-form input.qty {
    width: 60px !important;
    height: 35px !important;
    text-align: center !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    padding: 5px !important;
    font-size: 14px !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    box-sizing: border-box !important;
}

/* Item Price */
.item-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-blue);
    margin: 0 15px;
    white-space: nowrap;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
    flex-shrink: 0;
}

/* Remove Button */
.item-remove {
    flex-shrink: 0;
}

.btn-remove,
.woocommerce-cart-form .product-remove a {
    background: none !important;
    border: none !important;
    color: #999 !important;
    font-size: 24px !important;
    cursor: pointer;
    padding: 5px !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    text-decoration: none !important;
    line-height: 1;
}

.btn-remove:hover,
.woocommerce-cart-form .product-remove a:hover {
    color: #e53935 !important;
}

/* =============================================================================
   PROGRESS STEPS (Already exists but adding completion)
   ========================================================================== */
.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    z-index: 0;
}

.progress-step.active:not(:last-child)::after {
    background-color: var(--primary-blue);
}

.step-label {
    font-size: 14px;
    color: #999;
    text-align: center;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.progress-step.active .step-label {
    color: #333;
    font-weight: 600;
}

/* =============================================================================
   COUPON SECTION
   ========================================================================== */
.coupon-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.coupon-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.coupon-input,
input[name="coupon_code"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 14px !important;
}

.btn-apply-coupon,
button[name="apply_coupon"] {
    background-color: var(--primary-blue) !important;
    color: white !important;
    border: none !important;
    padding: 10px 25px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: opacity 0.3s !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 14px !important;
}

.btn-apply-coupon:hover,
button[name="apply_coupon"]:hover {
    opacity: 0.9 !important;
}

/* =============================================================================
   ORDER SUMMARY SIDEBAR
   ========================================================================== */
.order-summary,
.cart_totals {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 20px;
}

.order-summary h4,
.cart_totals h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.order-totals {
    margin-bottom: 20px;
}

.summary-row,
.cart_totals .cart-subtotal,
.cart_totals .order-total,
.cart_totals .shipping,
.cart_totals .tax-rate {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
    align-items: flex-start;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.summary-row.total,
.cart_totals .order-total {
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
}

.summary-label,
.cart_totals th {
    color: #666;
    font-weight: normal;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.summary-value,
.cart_totals td {
    font-weight: 600;
    color: #333;
    text-align: right;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.shipping-link,
.shipping-calculator-button {
    color: var(--primary-blue) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    cursor: pointer;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.shipping-link:hover,
.shipping-calculator-button:hover {
    text-decoration: underline !important;
}

/* Proceed to Checkout Button */
.btn-checkout,
.wc-proceed-to-checkout .checkout-button {
    background-color: var(--leafgreen) !important;
    color: white !important;
    border: none !important;
    padding: 15px !important;
    width: 100% !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: background-color 0.3s !important;
    margin-top: 20px !important;
    display: block !important;
    text-align: center !important;
    text-decoration: none !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

.btn-checkout:hover,
.wc-proceed-to-checkout .checkout-button:hover {
    background-color: #3d6b22 !important;
    color: white !important;
}

.btn-checkout i {
    margin-right: 8px;
}

/* =============================================================================
   WOOCOMMERCE CART TABLE OVERRIDES
   ========================================================================== */
.woocommerce-cart table.cart {
    border: none !important;
}

.woocommerce-cart table.cart td {
    border-top: none !important;
}

.woocommerce-cart table.cart .product-thumbnail {
    width: 80px;
}

.woocommerce-cart table.cart .product-name a {
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
    color: #333 !important;
}

.woocommerce-cart table.cart .product-name a:hover {
    color: var(--primary-blue) !important;
}

/* =============================================================================
   CART ACTIONS (Update Cart Button)
   ========================================================================== */
.cart-actions {
    margin-top: 20px;
    padding: 15px 0;
}

.cart-actions .button,
button[name="update_cart"] {
    background-color: var(--primary-blue) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: opacity 0.3s !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

.cart-actions .button:hover,
button[name="update_cart"]:hover {
    opacity: 0.9 !important;
}

button[name="update_cart"]:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* =============================================================================
   RESPONSIVE CART STYLES
   ========================================================================== */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 15px;
    }

    .item-image {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .item-details {
        width: 100%;
        text-align: center;
    }

    .quantity-controls,
    .quantity {
        justify-content: center;
        margin: 10px 0;
    }

    .item-price {
        margin: 10px 0;
    }

    .item-remove {
        margin: 10px 0;
    }

    .order-summary {
        position: static;
        margin-top: 30px;
    }

    .coupon-form {
        flex-direction: column;
    }

    .coupon-input,
    input[name="coupon_code"] {
        width: 100%;
    }

    .cart-progress {
        flex-direction: column;
        gap: 20px;
    }

    .progress-step:not(:last-child)::after {
        display: none;
    }
}

/* =============================================================================
   WOOCOMMERCE NOTICES (Success/Error Messages)
   ========================================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

.woocommerce-message {
    background-color: var(--leafgreen);
    color: white;
    border-left: 4px solid #3d6b22;
}

.woocommerce-info {
    background-color: var(--light-blue);
    color: white;
    border-left: 4px solid var(--primary-blue);
}

.woocommerce-error {
    background-color: #f44336;
    color: white;
    border-left: 4px solid #d32f2f;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    color: white !important;
    text-decoration: underline !important;
}

/* =============================================================================
   FIX WOOCOMMERCE DEFAULT TABLE LAYOUT
   ========================================================================== */
.woocommerce table.shop_table {
    border: none !important;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
    padding: 15px !important;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

/* =============================================================================
   EMPTY CART STYLING (When cart has no items)
   ========================================================================== */
.woocommerce-cart .cart-empty {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--light-bg);
    border-radius: 10px;
    margin: 40px 0;
}

.woocommerce-cart .cart-empty::before {
    content: "\f07a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 80px;
    color: var(--dark-orange);
    display: block;
    margin-bottom: 20px;
}

.return-to-shop {
    margin-top: 20px;
}

.return-to-shop .button {
    background-color: var(--leafgreen) !important;
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

.return-to-shop .button:hover {
    background-color: #3a6a1f !important;
}

/* =============================================================================
   CROSS-SELLS (Recommended Products in Cart)
   ========================================================================== */
.cart-collaterals .cross-sells {
    margin-top: 40px;
}

.cart-collaterals .cross-sells h2 {
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* =============================================================================
   ADDITIONAL FIXES FOR CART DISPLAY
   ========================================================================== */

/* Ensure cart form doesn't have extra spacing */
.woocommerce-cart-form__contents {
    border: none !important;
}

/* Fix for cart item data (variations, etc) */
.woocommerce-cart-form .product-name .variation {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

/* Fix backorder notification */
.backorder_notification {
    font-size: 12px;
    color: var(--orange);
    margin-top: 5px;
    font-family: system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji';
}

/* Shipping calculator form */
.shipping-calculator-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-top: 15px;
}

.shipping-calculator-form .form-row {
    margin-bottom: 15px;
}

.shipping-calculator-form .button {
    background-color: var(--primary-blue) !important;
    color: white !important;
}

/* =============================================================================
   END OF ADDITIONAL CART STYLES
   ========================================================================== */
/* Proceed to Checkout Button Styles */
.btn-checkout,
.checkout-button,
.wc-proceed-to-checkout .button,
.woocommerce-checkout .button,
.woocommerce a.button.checkout,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce #content input.button.alt,
.woocommerce-page a.button.checkout,
.woocommerce-page button.button.alt,
.woocommerce-page input.button.alt,
.woocommerce-page #respond input#submit.alt,
.woocommerce-page #content input.button.alt {
    background-color: #8bc34a !important;
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    width: 100% !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 16px !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin: 10px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.btn-checkout:hover,
.checkout-button:hover,
.wc-proceed-to-checkout .button:hover,
.woocommerce-checkout .button:hover,
.woocommerce a.button.checkout:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce #content input.button.alt:hover,
.woocommerce-page a.button.checkout:hover,
.woocommerce-page button.button.alt:hover,
.woocommerce-page input.button.alt:hover,
.woocommerce-page #respond input#submit.alt:hover,
.woocommerce-page #content input.button.alt:hover {
    background-color: #7cb342 !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.3) !important;
}

/* Specific styling for the cart page checkout button */
.cart_totals .wc-proceed-to-checkout a.checkout-button {
    background-color: #8bc34a !important;
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    width: 100% !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 16px !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin: 20px 0 0 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #7cb342 !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.3) !important;
}

/* Lock icon styling */
.btn-checkout i,
.checkout-button i,
.wc-proceed-to-checkout .button i {
    margin-right: 8px !important;
    font-size: 14px !important;
}

/* Place Order Button (on checkout page) */
.btn-place-order,
.woocommerce #place_order,
.woocommerce-page #place_order,
.woocommerce-checkout #place_order {
    background-color: #8bc34a !important;
    color: white !important;
    border: none !important;
    padding: 18px 30px !important;
    width: 100% !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 18px !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin: 20px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.btn-place-order:hover,
.woocommerce #place_order:hover,
.woocommerce-page #place_order:hover,
.woocommerce-checkout #place_order:hover {
    background-color: #7cb342 !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.4) !important;
}

/* Update Cart Button */
.woocommerce .cart-actions .button,
.woocommerce button[name="update_cart"],
.woocommerce input[name="update_cart"] {
    background-color: var(--primary-blue) !important;
    color: white !important;
    border: none !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 14px !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin: 10px 0 !important;
}

.woocommerce .cart-actions .button:hover,
.woocommerce button[name="update_cart"]:hover,
.woocommerce input[name="update_cart"]:hover {
    background-color: var(--dark-blue) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

/* Apply Coupon Button */
.woocommerce .btn-apply-coupon,
.woocommerce button[name="apply_coupon"],
.woocommerce input[name="apply_coupon"] {
    background-color: var(--dark-orange) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 14px !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin-left: 10px !important;
}

.woocommerce .btn-apply-coupon:hover,
.woocommerce button[name="apply_coupon"]:hover,
.woocommerce input[name="apply_coupon"]:hover {
    background-color: #e5670d !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .btn-checkout,
    .checkout-button,
    .wc-proceed-to-checkout .button,
    .btn-place-order,
    .woocommerce #place_order {
        padding: 14px 20px !important;
        font-size: 15px !important;
    }
    
    .cart_totals .wc-proceed-to-checkout a.checkout-button {
        margin: 15px 0 0 0 !important;
    }
}