/* Murishos v1.4 — ananas-style header */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body.murishos-body{
  font-family:'Segoe UI','Tahoma','Arial',sans-serif;
  background:#fafafa;color:#222;direction:rtl;
  min-height:100vh;display:flex;flex-direction:column;
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}

/* ═══════════════════════════════════════
   HEADER — two-row, unified red
═══════════════════════════════════════ */
.site-header-wrap{
  background:#CC0000;
  position:sticky;top:0;z-index:200;
}

/* ROW 1 — logo centred, lang on end */
.site-topbar{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  padding:22px 20px 10px;
}
.topbar-side{display:flex}
.topbar-end{justify-content:flex-end}

/* LOGO */
.site-logo-link{
  display:flex;justify-content:center;align-items:center;
}
.site-logo-link .custom-logo{
  max-height:68px;max-width:200px;
  width:auto;height:auto;object-fit:contain;
  filter:brightness(0) invert(1);
  display:block;
}
.logo-text{
  font-size:2.2rem;font-weight:900;
  color:#fff;font-family:'Georgia',serif;
  letter-spacing:.02em;line-height:1;
}

/* LANGUAGE BUTTON — ananas style: no border, transparent, simple */
.lang-btn{
  background:transparent;border:none;outline:none;
  color:rgba(255,255,255,.88);
  font-size:.82rem;font-weight:500;
  cursor:pointer;
  display:inline-flex;align-items:center;gap:5px;
  padding:4px 2px;
  font-family:inherit;
  transition:color .15s;
  position:relative;
}
.lang-btn:hover{color:#fff}
.lang-btn svg{transition:transform .2s}
.lang-btn.open svg{transform:rotate(180deg)}

/* LANGUAGE DROPDOWN */
.lang-dropdown{
  position:absolute;top:calc(100% + 6px);
  right:0;
  background:#fff;
  border-radius:8px;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
  overflow:hidden;
  min-width:110px;
  display:none;
  z-index:9999;
}
body:not([dir="ltr"]) .lang-dropdown{right:0;left:auto}
body[dir="ltr"] .lang-dropdown{left:0;right:auto}
.lang-dropdown.open{display:block}
.lang-option{
  display:block;width:100%;padding:10px 18px;
  background:transparent;border:none;
  color:#333;font-size:.85rem;font-weight:500;
  cursor:pointer;text-align:right;font-family:inherit;
  transition:background .15s;
  white-space:nowrap;
}
body[dir="ltr"] .lang-option{text-align:left}
.lang-option:hover{background:#f5f5f5}
.lang-option.selected{color:#CC0000;font-weight:700}

/* ROW 2 — nav tabs */
.category-nav{
  border-top:1px solid rgba(255,255,255,.15);
}
.tabs-scroll-wrapper{
  overflow-x:auto;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.tabs-scroll-wrapper::-webkit-scrollbar{display:none}
.tabs-container{
  display:flex;align-items:center;justify-content:center;
  padding:6px 16px 12px;
  gap:2px;
  min-width:max-content;margin:0 auto;
}

/* TABS */
.tab-btn{
  background:transparent;border:none;
  color:rgba(255,255,255,.82);
  font-size:1rem;font-weight:500;
  padding:8px 22px;
  border-radius:10px;
  cursor:pointer;
  transition:background .15s,color .15s;
  white-space:nowrap;font-family:inherit;
}
.tab-btn:hover{color:#fff;background:rgba(255,255,255,.15)}
/* Active: white pill with red text — same 10px radius as ananas */
.tab-btn.active{
  background:#fff;color:#CC0000;font-weight:700;
}

/* ═══════════════════════════════════════
   HERO SLIDER
═══════════════════════════════════════ */
.hero-slider{position:relative;width:100%;height:520px;overflow:hidden;background:#111}
.slides-wrapper{position:relative;width:100%;height:100%}
.slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity .8s ease}
.slide.active{opacity:1}
.slide::after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.4) 0%,transparent 55%)}
.slider-dots{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);display:flex;gap:8px;z-index:10}
.dot{width:9px;height:9px;border-radius:50%;border:none;background:rgba(255,255,255,.45);cursor:pointer;padding:0;transition:all .25s}
.dot.active{background:#fff;width:24px;border-radius:5px}

/* HERO PLACEHOLDER */
.hero-placeholder{height:280px;background:#f9f0f0;border-bottom:2px dashed #e0b0b0;display:flex;align-items:center;justify-content:center}
.hero-placeholder-inner{text-align:center;color:#c08080}
.hero-placeholder-icon{font-size:2.5rem;margin-bottom:8px}
.hero-placeholder-text{font-size:.95rem;font-weight:600}
.hero-placeholder-sub{font-size:.78rem;margin-top:4px;opacity:.7}

/* ═══════════════════════════════════════
   FEATURED SECTION
═══════════════════════════════════════ */
.featured-section{padding:36px 20px 48px;background:#fafafa;flex:1}
.featured-header{max-width:1200px;margin:0 auto 28px;display:flex;align-items:center;gap:16px}
.featured-title{font-size:1.3rem;font-weight:800;color:#CC0000;white-space:nowrap}
.featured-line{flex:1;height:2px;background:linear-gradient(to left,transparent,#CC0000);border-radius:2px}
body.lang-en .featured-line{background:linear-gradient(to right,transparent,#CC0000)}

/* ═══════════════════════════════════════
   PRODUCTS
═══════════════════════════════════════ */
.main-content{flex:1;background:#fafafa;padding:32px 20px 48px}
.products-grid{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#e8e8e8;border:1px solid #e8e8e8}
.product-card{background:#fff;display:flex;flex-direction:column;align-items:center;padding:18px 14px 14px;cursor:pointer;transition:background .15s}
.product-card:hover{background:#fff8f8}
.product-title{font-size:.85rem;font-weight:700;color:#333;text-align:center;margin-bottom:12px;line-height:1.4;min-height:2.4em}
.product-image-wrapper{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:8px;background:#f5f5f5}
.product-img{width:100%;height:100%;object-fit:cover;transition:transform .3s;display:block}
.product-card:hover .product-img{transform:scale(1.04)}
.whatsapp-btn{position:absolute;bottom:10px;left:10px;width:42px;height:42px;background:#25D366;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 10px rgba(0,0,0,.25);transition:all .2s;z-index:5;opacity:0;transform:scale(.8)}
.product-card:hover .whatsapp-btn{opacity:1;transform:scale(1)}
.whatsapp-btn:hover{transform:scale(1.12)!important;box-shadow:0 5px 16px rgba(37,211,102,.5)!important}
.product-no-img{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fafafa;color:#aaa;font-size:.8rem;gap:8px}
.product-no-img span{font-size:3rem;opacity:.4}
.no-products{grid-column:1/-1;text-align:center;padding:80px 20px;background:#fff;display:flex;flex-direction:column;align-items:center;gap:12px;color:#aaa}
.no-products p{font-size:1.1rem;color:#888}
.products-loading{display:flex;justify-content:center;padding:60px}
.spinner{width:44px;height:44px;border:4px solid #f0f0f0;border-top-color:#CC0000;border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ═══════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════ */
.lightbox-overlay{position:fixed;inset:0;background:rgba(0,0,0,.88);z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px}
.lightbox-close{position:fixed;top:16px;right:20px;background:rgba(255,255,255,.15);border:none;border-radius:50%;width:44px;height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s;z-index:10000}
.lightbox-close:hover{background:rgba(255,255,255,.28)}
.lightbox-content{display:flex;flex-direction:column;align-items:center;gap:16px;max-width:90vw;max-height:90vh;animation:zoomIn .22s ease}
@keyframes zoomIn{from{transform:scale(.93);opacity:0}to{transform:scale(1);opacity:1}}
.lightbox-img{max-width:85vw;max-height:72vh;object-fit:contain;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.lightbox-title{color:#fff;font-size:1rem;font-weight:700;text-align:center}
.lightbox-whatsapp-btn{display:inline-flex;align-items:center;gap:8px;background:#25D366;color:#fff;font-weight:700;font-size:.95rem;padding:12px 28px;border-radius:50px;box-shadow:0 4px 16px rgba(37,211,102,.4);transition:transform .2s,box-shadow .2s}
.lightbox-whatsapp-btn:hover{transform:translateY(-2px);box-shadow:0 6px 22px rgba(37,211,102,.55)}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer{background:#1a1a1a;padding:20px 24px;margin-top:auto}
.footer-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.footer-copy{color:#888;font-size:.82rem}
.footer-copy a{color:#CC0000;font-weight:600}
.footer-whatsapp{display:inline-flex;align-items:center;gap:7px;background:#25D366;color:#fff;font-size:.82rem;font-weight:600;padding:7px 16px;border-radius:50px;transition:opacity .2s}
.footer-whatsapp:hover{opacity:.88}

/* ═══════════════════════════════════════
   LTR (English mode)
═══════════════════════════════════════ */
body.lang-en{direction:ltr}
body.lang-en .category-nav,
body.lang-en .tabs-container{direction:ltr}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media(max-width:900px){
  .products-grid{grid-template-columns:repeat(2,1fr)}
  .hero-slider{height:380px}
}
@media(max-width:600px){
  .site-topbar{padding:14px 14px 8px}
  .site-logo-link .custom-logo{max-height:52px}
  .logo-text{font-size:1.6rem}
  .lang-btn{font-size:.74rem}
  .tab-btn{font-size:.85rem;padding:7px 14px}
  .hero-slider{height:240px}
  .products-grid{grid-template-columns:repeat(2,1fr)}
  .product-title{font-size:.75rem}
  .whatsapp-btn{opacity:1;transform:scale(1);width:36px;height:36px;bottom:7px;left:7px}
  .lightbox-img{max-width:95vw;max-height:62vh}
  .featured-section{padding:24px 8px 36px}
  .footer-inner{flex-direction:column;text-align:center}
}
@media(max-width:380px){.products-grid{grid-template-columns:1fr}}
