/* ========================================
   MEDACSICARE CUSTOM STYLES
   ======================================== */

/* Additional CSS variables */
:root {
  --section-gap: 50px;
}

/* ========================================
   SELECT2 DROPDOWN FIX FOR CHECKOUT
   ======================================== */
/* Ensure Select2 dropdown is visible and properly positioned */
.select2-container {
    z-index: 999999 !important;
    width: 100% !important;
}

.select2-dropdown {
    z-index: 999999 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 300px !important;
}

.select2-results {
    max-height: 250px !important;
    overflow-y: auto !important;
    display: block !important;
}

.select2-results__options {
    display: block !important;
    visibility: visible !important;
}

.select2-container--open .select2-dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Make sure Select2 search and options are visible */
.select2-search--dropdown {
    padding: 8px !important;
    display: block !important;
}

.select2-search__field {
    width: 100% !important;
    padding: 8px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
}

/* State field specific fix */
#billing_state_field .select2-container,
#shipping_state_field .select2-container {
    display: block !important;
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: auto !important;
    padding: 12px !important;
    border: 2px solid #e8eef5 !important;
    border-radius: 8px !important;
    background: white !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    padding: 0 !important;
    color: #2c3e50 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 10px !important;
}

/* AGGRESSIVE FIX: Ensure dropdown is never clipped or hidden */
body .select2-container--open .select2-dropdown,
body.woocommerce-checkout .select2-container--open .select2-dropdown,
.select2-dropdown--below,
.select2-dropdown--above {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
}

/* Ensure parent containers don't clip dropdown */
body .select2-container,
body #billing_state_field,
body #shipping_state_field,
body .woocommerce-billing-fields,
body .woocommerce-shipping-fields,
body form.checkout,
body .woocommerce {
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
}

/* Make sure dropdown results are visible */
.select2-results__options {
    max-height: 250px !important;
    overflow-y: auto !important;
}

.select2-results__option {
    padding: 8px 12px !important;
    cursor: pointer !important;
    display: block !important;
}

.select2-results__option--highlighted {
    background: #3AB8AE !important;
    color: white !important;
}

/* Dropdown styling - clean version */
.select2-dropdown {
    border: 1px solid #ddd !important;
    background: white !important;
    min-height: 100px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}


/* ======= ENHANCED WOOCOMMERCE NOTICES & COUPON ======= */

/* Fix coupon code toggle section - No Container/Borders */
.woocommerce-form-coupon-toggle {
    margin-bottom: 25px !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.woocommerce-notices-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Remove all borders and colors from coupon info box */
.woocommerce-form-coupon-toggle .woocommerce-info {
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}


/* Info message - Blue theme */
.woocommerce-info {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%) !important;
    color: #0D47A1 !important;
    border-left: 5px solid #2196F3 !important;
}

/* Override info styling for coupon section - No colors/borders */
.woocommerce-form-coupon-toggle .woocommerce-info {
    background: transparent !important;
    color: inherit !important;
    border-left: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Success message - Green theme */
.woocommerce-message {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%) !important;
    color: #1B5E20 !important;
    border-left: 5px solid #4CAF50 !important;
}

/* Error message - Red theme */
.woocommerce-error {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%) !important;
    color: #B71C1C !important;
    border-left: 5px solid #F44336 !important;
}

/* Icon styling */
.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before {
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 24px !important;
    line-height: 1 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce-info::before {
    color: #2196F3 !important;
}

.woocommerce-message::before {
    color: #4CAF50 !important;
}

.woocommerce-error::before {
    color: #F44336 !important;
}

/* Links inside notices */
.woocommerce-info a,
.woocommerce-message a,
.woocommerce-error a {
    color: inherit !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    transition: opacity 0.3s ease !important;
}

.woocommerce-info a:hover,
.woocommerce-message a:hover,
.woocommerce-error a:hover {
    opacity: 0.8 !important;
}

/* Animation */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======= ENHANCED COUPON SECTION - MATCHES BILLING/ORDER STYLE ======= */

/* Coupon Toggle - No Container/Borders */
.woocommerce-form-coupon-toggle {
    margin: 0 0 30px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.woocommerce-form-coupon-toggle:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Coupon Toggle Box - No Container/Borders/Colors */
.woocommerce-form-coupon-toggle .woocommerce-info {
    background: transparent !important;
    background-color: transparent !important;
    color: #17538F !important;
    padding: 20px 0 !important;
    border-radius: 0 !important;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    outline: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: visible !important;
    min-height: auto !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    cursor: pointer !important;
    user-select: none !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info:hover {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info:focus,
.woocommerce-form-coupon-toggle .woocommerce-info:active {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info::before {
    content: "" !important;
    display: none !important;
}

/* Add arrow icon to indicate it's clickable */
.woocommerce-form-coupon-toggle .woocommerce-info::after {
    content: '▼' !important;
    display: inline-block !important;
    margin-left: 10px !important;
    font-size: 12px !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #3AB8AE !important;
    font-weight: normal !important;
}

/* Rotate arrow when coupon form is open */
.woocommerce-form-coupon-toggle.coupon-open .woocommerce-info::after {
    transform: rotate(180deg) !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info:active {
    transform: none !important;
}

.woocommerce-form-coupon-toggle .showcoupon {
    color: #3AB8AE !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #3AB8AE !important;
    padding-bottom: 2px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    z-index: 1 !important;
}

.woocommerce-form-coupon-toggle .showcoupon:hover {
    color: #17538F !important;
    border-bottom-color: #17538F !important;
}

/* Ensure text is above decorative elements */
.woocommerce-form-coupon-toggle .woocommerce-info > * {
    position: relative !important;
    z-index: 1 !important;
}

/* Coupon Form - No Container/Borders */
form.checkout_coupon {
    padding: 20px 0 0 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    position: relative !important;
    overflow: visible !important;
    min-height: auto !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: none !important;
    animation: slideDownCoupon 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Show coupon form when toggled */
form.checkout_coupon.show,
form.checkout_coupon[style*="display: block"] {
    display: block !important;
}

/* Animation for coupon form slide down */
@keyframes slideDownCoupon {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 20px;
        padding-bottom: 0;
        transform: translateY(0);
    }
}

form.checkout_coupon p {
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

form.checkout_coupon p:first-child {
    margin-bottom: 24px !important;
    color: #2c3e50 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    display: block !important;
    min-height: auto !important;
}

form.checkout_coupon p:first-child::before {
    display: none !important;
}

.checkout_coupon .form-row {
    display: flex !important;
    gap: 15px !important;
    align-items: stretch !important;
    margin-bottom: 0 !important;
}

.checkout_coupon .form-row-first,
.checkout_coupon .form-row-last {
    margin: 0 !important;
    padding: 0 !important;
}

.checkout_coupon .form-row-first {
    flex: 1 !important;
}

/* Coupon Input - Matching Billing Fields Style */
.checkout_coupon input[type="text"] {
    width: 100% !important;
    padding: 16px 18px !important;
    border: 2px solid #e8eef5 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #2c3e50 !important;
    background: #f8fafb !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    min-height: auto !important;
    height: auto !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

.checkout_coupon input[type="text"]:focus {
    border-color: #3AB8AE !important;
    background: white !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(58, 184, 174, 0.15), 0 4px 12px rgba(58, 184, 174, 0.1) !important;
    transform: translateY(-1px) !important;
}

.checkout_coupon input[type="text"]::placeholder {
    color: #999 !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

/* Apply Coupon Button */
.checkout_coupon button[name="apply_coupon"] {
    padding: 16px 32px !important;
    background: linear-gradient(135deg, #3AB8AE 0%, #2a9d94 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-transform: none !important;
    font-size: 15px !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 15px rgba(58, 184, 174, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: auto !important;
    height: auto !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.checkout_coupon button[name="apply_coupon"]:hover {
    background: linear-gradient(135deg, #2a9d94 0%, #3AB8AE 100%) !important;
    box-shadow: 0 6px 25px rgba(58, 184, 174, 0.45) !important;
    transform: translateY(-2px) !important;
}

.checkout_coupon button[name="apply_coupon"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 3px 15px rgba(58, 184, 174, 0.4) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce-info,
    .woocommerce-message,
    .woocommerce-error {
        padding: 16px 20px !important;
        font-size: 14px !important;
    }
    
    .woocommerce-info::before,
    .woocommerce-message::before,
    .woocommerce-error::before {
        font-size: 20px !important;
        width: 24px !important;
        height: 24px !important;
    }
    
    /* Mobile Coupon Enhancements - No Container */
    .woocommerce-form-coupon-toggle {
        margin: 0 0 20px 0 !important;
        border-radius: 0 !important;
    }
    
    .woocommerce-form-coupon-toggle .woocommerce-info {
        padding: 18px 0 !important;
        font-size: 15px !important;
        gap: 10px !important;
        border-radius: 0 !important;
    }
    
    .woocommerce-form-coupon-toggle .woocommerce-info::before {
        font-size: 18px !important;
    }
    
    form.checkout_coupon {
        padding: 15px 0 0 0 !important;
        border-radius: 0 !important;
    }
    
    form.checkout_coupon p:first-child {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    
    .checkout_coupon .form-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    
    .checkout_coupon input[type="text"] {
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 15px !important;
    }
    
    .checkout_coupon button[name="apply_coupon"] {
        width: 100% !important;
        padding: 16px 20px !important;
        font-size: 15px !important;
    }
}

/* ======= FOOTER STYLES ======= */
.medacsicare-footer {
    background: #1a3a4a;
    color: #ffffff;
    padding: 40px 0 0;
    width: 100% !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

.medacsicare-footer .footer-widgets {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 20px 40px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    box-sizing: border-box;
}

.medacsicare-footer .widget {
    flex: 1;
    min-width: 220px;
}

.medacsicare-footer h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #ffffff;
    font-weight: bold;
}

.medacsicare-footer hr {
    border: none;
    height: 2px;
    background: #ffffff;
    width: 80px;
    margin: 0 0 15px 0;
}

.medacsicare-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.medacsicare-footer ul li {
    margin-bottom: 10px;
}

.medacsicare-footer a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.medacsicare-footer a:hover {
    opacity: 0.8;
    color: #3AB8AE;
}

.footer-bottom {
    background: #0f2833;
    padding: 20px;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Ensure footer stretches full width - AGGRESSIVE */
body > div[style*="background: #1a3a4a"],
body > div[style*="1a3a4a"],
.medacsicare-footer,
body .medacsicare-footer,
html .medacsicare-footer {
    width: 100vw !important;
    position: relative !important;
    left: calc(-50vw + 50%) !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Override any parent container constraints */
body > div[style*="background: #1a3a4a"] {
    width: 100vw !important;
    max-width: 100vw !important;
}

/* Force full width on shop page footer */
.woocommerce > div[style*="background: #1a3a4a"],
.woocommerce-page > div[style*="background: #1a3a4a"] {
    width: 100vw !important;
    position: relative !important;
    left: calc(-50vw + 50%) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .medacsicare-footer .footer-widgets {
        flex-direction: column;
        padding: 0 15px 30px !important;
        gap: 30px;
    }
    
    .medacsicare-footer .widget {
        min-width: 100%;
    }
}

@media (max-width: 600px) {
    .medacsicare-footer .footer-widgets {
        flex-direction: column;
        padding: 0 12px 20px !important;
        gap: 20px;
    }
}

/* ======= MINI CART STYLES ======= */
/* Mini Cart Discount Notice Styling */
.woocommerce-mini-cart-discount-notice {
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

/* Default notice (when discount threshold not met) */
.woocommerce-mini-cart-discount-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #fff9e6 100%);
    color: #856404;
    border: 1px solid #ffeaa7;
    box-shadow: 0 2px 5px rgba(133, 100, 4, 0.1);
}

/* Success notice (when discount applied) */
.woocommerce-mini-cart-discount-notice.discount-applied {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
    box-shadow: 0 2px 5px rgba(21, 87, 36, 0.1);
}

/* Add icon before text */
.woocommerce-mini-cart-discount-notice::before {
    content: "🎁 ";
    margin-right: 5px;
}

.woocommerce-mini-cart-discount-notice.discount-applied::before {
    content: "✅ ";
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mini Cart Container Styling */
.widget_shopping_cart {
    padding: 15px;
}

/* Mini Cart Product Items */
.woocommerce-mini-cart-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.woocommerce-mini-cart-item:hover {
    background: #f9f9f9;
}

/* Mini Cart Buttons */
.woocommerce-mini-cart__buttons {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.woocommerce-mini-cart__buttons a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 10px;
    text-align: center;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* View Cart Button */
.woocommerce-mini-cart__buttons a.button:first-child {
    background: #f5f5f5;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.woocommerce-mini-cart__buttons a.button:first-child:hover {
    background: var(--primary);
    color: white;
}


/* Mini Cart Subtotal */
.woocommerce-mini-cart__total {
    padding: 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

/* Mini Cart Empty Message */
.woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

/* Mobile Mini Cart Adjustments */
@media (max-width: 600px) {
    .woocommerce-mini-cart-discount-notice {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .woocommerce-mini-cart__buttons a {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* ======= PRODUCT PRICE STYLES ======= */

/* Regular Price (Original/Strikethrough) - Make it VISIBLE & COLORFUL */
.woocommerce del,
del.price,
.price del,
.woocommerce-Price-amount.amount del,
.woocommerce .product .price del,
span.woocommerce-Price-amount.amount del,
.product-price del {
    color: #FF6B6B !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    text-decoration: line-through;
    text-decoration-color: #FF6B6B;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Sale Price - Make it stand out */
.woocommerce ins,
ins.price,
.price ins,
.woocommerce-Price-amount.amount ins,
.woocommerce .product .price ins,
span.woocommerce-Price-amount.amount ins,
.product-price ins {
    background: none !important;
    color: #27AE60 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Price Container - Ensure good spacing */
.woocommerce .product .price,
.woocommerce div.product .price,
.woocommerce-Price-amount {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Discount Badge/Savings */
.woocommerce-Price-amount.amount {
    color: #27AE60;
    font-weight: 700;
}

/* Product page price styling */
.single-product .product-price,
.single-product .price {
    font-size: 24px;
    font-weight: 700;
    margin: 15px 0;
}

.single-product .price del {
    font-size: 18px;
    margin-right: 15px;
}

.single-product .price ins {
    font-size: 28px;
    color: #27AE60;
}

/* Shop/Archive page price styling */
.product-item .price,
.woocommerce-loop-product__title ~ .price {
    font-size: 16px;
    margin: 10px 0;
}

/* Ensure prices are not too light */
.woocommerce .product .price,
.woocommerce-Price-amount {
    color: #333 !important;
}

/* ======= PRODUCT TITLE STYLES - ENHANCED ======= */

/* Product Title Container - Shop/Archive Pages */
.woocommerce ul.products li.product {
    position: relative;
}

/* Product Title - Shop/Archive Pages */
.woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.product-item h2,
.product-item .product-title,
h2.woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f2833 !important;
    line-height: 1.5 !important;
    margin: 15px 0 12px 0 !important;
    padding: 10px 12px !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    text-decoration: none !important;
    display: block !important;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 8px !important;
    background: linear-gradient(135deg, rgba(58, 184, 174, 0.05) 0%, rgba(23, 83, 143, 0.05) 100%) !important;
    border: 2px solid transparent !important;
    letter-spacing: 0.3px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Product Title Hover Effect - Enhanced */
.woocommerce-loop-product__title:hover,
.woocommerce ul.products li.product h2:hover,
.woocommerce ul.products li.product .woocommerce-loop-product__title:hover,
.product-item h2:hover,
.product-item .product-title:hover,
h2.woocommerce-loop-product__title:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #3AB8AE 0%, #17538F 100%) !important;
    border: 2px solid #3AB8AE !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(58, 184, 174, 0.3) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Product Title Link */
.woocommerce-loop-product__title a,
.woocommerce ul.products li.product h2 a,
.woocommerce ul.products li.product .woocommerce-loop-product__title a,
.product-item h2 a,
.product-item .product-title a,
h2.woocommerce-loop-product__title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: all 0.4s ease !important;
    display: block;
    width: 100%;
}

.woocommerce-loop-product__title a:hover,
.woocommerce ul.products li.product h2 a:hover,
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover,
.product-item h2 a:hover,
.product-item .product-title a:hover,
h2.woocommerce-loop-product__title a:hover {
    color: #ffffff !important;
}

/* Single Product Title - Enhanced */
.single-product .product_title,
.single-product h1.product_title,
.single-product .entry-title {
    font-size: 36px !important;
    font-weight: 900 !important;
    color: #0f2833 !important;
    line-height: 1.2 !important;
    margin: 25px 0 20px 0 !important;
    letter-spacing: -0.8px !important;
    background: linear-gradient(135deg, #17538F 0%, #3AB8AE 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: none !important;
}

/* Fallback for browsers that don't support gradient text */
.single-product .product_title,
.single-product h1.product_title,
.single-product .entry-title {
    color: #0f2833 !important;
}

/* Product Title with Badge/Tag */
.woocommerce-loop-product__title.has-badge,
.product-item.has-badge h2 {
    position: relative;
    padding-right: 50px;
}

/* Product Title Text Shadow for Better Readability */
.woocommerce-loop-product__title {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Mobile Product Title - Enhanced */
@media (max-width: 768px) {
    .woocommerce-loop-product__title,
    .woocommerce ul.products li.product h2,
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .product-item h2,
    .product-item .product-title,
    h2.woocommerce-loop-product__title {
        font-size: 15px !important;
        min-height: 50px;
        padding: 8px 10px !important;
        margin: 12px 0 10px 0 !important;
    }
    
    .single-product .product_title,
    .single-product h1.product_title,
    .single-product .entry-title {
        font-size: 28px !important;
        margin: 20px 0 15px 0 !important;
    }
}

/* Product Title in Product Card Container */
.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    order: 2;
    flex-grow: 1;
}

/* Title with Sale Badge Styling */
.woocommerce ul.products li.product.onsale .woocommerce-loop-product__title,
.woocommerce ul.products li.product.onsale h2 {
    color: #ffffff !important;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E72 100%) !important;
    font-weight: 900 !important;
    border: 2px solid #FF6B6B !important;
}

.woocommerce ul.products li.product.onsale .woocommerce-loop-product__title:hover,
.woocommerce ul.products li.product.onsale h2:hover {
    background: linear-gradient(135deg, #FF5252 0%, #FF6B6B 100%) !important;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4) !important;
}

/* Category/Tag under Title */
.product-category-tag,
.product-item .product-category {
    font-size: 11px;
    font-weight: 700;
    color: #3AB8AE;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    display: block;
    background: rgba(58, 184, 174, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Product Title Animation on Load */
@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce-loop-product__title {
    animation: titleSlideIn 0.6s ease-out;
}

/* Title Focus State for Accessibility */
.woocommerce-loop-product__title a:focus,
.woocommerce ul.products li.product h2 a:focus,
.product-item h2 a:focus {
    outline: 3px solid #3AB8AE !important;
    outline-offset: 2px !important;
}

/* Product Title Truncation - 2 lines max */
.woocommerce-loop-product__title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

/* ======= CUSTOM SHOP PAGE LAYOUT ======= */

/* FORCE HIDE OLD SHOP LAYOUT */
.woocommerce-page .woocommerce::before,
.woocommerce-page .woocommerce::after,
.shop-welcome-banner,
.shop-category-nav,
.shop-trust-badges,
.shop-toolbar,
.mobile-filter-toggle,
.filters-overlay,
.shop-filters-container {
    display: none !important;
}

.custom-shop-wrapper {
    width: 100%;
    max-width: 100%;
    background: #f8f9fa;
    display: block !important;
}

/* Hero Section */
.shop-hero-section {
    background: linear-gradient(135deg, #17538F 0%, #3AB8AE 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.shop-hero-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 15px 0;
    letter-spacing: -1px;
}

.shop-hero-subtitle {
    font-size: 18px;
    margin: 0 0 25px 0;
    opacity: 0.95;
}

.shop-hero-features {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Main Container */
.shop-main-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Sidebar */
.shop-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.shop-widget {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f2833;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3AB8AE;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.category-item:hover {
    background: #e8f4f8;
    border-left-color: #3AB8AE;
    color: #17538F;
}

.category-name {
    font-weight: 600;
}

.category-count {
    font-size: 12px;
    color: #999;
}

/* Price Filter */
.price-filter-widget {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-slider-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3AB8AE;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(58, 184, 174, 0.3);
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3AB8AE;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(58, 184, 174, 0.3);
}

.price-display {
    text-align: center;
    font-weight: 700;
    color: #17538F;
    font-size: 16px;
}

/* Products Area */
.shop-products-area {
    flex: 1;
    min-width: 0;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.product-count {
    font-weight: 600;
    color: #333;
}

/* Products Grid */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .shop-main-container {
        flex-direction: column;
        gap: 20px;
    }

    .shop-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .shop-widget {
        margin-bottom: 0;
    }

    .shop-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .shop-hero-section {
        padding: 40px 15px;
    }

    .shop-hero-title {
        font-size: 28px;
    }

    .shop-hero-subtitle {
        font-size: 16px;
    }

    .shop-hero-features {
        gap: 10px;
    }

    .feature-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .shop-main-container {
        padding: 0 15px 30px;
    }

    .shop-sidebar {
        grid-template-columns: 1fr;
    }

    .shop-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .shop-hero-title {
        font-size: 22px;
    }

    .shop-hero-subtitle {
        font-size: 14px;
    }

    .shop-hero-features {
        flex-direction: column;
    }

    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ======= CUSTOM SHOP PAGE - NUCLEAR OVERRIDE ======= */

/* Hide everything WoodMart related */
.woodmart-content-area,
.woodmart-shop-loader,
.site-content .col-lg-12,
.woocommerce-notices-wrapper {
    display: none !important;
}

/* Custom Shop Page Wrapper */
.custom-shop-page-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* AGGRESSIVE: Remove ALL white space between header and hero */
.woocommerce-page .site-content,
.post-type-archive-product .site-content,
.tax-product_cat .site-content,
.site-content,
.main-page-wrapper,
.container,
.site-main,
main,
#main,
.content-area,
.woocommerce,
body.woocommerce,
body.post-type-archive-product {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.custom-shop-page-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any WooCommerce breadcrumbs spacing */
.woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb,
.breadcrumbs-wrapper,
.breadcrumb,
.rank-math-breadcrumb,
.yoast-breadcrumb {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* WoodMart specific spacing removal */
.woodmart-content-area,
.site-content .col-lg-12,
.site-content .container,
.page-title-default {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove header bottom spacing */
.site-header,
.header,
#header,
.whb-header,
.whb-main-header,
header.header,
.woodmart-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Force shop page to start at top */
body.woocommerce .site-content,
body.post-type-archive-product .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove any row/section spacing */
.site-content .row,
.site-content > .container > .row {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ======= WOODMART SHOP PAGE CUSTOMIZATION ======= */

/* AGGRESSIVE: Hide WoodMart's default shop layout */
.woodmart-shop-page .woodmart-shop-wrapper,
.woodmart-shop-page .woodmart-products-wrapper,
.woodmart-shop-page .products-header,
.woodmart-shop-page .woocommerce-result-count,
.woodmart-shop-page .woocommerce-ordering,
.woodmart-shop-page .woodmart-filters-wrapper,
.woodmart-shop-page .woodmart-sidebar,
.woodmart-shop-page .shop-page-title,
.woocommerce-page .page-header,
.woocommerce-page .woocommerce-products-header,
.shop .page-header,
.shop .woocommerce-products-header,
.woodmart-shop-wrapper,
.woodmart-products-wrapper,
.woodmart-filters-wrapper,
.woodmart-sidebar,
.shop-page-title,
.products-header,
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce .page-header,
.woocommerce .woocommerce-products-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force show our custom layout */
.custom-shop-hero-section,
.custom-shop-wrapper-container,
.custom-shop-sidebar,
.custom-shop-main-content {
    display: block !important;
    visibility: visible !important;
}

/* Hero Section - Enhanced */
.custom-shop-hero-section {
    background: linear-gradient(135deg, #17538F 0%, #2B6FA8 50%, #3AB8AE 100%);
    color: white;
    padding: 100px 20px 80px;
    text-align: center;
    margin-top: 0 !important;
    margin-bottom: 50px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Hero Overlay Pattern */
.shop-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.shop-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeInDown 0.8s ease-out;
}

.shop-hero-title {
    font-size: 52px;
    font-weight: 900;
    margin: 0 0 20px 0;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.shop-hero-subtitle {
    font-size: 20px;
    margin: 0 0 35px 0;
    opacity: 0.95;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero Search Bar */
.hero-search-bar {
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.hero-search-bar form {
    display: flex;
    gap: 10px;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.hero-search-bar input[type="search"] {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.hero-search-bar input[type="search"]:focus {
    outline: none;
}

.hero-search-bar button {
    background: linear-gradient(135deg, #3AB8AE, #2a8a82);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-search-bar button:hover {
    background: linear-gradient(135deg, #2e9a91, #238075);
    transform: scale(1.05);
}

/* Feature Badges - Enhanced */
.shop-hero-features {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.badge-icon {
    font-size: 18px;
}

.badge-text {
    font-weight: 600;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Container with Sidebar */
.custom-shop-wrapper-container,
.custom-shop-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Sidebar - Enhanced */
.custom-shop-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.custom-shop-widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.custom-shop-widget:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.custom-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f2833;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #3AB8AE;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.custom-category-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #3AB8AE;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.custom-category-item:hover {
    background: #e8f4f8;
    color: #17538F;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(58, 184, 174, 0.2);
}

.custom-category-item:hover::before {
    transform: scaleY(1);
}

.custom-category-name {
    font-weight: 600;
    font-size: 15px;
}

.custom-category-count {
    font-size: 12px;
    color: #999;
    background: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

/* Price Filter */
.custom-price-filter-widget {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.custom-price-slider-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.custom-price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3AB8AE;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(58, 184, 174, 0.3);
}

.custom-price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3AB8AE;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(58, 184, 174, 0.3);
}

.custom-price-display {
    text-align: center;
    font-weight: 700;
    color: #17538F;
    font-size: 16px;
}

/* Main Content Area */
.custom-shop-main-content,
.custom-shop-products-area {
    flex: 1;
    min-width: 0;
}

/* Toolbar */
.custom-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Price Inputs */
.custom-price-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.custom-price-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.custom-price-input:focus {
    border-color: #3AB8AE;
    outline: none;
}

/* Apply Filter Button */
.custom-apply-filter-btn {
    width: 100%;
    background: linear-gradient(135deg, #3AB8AE, #2a8a82);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-apply-filter-btn:hover {
    background: #FFD84D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 206, 18, 0.5);
}

/* Mobile Responsive - Enhanced */
@media (max-width: 1200px) {
    .custom-shop-container {
        padding: 0 15px;
    }
}

@media (max-width: 1024px) {
    .custom-shop-wrapper-container,
    .custom-shop-container {
        flex-direction: column;
        gap: 25px;
    }

    .custom-shop-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .custom-shop-widget {
        margin-bottom: 0;
    }
    
    .custom-shop-hero-section {
        padding: 60px 20px;
    }
}

@media (max-width: 768px) {
    .custom-shop-hero-section {
        padding: 80px 20px 50px;
    }

    .shop-hero-title {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .shop-hero-subtitle {
        font-size: 16px;
    }

    .shop-hero-features {
        gap: 12px;
        flex-direction: column;
    }

    .feature-badge {
        font-size: 13px;
        padding: 10px 16px;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .custom-shop-sidebar {
        grid-template-columns: 1fr;
    }
    
    .hero-search-bar {
        max-width: 100%;
        margin: 0 auto 30px;
        padding: 0 20px;
    }
    
    .hero-search-bar form {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 12px !important;
        border-radius: 16px !important;
        align-items: stretch;
    }
    
    .hero-search-bar input[type="search"] {
        padding: 16px 20px !important;
        border-radius: 12px !important;
        font-size: 15px !important;
        margin-bottom: 12px !important;
        width: 100% !important;
        flex: none !important;
    }
    
    .hero-search-bar button {
        width: 100% !important;
        padding: 16px 20px !important;
        border-radius: 12px !important;
        font-size: 16px !important;
        flex: none !important;
        margin: 0 !important;
    }
    
    .custom-shop-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .custom-shop-hero-section {
        padding: 100px 15px 40px;
    }

    .shop-hero-title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .shop-hero-subtitle {
        font-size: 14px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    /* Mobile search bar */
    .hero-search-bar {
        padding: 0 10px;
    }
    
    .hero-search-bar form {
        padding: 8px;
    }
    
    .hero-search-bar input[type="search"] {
        padding: 14px 18px;
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .hero-search-bar button {
        padding: 14px 18px;
        font-size: 15px;
    }

    .shop-hero-features {
        flex-direction: column;
        width: 100%;
    }
    
    .feature-badge {
        width: 100%;
        max-width: none;
    }
    
    .custom-category-item {
        padding: 12px 14px;
    }
    
    .custom-category-name {
        font-size: 14px;
    }
    
    /* Mobile Products - Single Column */
    .woocommerce ul.products,
    ul.products,
    .products {
        grid-template-columns: 1fr !important;
        display: grid !important;
        gap: 20px !important;
    }
    
    .woocommerce ul.products li.product,
    ul.products li.product,
    .products li.product {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

/* ======= MEGA MENU ALIGNMENT - LEFT ALIGNED ======= */

/* WoodMart Mega Menu - Align from LEFT */
.woodmart-mega-menu,
.woodmart-mega-menu-inner,
.woodmart-mega-menu-content,
.woodmart-mega-menu .sub-menu-dropdown,
.woodmart-mega-menu .sub-menu,
.mega-menu-list {
    text-align: left !important;
    direction: ltr !important;
}

/* Mega Menu Items - Left Alignment */
.woodmart-mega-menu-item,
.woodmart-mega-menu-list,
.woodmart-mega-menu-list li,
.woodmart-mega-menu-list a,
.woodmart-mega-menu .item-level-0,
.woodmart-mega-menu .item-level-1,
.woodmart-mega-menu .item-level-2 {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

/* Dropdown Menu - Left Aligned */
.woodmart-dropdown-menu,
.woodmart-dropdown-menu-inner,
.woodmart-dropdown-menu-content,
.sub-menu-dropdown,
.dropdown-wrapp {
    text-align: left !important;
}

/* Menu List Items */
.woodmart-menu-list,
.woodmart-menu-list li,
.woodmart-menu-list a,
.woodmart-menu-item,
.menu-item,
.menu-item a {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Product Categories Dropdown - AGGRESSIVE */
.product-categories,
.product-categories li,
.product-categories a,
.product_cat-item,
.product_cat-item a,
.woodmart-product-categories,
.woodmart-product-categories li,
.woodmart-product-categories a {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

/* Navigation Menu - Left Aligned */
.woodmart-navigation,
.woodmart-navigation-inner,
.woodmart-navigation-menu,
.woodmart-navigation-menu li,
.woodmart-navigation-menu a,
.main-nav,
.main-nav li,
.main-nav a {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* WooCommerce Menu */
.woocommerce-menu,
.woocommerce-menu li,
.woocommerce-menu a {
    text-align: left !important;
}

/* Generic Menu Alignment */
nav ul,
nav li,
nav a,
.menu,
.menu li,
.menu a,
.nav-menu,
.nav-menu li,
.nav-menu a {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Submenu - Left Aligned */
.submenu,
.sub-menu,
.dropdown-menu,
.submenu li,
.sub-menu li,
.dropdown-menu li,
.sub-menu a,
.dropdown-menu a {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Header Menu */
.header-menu,
.header-menu li,
.header-menu a,
.site-navigation,
.site-navigation li,
.site-navigation a,
.woodmart-header-links,
.woodmart-header-links li,
.woodmart-header-links a {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Flex Container Override */
.woodmart-mega-menu,
.sub-menu-dropdown,
.dropdown-wrapp,
.menu-item,
.product-categories li,
.product_cat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}
/* Menu Item Text Alignment */
.menu-item span,
.menu-item a span,
.product-categories a span,
 .woodmart-menu-item span {
    text-align: left !important;
    width: 100% !important;
  }