/* ESPACE PRO B2B - Design premium Effet Wellness 2026 */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}

/* === LAYOUT === */
.ew-pro-wrapper{display:flex;min-height:100vh;background:#f3f4f6;font-family:'Open Sans',sans-serif;color:#333;}

/* === SIDEBAR === */
.ew-pro-sidebar{width:260px;min-width:260px;background:linear-gradient(180deg,#0f4f52 0%,#003841 100%);color:#fff;display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;z-index:100;overflow-y:auto;box-shadow:2px 0 20px rgba(0,0,0,.15);}
.ew-pro-sidebar::-webkit-scrollbar{width:4px;}
.ew-pro-sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.2);border-radius:2px;}
.ew-pro-sidebar-logo{padding:22px 20px;text-align:center;border-bottom:1px solid rgba(255,255,255,.08);}
.ew-pro-sidebar-logo img{max-width:160px;height:auto;}

/* Nav */
.ew-pro-nav{list-style:none;padding:0;margin:0;}
.ew-pro-nav-item{border-bottom:1px solid rgba(255,255,255,.05);}
.ew-pro-nav-item>a,.ew-pro-nav-header{display:flex;align-items:center;padding:12px 18px;color:rgba(255,255,255,.85);font-size:13px;font-weight:500;cursor:pointer;transition:all .2s;background:none;border:none;width:100%;text-align:left;text-decoration:none;}
.ew-pro-nav-item>a:hover,.ew-pro-nav-header:hover{background:rgba(255,255,255,.07);color:#fff;}
.ew-pro-nav-item.active>a{background:rgba(255,255,255,.1);color:#fff;border-left:3px solid #ab9a65;padding-left:15px;}
.nav-icon{margin-right:10px;width:20px;text-align:center;display:inline-flex;align-items:center;justify-content:center;}
.nav-icon svg{flex-shrink:0;}
.nav-arrow{margin-left:auto;transition:transform .3s;opacity:.5;display:inline-flex;align-items:center;}
.ew-pro-nav-header.active .nav-arrow{transform:rotate(180deg);}

/* Catalogue */
.ew-pro-nav-item.catalogue>.ew-pro-nav-header{background:rgba(171,154,101,.15);font-size:13px;text-transform:uppercase;letter-spacing:.5px;font-weight:700;color:#cbb27f;}
.ew-pro-subnav{list-style:none;padding:0;margin:0;display:none;}
.ew-pro-subnav.open{display:block;}
.cat-header{display:flex;align-items:center;justify-content:space-between;padding:9px 18px 9px 28px;color:rgba(255,255,255,.8);font-size:13px;font-weight:600;cursor:pointer;transition:background .2s;}
.cat-header:hover{background:rgba(255,255,255,.05);}
.cat-arrow{opacity:.5;transition:transform .3s;display:inline-flex;align-items:center;}
.cat-header.active .cat-arrow{transform:rotate(180deg);}
.ew-pro-subcats{list-style:none;padding:0;margin:0;display:none;}
.ew-pro-subcats.open{display:block;}
.ew-pro-subcats li a{display:block;padding:6px 18px 6px 44px;color:rgba(255,255,255,.55);font-size:12px;transition:all .2s;}
.ew-pro-subcats li a:hover,.ew-pro-subcats li a.active{color:#fff;background:rgba(255,255,255,.05);padding-left:48px;}

/* Bottom nav */
.ew-pro-nav-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.1);background:rgba(0,0,0,.1);}

/* === MAIN === */
.ew-pro-main{flex:1;margin-left:260px;display:flex;flex-direction:column;min-width:0;}

/* Topbar */
.ew-pro-topbar{background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:50;}
.ew-pro-topbar-upper{display:flex;align-items:center;justify-content:space-between;padding:10px 24px;}
.ew-pro-search{display:flex;max-width:340px;flex:1;}
.ew-pro-search input{width:100%;padding:8px 12px;border:1px solid #d1d5db;border-radius:6px 0 0 6px;font-size:13px;outline:none;transition:border .2s;}
.ew-pro-search input:focus{border-color:#0f4f52;}
.ew-pro-search button{padding:8px 14px;background:#0f4f52;color:#fff;border:none;border-radius:0 6px 6px 0;cursor:pointer;transition:background .2s;}
.ew-pro-search button:hover{background:#003841;}
.ew-pro-topbar-actions{display:flex;align-items:center;gap:16px;}
.ew-pro-topbar-actions a{color:#0f4f52;font-size:18px;text-decoration:none;transition:color .2s;}
.ew-pro-topbar-actions a:hover{color:#ab9a65;}
.ew-pro-cart-badge{position:relative;}
.ew-pro-cart-badge .badge-count{position:absolute;top:-6px;right:-8px;background:#ab9a65;color:#fff;font-size:9px;font-weight:700;width:16px;height:16px;border-radius:50%;display:flex;align-items:center;justify-content:center;}
.ew-pro-infobar{background:linear-gradient(90deg,#0f4f52,#1e5f63);color:#fff;text-align:center;padding:8px 24px;font-size:12px;line-height:1.5;}
.ew-pro-infobar strong{font-weight:700;}
.ew-pro-mobile-toggle{display:none;background:none;border:none;font-size:22px;cursor:pointer;color:#0f4f52;padding:4px 8px;}

/* === CONTENT === */
.ew-pro-content{padding:24px;flex:1;}

/* Breadcrumb */
.ew-pro-breadcrumb{font-size:12px;color:#9ca3af;margin-bottom:16px;}
.ew-pro-breadcrumb a{color:#0f4f52;text-decoration:none;}
.ew-pro-breadcrumb a:hover{text-decoration:underline;}
.ew-pro-page-title{font-family:'Libre Bodoni',Georgia,serif;font-size:24px;color:#0f4f52;margin:0 0 4px;}
.ew-pro-count{font-size:13px;color:#9ca3af;margin:0 0 20px;}

/* Carousel section */
.ew-pro-carousel-section{background:linear-gradient(135deg,#e8ecee,#dde3e5);border-radius:12px;padding:32px;margin-bottom:24px;text-align:center;}
.ew-pro-carousel-section h2{font-family:'Libre Bodoni',Georgia,serif;font-size:20px;color:#0f4f52;margin:0;}
.ew-pro-carousel-track{display:flex;gap:16px;overflow-x:auto;scroll-behavior:smooth;padding:16px 0;scrollbar-width:none;}
.ew-pro-carousel-track::-webkit-scrollbar{display:none;}

/* Product cards */
.ew-pro-product-card{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);min-width:195px;max-width:195px;transition:all .25s;}
.ew-pro-product-card:hover{box-shadow:0 10px 25px rgba(0,0,0,.08);transform:translateY(-3px);}
.ew-pro-product-card .product-image{width:100%;height:155px;object-fit:cover;background:#f9fafb;display:block;}
.ew-pro-product-card .product-info{padding:12px;}
.ew-pro-product-card .product-title{font-size:12px;font-weight:600;color:#333;margin:0 0 4px;line-height:1.3;}
.ew-pro-product-card .product-title a{color:#333;text-decoration:none;}
.ew-pro-product-card .product-title a:hover{color:#0f4f52;}
.ew-pro-product-card .product-price{font-size:14px;font-weight:700;color:#0f4f52;margin-bottom:8px;}
.ew-pro-product-card .product-price.pro small{font-size:10px;font-weight:400;color:#9ca3af;margin-left:2px;}

/* Dual price block (Pro HT + Public TTC) on catalog cards */
.ew-pro-product-card .product-price-block{display:flex;flex-direction:column;gap:4px;margin:8px 0 12px;padding:10px 12px;background:#f9fdfb;border:1px solid #d6e4e1;border-radius:8px;}
.ew-pro-product-card .product-price-line{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:13px;}
.ew-pro-product-card .product-price-label{font-size:10px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.04em;}
.ew-pro-product-card .product-price-value{font-weight:700;color:#0f4f52;font-size:14px;}
.ew-pro-product-card .product-price-pro .product-price-value{font-size:16px;color:#0f4f52;}
.ew-pro-product-card .product-price-public .product-price-value{font-size:12px;color:#6b7280;font-weight:600;}
.ew-pro-product-card .product-price-public .product-price-label{color:#9ca3af;}
.ew-pro-product-card .product-actions{display:flex;flex-direction:column;gap:4px;}
.btn-info,.btn-cart{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:6px 10px;font-size:11px;font-weight:600;border:none;border-radius:6px;cursor:pointer;text-decoration:none;transition:all .2s;color:#fff;}
.btn-info svg,.btn-cart svg{flex-shrink:0;}
.btn-info{background:#0f4f52;}
.btn-info:hover{background:#003841;color:#fff;}
.btn-cart{background:#6c9893;}
.btn-cart:hover{background:#5a8986;color:#fff;}

/* Product grid */
.ew-pro-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(195px,1fr));gap:16px;}
.ew-pro-grid .ew-pro-product-card{min-width:unset;max-width:unset;}

/* === WIDGETS === */
.ew-pro-widgets{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px;}
.ew-pro-widget{background:#fff;border-radius:10px;box-shadow:0 1px 3px rgba(0,0,0,.06);overflow:hidden;}
.ew-pro-widget-header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #f3f4f6;font-size:14px;font-weight:700;color:#0f4f52;background:#fafbfc;}

.ew-pro-widget-body{padding:16px;}

/* Orders table */
.ew-pro-orders-table{width:100%;border-collapse:collapse;font-size:12px;}
.ew-pro-orders-table thead th{text-align:left;padding:8px 10px;border-bottom:2px solid #f3f4f6;color:#9ca3af;font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.3px;}
.ew-pro-orders-table tbody td{padding:8px 10px;border-bottom:1px solid #f9fafb;color:#333;}
.ew-pro-orders-table tbody tr:hover{background:#f9fafb;}
.order-status{display:inline-block;padding:2px 8px;border-radius:10px;font-size:10px;font-weight:600;}
.status-completed{background:#d1fae5;color:#065f46;}
.status-processing{background:#fef3c7;color:#92400e;}
.status-pending{background:#fee2e2;color:#991b1b;}
.status-on-hold{background:#dbeafe;color:#1e40af;}
.ew-pro-orders-footer{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-top:1px solid #f3f4f6;background:#fafbfc;}

/* Buttons */
.ew-btn{display:inline-block;padding:10px 22px;border-radius:6px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;cursor:pointer;text-decoration:none;transition:all .2s;border:2px solid transparent;}
.ew-btn-primary{background:#0f4f52;color:#fff;border-color:#0f4f52;}
.ew-btn-primary:hover{background:#003841;border-color:#003841;color:#fff;}
.ew-btn-outline{background:transparent;color:#0f4f52;border-color:#0f4f52;}
.ew-btn-outline:hover{background:#0f4f52;color:#fff;}
.ew-btn-sm{padding:7px 14px;font-size:11px;}

/* === PRODUCT DETAIL === */
.ew-pro-product-detail{display:grid;grid-template-columns:1fr 1fr;gap:32px;background:#fff;border-radius:12px;padding:28px;box-shadow:0 1px 3px rgba(0,0,0,.06);}
.ew-pro-pd-main-img{width:100%;max-height:400px;object-fit:contain;background:#f9fafb;border-radius:10px;display:block;}
.ew-pro-pd-gallery{display:flex;gap:8px;margin-top:10px;}
.ew-pro-pd-thumb{width:60px;height:60px;object-fit:cover;border-radius:6px;border:2px solid #e5e7eb;cursor:pointer;transition:border .2s;}
.ew-pro-pd-thumb:hover{border-color:#0f4f52;}
.ew-pro-pd-info h1{font-family:'Libre Bodoni',Georgia,serif;font-size:22px;color:#0f4f52;margin:0 0 8px;}
.ew-pro-pd-cat{display:inline-block;padding:3px 12px;background:linear-gradient(135deg,#0f4f52,#1e5f63);color:#fff;font-size:10px;font-weight:600;border-radius:12px;margin-bottom:16px;}
.ew-pro-pd-pricing{background:#f9fafb;border-radius:10px;padding:18px;margin-bottom:18px;border:1px solid #f3f4f6;}
.ew-pro-pd-pro-price{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #e5e7eb;}
.ew-pro-pd-pro-price .label{font-size:13px;font-weight:600;color:#0f4f52;}
.ew-pro-pd-pro-price .price{font-size:24px;font-weight:700;color:#0f4f52;font-family:'Libre Bodoni',Georgia,serif;}
.ew-pro-pd-public-price{display:flex;align-items:center;justify-content:space-between;}
.ew-pro-pd-public-price .label{font-size:12px;color:#9ca3af;}
.ew-pro-pd-public-price .price{font-size:14px;color:#9ca3af;text-decoration:line-through;}
.ew-pro-pd-desc{font-size:13px;color:#6b7280;line-height:1.7;margin-bottom:18px;}
.ew-pro-pd-desc p{margin:0 0 8px;}
.ew-pro-pd-cart{display:flex;align-items:center;gap:12px;margin-bottom:20px;}
.ew-pro-pd-qty{display:flex;align-items:center;gap:6px;}
.ew-pro-pd-qty label{font-size:13px;color:#333;font-weight:600;}
.ew-pro-pd-qty input{width:65px;padding:9px;border:1px solid #d1d5db;border-radius:6px;text-align:center;font-size:14px;}
.ew-pro-pd-full-desc{margin-top:20px;padding-top:20px;border-top:1px solid #f3f4f6;}
.ew-pro-pd-full-desc h3{font-size:16px;color:#0f4f52;margin:0 0 10px;font-family:'Libre Bodoni',Georgia,serif;}
.ew-pro-pd-full-desc p{font-size:13px;color:#6b7280;line-height:1.7;}

/* === WC EMBEDDED - GLOBAL RESETS === */
.ew-pro-wc-wrap{background:#fff;border-radius:12px;padding:28px;box-shadow:0 1px 3px rgba(0,0,0,.06);margin-top:12px;}
.ew-pro-wc-wrap *{box-sizing:border-box;}
/* Nuclear: kill all borders inside wc-wrap, then re-add only on inputs/tables */
.ew-pro-wc-wrap div,.ew-pro-wc-wrap p,.ew-pro-wc-wrap fieldset,.ew-pro-wc-wrap section,.ew-pro-wc-wrap span,.ew-pro-wc-wrap form,.ew-pro-wc-wrap ul,.ew-pro-wc-wrap li,.ew-pro-wc-wrap h2,.ew-pro-wc-wrap h3,.ew-pro-wc-wrap h4{border:none !important;}
/* Re-add borders where needed */
.ew-pro-wc-wrap input,.ew-pro-wc-wrap select,.ew-pro-wc-wrap textarea,.ew-pro-wc-wrap .input-text,.ew-pro-wc-wrap .select2-selection{border:1px solid #d1d5db !important;}
.ew-pro-wc-wrap input:focus,.ew-pro-wc-wrap select:focus{border-color:#0f4f52 !important;}
.ew-pro-wc-wrap table th,.ew-pro-wc-wrap table td{border-bottom:1px solid #e5e7eb !important;}
.ew-pro-wc-wrap .wc_payment_methods li{border:2px solid #e5e7eb !important;border-radius:10px !important;padding:14px !important;margin-bottom:8px !important;background:#f9fdfb !important;}
.ew-pro-wc-wrap .wc_payment_methods li:hover{border-color:#0f4f52 !important;}
.ew-pro-wc-wrap .woocommerce-billing-fields,.ew-pro-wc-wrap .woocommerce-shipping-fields,.ew-pro-wc-wrap .woocommerce-additional-fields{border:1px solid #e5e7eb !important;border-radius:10px !important;}
.ew-pro-wc-wrap #order_review{border:1px solid #d6e4e1 !important;border-radius:10px !important;}

/* ALL buttons - sarcelle by default */
.ew-pro-wc-wrap .button,
.ew-pro-wc-wrap button[type="submit"],
.ew-pro-wc-wrap input[type="submit"],
.ew-pro-wc-wrap a.button,
.woocommerce .ew-pro-wc-wrap .button,
.woocommerce .ew-pro-wc-wrap button.button,
.woocommerce .ew-pro-wc-wrap a.button {
    background:#0f4f52 !important;color:#fff !important;border:none !important;
    padding:12px 24px !important;border-radius:8px !important;font-size:13px !important;
    font-weight:600 !important;cursor:pointer !important;text-decoration:none !important;
    display:inline-block !important;transition:background .2s !important;
    line-height:1.4 !important;text-align:center !important;
}
.ew-pro-wc-wrap .button:hover,
.ew-pro-wc-wrap button[type="submit"]:hover,
.woocommerce .ew-pro-wc-wrap .button:hover{background:#003841 !important;}

/* ALL inputs */
.ew-pro-wc-wrap input[type="text"],
.ew-pro-wc-wrap input[type="email"],
.ew-pro-wc-wrap input[type="tel"],
.ew-pro-wc-wrap input[type="number"],
.ew-pro-wc-wrap input[type="password"],
.ew-pro-wc-wrap select,
.ew-pro-wc-wrap textarea,
.ew-pro-wc-wrap .input-text,
.ew-pro-wc-wrap .select2-selection {
    width:100% !important;padding:12px 14px !important;border:1px solid #d1d5db !important;
    border-radius:8px !important;font-size:14px !important;font-family:'Open Sans',sans-serif !important;
    transition:border .2s,box-shadow .2s !important;background:#fff !important;color:#333 !important;
}
.ew-pro-wc-wrap input:focus,.ew-pro-wc-wrap select:focus,.ew-pro-wc-wrap textarea:focus,
.ew-pro-wc-wrap .input-text:focus{border-color:#0f4f52 !important;outline:none !important;box-shadow:0 0 0 3px rgba(15,79,82,.1) !important;}

/* Labels */
.ew-pro-wc-wrap label{font-size:13px !important;font-weight:600 !important;color:#333 !important;margin-bottom:6px !important;}

/* Tables */
.ew-pro-wc-wrap table{width:100% !important;border-collapse:collapse !important;}
.ew-pro-wc-wrap table th{text-align:left !important;padding:14px 16px !important;font-size:11px !important;text-transform:uppercase !important;letter-spacing:.5px !important;font-weight:700 !important;}
.ew-pro-wc-wrap table td{padding:14px 16px !important;vertical-align:middle !important;}

/* Notices */
.ew-pro-wc-wrap .woocommerce-error{background:#fee2e2 !important;color:#991b1b !important;border-left:4px solid #991b1b !important;padding:14px 18px !important;border-radius:8px !important;margin-bottom:16px !important;font-size:13px !important;list-style:none !important;}
.ew-pro-wc-wrap .woocommerce-message{background:#d1fae5 !important;color:#065f46 !important;border-left:4px solid #065f46 !important;padding:14px 18px !important;border-radius:8px !important;margin-bottom:16px !important;font-size:13px !important;}
.ew-pro-wc-wrap .woocommerce-info{background:#f3f7f7 !important;color:#0f4f52 !important;border-left:4px solid #0f4f52 !important;padding:14px 18px !important;border-radius:8px !important;margin-bottom:20px !important;font-size:13px !important;}
.ew-pro-wc-wrap .woocommerce-info a{color:#0f4f52 !important;font-weight:600 !important;}

/* Confirmation */
.ew-pro-confirmation{text-align:center;padding:40px 20px;}
.ew-pro-conf-icon{width:64px;height:64px;border-radius:50%;background:#d1fae5;color:#065f46;font-size:30px;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;}
.ew-pro-confirmation h3{font-family:'Libre Bodoni',Georgia,serif;font-size:22px;color:#0f4f52;margin:0 0 8px;}
.ew-pro-conf-details{max-width:400px;margin:20px auto;text-align:left;}
.ew-pro-conf-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f3f4f6;font-size:13px;}

/* === ACCOUNT PAGE === */
.ew-acct-hero{position:relative;border-radius:12px;overflow:hidden;margin-bottom:20px;}
.ew-acct-hero-bg{height:120px;background:linear-gradient(135deg,#0f4f52 0%,#1e5f63 40%,#6c9893 100%);}
.ew-acct-hero-content{display:flex;align-items:center;gap:20px;padding:0 28px 24px;margin-top:-40px;position:relative;z-index:1;}
.ew-acct-avatar{width:80px;height:80px;min-width:80px;border-radius:50%;background:#fff;color:#0f4f52;font-size:26px;font-weight:700;font-family:'Libre Bodoni',Georgia,serif;display:flex;align-items:center;justify-content:center;border:4px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.15);}
.ew-acct-hero-info h2{font-family:'Libre Bodoni',Georgia,serif;font-size:22px;color:#fff;margin:0 0 2px;text-shadow:0 1px 4px rgba(0,0,0,.2);}
.ew-acct-hero-info p{font-size:13px;color:rgba(255,255,255,.8);margin:0;}
.ew-acct-company{font-weight:600;color:rgba(255,255,255,.9) !important;}
.ew-acct-badge{display:inline-block;margin-top:6px;padding:4px 14px;background:rgba(171,154,101,.9);color:#fff;font-size:10px;font-weight:700;border-radius:12px;letter-spacing:.5px;}

/* Stats */
.ew-acct-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px;}
.ew-acct-stat-card{background:#fff;border-radius:10px;padding:20px 16px;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,.06);border:1px solid #f3f4f6;transition:transform .2s,box-shadow .2s;}
.ew-acct-stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.08);}
.ew-acct-stat-icon{margin-bottom:8px;color:#0f4f52;display:flex;align-items:center;justify-content:center;}
.ew-acct-stat-value{font-size:18px;font-weight:700;color:#0f4f52;font-family:'Libre Bodoni',Georgia,serif;margin-bottom:2px;}
.ew-acct-stat-label{font-size:11px;color:#9ca3af;text-transform:uppercase;letter-spacing:.3px;}

/* Quick actions */
.ew-acct-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px;}
.ew-acct-action{display:flex;flex-direction:column;align-items:center;gap:8px;padding:20px 12px;background:#fff;border-radius:10px;box-shadow:0 1px 3px rgba(0,0,0,.06);border:1px solid #f3f4f6;text-decoration:none;color:#333;font-size:13px;font-weight:600;transition:all .2s;}
.ew-acct-action:hover{border-color:#0f4f52;color:#0f4f52;transform:translateY(-2px);box-shadow:0 4px 12px rgba(15,79,82,.1);}
.ew-acct-action-icon{color:#0f4f52;display:flex;align-items:center;justify-content:center;}

/* Section titles */
.ew-acct-section-title{font-family:'Libre Bodoni',Georgia,serif;font-size:17px;color:#0f4f52;margin:0 0 18px;padding-bottom:12px;border-bottom:2px solid #d6e4e1;display:flex;align-items:center;gap:8px;}
.ew-acct-section-icon{display:inline-flex;align-items:center;color:#0f4f52;}

/* 2 col layout */
.ew-acct-grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px;}

/* Address card */
.ew-acct-address-card{background:#f9fdfb;border:1px solid #e5e7eb;border-radius:8px;padding:16px;font-size:13px;color:#4b5563;line-height:1.7;}
.ew-acct-address-card strong{color:#0f4f52;}

@media(max-width:1024px){.ew-acct-stats{grid-template-columns:repeat(2,1fr);}.ew-acct-actions{grid-template-columns:repeat(2,1fr);}.ew-acct-grid2{grid-template-columns:1fr;}}
@media(max-width:480px){.ew-acct-stats{grid-template-columns:1fr;}.ew-acct-actions{grid-template-columns:1fr;}}

/* Variable product options */
.ew-pro-pd-variable{flex-direction:column;align-items:flex-start;}
.ew-pro-pd-option{margin-bottom:12px;width:100%;}
.ew-pro-pd-option label{font-size:13px;font-weight:600;color:#333;display:block;margin-bottom:4px;}
.ew-pro-pd-option select{width:100%;max-width:300px;padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:13px;font-family:'Open Sans',sans-serif;background:#fff;cursor:pointer;transition:border .2s;}
.ew-pro-pd-option select:focus{border-color:#0f4f52;outline:none;box-shadow:0 0 0 3px rgba(15,79,82,.08);}

/* ====== CART ====== */
.ew-pro-wc-wrap .shop_table{border-radius:10px !important;overflow:hidden !important;border:1px solid #e5e7eb !important;}
.ew-pro-wc-wrap .shop_table thead{background:#f3f7f7 !important;}
.ew-pro-wc-wrap .shop_table thead th{color:#0f4f52 !important;font-weight:700 !important;border-bottom:2px solid #0f4f52 !important;background:#f3f7f7 !important;}
.ew-pro-wc-wrap .shop_table tbody td{border-bottom:1px solid #f3f4f6 !important;}
/* Hover background ONLY on the actual cart line items (.shop_table.cart),
   not on the totals block or any other shop_table */
.ew-pro-wc-wrap .shop_table.cart tbody tr.cart_item:hover { background:#f9fdfb !important; }

/* Force NO hover/background change inside the totals box */
.ew-pro-wc-wrap .cart_totals,
.ew-pro-wc-wrap .cart_totals *,
.ew-pro-wc-wrap .cart_totals tbody tr,
.ew-pro-wc-wrap .cart_totals tbody tr:hover,
.ew-pro-wc-wrap .cart_totals tbody td,
.ew-pro-wc-wrap .cart_totals tbody td:hover,
.ew-pro-wc-wrap .cart_totals tbody th,
.ew-pro-wc-wrap .cart_totals tbody th:hover { background: transparent !important; background-color: transparent !important; }
.ew-pro-wc-wrap .cart_totals { background: #fff !important; }
.ew-pro-wc-wrap .product-thumbnail img{width:60px !important;height:60px !important;object-fit:cover !important;border-radius:8px !important;border:1px solid #e5e7eb !important;}
.ew-pro-wc-wrap .product-remove a{color:#dc2626 !important;font-size:20px !important;text-decoration:none !important;font-weight:700 !important;}
.ew-pro-wc-wrap .product-remove a:hover{color:#991b1b !important;}
.ew-pro-wc-wrap .product-name a{color:#0f4f52 !important;font-weight:600 !important;text-decoration:none !important;}
.ew-pro-wc-wrap .product-name a:hover{color:#ab9a65 !important;}
.ew-pro-wc-wrap .product-quantity .qty{width:70px !important;padding:10px !important;text-align:center !important;}
.ew-pro-wc-wrap .actions{display:flex !important;justify-content:space-between !important;align-items:center !important;padding:16px !important;gap:12px !important;flex-wrap:wrap !important;border-bottom:none !important;}
.ew-pro-wc-wrap .coupon{display:flex !important;gap:8px !important;align-items:center !important;}
.ew-pro-wc-wrap .coupon .input-text{max-width:180px !important;}
.ew-pro-wc-wrap .cart-collaterals{margin-top:28px !important;overflow:hidden !important;}
.ew-pro-wc-wrap .cart_totals{background:#f3f7f7 !important;border-radius:12px !important;padding:28px !important;border:1px solid #d6e4e1 !important;float:right !important;width:420px !important;}
.ew-pro-wc-wrap .cart_totals h2{font-family:'Libre Bodoni',Georgia,serif !important;font-size:20px !important;color:#0f4f52 !important;margin:0 0 18px !important;padding-bottom:14px !important;border-bottom:2px solid #0f4f52 !important;}
.ew-pro-wc-wrap .cart_totals .shop_table{border:none !important;background:transparent !important;}
.ew-pro-wc-wrap .cart_totals .shop_table th{color:#0f4f52 !important;font-weight:600 !important;font-size:13px !important;padding:12px 0 !important;border-bottom:1px solid #d6e4e1 !important;background:transparent !important;text-transform:uppercase !important;}
.ew-pro-wc-wrap .cart_totals .shop_table td{padding:12px 0 !important;text-align:right !important;font-size:14px !important;border-bottom:1px solid #d6e4e1 !important;background:transparent !important;color:#333 !important;}
.ew-pro-wc-wrap .cart_totals .order-total th,.ew-pro-wc-wrap .cart_totals .order-total td{font-size:18px !important;font-weight:700 !important;color:#0f4f52 !important;border-bottom:none !important;padding-top:18px !important;}
.ew-pro-wc-wrap .wc-proceed-to-checkout{margin-top:22px !important;}
/* Valider la commande = DORE */
.ew-pro-wc-wrap .wc-proceed-to-checkout .button,
.ew-pro-wc-wrap .wc-proceed-to-checkout a.button,
.ew-pro-wc-wrap a.checkout-button,
.woocommerce .ew-pro-wc-wrap .wc-proceed-to-checkout a.checkout-button {
    background:#ab9a65 !important;color:#fff !important;font-size:16px !important;font-weight:700 !important;
    padding:16px 30px !important;width:100% !important;text-align:center !important;border-radius:10px !important;
    text-transform:uppercase !important;letter-spacing:.5px !important;display:block !important;box-sizing:border-box !important;
}
.ew-pro-wc-wrap .wc-proceed-to-checkout .button:hover,
.ew-pro-wc-wrap a.checkout-button:hover{background:#8f784b !important;}

/* ====== CHECKOUT ====== */
.ew-pro-wc-wrap .woocommerce-checkout .col2-set{display:grid !important;grid-template-columns:1fr 1fr !important;gap:30px !important;}
.ew-pro-wc-wrap .woocommerce-checkout .col-1,.ew-pro-wc-wrap .woocommerce-checkout .col-2{padding:0 !important;float:none !important;width:100% !important;}
.ew-pro-wc-wrap .woocommerce-checkout h3{font-family:'Libre Bodoni',Georgia,serif !important;font-size:18px !important;color:#0f4f52 !important;margin:0 0 20px !important;padding-bottom:10px !important;border-bottom:2px solid #d6e4e1 !important;}
.ew-pro-wc-wrap .woocommerce-billing-fields,.ew-pro-wc-wrap .woocommerce-shipping-fields,.ew-pro-wc-wrap .woocommerce-additional-fields{background:#f9fdfb !important;border-radius:10px !important;padding:24px !important;border:1px solid #e5e7eb !important;margin-bottom:20px !important;}
.ew-pro-wc-wrap .form-row{margin-bottom:14px !important;padding:0 3px !important;}
.ew-pro-wc-wrap .form-row-first{float:left !important;width:48% !important;}
.ew-pro-wc-wrap .form-row-last{float:right !important;width:48% !important;}
.ew-pro-wc-wrap .form-row-wide{width:100% !important;clear:both !important;}
.ew-pro-wc-wrap #ship-to-different-address{margin:20px 0 10px !important;}
.ew-pro-wc-wrap #order_review_heading{font-family:'Libre Bodoni',Georgia,serif !important;font-size:20px !important;color:#0f4f52 !important;margin:30px 0 16px !important;padding-bottom:10px !important;border-bottom:2px solid #0f4f52 !important;}
.ew-pro-wc-wrap #order_review{background:#f3f7f7 !important;border-radius:12px !important;padding:24px !important;border:1px solid #d6e4e1 !important;}
.ew-pro-wc-wrap .woocommerce-checkout-review-order-table th{color:#0f4f52 !important;font-weight:700 !important;background:transparent !important;border-bottom:1px solid #d6e4e1 !important;}
.ew-pro-wc-wrap .woocommerce-checkout-review-order-table td{text-align:right !important;background:transparent !important;border-bottom:1px solid #d6e4e1 !important;}
.ew-pro-wc-wrap .woocommerce-checkout-review-order-table .order-total th,.ew-pro-wc-wrap .woocommerce-checkout-review-order-table .order-total td{font-size:17px !important;font-weight:700 !important;color:#0f4f52 !important;}
.ew-pro-wc-wrap .woocommerce-checkout-payment{background:#fff !important;border-radius:10px !important;padding:24px !important;border:1px solid #e5e7eb !important;margin-top:20px !important;}
.ew-pro-wc-wrap .wc_payment_methods{list-style:none !important;padding:0 !important;margin:0 0 16px !important;}
.ew-pro-wc-wrap .wc_payment_methods li{padding:14px 16px !important;border:1px solid #e5e7eb !important;border-radius:8px !important;margin-bottom:8px !important;background:#fff !important;}
.ew-pro-wc-wrap .wc_payment_methods li:hover{border-color:#0f4f52 !important;}
.ew-pro-wc-wrap .wc_payment_methods label{font-weight:600 !important;font-size:13px !important;cursor:pointer !important;color:#333 !important;}
.ew-pro-wc-wrap .wc_payment_methods .payment_box{padding:16px !important;background:#f9fdfb !important;border-radius:8px !important;margin-top:10px !important;font-size:13px !important;max-height:200px !important;overflow:hidden !important;}
.ew-pro-wc-wrap .wc_payment_methods .payment_box iframe{max-height:50px !important;}
.ew-pro-wc-wrap .wc_payment_methods .payment_box img,.ew-pro-wc-wrap .wc_payment_methods .payment_box svg{max-width:80px !important;max-height:50px !important;height:auto !important;}
.ew-pro-wc-wrap .wc_payment_methods .payment_box p{margin:0 0 8px !important;font-size:12px !important;color:#666 !important;}
.ew-pro-wc-wrap .wc_payment_methods .payment_box > div > div,.ew-pro-wc-wrap .wc_payment_methods .payment_box > div{max-height:150px !important;overflow:hidden !important;}
.ew-pro-wc-wrap #place_order,.woocommerce .ew-pro-wc-wrap #place_order{background:#ab9a65 !important;color:#fff !important;font-size:16px !important;font-weight:700 !important;padding:16px !important;width:100% !important;border:none !important;border-radius:10px !important;cursor:pointer !important;text-transform:uppercase !important;letter-spacing:.5px !important;}
.ew-pro-wc-wrap #place_order:hover{background:#8f784b !important;}
.ew-pro-wc-wrap .woocommerce-terms-and-conditions-wrapper{margin:16px 0 !important;font-size:12px !important;}
.ew-pro-wc-wrap .woocommerce-privacy-policy-text{font-size:12px !important;color:#888 !important;margin-bottom:12px !important;}
.ew-pro-wc-wrap .checkout_coupon{background:#f9fdfb !important;border:1px solid #e5e7eb !important;border-radius:8px !important;padding:16px !important;margin-bottom:20px !important;display:flex !important;gap:8px !important;align-items:center !important;flex-wrap:wrap !important;}
.ew-pro-wc-wrap .checkout_coupon .form-row{margin:0 !important;padding:0 !important;}
/* Remove ALL double borders in checkout */
.ew-pro-wc-wrap h3{border:none !important;padding:0 !important;margin:0 0 14px !important;font-family:'Libre Bodoni',Georgia,serif !important;font-size:18px !important;color:#0f4f52 !important;}
/* Checkout: kill ALL borders aggressively */
.ew-pro-wc-wrap h3,.ew-pro-wc-wrap h2{border:none !important;}
.ew-pro-wc-wrap .woocommerce-billing-fields h3,
.ew-pro-wc-wrap .woocommerce-shipping-fields h3,
.ew-pro-wc-wrap .woocommerce-additional-fields h3,
.ew-pro-wc-wrap #order_review h2,
.ew-pro-wc-wrap #order_review_heading{display:none !important;}
.ew-pro-wc-wrap #ship-to-different-address{border:none !important;margin:0 0 10px !important;padding:0 !important;background:transparent !important;box-shadow:none !important;}
.ew-pro-wc-wrap .woocommerce-checkout-payment{border:none !important;box-shadow:none !important;background:transparent !important;padding:14px 0 0 !important;margin:0 !important;}
.ew-pro-wc-wrap .woocommerce-billing-fields__field-wrapper,
.ew-pro-wc-wrap .woocommerce-shipping-fields__field-wrapper{border:none !important;}
.ew-pro-wc-wrap .woocommerce-checkout .form-row{border:none !important;}
.ew-pro-wc-wrap .woocommerce-input-wrapper{border:none !important;}
.ew-pro-wc-wrap fieldset{border:none !important;padding:0 !important;margin:0 !important;}
.ew-pro-wc-wrap .clear{display:none !important;}
.ew-pro-wc-wrap .woocommerce-form-coupon-toggle .woocommerce-info{border:none !important;background:#f3f7f7 !important;border-left:4px solid #0f4f52 !important;border-radius:10px !important;padding:14px 18px !important;}
.ew-pro-wc-wrap .checkout_coupon.woocommerce-form-coupon{border:none !important;background:#f9fdfb !important;border-radius:10px !important;padding:16px !important;}
.ew-pro-wc-wrap .woocommerce-terms-and-conditions-wrapper{border:none !important;}
/* Kill every possible border source */
.ew-pro-wc-wrap .woocommerce > .clear{display:none !important;}
.ew-pro-wc-wrap .woocommerce-checkout > .clear{display:none !important;}
.ew-pro-wc-wrap p.form-row{border:none !important;}
.ew-pro-wc-wrap .shipping_address{border:none !important;padding:0 !important;}
.ew-pro-wc-wrap .woocommerce-checkout .col2-set{border:none !important;}
.ew-pro-wc-wrap .woocommerce-checkout .col-1,.ew-pro-wc-wrap .woocommerce-checkout .col-2{border:none !important;}
/* Checkout card internals clean */
.ew-checkout-card{overflow:hidden !important;}
.ew-checkout-card .clear{display:none !important;}
.ew-checkout-card fieldset{border:none !important;padding:0 !important;margin:0 !important;}
.ew-checkout-card p.form-row{border:none !important;outline:none !important;}
.ew-checkout-card .shipping_address{border:none !important;padding:0 !important;}
.ew-checkout-card .woocommerce-input-wrapper{border:none !important;}
.ew-checkout-card #ship-to-different-address{border:none !important;background:transparent !important;box-shadow:none !important;padding:0 24px !important;margin:0 0 10px !important;}
/* Summary card clean */
.ew-checkout-summary{overflow:hidden !important;}
.ew-checkout-summary .clear{display:none !important;}
.ew-checkout-summary #order_review{border:none !important;background:transparent !important;box-shadow:none !important;padding:0 24px 20px !important;}
.ew-checkout-summary .shop_table{border:none !important;}
.ew-checkout-summary .shop_table th,.ew-checkout-summary .shop_table td{border:none !important;border-bottom:1px solid #e5e7eb !important;background:transparent !important;padding:12px 0 !important;}
.ew-checkout-summary .shop_table .order-total th,.ew-checkout-summary .shop_table .order-total td{border:none !important;font-size:18px !important;font-weight:700 !important;color:#0f4f52 !important;}
.ew-checkout-summary .woocommerce-checkout-payment{border:none !important;background:transparent !important;box-shadow:none !important;padding:16px 24px 20px !important;margin:0 !important;}
.ew-checkout-summary .woocommerce-terms-and-conditions-wrapper{border:none !important;padding:0 !important;margin:8px 0 !important;}
.ew-checkout-summary .place-order{border:none !important;padding:0 !important;}
.ew-pro-wc-wrap #order_review{border:none !important;box-shadow:none !important;background:#f3f7f7 !important;border-radius:10px !important;padding:18px !important;}
.ew-pro-wc-wrap #order_review table{border:none !important;}
.ew-pro-wc-wrap #order_review th,
.ew-pro-wc-wrap #order_review td{background:transparent !important;border:none !important;border-bottom:1px solid #e5e7eb !important;padding:10px 0 !important;}
.ew-pro-wc-wrap #order_review .order-total td,
.ew-pro-wc-wrap #order_review .order-total th{border:none !important;border-bottom:none !important;font-size:17px !important;font-weight:700 !important;color:#0f4f52 !important;padding-top:14px !important;}
.ew-pro-wc-wrap .col2-set{display:grid !important;grid-template-columns:1fr 1fr !important;gap:24px !important;}
.ew-pro-wc-wrap .col-1,.ew-pro-wc-wrap .col-2{width:100% !important;float:none !important;padding:0 !important;}
.ew-pro-wc-wrap .woocommerce-billing-fields,.ew-pro-wc-wrap .woocommerce-shipping-fields,.ew-pro-wc-wrap .woocommerce-additional-fields{background:#f9fdfb !important;border-radius:10px !important;padding:20px !important;border:1px solid #e5e7eb !important;margin-bottom:16px !important;}
.ew-pro-wc-wrap .form-row{margin-bottom:12px !important;padding:0 !important;}
.ew-pro-wc-wrap .form-row-first{float:left !important;width:48% !important;}
.ew-pro-wc-wrap .form-row-last{float:right !important;width:48% !important;}
.ew-pro-wc-wrap .form-row-wide{width:100% !important;clear:both !important;}
.ew-pro-wc-wrap #order_review{background:#f3f7f7 !important;border-radius:10px !important;padding:20px !important;border:1px solid #d6e4e1 !important;margin-top:16px !important;}
.ew-pro-wc-wrap #order_review table{border:none !important;}
.ew-pro-wc-wrap #order_review th,.ew-pro-wc-wrap #order_review td{background:transparent !important;border-bottom:1px solid #e5e7eb !important;}
.ew-pro-wc-wrap .woocommerce-checkout-payment{background:transparent !important;border:none !important;box-shadow:none !important;padding:16px 0 0 !important;margin:0 !important;}
.ew-pro-wc-wrap .wc_payment_methods{list-style:none !important;padding:0 !important;margin:0 0 14px !important;}
.ew-pro-wc-wrap .wc_payment_methods li{padding:14px !important;border:2px solid #e5e7eb !important;border-radius:10px !important;margin-bottom:8px !important;background:#fff !important;}
.ew-pro-wc-wrap .wc_payment_methods li:hover{border-color:#0f4f52 !important;}
.ew-pro-wc-wrap .wc_payment_methods .payment_box{max-height:100px !important;overflow:hidden !important;padding:12px !important;background:#f9fdfb !important;border-radius:6px !important;margin-top:8px !important;}
/* Select2 in espace pro checkout */
.ew-pro-wc-wrap .select2-container .select2-selection--single{height:auto !important;padding:12px 14px !important;border:1px solid #d1d5db !important;border-radius:8px !important;}
.ew-pro-wc-wrap .select2-container .select2-selection--single .select2-selection__rendered{padding:0 !important;line-height:1.4 !important;font-size:14px !important;}

/* My addresses in account */
.ew-pro-wc-wrap .woocommerce-Addresses{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.ew-pro-wc-wrap .woocommerce-Address{background:#f9fafb;border-radius:10px;padding:18px;border:1px solid #f3f4f6;}
.ew-pro-wc-wrap .woocommerce-Address header h3{font-size:14px;color:#0f4f52;margin:0 0 10px;}
.ew-pro-wc-wrap .woocommerce-Address address{font-style:normal;font-size:13px;color:#6b7280;line-height:1.6;}
.ew-pro-wc-wrap .woocommerce-Address .edit{display:inline-block;margin-top:10px;padding:6px 14px;background:#0f4f52;color:#fff;border-radius:6px;font-size:11px;font-weight:600;text-decoration:none;transition:background .2s;}
.ew-pro-wc-wrap .woocommerce-Address .edit:hover{background:#003841;}

/* === RESPONSIVE === */
@media(max-width:1024px){.ew-pro-widgets{grid-template-columns:1fr;}.ew-pro-account-grid{grid-template-columns:1fr;}}
@media(max-width:768px){
    .ew-pro-sidebar{transform:translateX(-100%);transition:transform .3s;z-index:200;}
    .ew-pro-sidebar.open{transform:translateX(0);}
    .ew-pro-main{margin-left:0;}
    .ew-pro-mobile-toggle{display:block;}
    .ew-pro-content{padding:16px;}
    .ew-pro-product-detail{grid-template-columns:1fr;}
    .ew-pro-grid{grid-template-columns:repeat(2,1fr);}
    .ew-pro-product-card{min-width:unset;max-width:unset;}
    .ew-pro-wc-wrap{padding:14px;}
}
@media(max-width:480px){
    .ew-pro-grid{grid-template-columns:1fr;}
    .ew-pro-search{max-width:180px;}
}

/* ==========================================================================
   PANIER (cart) — fix table layout and totals box
   ========================================================================== */

/* On the cart page, make the wrap transparent so cart-form and cart_totals
   are each their own card. Without this, the cart-collaterals (float:right)
   escapes the wrapper and ends up overflowing to the right. */
body.woocommerce-cart .ew-pro-wc-wrap,
.ew-pro-wc-wrap:has(.woocommerce-cart-form) {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible;
}

/* Two-column layout : cart on the left, totals on the right.
   Apply on the immediate .woocommerce parent. */
.ew-pro-wc-wrap .woocommerce {
    display: grid !important;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

/* Kill default WC float on cart-collaterals (which was causing the totals box
   to escape the wrap and overflow to the right). */
.ew-pro-wc-wrap .woocommerce-cart-form,
.ew-pro-wc-wrap .cart-collaterals {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ew-pro-wc-wrap .woocommerce-cart-form { grid-column: 1; min-width: 0; }
.ew-pro-wc-wrap .cart-collaterals      { grid-column: 2; min-width: 0; }
.ew-pro-wc-wrap .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
}

/* Cart table */
.ew-pro-wc-wrap .shop_table.cart {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    overflow: hidden;
}
.ew-pro-wc-wrap .shop_table.cart thead {
    background: #f9fdfb;
}
.ew-pro-wc-wrap .shop_table.cart thead th {
    padding: 14px 16px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #0f4f52 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
    border-bottom: 1px solid #e5e7eb !important;
}
.ew-pro-wc-wrap .shop_table.cart thead th.product-name { text-align: left; }
.ew-pro-wc-wrap .shop_table.cart thead th.product-price,
.ew-pro-wc-wrap .shop_table.cart thead th.product-quantity,
.ew-pro-wc-wrap .shop_table.cart thead th.product-subtotal { text-align: center; }

.ew-pro-wc-wrap .shop_table.cart tbody tr.cart_item {
    background: #fff;
}
.ew-pro-wc-wrap .shop_table.cart tbody td {
    padding: 18px 16px !important;
    vertical-align: middle;
    border-bottom: 1px solid #f0f1ee !important;
    font-size: 14px !important;
    color: #333;
}
.ew-pro-wc-wrap .shop_table.cart tbody tr:last-child td {
    border-bottom: none !important;
}

/* Force fixed table layout with explicit widths */
.ew-pro-wc-wrap table.shop_table.cart,
.ew-pro-wc-wrap table.woocommerce-cart-form__contents {
    table-layout: fixed !important;
    width: 100% !important;
}

/* Column widths (sums to 100%) */
.ew-pro-wc-wrap table.shop_table.cart col,
.ew-pro-wc-wrap table.woocommerce-cart-form__contents col { display: none; }

.ew-pro-wc-wrap table.shop_table.cart th.product-remove,
.ew-pro-wc-wrap table.shop_table.cart td.product-remove,
.ew-pro-wc-wrap table.woocommerce-cart-form__contents th.product-remove,
.ew-pro-wc-wrap table.woocommerce-cart-form__contents td.product-remove {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    text-align: center !important;
    padding: 12px 4px !important;
}

.ew-pro-wc-wrap table.shop_table.cart th.product-thumbnail,
.ew-pro-wc-wrap table.shop_table.cart td.product-thumbnail,
.ew-pro-wc-wrap table.woocommerce-cart-form__contents th.product-thumbnail,
.ew-pro-wc-wrap table.woocommerce-cart-form__contents td.product-thumbnail {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    padding: 8px !important;
}

.ew-pro-wc-wrap table.shop_table.cart th.product-name,
.ew-pro-wc-wrap table.shop_table.cart td.product-name,
.ew-pro-wc-wrap table.woocommerce-cart-form__contents th.product-name,
.ew-pro-wc-wrap table.woocommerce-cart-form__contents td.product-name {
    width: auto !important;
    text-align: left !important;
}

.ew-pro-wc-wrap table.shop_table.cart th.product-price,
.ew-pro-wc-wrap table.shop_table.cart td.product-price,
.ew-pro-wc-wrap table.shop_table.cart th.product-subtotal,
.ew-pro-wc-wrap table.shop_table.cart td.product-subtotal {
    width: 110px !important;
}

.ew-pro-wc-wrap table.shop_table.cart th.product-quantity,
.ew-pro-wc-wrap table.shop_table.cart td.product-quantity {
    width: 100px !important;
}
.ew-pro-wc-wrap .shop_table.cart td.product-remove .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fbeaea;
    color: #b91c1c !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .15s ease;
}
.ew-pro-wc-wrap .shop_table.cart td.product-remove .remove:hover {
    background: #f5c6c6;
    color: #7f1d1d !important;
}

/* Product thumbnail : tight column right after remove */
.ew-pro-wc-wrap .shop_table.cart td.product-thumbnail,
.ew-pro-wc-wrap .shop_table.cart th.product-thumbnail {
    width: 72px !important;
    max-width: 72px;
    padding-left: 4px !important;
    padding-right: 8px !important;
}
.ew-pro-wc-wrap .shop_table.cart td.product-thumbnail img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    background: #f9fafb;
    padding: 4px;
    display: block;
}

/* Product name */
.ew-pro-wc-wrap .shop_table.cart td.product-name {
    font-weight: 600;
    color: #0f4f52;
}
.ew-pro-wc-wrap .shop_table.cart td.product-name a {
    color: #0f4f52 !important;
    text-decoration: none;
}
.ew-pro-wc-wrap .shop_table.cart td.product-name a:hover { text-decoration: underline; }

/* Numeric cells centered */
.ew-pro-wc-wrap .shop_table.cart td.product-price,
.ew-pro-wc-wrap .shop_table.cart td.product-quantity,
.ew-pro-wc-wrap .shop_table.cart td.product-subtotal {
    text-align: center;
    font-weight: 500;
}
.ew-pro-wc-wrap .shop_table.cart td.product-subtotal { font-weight: 700; color: #0f4f52; }

/* Quantity input */
.ew-pro-wc-wrap .shop_table.cart .quantity input.qty {
    width: 64px !important;
    height: 40px;
    text-align: center;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    padding: 0 !important;
}

/* Coupon + Update row — flex layout, coupon on left, update on right */
.ew-pro-wc-wrap table.shop_table.cart td.actions {
    padding: 18px 16px !important;
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb !important;
    /* Reset any column width inherited from table-layout:fixed */
    width: 100% !important;
    max-width: none !important;
}
.ew-pro-wc-wrap table.shop_table.cart td.actions:after {
    content: "";
    display: table;
    clear: both;
}

.ew-pro-wc-wrap .coupon {
    float: left !important;
    display: inline-flex !important;
    gap: 8px;
    align-items: center;
    margin: 0 !important;
}
.ew-pro-wc-wrap .coupon label { display: none !important; }
.ew-pro-wc-wrap .coupon input#coupon_code {
    width: 200px !important;
    height: 42px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}
.ew-pro-wc-wrap .coupon button[name="apply_coupon"] {
    height: 42px !important;
    padding: 0 22px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: 100px !important;
}

.ew-pro-wc-wrap button[name="update_cart"] {
    float: right !important;
    height: 42px !important;
    padding: 0 22px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: 180px !important;
    display: inline-block !important;
}

/* ===== Cart totals box (right column) ===== */
.ew-pro-wc-wrap .cart_totals {
    background: #fff;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    overflow: hidden;
}
.ew-pro-wc-wrap .cart_totals h2 {
    margin: 0 0 16px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-family: "Libre Bodoni", Georgia, serif;
    font-size: 22px;
    color: #0f4f52;
}
.ew-pro-wc-wrap .cart_totals table.shop_table {
    width: 100%;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin: 0 !important;
}
.ew-pro-wc-wrap .cart_totals table.shop_table th,
.ew-pro-wc-wrap .cart_totals table.shop_table td {
    border: none !important;
    border-bottom: 1px solid #f0f1ee !important;
    padding: 12px 0 !important;
    background: transparent !important;
    font-size: 14px !important;
    color: #333 !important;
}
.ew-pro-wc-wrap .cart_totals table.shop_table th {
    font-weight: 700 !important;
    color: #0f4f52 !important;
    text-transform: uppercase;
    font-size: 11px !important;
    letter-spacing: 0.05em;
    width: 40%;
    text-align: left;
}
.ew-pro-wc-wrap .cart_totals table.shop_table td {
    text-align: right;
    font-weight: 600;
}
.ew-pro-wc-wrap .cart_totals .order-total th,
.ew-pro-wc-wrap .cart_totals .order-total td {
    border-bottom: none !important;
    padding-top: 16px !important;
    font-size: 18px !important;
    color: #0f4f52 !important;
    font-weight: 700 !important;
    border-top: 2px solid #e5e7eb !important;
}

/* Shipping ul */
.ew-pro-wc-wrap .cart_totals .shipping ul#shipping_method {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ew-pro-wc-wrap .cart_totals .shipping ul#shipping_method li {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.ew-pro-wc-wrap .cart_totals .shipping p {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0 0;
}
.ew-pro-wc-wrap .cart_totals .shipping-calculator-button {
    color: #0f4f52 !important;
    font-size: 12px;
    text-decoration: underline;
}

/* Proceed-to-checkout button */
.ew-pro-wc-wrap .wc-proceed-to-checkout {
    padding: 0 !important;
    margin-top: 16px !important;
}
.ew-pro-wc-wrap .wc-proceed-to-checkout a.checkout-button {
    background: #ab9a65 !important;
    color: #fff !important;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    font-size: 14px !important;
    padding: 14px !important;
    border-radius: 10px !important;
    display: block;
}
.ew-pro-wc-wrap .wc-proceed-to-checkout a.checkout-button:hover {
    background: #8f784b !important;
}

/* Mobile */
@media (max-width: 900px) {
    .ew-pro-wc-wrap .woocommerce {
        grid-template-columns: 1fr;
    }
    .ew-pro-wc-wrap .shop_table.cart thead { display: none; }
    .ew-pro-wc-wrap .shop_table.cart tbody td {
        display: block;
        text-align: left !important;
        padding: 8px 16px !important;
    }
    .ew-pro-wc-wrap .shop_table.cart tbody td.product-remove {
        text-align: right !important;
    }
    .ew-pro-wc-wrap .coupon,
    .ew-pro-wc-wrap button[name="update_cart"] {
        width: 100%;
        float: none !important;
    }
}
