/*
Theme Name: MLLT
Theme URI: https://mllt.co.il
Author: MLLT
Author URI: https://mllt.co.il
Description: ערכת נושא מותאמת בעברית לחנות WooCommerce של MLLT – מערכות לבטיחות תנועה.
Version: 3.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: mllt
Domain Path: /languages
Tags: e-commerce, rtl-language-support, custom-logo, custom-menu, featured-images, blog
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root{
  --mllt-orange:#f45b0b;
  --mllt-orange-dark:#d94700;
  --mllt-black:#111417;
  --mllt-text:#202124;
  --mllt-muted:#687078;
  --mllt-line:#e7e9ec;
  --mllt-soft:#f7f8f9;
  --mllt-radius:12px;
  --mllt-shadow:0 8px 28px rgba(17,20,23,.08);
  --mllt-container:1380px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  direction:rtl;
  background:#fff;
  color:var(--mllt-text);
  font-family:Heebo,Arial,sans-serif;
  font-size:16px;
  line-height:1.7;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button,input,select,textarea{font:inherit}
.container{width:min(calc(100% - 32px),var(--mllt-container));margin-inline:auto}
.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);width:1px;height:1px;overflow:hidden}

/* Header */
.topbar{border-bottom:1px solid var(--mllt-line);font-size:14px;color:#41464b;background:#fff}
.topbar .container{display:flex;justify-content:space-between;align-items:center;min-height:38px}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.97);border-bottom:1px solid var(--mllt-line);backdrop-filter:blur(10px)}
.header-main{min-height:106px;display:grid;grid-template-columns:270px 1fr auto;align-items:center;gap:26px}
.custom-logo-link img,.brand-logo{width:250px;max-height:88px;object-fit:contain}
.main-navigation ul{list-style:none;margin:0;padding:0;display:flex;gap:34px;align-items:center;justify-content:center}
.main-navigation a{font-weight:700;padding-block:36px;display:block}
.main-navigation a:hover,.main-navigation .current-menu-item>a{color:var(--mllt-orange)}
.header-tools{display:flex;gap:16px;align-items:center}
.header-tools a{display:flex;flex-direction:column;align-items:center;font-weight:700;font-size:13px}
.search-form{display:flex;align-items:center;border:1px solid var(--mllt-line);border-radius:8px;overflow:hidden;background:#fff;min-width:300px}
.search-form input{border:0;outline:0;padding:12px 14px;width:100%;background:transparent}
.search-form button{border:0;background:transparent;padding:10px 14px;cursor:pointer}
.cart-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;background:var(--mllt-orange);color:#fff;border-radius:999px;font-size:12px}

/* Buttons */
.btn,.button,button[type=submit],input[type=submit],.wp-element-button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:46px;padding:10px 24px;border:1px solid var(--mllt-orange);
  border-radius:6px;background:var(--mllt-orange);color:#fff;font-weight:800;cursor:pointer;
  transition:.2s ease;
}
.btn:hover,.button:hover,button[type=submit]:hover,input[type=submit]:hover,.wp-element-button:hover{
  background:var(--mllt-orange-dark);border-color:var(--mllt-orange-dark);color:#fff;transform:translateY(-1px)
}
.btn-outline{background:#fff;color:var(--mllt-orange)}
.btn-outline:hover{color:#fff}
.section-title{text-align:center;margin:0 0 28px;font-size:32px;line-height:1.2}
.section-title:after{content:"";display:block;width:54px;height:3px;background:var(--mllt-orange);margin:12px auto 0;border-radius:10px}
.section-pad{padding:64px 0}

/* Hero */
.hero{
  min-height:540px;background:
    linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.92) 36%,rgba(255,255,255,.12) 68%),
    url('assets/images/hero-parking.jpg') center/cover no-repeat;
  display:flex;align-items:center;border-bottom:1px solid var(--mllt-line);
}
.hero-inner{width:min(calc(100% - 32px),var(--mllt-container));margin:auto}
.hero-copy{max-width:620px}
.hero h1{font-size:58px;line-height:1.05;margin:0 0 18px;font-weight:900}
.hero h1 span{display:block;color:var(--mllt-orange)}
.hero p{font-size:23px;margin:0 0 28px;color:#333}
.hero-dots{display:flex;gap:8px;margin-top:28px}
.hero-dots i{width:10px;height:10px;border-radius:50%;background:#d5d8dc}
.hero-dots i:first-child{background:var(--mllt-orange)}

/* Category cards */
.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-top:-22px;position:relative;z-index:2}
.category-card{background:#fff;border:1px solid var(--mllt-line);border-radius:var(--mllt-radius);padding:22px 12px;text-align:center;box-shadow:0 4px 18px rgba(0,0,0,.04)}
.category-card .icon{font-size:42px;line-height:1;margin-bottom:14px}
.category-card h3{font-size:18px;margin:0}
.category-card h3:after{content:"";display:block;width:34px;height:2px;background:var(--mllt-orange);margin:12px auto 0}

/* Intro + benefits */
.home-intro{text-align:center;max-width:900px;margin-inline:auto}
.home-intro h2{font-size:32px;margin:0 0 18px}
.home-intro p{font-size:18px;color:#42484e}
.benefits{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--mllt-line);border-radius:var(--mllt-radius);background:#fff}
.benefit{padding:28px;text-align:center;position:relative}
.benefit+.benefit{border-right:1px solid var(--mllt-line)}
.benefit .benefit-icon{font-size:46px;color:var(--mllt-orange);margin-bottom:12px}
.benefit h3{margin:0 0 6px;font-size:20px}
.benefit p{margin:0;color:var(--mllt-muted);font-size:14px}

/* Product cards */
.products-grid,.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:0!important}
.product-card,.woocommerce ul.products li.product{
  width:auto!important;float:none!important;margin:0!important;background:#fff;border:1px solid var(--mllt-line);
  border-radius:var(--mllt-radius);overflow:hidden;padding:22px;display:grid;grid-template-columns:42% 1fr;gap:20px;min-height:270px;
  transition:.2s ease;
}
.product-card:hover,.woocommerce ul.products li.product:hover{box-shadow:var(--mllt-shadow);transform:translateY(-2px)}
.product-card img,.woocommerce ul.products li.product img{width:100%;height:215px;object-fit:contain;margin:0!important}
.product-card h3,.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:21px;font-weight:900;margin:4px 0 10px;padding:0!important}
.product-card p{color:var(--mllt-muted);margin:0 0 14px}
.price,.woocommerce ul.products li.product .price{color:var(--mllt-orange)!important;font-size:20px!important;font-weight:900!important}
.woocommerce ul.products li.product .button{margin-top:12px}
.hot-products .products-grid,.hot-products .woocommerce ul.products{grid-template-columns:repeat(5,1fr)}
.hot-products .product-card,.hot-products .woocommerce ul.products li.product{display:block;min-height:0;text-align:center;padding:16px}
.hot-products .product-card img,.hot-products .woocommerce ul.products li.product img{height:170px}

/* Page headings / breadcrumbs */
.page-hero{padding:44px 0 30px;border-bottom:1px solid var(--mllt-line)}
.breadcrumbs{font-size:14px;color:#5f666d;margin-bottom:16px}
.breadcrumbs .sep{display:inline-block;margin:0 8px;transform:rotate(180deg)}
.page-title{font-size:42px;line-height:1.15;margin:0 0 10px}
.page-description{margin:0;color:var(--mllt-muted);font-size:18px}

/* Blog archive */
.blog-list{display:flex;flex-direction:column;gap:20px}
.blog-card{display:grid;grid-template-columns:40% 1fr;border:1px solid var(--mllt-line);border-radius:var(--mllt-radius);overflow:hidden;background:#fff}
.blog-card img{width:100%;height:300px;object-fit:cover}
.blog-card-content{padding:28px 32px;display:flex;flex-direction:column;justify-content:center}
.blog-meta{font-size:14px;color:var(--mllt-muted);margin-bottom:6px}
.blog-meta .category{color:var(--mllt-orange);font-weight:800}
.blog-card h2{font-size:28px;margin:4px 0 10px}
.blog-card p{margin:0 0 18px;color:#4d545b}

/* Single article */
.article-layout{display:grid;grid-template-columns:280px 1fr;gap:38px;align-items:start}
.article-sidebar{position:sticky;top:130px}
.article-box{border:1px solid var(--mllt-line);border-radius:var(--mllt-radius);padding:24px;margin-bottom:20px;background:#fff}
.article-box h3{margin-top:0}
.article-box ol{padding-right:18px;margin-bottom:0}
.article-content{font-size:18px}
.article-content h1{font-size:46px;line-height:1.2}
.article-content h2{font-size:30px;margin-top:40px}
.article-content h3{font-size:24px}
.article-content .featured-image{width:100%;max-height:560px;object-fit:cover;border-radius:var(--mllt-radius);margin:20px 0 26px}
.article-content p{margin:0 0 18px}
.article-content ul{padding-right:24px}

/* Product page WooCommerce */
.single-product div.product{display:grid;grid-template-columns:390px 1fr;gap:34px;margin:46px 0}
.single-product div.product .summary{grid-column:1;grid-row:1;background:#fff;border:1px solid var(--mllt-line);border-radius:var(--mllt-radius);padding:28px}
.single-product div.product .woocommerce-product-gallery{grid-column:2;grid-row:1}
.single-product .product_title{font-size:38px;margin:0 0 8px}
.single-product div.product p.price{font-size:32px!important;color:var(--mllt-orange)!important}
.single-product .woocommerce-product-gallery__image img{border-radius:var(--mllt-radius)}
.single-product .quantity .qty{height:46px;border:1px solid var(--mllt-line);border-radius:5px}
.woocommerce-tabs{grid-column:1/-1}
.woocommerce div.product .woocommerce-tabs ul.tabs{display:flex;padding:0!important;margin:0!important;border:1px solid var(--mllt-line);border-radius:8px 8px 0 0;overflow:hidden}
.woocommerce div.product .woocommerce-tabs ul.tabs:before{display:none!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li{border:0!important;background:#fff!important;margin:0!important;flex:1;text-align:center;border-left:1px solid var(--mllt-line)!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{display:block!important;padding:16px!important}
.woocommerce div.product .woocommerce-tabs .panel{border:1px solid var(--mllt-line);border-top:0;padding:28px;border-radius:0 0 8px 8px}
.related.products{grid-column:1/-1}
.related.products>h2{text-align:center}

/* Forms / WooCommerce */
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,
input[type=text],input[type=email],input[type=tel],input[type=password],input[type=search],textarea,select{
  width:100%;border:1px solid var(--mllt-line);border-radius:6px;padding:12px 14px;background:#fff;outline:none
}
input:focus,textarea:focus,select:focus{border-color:var(--mllt-orange);box-shadow:0 0 0 3px rgba(244,91,11,.1)}
.woocommerce-cart-form,.cart_totals,.woocommerce-checkout-review-order,.woocommerce-billing-fields,.woocommerce-shipping-fields,
.woocommerce-MyAccount-content,.woocommerce-MyAccount-navigation{
  border:1px solid var(--mllt-line);border-radius:var(--mllt-radius);padding:24px;background:#fff
}
.woocommerce-cart .cart-collaterals{display:grid;grid-template-columns:1fr 420px;gap:28px}
.woocommerce-cart .cart_totals{width:auto!important;float:none!important;grid-column:2}
.woocommerce-checkout form.checkout{display:grid;grid-template-columns:1fr 420px;gap:28px}
.woocommerce-checkout #customer_details{grid-column:1}
.woocommerce-checkout #order_review_heading,.woocommerce-checkout #order_review{grid-column:2}
.woocommerce-account .woocommerce{display:grid;grid-template-columns:250px 1fr;gap:26px}
.woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0}
.woocommerce-MyAccount-navigation li a{display:block;padding:12px;border-bottom:1px solid var(--mllt-line)}
.woocommerce-MyAccount-navigation li.is-active a{color:var(--mllt-orange);font-weight:800}

/* Pagination */
.pagination,.woocommerce nav.woocommerce-pagination ul{display:flex;justify-content:center;gap:8px;border:0!important;margin:38px 0!important}
.pagination a,.pagination span,.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{
  min-width:42px;height:42px;display:flex!important;align-items:center;justify-content:center;border:1px solid var(--mllt-line)!important;border-radius:6px;background:#fff
}
.pagination .current,.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--mllt-orange)!important;color:#fff!important;border-color:var(--mllt-orange)!important}

/* Footer */
.site-footer{background:linear-gradient(135deg,#111417,#171b1f);color:#fff;margin-top:64px}
.footer-grid{display:grid;grid-template-columns:1.2fr repeat(3,1fr) 1.2fr;gap:36px;padding:52px 0}
.site-footer h3{font-size:18px;margin:0 0 16px}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin:7px 0;color:#d6d9dc}
.site-footer .footer-logo{max-width:220px}
.newsletter{display:flex;gap:8px;flex-wrap:wrap}
.newsletter input{background:#fff;color:#111;flex:1;min-width:180px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:15px 0;color:#c7cbcf;font-size:14px}
.footer-bottom .container{display:flex;justify-content:space-between;gap:20px;align-items:center}

/* Responsive */
@media(max-width:1100px){
  .header-main{grid-template-columns:220px 1fr}
  .header-tools{display:none}
  .main-navigation ul{gap:18px}
  .category-grid{grid-template-columns:repeat(3,1fr);margin-top:18px}
  .benefits{grid-template-columns:repeat(2,1fr)}
  .benefit:nth-child(3){border-right:0}
  .products-grid,.woocommerce ul.products{grid-template-columns:repeat(2,1fr)}
  .hot-products .products-grid,.hot-products .woocommerce ul.products{grid-template-columns:repeat(3,1fr)}
  .footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .topbar{display:none}
  .site-header{position:relative}
  .header-main{min-height:84px;display:flex;justify-content:space-between}
  .custom-logo-link img,.brand-logo{width:180px}
  .menu-toggle{display:block}
  .main-navigation{display:none;position:absolute;top:84px;right:0;left:0;background:#fff;border-top:1px solid var(--mllt-line);padding:16px;box-shadow:var(--mllt-shadow)}
  .main-navigation.open{display:block}
  .main-navigation ul{display:block}
  .main-navigation a{padding:12px}
  .hero{min-height:460px;background-position:62% center}
  .hero h1{font-size:40px}
  .hero p{font-size:18px}
  .category-grid{grid-template-columns:repeat(2,1fr)}
  .benefits{grid-template-columns:1fr}
  .benefit+.benefit{border-right:0;border-top:1px solid var(--mllt-line)}
  .products-grid,.woocommerce ul.products,.hot-products .products-grid,.hot-products .woocommerce ul.products{grid-template-columns:1fr!important}
  .product-card,.woocommerce ul.products li.product{grid-template-columns:130px 1fr;min-height:0}
  .product-card img,.woocommerce ul.products li.product img{height:140px}
  .blog-card{grid-template-columns:1fr}
  .blog-card img{height:220px}
  .article-layout{grid-template-columns:1fr}
  .article-sidebar{position:static;order:2}
  .single-product div.product{grid-template-columns:1fr}
  .single-product div.product .summary,.single-product div.product .woocommerce-product-gallery{grid-column:1;grid-row:auto}
  .woocommerce-cart .cart-collaterals,.woocommerce-checkout form.checkout,.woocommerce-account .woocommerce{grid-template-columns:1fr}
  .woocommerce-cart .cart_totals,.woocommerce-checkout #customer_details,.woocommerce-checkout #order_review_heading,.woocommerce-checkout #order_review{grid-column:1}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom .container{display:block;text-align:center}
}
@media(min-width:761px){.menu-toggle{display:none}}

/* MLLT 2.0 – editable home page */
.home-editor-content{padding:54px 0}
.home-editor-content>.alignwide{width:min(calc(100% - 32px),var(--mllt-container));margin-inline:auto}
.home-editor-content>.alignfull{width:100%;max-width:none}
.hero.has-custom-image{background-position:center;background-size:cover}
.hero-overlay{width:100%;min-height:inherit;display:flex;align-items:center}
.site-phone{font-weight:800;direction:ltr}
.social-links{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.social-links a{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;border:1px solid rgba(255,255,255,.22);border-radius:50%}
.footer-widget{min-width:0}
.footer-widget .widget-title{font-size:18px;margin:0 0 16px}
.mllt-admin-note{border-right:4px solid var(--mllt-orange);padding:14px;background:#fff7f1}
.wp-block-button__link{background:var(--mllt-orange);border-radius:6px;font-weight:800}
.wp-block-button__link:hover{background:var(--mllt-orange-dark)}


/* ===== MLLT 3.0 ===== */
.mllt-slider{position:relative;width:100%;overflow:hidden;background:#1d1d1d;direction:rtl}
.mllt-slides{position:relative;min-height:560px}
.mllt-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .55s ease,visibility .55s ease;background-position:center;background-size:cover;background-repeat:no-repeat}
.mllt-slide.is-active{opacity:1;visibility:visible;z-index:1}
.mllt-slide::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.05) 0%,rgba(0,0,0,.12) 48%,rgba(0,0,0,.36) 100%);pointer-events:none}
.mllt-slide-inner{position:relative;z-index:2;width:min(calc(100% - 48px),var(--mllt-container));min-height:560px;margin:auto;display:flex;align-items:center;justify-content:flex-start}
.mllt-slide-copy{width:min(610px,100%);padding:38px 42px;background:rgba(255,255,255,.90);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.18);border-right:6px solid var(--mllt-orange)}
.mllt-slide-copy h1{font-size:56px;line-height:1.08;margin:0 0 16px;font-weight:900;color:#111}
.mllt-slide-copy h1 span{display:block;color:var(--mllt-orange);margin-top:8px}
.mllt-slide-copy p{font-size:21px;line-height:1.65;margin:0 0 25px;color:#333}
.mllt-slider-nav{position:absolute;z-index:4;inset-inline:0;top:50%;transform:translateY(-50%);display:flex;justify-content:space-between;padding:0 22px;pointer-events:none}
.mllt-slider-nav button{pointer-events:auto;width:48px;height:48px;border:0;border-radius:50%;background:rgba(17,17,17,.72);color:#fff;font-size:28px;cursor:pointer;transition:.2s}
.mllt-slider-nav button:hover{background:var(--mllt-orange)}
.mllt-slider-dots{position:absolute;z-index:4;bottom:20px;left:50%;transform:translateX(-50%);display:flex;gap:9px}
.mllt-slider-dots button{width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:rgba(255,255,255,.3);padding:0;cursor:pointer}
.mllt-slider-dots button.is-active{background:var(--mllt-orange);border-color:var(--mllt-orange)}
.mllt-slider.one-slide .mllt-slider-nav,.mllt-slider.one-slide .mllt-slider-dots{display:none}
@media(max-width:900px){
 .mllt-slides,.mllt-slide-inner{min-height:500px}
 .mllt-slide-inner{width:min(calc(100% - 30px),var(--mllt-container));justify-content:center}
 .mllt-slide-copy{padding:30px 28px;width:100%}
 .mllt-slide-copy h1{font-size:42px}
 .mllt-slide-copy p{font-size:18px}
}
@media(max-width:600px){
 .mllt-slides,.mllt-slide-inner{min-height:460px}
 .mllt-slide-copy{padding:24px 20px;border-right-width:4px}
 .mllt-slide-copy h1{font-size:34px}
 .mllt-slider-nav{padding:0 8px}
 .mllt-slider-nav button{width:40px;height:40px;font-size:22px}
}
