/*
Theme Name: Casa Eficienta
Theme URI: https://casaeficienta.com
Description: Child theme GeneratePress - design v2 (inspirat de structura Romstal): header pe 2 randuri, carduri compacte, sidebar 270px, pagina de produs cu card de cumparare.
Author: Casa Eficienta
Template: generatepress
Version: 2.0.0
Text Domain: casa-eficienta
*/

:root{
  --ce-navy:#003b64; --ce-albastru:#0087cf; --ce-albastru-hover:#0070ad; --ce-albastru-bg:#eef7fd;
  --ce-rosu:#e8322f; --ce-verde:#1f9d55; --ce-text:#222; --ce-mut:#6b7780; --ce-linie:#e3e9ee; --ce-fundal:#f4f6f8;
  --ce-r:8px;
}

/* ===== baza ===== */
body{background:var(--ce-fundal);font-size:14px;line-height:1.45;color:var(--ce-text)}
body .grid-container{max-width:1320px}
.separate-containers .site-main{margin:0}
.separate-containers .inside-article,.separate-containers .page-header,.one-container .container{background:transparent;padding:0;box-shadow:none}
.site-content{padding:0 20px}
.entry-content:not(:first-child){margin-top:0}
h1,h2,h3,h4{color:var(--ce-navy);letter-spacing:-.3px}
a{transition:color .15s}
.ce-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
svg.ce-i{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}

/* ===== bara de sus ===== */
.ce-topbar{background:var(--ce-navy);color:#cfe3f1;font-size:12px}
.ce-topbar .ce-in{max-width:1320px;margin:0 auto;padding:0 20px;display:flex;justify-content:space-between;align-items:center;height:32px}
.ce-topbar nav{display:flex;gap:22px}
.ce-topbar a{color:#cfe3f1}.ce-topbar a:hover{color:#fff}

/* ===== header: logo + cautare, apoi meniu pe al doilea rand ===== */
.site-header{background:#fff;border-bottom:1px solid var(--ce-linie)}
.site-header .inside-header{display:flex;flex-wrap:wrap;align-items:center;gap:0 28px;padding:0 20px}
.site-header .site-logo{order:1;padding:10px 0}
.site-logo img.header-image{max-width:170px;height:auto}
.ce-search{order:2;flex:1;max-width:620px;display:flex;border:2px solid var(--ce-albastru);border-radius:var(--ce-r);overflow:hidden;background:#fff;margin:0}
.ce-search input[type=search]{flex:1;border:0;border-radius:0;padding:0 16px;height:42px;background:#fff;font:inherit;min-width:0}
.ce-search input[type=search]:focus{outline:0}
.ce-search button{width:52px;border:0;border-radius:0;background:var(--ce-albastru);color:#fff;display:grid;place-items:center;padding:0}
.ce-search button:hover{background:var(--ce-albastru-hover)}
.site-header .main-navigation{order:3;flex:0 0 100%;float:none;width:100%;background:#fff;border-top:1px solid var(--ce-linie)}
.main-navigation .inside-navigation{padding:0}
.main-navigation .main-nav ul li a{font-weight:700;font-size:13.5px;line-height:46px;color:var(--ce-navy);padding:0 16px;border-bottom:3px solid transparent}
.main-navigation .main-nav ul li:hover>a,.main-navigation .main-nav ul li.current-menu-item>a,.main-navigation .main-nav ul li.current-menu-ancestor>a{color:var(--ce-albastru);border-bottom-color:var(--ce-albastru);background:transparent}
.main-navigation .main-nav ul ul{border:1px solid var(--ce-linie);box-shadow:0 10px 30px rgba(0,59,100,.12)}
.main-navigation .main-nav ul ul li a{line-height:1.4;padding:10px 16px;border:0}

/* ===== breadcrumb + titlu arhiva ===== */
.woocommerce-breadcrumb{padding:14px 0;font-size:12.5px;color:var(--ce-mut);margin:0 !important}
.woocommerce-breadcrumb a{color:var(--ce-mut)}.woocommerce-breadcrumb a:hover{color:var(--ce-albastru)}
.woocommerce-products-header__title.page-title,.woocommerce .page-title{font-size:26px;font-weight:800;line-height:1.15;margin-bottom:6px}
.term-description{font-size:13px;color:var(--ce-mut);margin-bottom:12px}

/* ===== arhiva: sidebar 270px + grid ===== */
body.woocommerce.left-sidebar .site-content,
body.woocommerce-page.left-sidebar .site-content{display:grid;grid-template-columns:270px minmax(0,1fr);gap:0 24px;align-items:start}
body.left-sidebar.woocommerce #left-sidebar{order:-1;width:auto;grid-column:1;grid-row:1/span 5}
body.left-sidebar.woocommerce #primary{width:auto;grid-column:2}
body.woocommerce #left-sidebar .inside-left-sidebar{display:flex;flex-direction:column;gap:12px}
body.woocommerce #left-sidebar .widget{background:#fff;border:1px solid var(--ce-linie);border-radius:var(--ce-r);padding:0;margin:0}
body.woocommerce #left-sidebar .widget-title{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:var(--ce-navy);padding:14px 16px;margin:0;border-bottom:1px solid var(--ce-linie)}
body.woocommerce #left-sidebar .widget>*:not(.widget-title){margin-left:16px;margin-right:16px}
body.woocommerce #left-sidebar .widget>*:last-child{margin-bottom:14px}
body.woocommerce #left-sidebar .widget>.widget-title+*{margin-top:10px}
/* cautarea e deja in header */
body.woocommerce #left-sidebar .widget_product_search{display:none}
.product-categories,.product-categories ul{list-style:none;margin-left:0;padding:0}
.product-categories li{padding:0;margin:0;font-size:13.5px;position:relative}
.product-categories li>a{display:inline-block;padding:7px 0;color:#34424d}
.product-categories li>a:hover{color:var(--ce-albastru)}
.product-categories li>.count{float:right;padding:7px 0;color:var(--ce-mut);font-size:12px;background:none}
.product-categories .children{margin:0 0 4px 12px;border-left:2px solid var(--ce-albastru-bg);padding-left:12px}
.product-categories li.current-cat>a,.product-categories li.current-cat-parent>a{font-weight:800;color:var(--ce-albastru)}
.widget_price_filter .ui-slider{height:4px;background:var(--ce-linie);border:0;border-radius:2px;margin:14px 8px}
.widget_price_filter .ui-slider .ui-slider-range{background:var(--ce-albastru);border-radius:2px}
.widget_price_filter .ui-slider .ui-slider-handle{background:#fff;border:3px solid var(--ce-albastru);width:16px;height:16px;top:-6px;margin-left:-8px;border-radius:50%}
.widget_price_filter .price_slider_amount{display:flex;justify-content:space-between;align-items:center;font-size:13px}
.widget_price_filter .price_slider_amount .button{padding:7px 16px;font-size:13px}

.woocommerce-result-count{float:none;display:inline-block;margin:0;color:var(--ce-mut);font-size:13px;line-height:38px}
.woocommerce-ordering{float:none;display:inline-block;margin:0;float:right}
.woocommerce-ordering select{border:1px solid var(--ce-linie);border-radius:6px;padding:7px 10px;background:#fff;font:inherit;font-size:13px}
.ce-toolbar{background:#fff;border:1px solid var(--ce-linie);border-radius:var(--ce-r);padding:8px 14px;margin:0 0 16px;overflow:hidden}
.ce-subcats{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.ce-subcats a{background:#fff;border:1px solid var(--ce-linie);padding:7px 14px;border-radius:999px;font-weight:700;font-size:13px;color:var(--ce-navy)}
.ce-subcats a:hover{border-color:var(--ce-albastru);color:var(--ce-albastru)}

/* ===== grid produse (home + arhive + similare) ===== */
body ul.products{display:grid !important;gap:16px;margin:0 0 20px;padding:0;grid-template-columns:repeat(4,minmax(0,1fr))}
body ul.products.columns-5{grid-template-columns:repeat(5,minmax(0,1fr))}
body ul.products.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
body ul.products::before,body ul.products::after,
body.woocommerce ul.products::before,body.woocommerce ul.products::after,
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none !important;content:none !important}
body ul.products.products li.product.product,body.woocommerce-page ul.products.products li.product.product{
  width:auto !important;float:none !important;margin:0 !important;
  display:flex;flex-direction:column;position:relative;background:#fff;
  border:1px solid var(--ce-linie);border-radius:var(--ce-r);padding:12px 14px 14px;
  transition:box-shadow .15s,border-color .15s}
body ul.products.products li.product.product:hover{box-shadow:0 6px 22px rgba(0,59,100,.12);border-color:#cfd9e1}
ul.products.products li.product.product a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:1;color:inherit;text-decoration:none}
ul.products.products li.product.product a img{aspect-ratio:1/1;object-fit:contain;width:100%;height:auto;margin:0 0 10px;padding:4px}
.ce-brand{font-size:11px;font-weight:700;color:var(--ce-mut);text-transform:uppercase;letter-spacing:.4px;margin-bottom:3px;min-height:14px}
/* TITLU: 13px/16px, maxim 3 randuri - ca Romstal */
body ul.products.products li.product.product .woocommerce-loop-product__title{
  font-size:13px !important;line-height:16px !important;font-weight:700;color:var(--ce-text) !important;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  height:48px;padding:0;margin:0 0 8px}
ul.products.products li.product.product:hover .woocommerce-loop-product__title{color:var(--ce-albastru) !important}
.ce-stock{font-size:12px;font-weight:700;color:var(--ce-verde);display:flex;align-items:center;gap:5px;margin:0 0 6px}
.ce-stock::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.ce-stock.is-out{color:var(--ce-mut)}
body ul.products.products li.product.product .price{margin:auto 0 10px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:20px;font-weight:800;color:var(--ce-navy) !important;line-height:1}
body ul.products.products li.product.product .price del{order:2;font-size:12.5px;font-weight:400;color:var(--ce-mut) !important;opacity:1}
body ul.products.products li.product.product .price ins{background:none;color:var(--ce-rosu);text-decoration:none}
body ul.products.products li.product.product .button,body ul.products.products li.product.product a.button{
  margin:0 !important;align-self:stretch !important;display:flex;align-items:center;justify-content:center;
  height:38px;padding:0 10px;background:var(--ce-albastru);color:#fff;font-weight:700;font-size:13.5px;border-radius:6px}
body ul.products.products li.product.product .button:hover{background:var(--ce-albastru-hover)}
body span.onsale{top:10px;left:10px;right:auto;min-width:0;min-height:0;line-height:1.4;padding:3px 8px;border-radius:4px;background:var(--ce-rosu);font-size:12px;font-weight:800;margin:0}
.woocommerce nav.woocommerce-pagination{margin-top:26px}
.woocommerce nav.woocommerce-pagination ul{border:0;display:flex;justify-content:center;gap:6px}
.woocommerce nav.woocommerce-pagination ul li{border:0}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{min-width:38px;height:38px;line-height:36px;padding:0 8px;border-radius:6px;background:#fff;border:1px solid var(--ce-linie);font-weight:700;color:var(--ce-navy)}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--ce-albastru);border-color:var(--ce-albastru);color:#fff}

/* ===== pagina de produs ===== */
body.single-product div.product{display:grid;grid-template-columns:minmax(0,480px) minmax(0,1fr);gap:28px;align-items:start}
body.single-product div.product .woocommerce-product-gallery{width:auto !important;float:none !important;background:#fff;border:1px solid var(--ce-linie);border-radius:var(--ce-r);padding:20px;margin:0}
body.single-product div.product .summary{width:auto !important;float:none !important;margin:0;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:0 28px;align-items:start}
body.single-product div.product .summary>*{grid-column:1}
body.single-product div.product .summary>.ce-buy{grid-column:2;grid-row:1/span 8;position:sticky;top:20px}
body.single-product div.product .woocommerce-tabs,body.single-product div.product .related,body.single-product div.product .up-sells{grid-column:1/-1;width:100%}
.ce-brandline{font-size:12px;font-weight:800;color:var(--ce-albastru);text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
body.single-product .product_title{font-size:24px;line-height:1.25;font-weight:800;margin:0 0 10px}
.ce-meta{display:flex;gap:18px;flex-wrap:wrap;font-size:12.5px;color:var(--ce-mut);padding-bottom:14px;border-bottom:1px solid var(--ce-linie);margin-bottom:16px}
.ce-meta b{color:var(--ce-text)}
body.single-product .woocommerce-product-details__short-description{font-size:14px;margin-bottom:16px}
.ce-buy{background:#fff;border:1px solid var(--ce-linie);border-radius:10px;padding:22px;box-shadow:0 8px 28px rgba(0,59,100,.08)}
.ce-buy .ce-stock{margin-bottom:12px}
.ce-buy .price{display:flex;align-items:baseline;gap:10px;font-size:34px;font-weight:800;color:var(--ce-navy);letter-spacing:-1px;line-height:1;margin:0 0 6px}
.ce-buy .price del{font-size:15px;font-weight:400;color:var(--ce-mut);letter-spacing:0;order:2}
.ce-buy .price ins{background:none;text-decoration:none;color:var(--ce-rosu)}
.ce-vat{font-size:12px;color:var(--ce-mut);margin:0 0 14px}
.ce-buy form.cart{margin:0}
.ce-buy .single_add_to_cart_button,.ce-buy .button.alt{display:flex;width:100%;height:50px;align-items:center;justify-content:center;font-size:16px;font-weight:700;border-radius:6px;background:var(--ce-albastru);color:#fff;padding:0}
.ce-buy .single_add_to_cart_button:hover{background:var(--ce-albastru-hover)}
.ce-merchant{display:flex;align-items:center;gap:10px;background:var(--ce-fundal);border-radius:6px;padding:10px 12px;margin:14px 0;font-size:12.5px}
.ce-merchant b{display:block;font-size:13px}
.ce-merchant svg{color:var(--ce-albastru)}
.ce-buy ul.ce-usp{list-style:none;margin:0;display:grid;gap:10px;font-size:13px;padding:0}
.ce-usp li{display:flex;gap:10px;align-items:center;color:#34424d;margin:0}
.ce-usp svg{color:var(--ce-albastru)}
.ce-buy .ce-nota{font-size:11.5px;color:var(--ce-mut);margin:14px 0 0;line-height:1.4}
body.single-product .summary>.ce-nota-partener{display:none}
.woocommerce div.product .woocommerce-tabs{margin-top:34px}
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin:0 0 20px;border-bottom:2px solid var(--ce-linie)}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:none;border:0;margin:0 4px 0 0;padding:0;border-radius:0}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{padding:12px 20px;font-weight:800;color:var(--ce-mut);border-bottom:3px solid transparent;margin-bottom:-2px;display:block}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--ce-albastru);border-bottom-color:var(--ce-albastru)}
.woocommerce div.product .woocommerce-Tabs-panel{background:#fff;border:1px solid var(--ce-linie);border-radius:var(--ce-r);padding:24px 28px;line-height:1.65;color:#34424d;max-width:900px}
.woocommerce div.product .woocommerce-Tabs-panel h2{font-size:18px}
.woocommerce table.shop_attributes{border:0}
.woocommerce table.shop_attributes th,.woocommerce table.shop_attributes td{padding:10px 14px;border-bottom:1px solid var(--ce-linie);font-style:normal}
.woocommerce table.shop_attributes th{width:36%;color:var(--ce-mut);font-weight:600;background:#fafbfc}
.related.products>h2,.up-sells>h2{font-size:22px;font-weight:800;margin:34px 0 16px}

/* ===== homepage ===== */
.ce-home{padding-bottom:20px}
.ce-hero{display:grid;grid-template-columns:270px minmax(0,1fr);background:#fff;border:1px solid var(--ce-linie);border-radius:0 0 var(--ce-r) var(--ce-r);overflow:hidden}
.ce-megamenu{list-style:none;margin:0;padding:0;border-right:1px solid var(--ce-linie)}
.ce-megamenu li{margin:0}
.ce-megamenu a{display:flex;align-items:center;gap:12px;padding:0 16px;height:54px;font-weight:700;font-size:13.5px;color:var(--ce-navy);border-bottom:1px solid #eef1f4}
.ce-megamenu li:last-child a{border:0}
.ce-megamenu a:hover{background:var(--ce-albastru-bg);color:var(--ce-albastru)}
.ce-megamenu a svg{color:var(--ce-albastru);width:22px;height:22px}
.ce-megamenu a i{margin-left:auto;font-style:normal;color:#b3bec7}
.ce-slide{position:relative;min-height:326px;background:linear-gradient(110deg,#00253f 0%,#003b64 45%,#0a6aa6 100%);color:#fff;padding:44px 52px;display:flex;flex-direction:column;justify-content:center;overflow:hidden}
.ce-slide .ce-tag{display:inline-block;background:var(--ce-rosu);font-weight:800;font-size:12px;padding:4px 12px;border-radius:999px;width:max-content;margin-bottom:16px;letter-spacing:.4px}
.ce-slide h1{font-size:40px;line-height:1.08;font-weight:800;letter-spacing:-1px;max-width:520px;color:#fff;margin:0}
.ce-slide p{margin:14px 0 24px;font-size:16px;opacity:.92;max-width:460px;color:#fff}
.ce-slide .ce-btn-w{display:inline-flex;align-items:center;height:46px;padding:0 28px;border-radius:6px;background:#fff;color:var(--ce-navy);font-weight:700;font-size:15px;width:max-content}
.ce-slide .ce-btn-w:hover{background:var(--ce-albastru-bg)}
.ce-sec{padding-top:34px}
.ce-sec-h{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:16px}
.ce-sec-h h2{font-size:22px;font-weight:800;margin:0}
.ce-sec-h a{font-size:13.5px;font-weight:700;color:var(--ce-albastru)}
.ce-pillars{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.ce-pillar{background:#fff;border:1px solid var(--ce-linie);border-radius:var(--ce-r);padding:16px 12px 14px;text-align:center;transition:.15s;display:block}
.ce-pillar:hover{box-shadow:0 6px 22px rgba(0,59,100,.12);transform:translateY(-2px)}
.ce-pillar .ce-pic{height:92px;display:grid;place-items:center;margin-bottom:10px}
.ce-pillar img{max-height:92px;width:auto}
.ce-pillar b{display:block;font-size:14px;font-weight:800;color:var(--ce-navy)}
.ce-pillar small{color:var(--ce-mut);font-size:12px}
.ce-promo2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:34px}
.ce-promo{border-radius:var(--ce-r);padding:28px 32px;color:#fff;min-height:150px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.ce-promo h3{font-size:22px;font-weight:800;color:#fff;margin:0}
.ce-promo p{opacity:.92;max-width:380px;margin:0;color:#fff}
.ce-promo a{margin-top:8px;font-weight:800;color:#fff}
.ce-p1{background:linear-gradient(120deg,#1f9d55,#127a40)}
.ce-p2{background:linear-gradient(120deg,#e8322f,#b8201d)}
.ce-trust{background:#fff;border:1px solid var(--ce-linie);border-radius:var(--ce-r);margin-top:40px;display:grid;grid-template-columns:repeat(4,1fr)}
.ce-trust>div{display:flex;gap:14px;align-items:center;padding:20px 22px;border-right:1px solid var(--ce-linie)}
.ce-trust>div:last-child{border:0}
.ce-trust svg{width:34px;height:34px;color:var(--ce-albastru);stroke-width:1.5}
.ce-trust b{display:block;font-size:14px;color:var(--ce-navy)}
.ce-trust span{font-size:12.5px;color:var(--ce-mut)}
.ce-home .wp-block-latest-posts.is-grid{gap:16px}
.ce-home .wp-block-latest-posts.is-grid li{border:1px solid var(--ce-linie);border-radius:var(--ce-r);overflow:hidden;background:#fff;margin:0}
.ce-home .wp-block-latest-posts.is-grid li>a{display:block;padding:12px 16px 0;font-weight:800;color:var(--ce-navy);font-size:14.5px;line-height:1.3}
.ce-home .wp-block-latest-posts__post-date{padding:4px 16px 14px;display:block;font-size:12px;color:var(--ce-mut)}
.ce-home .wp-block-latest-posts__featured-image img{width:100%;height:130px;object-fit:cover}

/* ===== footer ===== */
.site-footer .footer-widgets{background:var(--ce-navy)}
.footer-widgets h1,.footer-widgets h2,.footer-widgets h3,.footer-widgets h4{color:#fff}

/* ===== responsive ===== */
@media(max-width:1180px){
  body ul.products.columns-5{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ce-pillars{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ce-hero{grid-template-columns:1fr}.ce-megamenu{display:none}
  body.single-product div.product .summary{grid-template-columns:1fr}
  body.single-product div.product .summary>.ce-buy{grid-column:1;grid-row:auto;position:static;margin-top:16px}
}
@media(max-width:900px){
  body.woocommerce.left-sidebar .site-content,body.woocommerce-page.left-sidebar .site-content{display:block}
  body.woocommerce #left-sidebar{margin-bottom:16px}
  body ul.products,body ul.products.columns-5{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.single-product div.product{grid-template-columns:1fr}
  .ce-promo2{grid-template-columns:1fr}.ce-trust{grid-template-columns:repeat(2,1fr)}
  .ce-topbar nav{display:none}.ce-search{max-width:none}
}
@media(max-width:640px){
  body ul.products,body ul.products.columns-5,body ul.products.columns-3{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .ce-pillars{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ce-slide{padding:30px 22px}.ce-slide h1{font-size:28px}
  .site-header .inside-header{gap:0 12px}
  .ce-search{order:3;flex:0 0 100%;margin:0 0 10px}
  .site-header .main-navigation{order:4}
}

/* ===== fara sublinieri pe elementele de navigare/carduri ===== */
.ce-home a,.ce-topbar a,.ce-subcats a,.ce-buy a,.ce-megamenu a,.ce-pillar,ul.products.products li.product.product a,.site-header a,.woocommerce-breadcrumb a{text-decoration:none}
.ce-sec-h a:hover{text-decoration:underline}
.product-categories li>a{display:block;padding-right:44px;text-decoration:none}
.product-categories li>.count{position:absolute;right:0;top:0;float:none}
.product-categories .children li>.count{right:0}

/* ===== ajustari tableta / mobil (v2.1) ===== */
@media(max-width:1180px){
  .ce-home ul.products li.product:nth-child(5){display:none !important}
}
@media(max-width:900px){
  .ce-home ul.products li.product:nth-child(n+4){display:none !important}
  .ce-subcats{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px}
  .ce-subcats a{white-space:nowrap;flex:none}
  body.woocommerce #left-sidebar .product-categories{max-height:260px;overflow:auto}
  body.single-product div.product .woocommerce-product-gallery{max-width:440px;margin:0 auto;width:100% !important}
  .woocommerce-breadcrumb{white-space:nowrap;overflow-x:auto}
}
@media(max-width:640px){
  .ce-home ul.products li.product:nth-child(4){display:flex !important}
  .ce-topbar{display:none}
  .ce-toolbar .woocommerce-ordering,.ce-toolbar .woocommerce-ordering select{float:none;display:block;width:100%}
  body.single-product .product_title{font-size:20px}
}
@media(max-width:900px){
  body.single-product div.product .woocommerce-product-gallery{margin-left:auto !important;margin-right:auto !important}
  .woocommerce-breadcrumb{scrollbar-width:none}
  .woocommerce-breadcrumb::-webkit-scrollbar{display:none}
}

/* ===== logo pe un rand + cautare la dreapta ===== */
.site-logo .ce-brandlink{display:flex;align-items:center;gap:10px;text-decoration:none}
.site-logo img.ce-brandicon{height:40px;width:auto;max-width:none}
.ce-brandname{font-size:24px;font-weight:800;letter-spacing:-.4px;color:var(--ce-navy);white-space:nowrap;line-height:1}
.ce-search{flex:0 1 460px;max-width:460px;margin-left:auto}
@media(max-width:640px){
  .ce-brandname{font-size:20px}.site-logo img.ce-brandicon{height:34px}
  .ce-search{flex:0 0 100%;max-width:none;margin-left:0}
}

/* ===== mobil: hamburger pe randul logo-ului, in dreapta ===== */
@media(max-width:768px){
  .site-header .site-logo{order:1}
  .site-header #mobile-menu-control-wrapper{order:2;flex:0 0 auto;width:auto;margin-left:auto;background:transparent;border:0}
  .site-header #mobile-menu-control-wrapper .menu-toggle{width:auto;height:44px;padding:0 6px;background:transparent;border:0;color:var(--ce-navy);font-size:24px;line-height:44px}
  .site-header .ce-search{order:3;flex:0 0 100%;max-width:none;margin:0 0 10px}
  .site-header #site-navigation{order:4}
}
