/*
Theme Name: Ecomstor Shop Theme
Theme URI: https://ecomstor.shop
Description: Custom E-commerce theme for Ecomstor Shop
Author: Ecomstor Dev Team
Author URI: https://ecomstor.shop
Template: phlox
Version: 1.0.4
*/

/* Custom CSS to hide branding/credits if PHP removal isn't enough */
.aux-attribution, .aux-privacy-policy, .icon-box-cell .aux-icon .aux-ico-phlox {
    display: none !important;
}

/* Hide "Powered by" if it has specific classes */
.site-info a[href*="wordpress.org"], 
.site-info a[href*="phlox.pro"],
.copyright-footer a[href*="phlox.pro"] {
    display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Ecospend Inspired Theme (Professional Blue/Purple/Orange) */
/* -------------------------------------------------------------------------- */

:root {
    --primary-gradient: linear-gradient(135deg, #4B0082 0%, #1E90FF 100%); /* Deep Purple to Blue */
    --accent-color: #FF7F50; /* Coral Orange for CTAs */
    --accent-hover: #ff6347;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.05);
    --card-shadow-hover: 0 10px 20px rgba(0,0,0,0.1);
}

/* General Typography & Layout */
body {
    font-family: 'Poppins', 'Montserrat', sans-serif; /* Modern Sans */
    -webkit-font-smoothing: antialiased;
    color: var(--text-dark);
    background-color: #fff;
}

/* -------------------------------------------------------------------------- */
/* ELITE PROGRESS INDICATOR */
/* -------------------------------------------------------------------------- */
.elite-checkout-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1240px;
    margin: 10px auto 30px; /* Further reduced top margin to 10px */
    padding: 0 20px;
    gap: 40px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.progress-step::before {
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.progress-step.completed {
    color: #1e293b;
}

.progress-step.completed::before {
    content: "✓";
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
    font-size: 0.75rem;
}

.progress-step.active {
    color: var(--accent-color);
}

.progress-step.active::before {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 127, 80, 0.1);
}

.progress-step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -28px;
    top: 50%;
    width: 16px;
    height: 1px;
    background: #e2e8f0;
}

/* -------------------------------------------------------------------------- */
/* ELITE MINI-HEADER */
/* -------------------------------------------------------------------------- */
.woocommerce-checkout .page-header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.woocommerce-checkout .page-header .aux-container {
    padding-top: 30px !important;
    padding-bottom: 25px !important;
}

.woocommerce-checkout .aux-breadcrumbs {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    font-size: 0.7rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    opacity: 0.5;
}

.woocommerce-checkout .page-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.85rem !important;
    margin-bottom: 0 !important;
    letter-spacing: -1.5px !important;
    color: #1e293b !important;
    padding-bottom: 0 !important;
    line-height: 1.1 !important;
}

/* Fix excessive theme padding on #main and .aux-primary */
.woocommerce-checkout #main.aux-content-top-margin,
.woocommerce-checkout .aux-primary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Final Precision Squeeze: Reset page title section padding and margins */
.woocommerce-checkout .aux-page-title,
.woocommerce-checkout .aux-title-section {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.woocommerce-checkout .page-header {
    margin-bottom: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* Header Clean & Gradient */
/* -------------------------------------------------------------------------- */

.aux-top-header {
    /* display: none !important;  <- potentially hiding main menu */
    background: transparent; /* Ensure it blends if it re-appears */
}

/* Site Header - Default (Inner Pages) */
/* Site Header - Default (Inner Pages) */
.site-header-section {
    background: #ffffff !important; /* Clean White */
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle separator */
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); /* Very soft shadow */
}





/* Sticky State - When Scrolling (Solid Background "Hides" Content) */
.aux-sticky .site-header-section,
.auxin-sticky .site-header-section,
.is-sticky .site-header-section,
.site-header-section.fixed {
    background: rgba(255, 255, 255, 0.98) !important; /* White with slight transparency */
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999 !important; /* Match topmost layer */
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

/* Fix Header Inner Alignment - Fluid with Safe Padding */
.site-header-section .aux-wrapper,
.aux-header-elements { 
    max-width: 100% !important; /* Let logo sit wide */
    margin: 0 !important;
    padding-left: 50px !important; /* Generous "Premium" offset from edge */
    padding-right: 50px !important;
    width: 100%;
}

/* Ensure Logo/Nav text is dark grey */
.site-title a, .aux-navigation ul.aux-menu-depth-0 > li.menu-item > a {
    color: #333333 !important;
    text-shadow: none;
}

/* Navigation Links - White on Gradient */
.aux-navigation ul.aux-menu-depth-0 > li.menu-item > a {
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 0.90rem !important; /* Refined size */
    color: #333333 !important; /* Dark Text */
    padding: 0 20px !important;
    opacity: 1;
    transition: color 0.3s;
}

.aux-navigation ul.aux-menu-depth-0 > li.menu-item > a:hover {
    opacity: 1;
    color: var(--accent-color) !important;
}

/* -------------------------------------------------------------------------- */
/* Premium Header Icons (Cart, Search, Account) */
/* -------------------------------------------------------------------------- */

/* Wrapper for icons */
.aux-header-elements .aux-btns-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Icons Generic Styling */
.aux-header-elements .aux-icons {
    color: #333333 !important; /* Dark Icons */
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
}

.aux-header-elements .aux-icons:hover {
    color: var(--accent-color) !important;
    opacity: 1;
    transform: translateY(-2px);
}

/* Cart Specific - "Notification Badge" Style */
.aux-cart-contents {
    position: relative;
    display: flex;
    align-items: center;
}

.aux-cart-contents .aux-shopping-bag {
    font-size: 1.4rem; /* Slightly larger bag */
}

/* The Count Badge */
.aux-cart-contents .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Search Icon */
.aux-search-section .aux-search-submit {
    background: transparent;
    color: #333 !important; /* Dark Search Icon */
    font-size: 1.2rem;
    border: none;
    padding: 0;
}

/* -------------------------------------------------------------------------- */
/* Navbar CTA / Header Button Styling */
/* -------------------------------------------------------------------------- */

.site-header-section .button,
.site-header-section .aux-button,
.aux-header-elements .aux-button,
.aux-menu-depth-0 > .menu-item.highlight-button > a {
    background: var(--accent-color) !important;
    color: #fff !important;
    padding: 10px 28px !important;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem !important;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 127, 80, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    line-height: normal;
    margin-left: 15px; /* Spacing from other items */
}

.site-header-section .button:hover,
.site-header-section .aux-button:hover,
.aux-header-elements .aux-button:hover,
.aux-menu-depth-0 > .menu-item.highlight-button > a:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 127, 80, 0.5);
    color: #fff !important;
    opacity: 1 !important;
}

/* 
   CRITICAL: Hide the Phlox/Default logo image if it exists 
   and ensure the text title "Ecomstor" is visible (if user enables it).
*/
/* Force Header structure to display */
.aux-site-header, .site-header-section {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 80px; /* Ensure it has height */
}

/* Hide all images in the header to show text title only */
.site-header-section img,
.aux-logo-header img,
.aux-logo-header .aux-logo-image,
.aux-logo-anchor img {
    display: none !important;
    opacity: 0 !important;
    width: 0 !important;
    visibility: hidden !important;
}

/* Force "ECOMSTOR" Text if HTML is empty or just to be sure */
.site-title a,
.aux-logo-anchor {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #333 !important;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Inject text via CSS if the element is empty after hiding image */
.aux-logo-anchor:after {
    content: "ECOMSTOR";
    display: block;
    color: #333;
    font-style: normal;
}

/* -------------------------------------------------------------------------- */
/* Shop Grid - Ecospend Style */
/* -------------------------------------------------------------------------- */



.shop-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.woocommerce ul.products, .woocommerce-page ul.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* THE FIX: Centers orphaned items */
    gap: 40px; /* Generous spacing */
    padding: 40px 0;
    margin: 0 auto !important;
}

/* Responsive adjustments happen automatically with Flex-Center/Wrap */
.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
    flex: 0 1 270px; /* Base width 270px, can shrink slightly */
    max-width: 270px;
    margin: 0 !important; /* Gap handles spacing */

    text-align: center;
    border: none;
    padding: 0;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: transparent; /* Clean look, no box */
    box-shadow: none;
    
    /* Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: auto; /* Let content flow naturally */
}

/* Force Image Aspect Ratio (Standard Book Size) */
.woocommerce ul.products li.product a img {
    width: 100%;
    height: 250px; /* Fixed height for cover */
    object-fit: contain; /* Don't crop books, usually contain looks better for varied ratios if background is white */
    margin-bottom: 20px !important;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Floating book effect */
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 10px;
    color: var(--text-dark);
    line-height: 1.4;
    
    /* Limit title lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2em; /* Reserve space for 2 lines */
}

.woocommerce ul.products li.product .price {
    color: #4B0082;
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin: 10px 0 20px;
    margin-top: auto; /* Push to bottom if title is short */
}

.woocommerce ul.products li.product .button {
    margin-top: 0; /* Handled by flex gap/margin */
    width: 100%; /* Full width button looks cleaner on cards */
    max-width: 200px;
}

/* -------------------------------------------------------------------------- */
/* Buttons - High Contrast Orange */
/* -------------------------------------------------------------------------- */

.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button {
    background-color: var(--accent-color) !important;
    color: #fff !important;
    border-radius: 50px; 
    padding: 12px 30px;
    font-weight: 600;
    text-transform: capitalize; 
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 127, 80, 0.3);
}

.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover {
    background-color: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 127, 80, 0.4);
}

.woocommerce a.button.added:after {
    display: none; 
}

/* -------------------------------------------------------------------------- */
/* Footer - Deep Blue/Black */
/* -------------------------------------------------------------------------- */

.aux-site-footer {
    background: #0b0e11;
    color: #ccc;
}

.copyright-text {
    text-align: left; /* Match Header Alignment */
    padding: 25px 50px; /* Match Header Padding (50px) */
    font-size: 0.9rem;
    color: #888; /* Slightly softer than #aaa */
    border-top: 1px solid #1a1a1a; /* Darker, subtler border */
    background: #0b0e11; 
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

/* Widget Areas */
.aux-widget-area {
    padding: 60px 0;
    background-color: #f4f6f9; 
}

.aux-widget-area .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent-color); 
    padding-bottom: 10px;
    display: inline-block;
}

/* -------------------------------------------------------------------------- */
/* Ecomstor Premium Customizations */
/* -------------------------------------------------------------------------- */

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0; /* Start hidden */
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Glassmorphism & Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* -------------------------------------------------------------------------- */
/* Professional Checkout - High-End Split Design */
/* -------------------------------------------------------------------------- */

/* Global Background for Contrast */
body.woocommerce-checkout {
    background-color: #f8fafc !important; /* Extremely light cool gray for premium feel */
}

/* Main Container (Form) */
/* Main Container (Form) - Compact Mode */
/* Header/Layout Adjustments for Compact Checkout */
.woocommerce-checkout .site-header-section {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

form.woocommerce-checkout.custom-checkout-wrapper {
    max-width: 1240px; 
    margin: 20px auto 60px !important;
    padding: 0 30px;
}

.checkout-layout-grid {
    display: grid !important;
    grid-template-columns: 1.3fr 1fr; 
    gap: 60px;
    align-items: start;
}

/* -------------------------------------------------------------------------- */
/* LEFT COLUMN: Inputs & Forms */
/* -------------------------------------------------------------------------- */
.checkout-column-left {
    background: transparent;
}

/* Headers (Billing Details, etc) */
/* Headers (Billing Details, etc) - Compact */
/* Headers (Billing Details, etc) - Elite Elite */
.woocommerce-checkout h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.35rem; 
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 15px;
    counter-increment: checkout-steps;
}

.woocommerce-checkout h3::before {
    content: counter(checkout-steps);
    background: #1e293b;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
}

.woocommerce-checkout {
    counter-reset: checkout-steps;
}

/* Field Grouping Logic (Name, City/Postcode, etc) */
.woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0 15px;
}

.woocommerce-checkout .form-row {
    margin-bottom: 18px !important;
    width: 100% !important;
    float: none !important;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: calc(50% - 8px) !important;
}

.woocommerce-checkout .notes {
    width: 100% !important;
}

/* INPUT FIELDS - Compact */
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout select,
body.woocommerce-checkout textarea,
.select2-container .select2-selection--single {
    padding: 8px 14px !important; /* Reduced padding */
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    font-size: 0.9rem !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    height: 46px !important; /* Reduced from 52px */
    transition: all 0.2s ease !important;
    font-family: 'Poppins', sans-serif !important;
}

body.woocommerce-checkout input.input-text:hover {
    border-color: #94a3b8 !important;
}

body.woocommerce-checkout input.input-text:focus,
.select2-container--default .select2-selection--single:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 4px rgba(255, 127, 80, 0.15) !important;
    outline: none !important;
}

/* Labels - Compact */
body.woocommerce-checkout label {
    font-weight: 600 !important;
    color: #475569 !important;
    font-size: 0.8rem !important;
    margin-bottom: 6px !important;
    display: block !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* RIGHT COLUMN: Compact Sticky Order Summary */
/* -------------------------------------------------------------------------- */
/* RIGHT COLUMN: Elite Sticky Sidebar */
#order_review,
.order-review-sticky {
    background: #ffffff !important;
    padding: 35px !important;
    border-radius: 20px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 20px 40px -20px rgba(0,0,0,0.05) !important;
    border: 1px solid #f1f5f9 !important;
    position: sticky !important;
    top: 30px !important;
    margin-top: 0 !important;
    z-index: 100 !important;
}

#order_review_heading {
    margin-top: 0;
    font-size: 1rem;
    color: #1e293b;
    display: block !important;
    margin-bottom: 20px !important;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Product Table - Compact */
.woocommerce-checkout-review-order-table {
    border-collapse: separate;
    border-spacing: 0 8px; /* Reduced from 15px */
}

.woocommerce-checkout-review-order-table th {
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 0 0 5px 0;
    border: none !important;
}

.woocommerce-checkout-review-order-table td {
    padding: 10px 0; /* Reduced from 15px */
    border: none !important;
    border-bottom: 1px solid #f8fafc !important;
}

/* Custom Image + Title Wrapper */
.checkout-product-wrapper {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced from 16px */
}

.checkout-product-image {
    position: relative;
    width: 52px; /* Reduced from 64px */
    height: 52px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 4px;
    flex-shrink: 0;
}

.checkout-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-quantity-bubble {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #1e293b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.checkout-product-info {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Totals Section - Compact */
.shop_table tfoot th, 
.shop_table tfoot td {
    padding: 8px 0 !important; /* Reduced from 12px */
    border: none !important;
}

.cart-subtotal th, .cart-subtotal td {
    color: #64748b;
    font-weight: 500;
}

.order-total {
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 5px;
}

.order-total th {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 700;
    padding-top: 15px !important;
}

.order-total .amount {
    font-size: 1.4rem !important; /* Slightly reduced */
    font-weight: 800 !important;
    color: #1e293b !important;
    padding-top: 15px !important;
}

/* PLACE ORDER BUTTON - Premium Compact */
.woocommerce-checkout #payment #place_order {
    width: 100% !important;
    padding: 18px !important; /* Compact but bold */
    background: #1e293b !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-size: 0.95rem !important;
    margin-top: 20px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: block !important;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15) !important;
}

.woocommerce-checkout #payment #place_order:hover {
    background: var(--accent-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 127, 80, 0.25) !important;
}

/* -------------------------------------------------------------------------- */
/* WOOCOMMERCE NOTICES (Login/Coupon) */
/* -------------------------------------------------------------------------- */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid var(--accent-color) !important;
    color: #475569 !important;
    padding: 15px 20px 15px 50px !important; /* Compact padding */
    border-radius: 10px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03) !important;
    margin-bottom: 20px !important; /* Reduced from 30px */
    font-size: 0.9rem; /* Reduced from 0.95rem */
    position: relative !important;
    line-height: 1.4;
}

.woocommerce-checkout .woocommerce-info::before,
.woocommerce-checkout .woocommerce-error::before,
.woocommerce-checkout .woocommerce-message::before {
    color: var(--accent-color) !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-block !important;
    font-size: 1.4rem !important;
}


.woocommerce-checkout .woocommerce-info a,
.woocommerce-checkout .woocommerce-error a,
.woocommerce-checkout .woocommerce-message a {
    color: var(--accent-color) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.woocommerce-checkout .woocommerce-info a:hover {
    text-decoration: underline !important;
}

/* Coupon Form Styling */
form.checkout_coupon {
    border: 1px solid #e2e8f0 !important;
    padding: 30px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    margin-bottom: 30px !important;
}

/* Coupon Sidebar Integration */
.order-review-sticky form.checkout_coupon {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    margin-bottom: 25px !important;
    box-shadow: none !important;
}

.order-review-sticky form.checkout_coupon .form-row {
    display: flex;
    gap: 10px;
}

.order-review-sticky form.checkout_coupon input.input-text {
    flex: 1;
    height: 44px !important;
}

.order-review-sticky form.checkout_coupon button.button {
    width: auto !important;
    padding: 0 20px !important;
    height: 44px !important;
    margin: 0 !important;
    font-size: 0.8rem !important;
}

/* Secure Badge */
.elite-secure-badge {
    margin-top: 30px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #f1f5f9;
}

.elite-secure-badge svg {
    color: #94a3b8;
}

/* Distraction-Free Mode */
.woocommerce-checkout .site-footer .aux-widget-area,
.woocommerce-checkout .site-header .aux-search-section,
.woocommerce-checkout .site-header .aux-menu-section {
    display: none !important;
}

.woocommerce-checkout .site-footer {
    padding: 30px 0 !important;
}

/* -------------------------------------------------------------------------- */
/* PAYMENT BOX ENHANCEMENTS */
/* -------------------------------------------------------------------------- */
#payment {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 25px !important;
    padding: 0 !important;
}

.woocommerce-checkout #payment li.payment_method {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px !important;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    list-style: none !important;
}

.woocommerce-checkout #payment li.payment_method:hover {
    border-color: #cbd5e1;
}

.woocommerce-checkout #payment div.payment_box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 20px !important;
    margin: 15px 0 0 0 !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    line-height: 1.6;
    box-shadow: none !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none !important; /* Remove legacy arrow */
}

/* Custom Checkbox/Radio Polish */

input[type="radio"], input[type="checkbox"] {
    accent-color: var(--accent-color);
}

.woocommerce form .form-row input.input-text:focus, 
.woocommerce form .form-row textarea:focus {
    border-color: var(--accent-color) !important; 
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.1) !important;
    outline: none !important;
}

/* -------------------------------------------------------------------------- */
/* Shop Page Improvements */
/* -------------------------------------------------------------------------- */

.post-type-archive-product .aux-primary-content,
.post-type-archive-product .aux-content-container,
.post-type-archive-product .aux-main,
.post-type-archive-product .content,
.post-type-archive-product .site-content,
.post-type-archive-product .entry-content,
.post-type-archive-product .aux-container,
.post-type-archive-product .aux-fold {
    padding: 0 !important; 
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important; /* Ensure no floating sidebars interfere */
    border: none !important;
    display: block !important; /* Ensure flex parents don't mess it up */
}

/* Centered Banner - Inherits Wrapper Width */
.shop-page-header {
    background: linear-gradient(135deg, #1a237e 0%, #2b0a6b 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box !important; /* Critical for padding calculation */
    margin: 30px auto 40px; /* Force Center Alignment */
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    clear: both; /* Prevent float interference */
}

/* Add subtle shine effect */
.shop-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.05) 50%, transparent 55%);
    pointer-events: none;
}

.shop-page-header .page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 15px;
    color: white;
    letter-spacing: -1px;
}

.shop-header-subtitle {
    opacity: 0.9;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}

/* -------------------------------------------------------------------------- */
/* Premium Shop Grid Improvements */
/* -------------------------------------------------------------------------- */

.woocommerce ul.products {
    margin: 40px auto !important;
    max-width: 1200px;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
}

.woocommerce ul.products li.product {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02) !important;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02) !important;
    border-color: #e2e8f0 !important;
}

/* Product Image Box */
.woocommerce ul.products li.product a img {
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.03);
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
}

/* Product Price */
.woocommerce ul.products li.product .price {
    font-family: 'Poppins', sans-serif !important;
    color: var(--accent-color) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    margin-bottom: 20px !important;
    display: block !important;
}

/* Add to Cart Button Loop */
.woocommerce ul.products li.product .button {
    margin-top: auto !important;
    background: #1e293b !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 12px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none !important;
    transition: all 0.2s ease !important;
    text-align: center;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--accent-color) !important;
    box-shadow: 0 10px 15px -3px rgba(255, 127, 80, 0.3) !important;
}

@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}

.woocommerce-ordering select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.1);
}

@media (max-width: 900px) {
    .checkout-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-column-left {
        padding-right: 0;
    }

    .woocommerce ul.products li.product, 
    .woocommerce-page ul.products li.product {
        width: calc(50% - 15px); 
    }
    
    /* Tablet Padding Adjustment */
    .site-header-section .aux-wrapper,
    .aux-header-elements,
    .copyright-text {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

@media (max-width: 600px) {
    .woocommerce ul.products, .woocommerce-page ul.products {
         display: grid; /* Switch to Grid for simple stack */
         grid-template-columns: 1fr;
         gap: 30px;
    }

    .woocommerce ul.products li.product, 
    .woocommerce-page ul.products li.product {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .custom-checkout-wrapper {
        padding: 20px 15px !important;
    }
    
    .checkout-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    #order_review,
    .order-review-sticky {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 30px !important;
        padding: 25px !important;
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
    }
    
    .aux-navigation ul.aux-menu-depth-0 > li.menu-item > a {
        padding: 10px !important;
    }
    
    /* Mobile Safety Patch: Header/Footer Padding */
    .site-header-section .aux-wrapper,
    .aux-header-elements,
    .copyright-text {
        padding-left: 20px !important;
        padding-right: 20px !important;
        text-align: center; /* Center footer on mobile */
    }
    
    /* Ensure footer text allows wrapping */
    .copyright-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }
/* -------------------------------------------------------------------------- */
/* Premium Cart Page Redesign */
/* -------------------------------------------------------------------------- */

body.woocommerce-cart {
    background-color: #f8fafc !important;
}

.woocommerce-cart .woocommerce {
    max-width: 1240px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Cart Table Styling */
.woocommerce-cart table.shop_table {
    border: none !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    overflow: hidden;
    border-collapse: separate !important;
    border-spacing: 0;
}

.woocommerce-cart table.shop_table thead {
    background: #f1f5f9;
}

.woocommerce-cart table.shop_table th {
    padding: 20px !important;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #64748b;
    border: none !important;
}

.woocommerce-cart table.shop_table td {
    padding: 25px 20px !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle;
}

/* Product Mini Image in Cart */
.woocommerce-cart table.shop_table td.product-thumbnail img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 5px;
    background: #fff;
    object-fit: contain;
}

.woocommerce-cart table.shop_table td.product-name a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    text-decoration: none;
}

.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.shop_table td.product-subtotal {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1e293b;
}

/* Quantity Input Styling */
.woocommerce-cart .quantity input.qty {
    width: 60px !important;
    height: 40px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Remove Product Icon */
.woocommerce-cart a.remove {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    transition: all 0.2s ease;
}

.woocommerce-cart a.remove:hover {
    background: #ef4444 !important;
    color: #fff !important;
}

/* Coupon & Actions */
.woocommerce-cart .actions {
    padding: 30px !important;
    background: #ffffff;
}

.woocommerce-cart .coupon {
    display: flex;
    gap: 10px;
}

.woocommerce-cart .coupon input#coupon_code {
    width: 200px !important;
    height: 48px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0 15px !important;
}

.woocommerce-cart button[name="update_cart"] {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border: none !important;
    padding: 12px 25px !important;
    opacity: 0.7;
}

.woocommerce-cart button[name="update_cart"]:hover {
    opacity: 1;
    background: #e2e8f0 !important;
}

/* CART COLLATERALS (Totals Area) */
.cart-collaterals {
    margin-top: 50px;
    display: flex;
    justify-content: flex-end;
}

.cart_totals {
    width: 100% !important;
    max-width: 450px !important;
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
    border: 1px solid #f1f5f9 !important;
}

.cart_totals h2 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 25px !important;
    color: #1e293b;
}

.cart_totals table.shop_table {
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-bottom: 25px !important;
}

.cart_totals .order-total .amount {
    color: var(--accent-color) !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
}

/* PROCEED TO CHECKOUT BUTTON */
.checkout-button {
    width: 100% !important;
    padding: 22px !important;
    background: #1e293b !important; /* Dark Elegant Blue/Black */
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: block;
    text-align: center;
}

.checkout-button:hover {
    background: #0f172a !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Responsive Cart */
@media (max-width: 768px) {
    .woocommerce-cart table.shop_table_responsive tr td::before {
        content: attr(data-title) ": ";
        font-weight: 700;
        float: left;
    }
    
    .cart_totals {
        max-width: 100% !important;
    }
}

}

/* -------------------------------------------------------------------------- */
/* Premium Single Product Page Redesign */
/* -------------------------------------------------------------------------- */

.single-product .product {
    max-width: 1240px;
    margin: 60px auto !important;
    display: flex !important;
    gap: 60px;
    align-items: start;
}

/* Gallery Styling */
.single-product .woocommerce-product-gallery {
    flex: 1;
    max-width: 600px;
}

.single-product .woocommerce-product-gallery img {
    border-radius: 20px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02) !important;
}

/* HIDE REDUNDANT THEME TITLE ON PRODUCT & SHOP PAGES */
.single-product .aux-page-title-entry,
.single-product .page-header .aux-container,
.single-product .page-header,
.woocommerce-shop .aux-page-title-entry,
.woocommerce-shop .entry-title,
.archive .aux-page-title-entry {
    display: none !important;
}

/* Product Info Column */
.single-product .summary {
    flex: 1;
    padding: 0 !important;
}

.single-product .product_title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 2.4rem !important;
    color: #1e293b !important;
    margin-bottom: 15px !important;
    letter-spacing: -1px;
    line-height: 1.1;
}

.single-product .price {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: var(--accent-color) !important;
    margin-bottom: 25px !important;
}

.single-product .woocommerce-product-details__short-description {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 30px !important;
}

/* Cart & Quantity Section */
.single-product form.cart {
    display: flex !important;
    gap: 15px;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 30px;
    margin-top: 20px;
}

.single-product .quantity input.qty {
    width: 70px !important;
    height: 54px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    font-weight: 700 !important;
    font-family: 'Poppins', sans-serif !important;
    padding: 0 5px !important;
    text-align: center;
}

.single-product .single_add_to_cart_button {
    flex: 1;
    height: 54px;
    background: #1e293b !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease !important;
    border: none !important;
}

.single-product .single_add_to_cart_button:hover {
    background: var(--accent-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 127, 80, 0.25) !important;
}

/* Meta Section (Category, SKU) */
.single-product .product_meta {
    margin-top: 40px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.single-product .product_meta > span {
    display: block;
    margin-bottom: 5px;
}

.single-product .product_meta a {
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
}

/* Tabs & Related Products */
.woocommerce-tabs {
    margin-top: 80px !important;
    border: none !important;
    clear: both;
}

.woocommerce-tabs ul.tabs {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    display: flex;
    gap: 30px;
}

.woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    padding: 0 0 10px 0 !important;
    margin: 0 !important;
    border-bottom: 3px solid transparent !important;
}

.woocommerce-tabs ul.tabs li.active {
    border-bottom-color: var(--accent-color) !important;
}

.woocommerce-tabs ul.tabs li a {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    padding: 0 !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #1e293b !important;
}

@media (max-width: 900px) {
    .single-product .product {
        flex-direction: column !important;
        padding: 0 20px !important;
        gap: 40px !important;
    }
    
    .single-product .woocommerce-product-gallery,
    .single-product .summary {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* -------------------------------------------------------------------------- */
/* Premium My Account Redesign */
/* -------------------------------------------------------------------------- */

body.woocommerce-account .woocommerce {
    max-width: 1240px;
    margin: 60px auto !important;
    display: flex !important;
    gap: 40px;
    align-items: start;
}

/* My Account Navigation (Sidebar) */
.woocommerce-MyAccount-navigation {
    flex: 0 0 280px;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 8px !important;
    border: none !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 20px;
    border-radius: 12px;
    color: #64748b;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: #f8fafc;
    color: #1e293b;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--accent-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 127, 80, 0.2);
}

/* My Account Content Area */
.woocommerce-MyAccount-content {
    flex: 1;
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    min-height: 400px;
}

.woocommerce-MyAccount-content p {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 25px;
}

.woocommerce-MyAccount-content strong {
    color: #1e293b;
}

/* Address & Order Cards */
.woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce-MyAccount-content .woocommerce-Orders-table {
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid #f1f5f9 !important;
}

.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content .edit {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Edit Account Form Polish */
.woocommerce-EditAccountForm fieldset {
    border: none;
    padding: 20px 0 0 0;
    border-top: 1px solid #f1f5f9;
    margin-top: 40px;
}

.woocommerce-EditAccountForm legend {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1e293b;
}

/* Responsive My Account */
@media (max-width: 900px) {
    body.woocommerce-account .woocommerce {
        flex-direction: column !important;
        padding: 0 20px !important;
    }
    
    .woocommerce-MyAccount-navigation {
        width: 100% !important;
        flex: none !important;
        margin-bottom: 30px;
    }
    
    .woocommerce-MyAccount-content {
        width: 100% !important;
        padding: 30px !important;
    }
}


/* -------------------------------------------------------------------------- */
/* Premium Mini-Cart Redesign */
/* -------------------------------------------------------------------------- */

.widget_shopping_cart_content {
    background: #ffffff !important;
    padding: 25px !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    border: 1px solid #f1f5f9 !important;
    width: 320px !important;
}

.woocommerce-mini-cart {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}

.woocommerce-mini-cart-item {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    position: relative;
}

.woocommerce-mini-cart-item img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff;
    padding: 3px;
    object-fit: contain;
}

.woocommerce-mini-cart-item a {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    color: #1e293b !important;
    text-decoration: none !important;
}

.woocommerce-mini-cart-item .quantity {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.8rem !important;
    color: #64748b !important;
    display: block !important;
    margin-top: 5px;
}

.woocommerce-mini-cart-item a.remove {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.woocommerce-mini-cart__total {
    display: flex !important;
    justify-content: space-between !important;
    padding: 15px 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}

.woocommerce-mini-cart__buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}

.woocommerce-mini-cart__buttons a {
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 !important;
    text-align: center !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
}

.woocommerce-mini-cart__buttons a.wc-forward {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

.woocommerce-mini-cart__buttons a.checkout {
    background: #1e293b !important;
    color: #ffffff !important;
}

.woocommerce-mini-cart__buttons a.checkout:hover {
    background: var(--accent-color) !important;
}

/* Header UI Tweaks */
.aux-cart-wrapper .aux-action-count {
    background: var(--accent-color) !important;
    font-weight: 700 !important;
}

.aux-search-section input[type="text"] {
    border-radius: 50px !important;
    border-color: #e2e8f0 !important;
}

/* -------------------------------------------------------------------------- */
/* Global Site Refinements */
/* -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    color: #1e293b;
}

body, p, li, a, input, select, textarea {
    font-family: 'Poppins', sans-serif !important;
    color: #64748b;
}

/* Global Button Polish */
.aux-button, .button, input[type="submit"] {
    border-radius: 50px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Global Footer Polish */
.site-footer {
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9;
    padding: 60px 0 20px !important;
}

.site-footer .widget-title {
    font-size: 1rem !important;
    margin-bottom: 25px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1e293b !important;
}

.copyright-text {
    border-top: 1px solid #f1f5f9;
    padding: 30px 0 !important;
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
}

/* Selection Highlight */
::selection {
    background: var(--accent-color);
    color: #fff;
}

/* -------------------------------------------------------------------------- */
/* [ELITE] Shop Page Redesign */
/* -------------------------------------------------------------------------- */

/* Shop Page Header - Elite Style */
.shop-page-header {
    background: #ffffff;
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 50px;
}

.shop-page-header .page-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 2.5rem !important;
    color: #1e293b;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.shop-page-header .shop-header-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Elite Product Cards */
.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
    background: #ffffff !important;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04) !important;
    padding: 20px !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
    border-color: rgba(0,0,0,0.06) !important;
}

/* Card Image Wrapper */
.woocommerce ul.products li.product a img {
    height: 240px !important;
    width: 100% !important;
    object-fit: contain !important; /* Contain ensures book/software covers show fully */
    margin-bottom: 20px !important;
    border-radius: 8px !important;
    box-shadow: none !important; /* Let the card have the shadow */
    transition: transform 0.5s ease;
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.05); /* Subtle zoom */
}

/* Typography refinements using checkout values */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
}

.woocommerce ul.products li.product .price {
    color: var(--accent-color) !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    margin-bottom: 20px !important;
    font-family: 'Poppins', sans-serif !important;
}

/* "Add to Cart" Button - The Gradient Pill */
.woocommerce ul.products li.product .button {
    background: linear-gradient(135deg, #FF7F50 0%, #ff6347 100%) !important;
    border-radius: 50px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    width: 100% !important;
    margin-top: auto !important;
    box-shadow: 0 4px 15px rgba(255, 127, 80, 0.3) !important;
}

.woocommerce ul.products li.product .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 127, 80, 0.5) !important;
    background: linear-gradient(135deg, #ff6347 0%, #FF7F50 100%) !important;
}

/* Shop Grid Layout Override */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
}

/* Remove default margins that break grid */
.woocommerce ul.products li.product {
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
}

/* -------------------------------------------------------------------------- */
/* [ELITE] Cart & Order Received Elevation */
/* -------------------------------------------------------------------------- */

/* --- CART PAGE (`.woocommerce-cart`) --- */

/* Cart Header */
.woocommerce-cart .entry-header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 30px;
}

.woocommerce-cart .entry-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 2.2rem !important;
    color: #1e293b;
    letter-spacing: -1px;
}

/* Cart Table - Card Style */
.woocommerce-cart .woocommerce-cart-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 40px;
}

.shop_table.cart {
    border: none !important;
    border-collapse: separate;
    border-spacing: 0 15px;
}

.shop_table.cart th {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    font-size: 0.8rem;
    padding: 0 0 10px;
    border-bottom: 1px solid #f1f5f9 !important;
}

.shop_table.cart td {
    border: none !important;
    border-top: 1px solid #f8fafc !important; /* Subtle separator */
    padding: 20px 10px !important;
    vertical-align: middle;
}

.shop_table.cart td.product-name a {
    color: #1e293b;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

.shop_table.cart td.product-price,
.shop_table.cart td.product-subtotal {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

/* Remove Icon */
.shop_table.cart td.product-remove a.remove {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid #fecaca;
    transition: all 0.2s ease;
}

.shop_table.cart td.product-remove a.remove:hover {
    background: #ef4444 !important;
    color: #fff !important;
}

/* Cart Totals - Sticky Card */
.cart-collaterals .cart_totals {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); /* Deeper shadow */
    border: 1px solid rgba(0,0,0,0.03);
    position: sticky;
    top: 30px;
    width: 100%;
}

    margin-bottom: 20px;
    /* Expert Typography */
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* -------------------------------------------------------------------------- */
/* [ELITE EXPERT] Cart Page Animations */
/* -------------------------------------------------------------------------- */

/* Animated Cart Form (Left) */
body.woocommerce-cart .woocommerce-cart-form {
    animation: eliteFadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
    animation-delay: 0.1s;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

body.woocommerce-cart .woocommerce-cart-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08) !important;
}

/* Animated Totals (Right) - Staggered */
body.woocommerce-cart .cart-collaterals .cart_totals {
    animation: eliteFadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
    animation-delay: 0.3s; /* Deliberate delay */
    transition: transform 0.4s ease, box-shadow 0.4s ease, top 0.3s ease !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08) !important;
}

/* Clean Page Title (No Orange) */
body.woocommerce-cart .entry-title {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #0f172a !important; /* Deep Slate */
    display: inline-block;
    padding-bottom: 5px;
    font-size: 2.2rem !important;
}

.cart-collaterals .cart_totals .shop_table {
    border: none !important;
}

.cart-collaterals .cart_totals .shop_table th {
    font-weight: 600;
    color: #64748b;
    padding: 15px 0;
}

.cart-collaterals .cart_totals .shop_table td {
    text-align: right;
    font-weight: 700;
    color: #1e293b;
    padding: 15px 0;
}

.wc-proceed-to-checkout .checkout-button {
    background: linear-gradient(135deg, #FF7F50 0%, #ff6347 100%) !important;
    border-radius: 50px !important;
    padding: 18px 30px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 6px 20px rgba(255, 127, 80, 0.3) !important;
    transition: all 0.3s ease !important;
}

.wc-proceed-to-checkout .checkout-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 127, 80, 0.5) !important;
}

/* --- ORDER RECEIVED (`.woocommerce-order-received`) --- */

/* Hero Celebration */
.woocommerce-order-received .entry-header {
    text-align: center;
    padding: 60px 0 40px;
}

.woocommerce-order-received .entry-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 2.8rem !important;
    color: #1e293b;
    margin-bottom: 20px;
}

/* Success Message Box */
.woocommerce-order-received .woocommerce-notice--success {
    background: #f0fdf4 !important; /* Green tint */
    color: #166534 !important; /* Dark green text */
    padding: 20px 30px !important;
    border-radius: 12px !important;
    border: 1px solid #bbf7d0 !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    margin-bottom: 40px !important;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.05) !important;
    display: inline-block !important; /* Center the box */
    width: 100%;
}

.woocommerce-order-received .woocommerce-notice--success::before {
    content: "✓" !important;
    font-weight: 900;
    margin-right: 10px;
    color: #166534;
}

/* Order Details Card */
.woocommerce-order-details {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px; /* Big rounded corners */
    box-shadow: 0 15px 50px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    max-width: 800px;
    margin: 0 auto 60px;
}

.woocommerce-order-details .woocommerce-order-details__title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    color: #1e293b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

/* Order Table Styles */
.woocommerce-table--order-details th {
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 15px 0;
}

.woocommerce-table--order-details td {
    padding: 15px 0;
    border-bottom: 1px solid #f8fafc !important;
    color: #1e293b;
    font-weight: 600;
}

.woocommerce-table--order-details tfoot th {
    text-align: right;
    padding-right: 20px;
}

.woocommerce-table--order-details .amount {
    color: #1e293b;
    font-weight: 800;
}

    font-weight: 800;
}

/* Force Visibility of WooCommerce Notices */
.woocommerce-message, 
.woocommerce-info, 
.woocommerce-error {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    background: #f0fdf4 !important; /* Green for success */
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 12px !important;
    padding: 15px 25px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    align-items: center;
}

.woocommerce-info {
    background: #eff6ff !important; /* Blue for info */
    color: #1e40af !important;
    border-color: #bfdbfe !important;
}

.woocommerce-error {
    background: #fef2f2 !important; /* Red for error */
    color: #991b1b !important;
    border-color: #fecaca !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none !important; /* Remove default icon to use our own or keep clean */
}

/* !!! FORCE APPLY ELITE STYLES (Cache Buster: 2.0) !!! */
/* These rules use extra specificity to override Phlox theme defaults */

/* Force Shop Grid Gap */
body.woocommerce-shop ul.products,
body.woocommerce-page ul.products {
    display: grid !important;
    gap: 30px !important;
    margin: 40px 0 !important;
}

/* Homepage Specific: Responsive Auto-Fit Grid */
body.home .aux-primary,
body.home .content-primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.home ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    margin: 40px auto !important;
    width: 100% !important;
    float: none !important;
}

/* FIX GHOST ITEMS: Hide WooCommerce float clearfixes that break Grid */
body.home ul.products::before,
body.home ul.products::after,
body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after {
    content: none !important;
    display: none !important;
}

/* Remove the media query override so auto-fit handles everything */

/* Force Card Backgrounds */
body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product,
body.home ul.products li.product {
    background-color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

/* Force Cart Container */
body.woocommerce-cart .woocommerce-cart-form {
    background-color: #ffffff !important;
    padding: 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05) !important;
}

/* Force Button Gradients */
body.woocommerce a.button, 
body.woocommerce button.button, 
body.woocommerce input.button,
body.woocommerce #respond input#submit {
    background: linear-gradient(135deg, #FF7F50 0%, #ff6347 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

/* Hide default Phlox elements if they persist */
.aux-shop-sidebar, 
.aux-breadcrumb-section,
.aux-breadcrumbs,
.breadcrumbs,
.aux-sub-header,
.aux-secondary-nav,
.widget_nav_menu,
.aux-header-bar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* COMPACT SHOP LAYOUT: Remove wasted space */
body.woocommerce-shop .aux-primary,
body.woocommerce-shop .aux-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove default Page Header on Home Page */
body.home .page-header.aux-wrapper {
    display: none !important;
}

/* Collapse unwanted theme container on Home */
body.home .aux-container,
body.home .aux-primary {
    display: contents !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* -------------------------------------------------------------------------- */
/* [ELITE] Standard Page Styling (About, Services, Contact) */
/* -------------------------------------------------------------------------- */

/* Center standard pages in a "Card" layout */
body.page:not(.home):not(.woocommerce) .aux-primary {
    max-width: 900px !important;
    margin: 60px auto !important;
    background: #ffffff !important;
    padding: 60px !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.05) !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
}

/* Page Titles */
body.page:not(.home) .entry-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
}

/* HIDE THE DEFAULT THEME HEADER CONTAINER (User Request) */
body.page .page-header,
body.page .page-header .aux-container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.page:not(.home) .entry-title {

body.page:not(.home) .entry-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 2.5rem !important;
    color: #1e293b !important;
    letter-spacing: -1px;
}

/* Content Typography */
body.page .entry-content p {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
    color: #475569 !important;
    margin-bottom: 25px !important;
}

body.page .entry-content h2 {
    font-size: 1.8rem !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
    color: #1e293b !important;
}

body.page .entry-content h3 {
    font-size: 1.4rem !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    color: #334155 !important;
}

body.page .entry-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

    margin-bottom: 20px;
}

/* -------------------------------------------------------------------------- */
/* [ELITE EXPERT] Animations & Polish */
/* -------------------------------------------------------------------------- */

@keyframes eliteFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animate the Card Entrance */
body.page:not(.home):not(.woocommerce) .aux-primary {
    animation: eliteFadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform: translateY(30px); /* Start state */
    opacity: 0; /* Start state */
    animation-delay: 0.1s;
    /* Expert Polish: Interaction */
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

body.page:not(.home):not(.woocommerce) .aux-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.08) !important;
}

/* Staggered Content Animation */
body.page .entry-content > * {
    animation: eliteFadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

body.page .entry-content h2 { animation-delay: 0.3s; }
body.page .entry-content p:nth-of-type(1) { animation-delay: 0.4s; }
body.page .entry-content p:nth-of-type(2) { animation-delay: 0.5s; }
body.page .entry-content ul { animation-delay: 0.6s; }

/* Expert Typography: Clean Professional Headers */
body.page .entry-content h2 {
    font-size: 2rem !important;
    color: #0f172a !important; /* Deep Navy/Slate (Premium) */
    background: none !important;
    -webkit-text-fill-color: initial !important;
    display: inline-block;
    margin-top: 50px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

/* Highlight "About" sections - Deep Blue Accent instead of Orange */
body.page .entry-content h2:first-of-type {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #1e293b !important;
    border-bottom: 3px solid #e2e8f0; /* Subtle underline */
    padding-bottom: 10px;
}

body.page .entry-content h3 {
    font-size: 1.4rem !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    color: #334155 !important;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

body.page .entry-content p {
    font-size: 1.1rem !important; /* Larger editorial text */
    color: #4b5563 !important;
    max-width: 95%;
}
