:root{
  --brand:#1A3A6B;
  --brand-dark:#0f2a4f;
  --bg:#f7f8fa;
  --text:#222;
  --muted:#6b7280;
  --card:#fff;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-10: 60px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 10px rgba(0,0,0,.06);
  --shadow-lg: 0 18px 60px rgba(0,0,0,.14);
  --transition: 150ms ease;

  /* Reglaje rapide pentru mega menu */
  --header-h: 56px;     /* înălțimea vizuală a barei de sus */
  --mega-w: 820px;      /* lățimea panoului (760–900px după gust) */
  --mega-max-h: 520px;  /* înălțimea maximă a conținutului din panou */
}

/* =================== Base =================== */
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.5;overflow-x:hidden;width:100%;max-width:100vw}
a{color:inherit;text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:0 var(--space-4)}
.header{background:#fff;box-shadow:var(--shadow);position:sticky;top:0;z-index:50;overflow:visible}
.search{position:relative;z-index:51}
.btn-continue-shopping{
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--brand);
  color:#fff;
  font-weight:700;
  text-decoration:none;
  transition:background var(--transition);
  border:0;
  cursor:pointer;
}
.btn-continue-shopping:hover{
  background:var(--brand-dark);
}
.btn-cart-desktop{
  display:flex;
}
.btn-continue-shopping-mobile{
  display:none;
}
/* Mobile CTA Button */
.mobile-cta-wrapper{
  display:none;
}
.mobile-cta-button{
  display:flex;
  align-items:center;
  gap:var(--space-3);
  padding:var(--space-4) var(--space-5);
  background:linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color:#fff;
  text-decoration:none;
  border-radius:var(--radius-lg);
  box-shadow:0 4px 16px rgba(31,157,89,0.25), 0 2px 8px rgba(31,157,89,0.15);
  transition:transform var(--transition),box-shadow var(--transition);
  font-weight:700;
  position:relative;
  overflow:hidden;
}
.mobile-cta-button::before{
  content:'';
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition:left 0.5s ease;
}
.mobile-cta-button:hover::before,
.mobile-cta-button:active::before{
  left:100%;
}
.mobile-cta-button:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(31,157,89,0.3), 0 4px 12px rgba(31,157,89,0.2);
}
.mobile-cta-button:active{
  transform:translateY(0);
}
.mobile-cta-button svg:first-child{
  flex-shrink:0;
  width:24px;
  height:24px;
}
.mobile-cta-content{
  display:flex;
  flex-direction:column;
  gap:2px;
  flex:1;
  text-align:left;
}
.mobile-cta-text{
  font-size:15px;
  font-weight:700;
  line-height:1.3;
}
.mobile-cta-phone{
  font-size:13px;
  opacity:0.95;
  font-weight:600;
}
.mobile-cta-button svg:last-child{
  flex-shrink:0;
  width:20px;
  height:20px;
  opacity:0.8;
}
/* When mobile menu is open, header should stay below menu */
body:has(.mobile-menu.active) .header,
.mobile-menu.active ~ .header{
  z-index:100;
}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:var(--space-3) 0;gap:var(--space-3);min-height:var(--header-h);flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:var(--space-3);font-weight:800;font-size:20px;transition:opacity var(--transition)}
.brand:hover{opacity:0.8}
.brand .logo{width:36px;height:36px;border-radius:var(--radius);background:var(--brand);display:inline-block}
.brand .logo-img{width:auto;height:42px;max-width:120px;object-fit:contain;display:inline-block;flex-shrink:0;vertical-align:middle}
.langs{display:flex;gap:var(--space-2)}
.langs a{padding:6px 10px;border-radius:var(--radius);transition:background var(--transition)}
.langs a.active{background:var(--bg);font-weight:700}
.nav{display:flex;gap:var(--space-4);flex-wrap:wrap;align-items:center}
.nav a{padding:8px 10px;border-radius:var(--radius);transition:background var(--transition)}
.nav a:hover{background:var(--bg)}
.actions{display:flex;gap:var(--space-3);align-items:center;position:relative}
.btn{background:var(--brand);color:#fff;border:0;border-radius:var(--radius);padding:10px 14px;font-weight:700;cursor:pointer;transition:background var(--transition),transform 0.1s;font-size:14px}
.btn:hover{background:var(--brand-dark);transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn:focus{outline:2px solid var(--brand);outline-offset:2px}
.btn.sec{background:#111}
.btn.sec:hover{background:#333}
.btn.mini{padding:6px 12px;font-size:13px}
.search{
  position:relative;
  display:flex;
  gap:var(--space-2);
  align-items:center;
  flex:1;
  max-width:400px;
}
.search-icon{
  position:absolute;
  left:14px;
  color:var(--muted);
  pointer-events:none;
  z-index:1;
  flex-shrink:0;
}
.search input{
  flex:1;
  padding:10px var(--space-3) 10px 42px;
  border:1px solid #e5e7eb;
  border-radius:var(--radius);
  transition:border-color var(--transition),box-shadow var(--transition);
  font-size:14px;
  width:100%;
}
.search input:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(31,157,89,0.1);
}
.search input:focus + .search-icon,
.search input:not(:placeholder-shown) + .search-icon{
  color:var(--brand);
}
.auth-ui{display:inline-flex;align-items:center;gap:var(--space-2);font-size:14px}
.cart-wrapper{position:relative}
.btn-cart{position:relative;display:inline-flex;align-items:center;gap:var(--space-2)}
.btn-cart .cart-icon{display:inline-flex;align-items:center;justify-content:center}
.btn-cart .cart-icon svg{width:20px;height:20px;flex-shrink:0}
.cart-badge{display:inline-flex;align-items:center;justify-content:center;background:#ff4444;color:#fff;border-radius:10px;padding:2px 6px;font-size:0.75em;margin-left:4px;min-width:20px;height:20px;font-weight:700}

/* Cart Dropdown (Desktop) */
.cart-dropdown{
  position:absolute;
  top:calc(100% + 12px);
  right:0;
  width:380px;
  max-width:90vw;
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:0 8px 32px rgba(0,0,0,0.2);
  padding:0;
  opacity:0;
  visibility:hidden;
  transform:translateY(-12px) scale(0.95);
  transition:opacity 0.2s ease,visibility 0.2s ease,transform 0.2s ease;
  pointer-events:none;
  z-index:1000;
  border:1px solid #e5e7eb;
  max-height:80vh;
  display:flex;
  flex-direction:column;
}
.cart-wrapper:hover .cart-dropdown,
.cart-wrapper:focus-within .cart-dropdown,
.cart-dropdown.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
/* Delay mai mare pentru hover - doar desktop */
@media (min-width:768px){
  .social-btn{
    display:none !important;
  }
  .mobile-cta-inline{
    display:none !important;
  }
}
@media (min-width:1024px){
  .cart-dropdown{
    transition:opacity 0.2s ease 0.3s,visibility 0.2s ease 0.3s,transform 0.2s ease 0.3s;
  }
  .cart-wrapper:hover .cart-dropdown,
  .cart-wrapper:focus-within .cart-dropdown,
  .cart-dropdown.show{
    transition-delay:0s;
  }
}
.cart-dropdown-header{
  padding:var(--space-4) var(--space-5);
  border-bottom:1px solid #e5e7eb;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#f9fafb;
  border-radius:var(--radius-lg) var(--radius-lg) 0 0;
}
.cart-dropdown-header h3{
  margin:0;
  font-size:18px;
  font-weight:800;
  color:var(--text);
}
.cart-dropdown-count{
  background:var(--brand);
  color:#fff;
  padding:4px 10px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
}
.cart-dropdown-content{
  flex:1;
  overflow-y:auto;
  max-height:400px;
  padding:var(--space-3);
}
.cart-dropdown-empty{
  padding:var(--space-6);
  text-align:center;
}
.cart-dropdown-empty p{
  margin:0 0 var(--space-4) 0;
  color:var(--muted);
  font-size:15px;
}
.cart-dropdown-item{
  display:flex;
  gap:var(--space-3);
  padding:var(--space-3);
  border-radius:var(--radius);
  transition:background var(--transition);
  margin-bottom:var(--space-2);
  position:relative;
}
.cart-dropdown-item:hover{
  background:#f9fafb;
}
.cart-dropdown-item:last-child{
  margin-bottom:0;
}
.cart-dropdown-item-link{
  display:flex;
  gap:var(--space-3);
  flex:1;
  min-width:0;
  text-decoration:none;
  color:inherit;
  align-items:center;
}
.cart-dropdown-item-link:hover{
  text-decoration:none;
}
.cart-dropdown-item img{
  width:60px;
  height:60px;
  object-fit:cover;
  border-radius:var(--radius);
  flex-shrink:0;
  background:#f1f5f9;
}
.cart-dropdown-item-info{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.cart-dropdown-item-name{
  font-weight:600;
  font-size:14px;
  line-height:1.4;
  color:var(--text);
  display:-webkit-box;
  -webkit-line-clamp:2;
  line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  transition:color var(--transition);
}
.cart-dropdown-item-link:hover .cart-dropdown-item-name{
  color:var(--brand);
}
.cart-dropdown-item-details{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:var(--space-2);
}
.cart-dropdown-item-price{
  font-size:13px;
  color:var(--muted);
  display:flex;
  gap:6px;
  align-items:center;
}
.cart-dropdown-item-qty{
  display:flex;
  align-items:center;
  gap:6px;
  background:#f1f5f9;
  padding:4px 8px;
  border-radius:6px;
  font-size:13px;
  font-weight:600;
}
.cart-dropdown-item-total{
  font-weight:700;
  font-size:15px;
  color:var(--text);
}
.cart-dropdown-item-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
  align-self:flex-start;
  margin-top:2px;
}
.cart-dropdown-qty-btn{
  background:none;
  border:1px solid #e5e7eb;
  color:var(--muted);
  cursor:pointer;
  padding:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  transition:background var(--transition),color var(--transition),border-color var(--transition);
  width:28px;
  height:28px;
}
.cart-dropdown-qty-btn:hover{
  background:#f1f5f9;
  border-color:var(--brand);
  color:var(--brand);
}
.cart-dropdown-qty-btn:active{
  transform:scale(0.95);
}
.cart-dropdown-qty-value{
  font-weight:700;
  font-size:15px;
  color:var(--text);
  min-width:28px;
  text-align:center;
}
.cart-dropdown-footer{
  padding:var(--space-4) var(--space-5);
  border-top:2px solid #e5e7eb;
  background:#f9fafb;
  border-radius:0 0 var(--radius-lg) var(--radius-lg);
}
.cart-dropdown-total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:var(--space-4);
  padding-bottom:var(--space-4);
  border-bottom:1px solid #e5e7eb;
}
.cart-dropdown-total span:first-child{
  font-size:16px;
  font-weight:600;
  color:var(--text);
}
.cart-dropdown-total-price{
  font-size:20px;
  font-weight:800;
  color:var(--brand);
}
.btn-block{
  width:100%;
  display:block;
  text-align:center;
  padding:12px 16px;
  font-size:15px;
  font-weight:700;
}
/* Hide dropdown on mobile */
@media (max-width:1023px){
  .cart-dropdown{
    display:none !important;
  }
}

/* =================== Cart Notification Toast =================== */
.cart-notification{
  position:fixed;
  bottom:var(--space-4);
  left:50%;
  transform:translateX(-50%) translateY(100px);
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:0 8px 32px rgba(0,0,0,0.2);
  padding:0;
  z-index:10000;
  opacity:0;
  visibility:hidden;
  transition:opacity 0.3s ease,visibility 0.3s ease,transform 0.3s ease;
  max-width:450px;
  width:calc(100% - var(--space-4) * 2);
  border:1px solid #e5e7eb;
  display:flex;
  align-items:center;
}
.cart-notification.show{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
}
.cart-notification-link{
  flex:1;
  text-decoration:none;
  color:inherit;
  display:block;
  cursor:pointer;
  transition:opacity 0.2s ease,transform 0.2s ease;
}
.cart-notification-link:hover{
  opacity:0.9;
  transform:scale(0.98);
}
.cart-notification-link:active{
  transform:scale(0.96);
}
.cart-notification-content{
  display:flex;
  align-items:center;
  gap:var(--space-5);
  padding:var(--space-6) var(--space-7);
}
.cart-notification-icon{
  width:48px;
  height:48px;
  border-radius:50%;
  background:var(--brand);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:800;
  flex-shrink:0;
}
.cart-notification-text{
  flex:1;
  min-width:0;
}
.cart-notification-title{
  font-weight:700;
  font-size:16px;
  color:var(--text);
  margin-bottom:4px;
}
.cart-notification-product{
  font-size:14px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.cart-notification-close{
  background:none;
  border:none;
  color:var(--muted);
  cursor:pointer;
  padding:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--radius);
  transition:background var(--transition),color var(--transition);
  flex-shrink:0;
  width:32px;
  height:32px;
  position:relative;
  z-index:10;
  margin-right:var(--space-2);
}
.cart-notification-close:hover{
  background:#f1f5f9;
  color:var(--text);
}
.cart-notification-close svg{
  width:18px;
  height:18px;
}

/* =================== Floating Contact Buttons =================== */
.floating-contact-buttons{
  position:fixed;
  right:var(--space-4);
  bottom:var(--space-4);
  display:flex;
  flex-direction:column;
  gap:var(--space-3);
  z-index:9998;
  pointer-events:none;
}
.floating-btn{
  width:64px;
  height:64px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 16px rgba(0,0,0,0.2);
  transition:transform var(--transition),box-shadow var(--transition);
  pointer-events:auto;
  text-decoration:none;
  color:#fff;
  position:relative;
}
.floating-btn:hover{
  transform:translateY(-2px) scale(1.05);
  box-shadow:0 6px 20px rgba(0,0,0,0.3);
}
.floating-btn:active{
  transform:translateY(0) scale(0.95);
}
.floating-btn-whatsapp{
  background:#25D366;
}
.floating-btn-whatsapp:hover{
  background:#20BA5A;
}
.floating-btn-viber{
  background:#10b981;
}
.floating-btn-viber:hover{
  background:#059669;
}
.floating-btn svg{
  width:32px;
  height:32px;
  flex-shrink:0;
}
@media (max-width:767px){
  .cart-notification{
    width:calc(100vw - 32px);
    max-width:400px;
    bottom:var(--space-3);
  }
  .cart-notification-content{
    padding:var(--space-4) var(--space-5);
    gap:var(--space-4);
  }
  .cart-notification-title{
    font-size:15px;
  }
  .cart-notification-product{
    font-size:13px;
  }
  .cart-notification-icon{
    width:40px;
    height:40px;
    font-size:20px;
  }
  .floating-contact-buttons{
    right:var(--space-3);
    bottom:var(--space-3);
  }
  .floating-btn{
    width:60px;
    height:60px;
  }
  .floating-btn svg{
    width:28px;
    height:28px;
  }
}

/* =================== Hero & grids =================== */
.hero{
  background:linear-gradient(135deg, rgba(26,58,107,0.85) 0%, rgba(15,42,79,0.85) 100%);
  padding:var(--space-4) 0;
  color:#fff;
  position:relative;
}
.hero::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:url('./uploads/chr 1.jpeg') center/cover no-repeat;
  z-index:-1;
  opacity:0.3;
}
.hero .wrap{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:var(--space-6);
  align-items:center;
  padding:var(--space-6) var(--space-4);
  max-width:1200px;
  margin:0 auto;
}
.hero h1{
  margin:0 0 var(--space-3) 0;
  font-size:34px;
  font-weight:800;
  line-height:1.2;
  color:#fff;
  padding:0 var(--space-4);
}
.hero p{
  color:rgba(255,255,255,0.9);
  margin:0 0 var(--space-4) 0;
  font-size:16px;
  line-height:1.6;
  padding:0 var(--space-4);
}
.hero .wrap > div:first-child{
  padding:0 var(--space-4);
}
.hero .wrap > div:first-child .small{
  padding:0 var(--space-4);
  text-align:left;
}
.hero .banner{
  width:100%;
  border-radius:var(--radius-lg);
  background:transparent;
  aspect-ratio:4/3;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:none;
  overflow:hidden;
  position:relative;
  padding:0;
}
.hero .banner img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  max-width:100%;
  border-radius:var(--radius-lg);
}
.hero .banner::before{
  display:none;
}

.section{
  padding:var(--space-6) 0;
}
.cart-title{
  margin:0 0 var(--space-4) 0;
  padding:0 var(--space-4);
  font-size:28px;
  font-weight:800;
}
.sec-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:var(--space-4);
  gap:var(--space-3);
}
.sec-title h2{
  font-size:28px;
  font-weight:800;
  margin:0;
  color:var(--text);
}
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:var(--space-4);
}
@media (max-width:640px){
  .grid{
    grid-template-columns:repeat(2,1fr);
    gap:var(--space-3);
  }
}
@media (min-width:641px) and (max-width:1023px){
  .grid{
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:var(--space-3);
  }
}

.card{background:#fff;border-radius:14px;box-shadow:0 2px 10px rgba(0,0,0,.06);overflow:hidden;display:flex;flex-direction:column}
.card img{width:100%;height:170px;object-fit:cover;background:#f1f5f9}
.card .p{padding:12px}
.price{font-weight:800}
.badge{background:#ecfdf5;color:#047857;padding:6px 10px;border-radius:999px;font-size:12px}

.catbar{
  display:flex;
  gap:var(--space-3);
  overflow-x:auto;
  padding-bottom:var(--space-2);
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.catbar::-webkit-scrollbar{
  height:4px;
}
.catbar::-webkit-scrollbar-thumb{
  background:#ddd;
  border-radius:2px;
}
.catbar a{
  background:#fff;
  border-radius:999px;
  padding:10px 16px;
  white-space:nowrap;
  border:1px solid #e5e7eb;
  font-size:14px;
  font-weight:600;
  transition:all var(--transition);
  flex-shrink:0;
}
.catbar a:hover{
  border-color:var(--brand);
  color:var(--brand);
}
.catbar a.active{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}

.footer{
  margin-top:20px;
  background:transparent;
  border-top:none;
  padding:var(--space-4) 0;
}
.footer-card{
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:0 2px 10px rgba(0,0,0,0.06);
  margin:0 var(--space-4);
  padding:var(--space-6);
}
.footer-content{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:20px;
}
.footer-links{
  background:var(--bg);
  padding:var(--space-4) 0;
  border-top:1px solid #e5e7eb;
  margin-top:var(--space-4);
}
.footer-links .container{
  text-align:center;
}
.footer-logo{
  height:32px;
  object-fit:contain;
  display:block;
  margin:8px auto;
}
.footer-links a{
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  margin:0 var(--space-2);
  transition:color var(--transition);
}
.footer-links a:hover{
  color:var(--brand);
}
.footer-links .separator{
  color:var(--muted);
  margin:0 var(--space-2);
}
.small{color:var(--muted);font-size:13px}

/* =================== Cart Footer Styles (Applied to all pages) =================== */
.cart-footer{
  background:linear-gradient(135deg, #f7f8fa 0%, #e5e7eb 100%);
  margin-top:var(--space-8);
  padding:var(--space-10) 0 var(--space-6) 0;
  border-top:3px solid var(--brand);
}
.cart-footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:var(--space-6);
  margin-bottom:var(--space-8);
  margin-top:var(--space-6);
}
.cart-footer-section{
  background:#fff;
  padding:var(--space-6);
  border-radius:var(--radius-lg);
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
  transition:transform var(--transition),box-shadow var(--transition);
  display:flex;
  flex-direction:column;
}
.cart-footer-section:hover{
  transform:translateY(-4px);
  box-shadow:0 4px 16px rgba(0,0,0,0.12);
}
.cart-footer-icon{
  width:48px;
  height:48px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:var(--space-4);
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  flex-shrink:0;
}
.cart-footer-icon svg{
  width:20px;
  height:20px;
}
.cart-footer-section h3{
  font-size:18px;
  font-weight:800;
  margin:0 0 var(--space-3) 0;
  color:var(--text);
  line-height:1.3;
}
.cart-footer-section p{
  font-size:14px;
  line-height:1.7;
  color:var(--muted);
  margin:0 0 var(--space-2) 0;
}
.cart-footer-section p:last-child{
  margin-bottom:0;
}
.cart-footer-link{
  display:inline-block;
  padding:6px 12px;
  border-radius:var(--radius);
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  transition:opacity var(--transition),transform var(--transition);
}
.cart-footer-link:hover{
  opacity:0.9;
  transform:translateY(-1px);
}
.cart-footer-bottom{
  text-align:center;
  padding-top:var(--space-6);
  border-top:2px solid #e5e7eb;
  margin-top:var(--space-6);
}
.cart-footer-links{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:var(--space-3);
  flex-wrap:wrap;
  margin-bottom:var(--space-4);
}
.cart-footer-links a{
  color:var(--text);
  text-decoration:none;
  font-size:15px;
  font-weight:600;
  transition:color var(--transition);
  padding:4px 8px;
}
.cart-footer-links a:hover{
  color:var(--brand);
}
.cart-footer-links .separator{
  color:var(--muted);
  font-size:14px;
}
.cart-footer-copyright{
  color:var(--muted);
  font-size:14px;
  margin:0;
}
@media (max-width:768px){
  .cart-footer-grid{
    grid-template-columns:1fr;
    gap:var(--space-4);
  }
  .cart-footer{
    padding:var(--space-6) 0 var(--space-4) 0;
  }
}

@media (max-width:900px){
  .hero .wrap{grid-template-columns:1fr}
  .search input{min-width:unset;width:100%}
  .footer-content{grid-template-columns:1fr;gap:var(--space-5)}
  .footer-card{
    margin:0 var(--space-4);
    padding:var(--space-6);
  }
}

.table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.06)}
.table th,.table td{padding:12px;border-bottom:1px solid #eee;text-align:left}
.table td img{display:block;max-width:100%;height:auto}
.cart-image{
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:12px;
  display:block;
}
.cart-image-link{
  display:block;
}
.qty{width:90px}
.breadcrumbs{font-size:14px;color:var(--muted);margin:10px 0}
.product{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.product img{width:100%;border-radius:14px;background:#f1f5f9}
@media(max-width:900px){.product{grid-template-columns:1fr}}

/* =================== Mega Catalog – structură de bază =================== */
.header .container{position:relative}
.catalog{position:relative;z-index:30}

/* butonul Catalog */
.catalog-toggle{
  display:flex;align-items:center;gap:.5rem;
  padding:.6rem .9rem;border-radius:12px;border:1px solid #e6e6e6;
  background:#fff;cursor:pointer;font-weight:700
}
.catalog-toggle .dot{width:6px;height:6px;border-radius:50%;background:#666;display:inline-block}
.catalog-toggle .chev{margin-left:.25rem;opacity:.7}
.catalog-toggle:focus{outline:2px solid #2026ff22}

/* =================== Mega Catalog – COMPACT & CENTRAT =================== */
/* Panoul: centrat sub header, nu acoperă pagina */
#catalogMenu.mega{
  position:fixed;
  top:calc(var(--header-h) + 8px);
  left:50%;
  width:var(--mega-w);
  max-width:calc(100vw - 32px);
  transform:translate(-50%,6px);
  background:#fff;border:1px solid #eee;border-radius:16px;
  box-shadow:0 18px 60px rgba(0,0,0,.14);
  opacity:0;pointer-events:none;
  transition:opacity .08s ease, transform .08s ease;
  z-index:9999;font-size:16px;line-height:1.35
}
#catalogMenu.mega.open{opacity:1;pointer-events:auto;transform:translate(-50%,0)}

/* Layout intern + limită de înălțime + scroll pe coloane */
#catalogMenu .mega-wrap{
  display:grid;
  grid-template-columns:220px 1fr;          /* stânga mai îngustă */
  min-height:320px;
  max-height:min(var(--mega-max-h), calc(100vh - (var(--header-h) + 40px)));
  overflow:hidden;border-radius:16px
}
#catalogMenu .mega-left,
#catalogMenu .mega-right{overflow:auto;overscroll-behavior:contain}

/* Stânga (categorii) compact */
#catalogMenu .mega-left{background:#fafafa;border-right:1px solid #eee;padding:4px 0}
#catalogMenu .mega-cat{display:block;padding:12px 14px;font-weight:800;font-size:17px;line-height:1.25;color:#1c1c1c}
#catalogMenu .mega-cat small{display:block;margin-top:4px;font-weight:400;color:#666;font-size:13px}
#catalogMenu .mega-cat.active,#catalogMenu .mega-cat:hover{background:#fff}

/* Dreapta (subcategorii) 2×N */
#catalogMenu .mega-right{padding:16px 18px;background:#fff}
#catalogMenu .mega-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}

/* Tile subcategorie compact */
#catalogMenu .mega-item{
  display:flex;align-items:center;gap:10px;
  padding:8px 10px;border:0;background:#fff;color:#111;border-radius:14px
}
#catalogMenu .mega-item:hover{box-shadow:none}
#catalogMenu .mega-item img{width:48px;height:48px;border-radius:10px;object-fit:cover;flex:0 0 48px}
#catalogMenu .mega-item .t{font-weight:800;font-size:18px;line-height:1.2;margin:0}
#catalogMenu .mega-item .s{font-size:13px;color:#666}

/* Scrollbars discrete (opțional) */
#catalogMenu .mega-left::-webkit-scrollbar,
#catalogMenu .mega-right::-webkit-scrollbar{width:8px;height:8px}
#catalogMenu .mega-left::-webkit-scrollbar-thumb,
#catalogMenu .mega-right::-webkit-scrollbar-thumb{background:#d6d6d6;border-radius:8px}
#catalogMenu .mega-left::-webkit-scrollbar-thumb:hover,
#catalogMenu .mega-right::-webkit-scrollbar-thumb:hover{background:#c1c1c1}

/* Responsive */
@media (max-width:960px){
  :root{--mega-w:760px}
  #catalogMenu .mega-grid{grid-template-columns:1fr}
}
@media (max-height:700px){
  :root{--mega-max-h:460px}
}

/* =================== Search Autocomplete =================== */
.ta-panel{
  position:absolute;left:0;right:0;top:calc(100% + 8px);
  background:#fff;border-radius:18px;border:1px solid #eee;
  box-shadow:0 18px 60px rgba(0,0,0,.14);
  max-height:min(520px, calc(100vh - 220px));
  overflow:auto;display:none;z-index:1001;
  width:100%;
}
.ta-panel.open{display:block}

.ta-item{
  display:flex;align-items:center;gap:14px;
  padding:14px 18px;border-bottom:1px solid #f2f2f2;cursor:pointer
}
.ta-item:last-child{border-bottom:0}
.ta-item:hover,.ta-item[aria-selected="true"]{background:#fafafa}

.ta-thumb{width:64px;height:64px;border-radius:12px;object-fit:cover;background:#f1f5f9;flex:0 0 64px}
.ta-title{font-weight:700;line-height:1.25}
.ta-price{color:#6b7280;font-size:14px;margin-top:4px}

.ta-footer{
  padding:12px 18px;color:#148047;font-weight:700;text-align:left;
  background:#fff;position:sticky;bottom:0;border-top:1px solid #eee
}
.ta-empty{padding:14px 18px;color:#6b7280}

/* ===== Sidebar filtre ===== */
.catalog-layout{
  display:grid; grid-template-columns:280px 1fr; gap:22px;
}
@media (max-width: 980px){
  .catalog-layout{ 
    grid-template-columns:1fr;
    gap:var(--space-4);
  }
  .filters{
    position:static;
    max-height:none;
    margin-bottom:var(--space-4);
  }
}

.filters{
  background:#fff; border:1px solid #eee; border-radius:16px;
  padding:var(--space-4); box-shadow:0 2px 10px rgba(0,0,0,.04);
  position:sticky; top:calc(var(--header-h,56px) + 12px); align-self:start;
  max-height: calc(100vh - (var(--header-h,56px) + 24px)); overflow:auto;
}
.filters-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:var(--space-4);
  padding-bottom:var(--space-3);
  border-bottom:2px solid var(--brand);
}
.filters-title{ 
  margin:0; 
  font-size:20px; 
  font-weight:800;
  color:var(--text);
}
.filters-close-btn{
  display:none;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  padding:0;
  border:none;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  border-radius:var(--radius);
  transition:background var(--transition),color var(--transition);
  flex-shrink:0;
}
.filters-close-btn:hover{
  background:#f0f2f4;
  color:var(--brand);
}
.filters-close-btn svg{
  width:20px;
  height:20px;
}
.filters-toggle-btn{
  display:none;
  align-items:center;
  gap:var(--space-2);
  padding:12px 16px;
  margin:var(--space-4) auto;
  background:var(--brand);
  color:#fff;
  border:none;
  border-radius:var(--radius);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition:background var(--transition),transform var(--transition);
  width:fit-content;
  max-width:200px;
  justify-content:center;
}
.filters-toggle-btn:hover{
  background:var(--brand-dark);
  transform:translateY(-1px);
}
.filters-toggle-btn:active{
  transform:translateY(0);
}
.filters-toggle-btn svg{
  width:20px;
  height:20px;
  flex-shrink:0;
}
.filters-block{ 
  padding:var(--space-4) 0; 
  border-top:1px solid #f0f2f4;
}
.filters-block:first-of-type{ border-top:0 }
.filters-head{ 
  font-weight:800; 
  font-size:15px;
  margin:0 0 var(--space-3) 0;
  color:var(--text);
}
.filters-list{ 
  display:flex; 
  flex-direction:column;
  gap:var(--space-2); 
  max-height:200px; 
  overflow-y:auto; 
  padding-right:6px;
}

.chk{ 
  display:flex; 
  align-items:center; 
  gap:var(--space-2); 
  cursor:pointer; 
  user-select:none;
  padding:6px 0;
  transition:color var(--transition);
}
.chk:hover{
  color:var(--brand);
}
.chk input{ 
  width:18px; 
  height:18px; 
  accent-color:var(--brand);
  cursor:pointer;
  flex-shrink:0;
}
.chk span{
  font-size:14px;
  line-height:1.4;
}

.price-filter-wrapper{
  display:flex;
  flex-direction:column;
  gap:var(--space-3);
}
.price-row{ 
  display:flex; 
  align-items:center; 
  gap:var(--space-3);
  width:100%;
}
.price-row input{ 
  flex:1;
  padding:12px 14px; 
  border:1px solid #e5e7eb; 
  border-radius:var(--radius);
  font-size:14px;
  font-weight:500;
  transition:border-color var(--transition),box-shadow var(--transition);
  min-width:0;
}
.price-row input:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(31,157,89,0.1);
}
.price-row input::placeholder{
  color:#9ca3af;
  font-weight:400;
}
.price-row .dash{ 
  color:var(--muted);
  font-weight:700;
  font-size:16px;
  flex-shrink:0;
  padding:0 4px;
}
.price-apply-btn{
  width:100%;
  padding:12px 16px;
  font-weight:700;
  font-size:14px;
  background:var(--brand);
  color:#fff;
  border:none;
  border-radius:var(--radius);
  cursor:pointer;
  transition:background var(--transition),transform var(--transition);
}
.price-apply-btn:hover{
  background:var(--brand-dark);
  transform:translateY(-1px);
}
.price-apply-btn:active{
  transform:translateY(0);
}
.btn.mini{ 
  padding:10px 16px; 
  border-radius:var(--radius); 
  font-weight:700; 
  font-size:14px;
  transition:all var(--transition);
}

.filter-select{
  width:100%;
  padding:10px 12px;
  border:1px solid #e5e7eb;
  border-radius:var(--radius);
  font-size:14px;
  background:#fff;
  cursor:pointer;
  transition:border-color var(--transition),box-shadow var(--transition);
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  padding-right:36px;
}
.filter-select:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(31,157,89,0.1);
}

.range{ position:relative; height:32px; margin-top:10px }
.range input[type="range"]{
  position:absolute; left:0; right:0; top:8px; width:100%;
  -webkit-appearance:none; appearance:none; background:transparent; pointer-events:none;
}
.range input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none; width:18px; height:18px; border-radius:50%;
  background:var(--brand); box-shadow:0 0 0 3px #fff; border:1px solid #d6d6d6; pointer-events:auto; cursor:pointer;
}
.range input[type="range"]::-webkit-slider-runnable-track{
  height:4px; background:linear-gradient(90deg,#e5e7eb 0 100%); border-radius:999px;
}
.filters-actions{ 
  margin-top:var(--space-4); 
  padding-top:var(--space-4);
  border-top:1px solid #f0f2f4;
  display:flex; 
  gap:8px;
}

/* mic retuș pentru grid lângă sidebar */
.catalog-content .grid{ margin-top:6px }

/* =================== Live Bar =================== */
.live-bar{
  background:var(--brand);
  color:#fff;
  text-align:center;
  padding:8px var(--space-4);
  font-size:13px;
  font-weight:600;
  position:relative;
  z-index:40;
  transition:opacity var(--transition);
}
.live-bar:hover{opacity:0.9}

/* =================== Mini Cart =================== */
.mini-cart{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  width:320px;
  max-width:90vw;
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  padding:var(--space-4);
  display:none;
  flex-direction:column;
  gap:var(--space-3);
  z-index:100;
  max-height:400px;
}
.mini-cart.open{display:flex}

/* Mini Cart Overlay (mobile) */
.mini-cart-overlay{
  display:none;
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,0.5);
  z-index:9997;
  opacity:0;
  transition:opacity 0.3s ease;
  pointer-events:none;
}
.mini-cart-overlay.active{
  display:block;
  opacity:1;
  pointer-events:auto;
}

.mini-cart-list{
  max-height:200px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:var(--space-2);
  -webkit-overflow-scrolling:touch;
}
.mini-cart-item{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding:var(--space-2);
  font-size:14px;
  gap:var(--space-2);
  border-bottom:1px solid #f0f0f0;
  position:relative;
}
.mini-cart-item:last-child{
  border-bottom:none;
}
.mini-cart-item-link{
  display:flex;
  gap:var(--space-3);
  flex:1;
  min-width:0;
  text-decoration:none;
  color:inherit;
  align-items:center;
}
.mini-cart-item-link:hover{
  text-decoration:none;
}
.mini-cart-item-link:hover > div > div:first-child{
  color:var(--brand);
}
.mini-cart-item-link img,
.mini-cart-item-image{
  width:60px;
  height:60px;
  object-fit:cover;
  border-radius:var(--radius);
  flex-shrink:0;
  background:#f1f5f9;
  display:block;
}
.mini-cart-item-controls{
  display:flex;
  align-items:center;
  gap:6px;
  flex-shrink:0;
}
.mini-cart-qty-btn{
  background:none;
  border:1px solid #e5e7eb;
  color:var(--muted);
  cursor:pointer;
  padding:4px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  transition:background var(--transition),color var(--transition),border-color var(--transition);
}
.mini-cart-qty-btn:hover{
  background:#f1f5f9;
  border-color:var(--brand);
  color:var(--brand);
}
.mini-cart-qty-btn:active{
  transform:scale(0.95);
}
.mini-cart-empty{
  text-align:center;
  color:var(--muted);
  padding:var(--space-4);
}
.mini-cart-footer{
  border-top:1px solid #eee;
  padding-top:var(--space-3);
  display:flex;
  flex-direction:column;
  gap:var(--space-2);
}
.mini-cart-total{
  font-weight:700;
  font-size:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.mini-cart-total span{
  font-size:20px;
  color:var(--brand);
}

/* =================== Product Cards =================== */
.product-card{
  transition:transform var(--transition),box-shadow var(--transition);
  position:relative;
  cursor:pointer;
}
.product-card:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 20px rgba(0,0,0,.1);
}
.product-actions{
  position:relative;
  z-index:2;
}
.product-actions a,
.product-actions button{
  position:relative;
  z-index:3;
}
.product-image-wrapper{
  position:relative;
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#f1f5f9;
  display:flex;
  align-items:center;
  justify-content:center;
}
.product-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transition:transform var(--transition);
  display:block;
}
.product-card:hover img{
  transform:scale(1.05);
}
/* Fallback pentru imagini care nu se încarcă */
.product-card img[src=""],
.product-card img:not([src]){
  opacity:0;
}
.product-badge{
  position:absolute;
  top:var(--space-2);
  right:var(--space-2);
  background:rgba(0,0,0,0.8);
  color:#fff;
  padding:4px 8px;
  border-radius:var(--radius);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
}
.product-badge.out-of-stock{background:#b00020}
.product-badge.low-stock{background:#ff9800}
.product-title{
  font-size:16px;
  font-weight:700;
  margin:0 0 var(--space-2) 0;
  line-height:1.3;
}
.product-category{
  font-size:12px;
  color:var(--muted);
  margin-bottom:var(--space-2);
}
.product-actions{
  display:flex;
  gap:var(--space-2);
  margin-top:var(--space-3);
}
.product-actions .btn{
  flex:1;
}

/* =================== Skeleton Loaders =================== */
.skeleton-loader{
  animation:pulse 1.5s ease-in-out infinite;
  background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);
  background-size:200% 100%;
  border-radius:var(--radius);
  height:40px;
}
@keyframes pulse{
  0%{background-position:200% 0}
  100%{background-position:-200% 0}
}

/* =================== Empty States =================== */
.empty-state{
  text-align:center;
  padding:var(--space-6) var(--space-4);
  color:var(--muted);
}
.empty-state p{
  margin-bottom:var(--space-4);
  font-size:16px;
}
.error-state{
  text-align:center;
  padding:var(--space-6) var(--space-4);
  color:#b00020;
}

/* =================== Cookies Banner =================== */
.cookies-banner{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:#fff;
  border-top:1px solid #eee;
  padding:var(--space-4);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-4);
  box-shadow:0 -2px 10px rgba(0,0,0,.1);
  z-index:1000;
  max-width:100%;
}
.cookies-banner p{
  margin:0;
  flex:1;
  font-size:14px;
}

/* =================== Mobile Menu =================== */
.mobile-menu-toggle{
  display:none !important;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
  justify-content:center;
  align-items:center;
  width:44px;
  height:44px;
  border-radius:var(--radius);
  transition:background var(--transition);
  flex-shrink:0;
  position:relative;
  z-index:100;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  pointer-events:auto;
}
.mobile-menu.active ~ .header .mobile-menu-toggle,
.mobile-menu.active ~ * .mobile-menu-toggle{
  z-index:100;
}
.mobile-menu-toggle:hover{
  background:#f9fafb;
}
.mobile-menu-toggle:active{
  background:#e5e7eb;
}
.mobile-menu-toggle span{
  width:24px;
  height:3px;
  background:var(--text);
  border-radius:2px;
  transition:all 0.3s ease;
  display:block;
  pointer-events:none;
}
.mobile-menu-toggle.active span:nth-child(1){
  transform:rotate(45deg) translate(7px, 7px);
}
.mobile-menu-toggle.active span:nth-child(2){
  opacity:0;
}
.mobile-menu-toggle.active span:nth-child(3){
  transform:rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay{
  display:none;
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,0.5);
  z-index:9998;
  opacity:0;
  transition:opacity 0.3s ease;
  pointer-events:none;
}
.mobile-menu-overlay.active{
  display:block;
  opacity:1;
  pointer-events:auto;
}

/* Mobile Menu Drawer */
.mobile-menu{
  position:fixed;
  top:0;
  left:0;
  width:85%;
  max-width:320px;
  height:100vh;
  background:#fff;
  z-index:9999;
  transform:translateX(-100%);
  transition:transform 0.3s ease;
  box-shadow:2px 0 12px rgba(0,0,0,0.15);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.mobile-menu.active{
  transform:translateX(0);
}
/* Ensure header stays below menu when menu is open */
.mobile-menu.active ~ .header,
body:has(.mobile-menu.active) .header{
  z-index:100;
}

.mobile-menu-header{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:var(--space-4);
  border-bottom:1px solid #e5e7eb;
  background:var(--brand);
  color:#fff;
  min-height:60px;
}
.mobile-menu-header h2{
  display:none;
}
.mobile-menu-close-top{
  position:absolute;
  top:var(--space-4);
  right:var(--space-4);
  background:#fff;
  border:2px solid var(--brand);
  color:var(--brand);
  cursor:pointer;
  padding:8px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all var(--transition);
  width:40px;
  height:40px;
  z-index:10;
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
}
.mobile-menu-close-top:hover{
  background:var(--brand);
  color:#fff;
  transform:scale(1.1);
}
.mobile-menu-close-top:active{
  transform:scale(0.95);
}
.mobile-menu-close{
  display:none;
}

.mobile-menu-content{
  flex:1;
  overflow-y:auto;
  padding:var(--space-4);
  padding-top:var(--space-5);
  -webkit-overflow-scrolling:touch;
  position:relative;
  z-index:1;
}

.mobile-menu-link{
  display:flex;
  align-items:center;
  gap:var(--space-3);
  padding:var(--space-4);
  color:var(--text);
  text-decoration:none;
  font-size:16px;
  font-weight:600;
  border-bottom:1px solid #f0f2f4;
  transition:background var(--transition),color var(--transition);
  background:none;
  border-left:none;
  border-right:none;
  border-top:none;
  width:100%;
  text-align:left;
  cursor:pointer;
}
.mobile-menu-link:hover,
.mobile-menu-link:active{
  background:#f9fafb;
  color:var(--brand);
}
.mobile-menu-link .chevron{
  margin-left:auto;
  transition:transform var(--transition);
  flex-shrink:0;
}
.mobile-menu-link.active .chevron{
  transform:rotate(90deg);
}

.mobile-menu-item{
  border-bottom:1px solid #f0f2f4;
}

.mobile-submenu{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.3s ease;
  background:#f9fafb;
}
.mobile-submenu.active{
  max-height:5000px;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
.mobile-submenu .mobile-menu-link{
  padding-left:var(--space-8);
  font-size:15px;
  font-weight:500;
  border-bottom:1px solid #e5e7eb;
}

/* Mobile Catalog Menu Styles */
.mobile-catalog-category{
  border-bottom:1px solid #e5e7eb;
  padding:var(--space-3) 0;
}
.mobile-catalog-category:last-child{
  border-bottom:none;
}
.mobile-catalog-category-header{
  padding:var(--space-3) var(--space-4);
  font-size:16px;
  font-weight:800;
  color:var(--text);
  background:#fff;
  border-bottom:2px solid var(--brand);
  margin-bottom:var(--space-2);
}
.mobile-catalog-products{
  display:flex;
  flex-direction:column;
  gap:var(--space-2);
  padding:0 var(--space-4);
}
.mobile-catalog-product{
  display:flex;
  align-items:center;
  gap:var(--space-3);
  padding:var(--space-3);
  background:#fff;
  border-radius:var(--radius);
  border:1px solid #e5e7eb;
  text-decoration:none;
  color:var(--text);
  transition:all var(--transition);
}
.mobile-catalog-product:hover,
.mobile-catalog-product:active{
  background:#f9fafb;
  border-color:var(--brand);
  transform:translateX(4px);
}
.mobile-catalog-product img{
  width:60px;
  height:60px;
  object-fit:cover;
  border-radius:var(--radius);
  flex-shrink:0;
}
.mobile-catalog-product-title{
  font-size:14px;
  font-weight:600;
  color:var(--text);
  margin-bottom:4px;
  line-height:1.3;
}
.mobile-catalog-product-price{
  font-size:13px;
  font-weight:700;
  color:var(--brand);
}
.mobile-catalog-more{
  display:block;
  padding:var(--space-3) var(--space-4);
  text-align:center;
  color:var(--brand);
  font-weight:700;
  font-size:14px;
  text-decoration:none;
  border-top:1px solid #e5e7eb;
  margin-top:var(--space-2);
  transition:color var(--transition);
}
.mobile-catalog-more:hover,
.mobile-catalog-more:active{
  color:var(--brand-dark);
}

.mobile-menu-divider{
  height:1px;
  background:#e5e7eb;
  margin:var(--space-3) 0;
}

.mobile-menu-label{
  padding:var(--space-4);
  font-size:14px;
  font-weight:700;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:0.5px;
}

.langs-mobile{
  padding:var(--space-4);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-3);
}
.langs-mobile .langs{
  display:flex;
  gap:var(--space-2);
}
.langs-mobile .langs a{
  padding:8px 12px;
  border-radius:var(--radius);
  background:#f0f2f4;
  color:var(--text);
  font-weight:600;
  transition:all var(--transition);
}
.langs-mobile .langs a.active{
  background:var(--brand);
  color:#fff;
}

/* =================== Responsive =================== */
@media (max-width:1023px){
  .container{
    padding:0 var(--space-3);
  }
  .header{
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
  }
  .topbar{
    flex-wrap:wrap;
    gap:var(--space-3);
    padding:var(--space-3) 0;
    align-items:center;
  }
  /* Prima linie: Brand + Cart */
  .brand{
    font-size:18px;
    flex:1;
    min-width:0;
    order:1;
  }
  .brand .logo{
    width:36px;
    height:36px;
  }
  .brand .logo-img{
    height:36px;
    max-width:100px;
  }
  .actions{
    display:flex;
    gap:var(--space-2);
    align-items:center;
    flex-shrink:0;
    order:2;
  }
  .langs{
    display:none; /* Ascundem language selector pe mobile */
  }
  .auth-ui{
    display:none; /* Ascundem login pe mobile */
  }
  .cart-wrapper{
    order:2;
    margin-left:auto;
    margin-right:auto;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
  }
  .btn-cart{
    padding:8px;
    min-width:44px !important;
    max-width:44px !important;
    width:44px !important;
    height:44px !important;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    position:relative;
    border-radius:var(--radius);
    flex-shrink:0 !important;
    flex-grow:0 !important;
    background:var(--brand);
    color:#fff;
  }
  .mobile-cta-inline{
    display:none !important;
  }
  .social-btn{
    display:none !important;
  }
  .btn-cart .cart-text{
    display:none;
  }
  .btn-cart .cart-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1;
  }
  .btn-cart .cart-icon svg{
    width:20px;
    height:20px;
    flex-shrink:0;
    stroke:#fff;
  }
  .btn-cart .cart-badge{
    font-size:0.65em;
    padding:1px 5px;
    min-width:18px;
    height:18px;
    position:absolute;
    top:-4px;
    right:-4px;
    margin:0;
  }
  .mobile-menu-toggle{
    display:flex !important;
    order:-1;
    margin-right:var(--space-2);
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
    z-index:100 !important;
  }
  /* When menu is open, ensure toggle doesn't overlap menu content */
  .mobile-menu.active ~ .header .mobile-menu-toggle{
    z-index:100 !important;
  }
  /* A doua linie: Search */
  .search{
    order:3;
    width:100%;
    max-width:100%;
    flex:1 1 100%;
    margin:0;
    position:relative;
    z-index:1001;
  }
  .mobile-cta-wrapper{
    display:none !important;
  }
  .actions{
    order:2;
    display:flex;
    gap:var(--space-2);
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width:100%;
    margin-left:0;
    margin-right:0;
    padding:0 var(--space-4);
  }
  .actions .btn{
    width:100%;
    text-align:center;
    justify-content:center;
  }
  .btn-continue-shopping-mobile{
    width:100%;
    margin:0;
  }
  .mobile-cta-inline{
    display:flex !important;
    padding:8px 12px;
    min-width:auto;
    width:auto;
    height:44px;
    gap:var(--space-2);
    border-radius:var(--radius);
    flex-shrink:0;
    margin-left:0;
  }
  .mobile-cta-inline svg{
    width:18px;
    height:18px;
    flex-shrink:0;
  }
  .mobile-cta-inline .mobile-cta-content{
    display:flex;
    flex-direction:column;
    gap:1px;
    text-align:left;
  }
  .mobile-cta-inline .mobile-cta-text{
    font-size:11px;
    line-height:1.2;
    white-space:nowrap;
  }
  .mobile-cta-inline .mobile-cta-phone{
    font-size:10px;
    line-height:1.2;
  }
  .social-btn{
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    min-width:44px;
    padding:0;
    background:var(--brand);
    color:#fff;
    border-radius:var(--radius);
    text-decoration:none;
    transition:background var(--transition),transform var(--transition);
    flex-shrink:0;
    flex-grow:0;
  }
  .social-btn:hover,
  .social-btn:active{
    background:var(--brand-dark);
    transform:translateY(-1px);
  }
  .social-btn svg{
    width:20px;
    height:20px;
    flex-shrink:0;
  }
  .btn-cart-desktop{
    display:none !important;
  }
  .btn-continue-shopping-mobile{
    display:flex !important;
    padding:10px 14px;
    border-radius:var(--radius);
    margin:0;
  }
  .search-icon{
    left:14px;
    width:20px;
    height:20px;
  }
  .search input{
    font-size:15px;
    padding:12px var(--space-4) 12px 44px;
    border-radius:var(--radius);
    width:100%;
  }
  .ta-panel{
    z-index:1002;
    position:fixed;
    top:auto;
    left:0;
    right:0;
    bottom:0;
    width:100%;
    max-height:calc(100vh - 120px);
    border-radius:var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow:0 -4px 24px rgba(0,0,0,0.15), 0 -2px 8px rgba(0,0,0,0.1);
    border:1px solid #e5e7eb;
    border-bottom:none;
  }
  .ta-item{
    padding:16px;
    gap:16px;
  }
  .ta-thumb{
    width:80px;
    height:80px;
    border-radius:var(--radius);
  }
  .ta-title{
    font-size:15px;
    line-height:1.4;
  }
  .ta-price{
    font-size:16px;
    font-weight:700;
    color:var(--brand);
    margin-top:6px;
  }
  .ta-footer{
    padding:16px;
    font-weight:600;
    text-align:center;
    border-top:1px solid #e5e7eb;
    display:block;
    color:var(--brand);
  }
  /* Ascunde navigația desktop pe mobile */
  .nav{
    display:none !important;
  }
  .hero .wrap{
    padding:var(--space-4) 0;
  }
  .section{
    padding:var(--space-4) 0;
  }
}

@media (max-width:767px){
  /* Cart table mobile layout */
  .cart-table-wrapper{
    overflow-x:visible;
    -webkit-overflow-scrolling:touch;
    width:100%;
  }
  .table{
    min-width:auto;
    width:100%;
    display:block;
  }
  .table thead{
    display:none;
  }
  .table tbody tr{
    display:block;
    margin-bottom:var(--space-3);
    background:#fff;
    border-radius:var(--radius-lg);
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
    padding:var(--space-3);
    border:1px solid #e5e7eb;
    width:100%;
    box-sizing:border-box;
  }
  .table tbody td{
    display:flex;
    align-items:center;
    padding:var(--space-2) 0;
    border-bottom:1px solid #f1f5f9;
    text-align:left !important;
    width:100%;
    box-sizing:border-box;
  }
  .table tbody td:last-child{
    border-bottom:none;
  }
  .table tbody td:before{
    content:attr(data-label);
    font-weight:700;
    color:var(--text);
    min-width:80px;
    margin-right:var(--space-3);
    font-size:14px;
  }
  .table tbody td:first-child:before{
    content:'';
    display:none;
  }
  .table tbody td:first-child{
    justify-content:center;
    padding:var(--space-3) 0;
    border-bottom:1px solid #e5e7eb;
  }
  .cart-image{
    width:70px;
    height:70px;
  }
  .table tbody td:nth-child(2){
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    padding-top:var(--space-3);
    padding-bottom:var(--space-3);
  }
  .table tbody td:nth-child(2) a{
    font-size:15px;
    line-height:1.4;
    word-break:break-word;
    font-weight:700;
    color:var(--text);
    display:block;
    width:100%;
    max-width:100%;
  }
  .table tbody td:nth-child(3):before{
    content:'Preț:';
  }
  .table tbody td:nth-child(3){
    font-weight:800;
    font-size:17px;
    color:var(--brand);
    padding-top:var(--space-2);
    padding-bottom:var(--space-2);
  }
  .table tbody td:nth-child(4):before{
    content:'Cantitate:';
  }
  .table tbody td:nth-child(4){
    justify-content:flex-start;
    padding-top:var(--space-2);
    padding-bottom:var(--space-2);
  }
  .table tbody td:nth-child(4) .qty{
    width:100%;
    max-width:120px;
    padding:var(--space-2);
    font-size:15px;
    font-weight:600;
    border:2px solid var(--brand);
    border-radius:var(--radius);
  }
  .table tbody td:nth-child(5):before{
    content:'';
    display:none;
  }
  .table tbody td:nth-child(5){
    justify-content:flex-start;
    padding-top:var(--space-3);
    padding-bottom:0;
    border-bottom:none !important;
  }
  .table tbody td:nth-child(5) .btn{
    width:100%;
    max-width:none;
    padding:var(--space-2) var(--space-4);
    font-size:14px;
    font-weight:700;
  }
  .cart-summary{
    text-align:center !important;
    margin-top:var(--space-4) !important;
    padding:var(--space-3);
    background:#f9fafb;
    border-radius:var(--radius-lg);
    font-size:18px !important;
  }
  .cart-title{
    font-size:22px;
    margin-bottom:var(--space-3);
    text-align:center;
    padding:0 var(--space-2) !important;
  }
  .table tbody td:first-child{
    padding:var(--space-2) 0;
  }
  .table tbody td:nth-child(2){
    padding-top:var(--space-2);
    padding-bottom:var(--space-2);
  }
  /* Prevent horizontal scroll on mobile */
  html,body{
    overflow-x:hidden;
    width:100%;
    max-width:100vw;
    position:relative;
  }
  *{
    max-width:100%;
  }
  .container{
    padding:0 var(--space-4);
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }
  /* Product page - more spacing on mobile */
  .product{
    padding:0 var(--space-4); /* Add horizontal padding for product content */
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }
  .product-gallery,
  .product-info{
    padding:0;
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }
  .product-gallery img{
    width:100%;
    max-width:100%;
    height:auto;
  }
  .product-thumbnails{
    width:100%;
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .product-thumbnails img{
    width:auto;
    max-width:80px;
    height:80px;
    object-fit:cover;
  }
  .breadcrumbs{
    padding:0 var(--space-4); /* Spacing for breadcrumbs */
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }
  .related-products-section{
    padding:0 var(--space-4); /* Spacing for related products */
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }
  .related-products-wrapper{
    position:relative;
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scroll-behavior:smooth;
    scrollbar-width:thin;
    scrollbar-color:var(--brand) transparent;
    padding-bottom:var(--space-2);
  }
  .related-products-wrapper::-webkit-scrollbar{
    height:4px;
  }
  .related-products-wrapper::-webkit-scrollbar-track{
    background:transparent;
  }
  .related-products-wrapper::-webkit-scrollbar-thumb{
    background:var(--brand);
    border-radius:2px;
  }
  .related-products-grid{
    display:flex;
    gap:var(--space-4);
    padding:var(--space-2) 0;
    width:max-content;
    min-width:100%;
  }
  .related-product-card{
    flex:0 0 180px;
    background:#fff;
    border-radius:var(--radius-lg);
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
    transition:transform var(--transition),box-shadow var(--transition);
    text-decoration:none;
    color:inherit;
    display:flex;
    flex-direction:column;
  }
  .related-product-card:active{
    transform:scale(0.98);
  }
  .related-product-image-wrapper{
    width:100%;
    aspect-ratio:4/3;
    overflow:hidden;
    background:#f1f5f9;
    position:relative;
  }
  .related-product-image-wrapper img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }
  .related-product-info{
    padding:var(--space-3);
    display:flex;
    flex-direction:column;
    gap:var(--space-2);
    flex:1;
  }
  .related-product-title{
    font-size:13px;
    font-weight:600;
    line-height:1.4;
    margin:0;
    color:var(--text);
    display:-webkit-box;
    -webkit-line-clamp:3;
    line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:3.6em;
  }
  .related-product-price{
    font-size:16px;
    font-weight:800;
    color:var(--brand);
    margin-top:auto;
  }
  .related-product-badge{
    font-size:11px;
    padding:4px 8px;
    border-radius:4px;
    background:#fee2e2;
    color:#dc2626;
    font-weight:600;
    width:fit-content;
  }
  /* Prevent all images and media from causing horizontal scroll */
  img,video,iframe{
    max-width:100%;
    height:auto;
  }
  /* Ensure all cards and containers fit */
  .card,.grid{
    width:100%;
    max-width:100%;
  }
  /* Fix tables and other wide elements */
  table{
    width:100%;
    max-width:100%;
    table-layout:fixed;
  }
  .cart-title{
    padding:0 var(--space-4);
  }
  .live-bar{
    font-size:11px;
    padding:10px var(--space-4);
    margin-bottom:0;
  }
  .header{
    box-shadow:0 2px 12px rgba(0,0,0,0.1);
  }
  .topbar{
    padding:var(--space-4) 0;
    min-height:auto;
    gap:var(--space-4);
  }
  .brand{
    font-size:18px;
    gap:var(--space-3);
    font-weight:800;
  }
  .brand .logo{
    width:40px;
    height:40px;
    flex-shrink:0;
  }
  .actions{
    gap:var(--space-3);
  }
  .btn-cart{
    padding:8px;
    min-width:44px;
    width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    position:relative;
    border-radius:var(--radius);
  }
  .btn-cart .cart-text{
    display:none;
  }
  .btn-cart .cart-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1;
  }
  .btn-cart .cart-icon svg{
    width:20px;
    height:20px;
    flex-shrink:0;
  }
  .btn-cart .cart-badge{
    font-size:0.65em;
    padding:1px 5px;
    min-width:18px;
    height:18px;
  }
  .mobile-menu-toggle{
    width:44px;
    height:44px;
  }
  .mobile-menu-toggle span{
    width:24px;
    height:3px;
  }
  .search{
    margin-top:var(--space-2);
  }
  .search input{
    font-size:16px;
    padding:14px var(--space-4) 14px 48px;
    border-radius:var(--radius-lg);
    border-width:1.5px;
    min-height:48px;
  }
  .search-icon{
    left:16px;
    width:22px;
    height:22px;
  }
  .nav{
    padding:var(--space-4) 0;
    gap:var(--space-3);
    margin-top:var(--space-3);
  }
  .nav a,
  .nav .catalog{
    padding:var(--space-4);
    font-size:16px;
    border-width:1.5px;
    border-radius:var(--radius-lg);
    min-height:48px;
    display:flex;
    align-items:center;
  }
  .catalog-toggle{
    padding:var(--space-4);
    min-height:48px;
  }
  .hero{
    padding:var(--space-6) 0;
  }
  .hero .wrap{
    grid-template-columns:1fr;
    gap:var(--space-6);
    padding:var(--space-5) var(--space-4);
  }
  .hero h1{
    font-size:24px;
    line-height:1.4;
    margin-bottom:var(--space-4);
    padding:0 var(--space-4);
    text-align:center;
    color:#fff;
  }
  .hero p{
    font-size:15px;
    line-height:1.6;
    margin-bottom:var(--space-4);
    padding:0 var(--space-4);
    text-align:center;
    color:rgba(255,255,255,0.9);
  }
  .hero .wrap > div:first-child{
    padding:0 var(--space-4);
    text-align:center;
  }
  .hero .wrap > div:first-child .small{
    text-align:center;
    padding:0;
    color:rgba(255,255,255,0.9);
  }
  .hero .banner{
    aspect-ratio:16/9;
    border-radius:var(--radius-lg);
    margin-top:var(--space-2);
    padding:0;
    background:transparent;
    order:2;
  }
  .hero .banner img{
    width:100%;
    height:100%;
    object-fit:cover;
    max-width:100%;
    border-radius:var(--radius-lg);
  }
  .hero .wrap > div:first-child{
    order:1;
  }
  .section{
    padding:var(--space-6) 0;
  }
  .sec-title{
    flex-direction:column;
    align-items:flex-start;
    gap:var(--space-3);
    margin-bottom:var(--space-5);
    padding-bottom:var(--space-3);
    border-bottom:1px solid #e5e7eb;
  }
  .sec-title h2{
    font-size:22px;
    margin:0;
  }
  .features-grid{
    grid-template-columns:1fr;
    gap:var(--space-3);
  }
  @media (min-width:768px) and (max-width:1023px){
    .features-grid{
      grid-template-columns:repeat(2,1fr);
    }
  }
  .reviews-grid{
    grid-template-columns:1fr;
  }
  .section-title{
    font-size:24px;
  }
  .catalog-layout{
    grid-template-columns:1fr;
  }
  .filters{
    position:static;
    max-height:none;
  }
  .filters.hidden{
    display:none;
  }
  .filters-close-btn{
    display:flex;
  }
  .filters-toggle-btn{
    display:flex;
  }
  .search{
    order:3;
    max-width:100%;
    flex:1;
    min-width:0;
    width:100%;
    margin:var(--space-2) 0;
    position:relative;
    z-index:1001;
  }
  .actions{
    order:4;
    width:100%;
    margin-top:var(--space-2);
  }
  .actions .btn{
    width:100%;
    text-align:center;
    justify-content:center;
  }
  .ta-panel{
    z-index:1002;
    position:fixed;
    top:auto;
    left:0;
    right:0;
    bottom:0;
    width:100%;
    max-height:calc(100vh - 120px);
    border-radius:var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow:0 -4px 24px rgba(0,0,0,0.15), 0 -2px 8px rgba(0,0,0,0.1);
    border:1px solid #e5e7eb;
    border-bottom:none;
  }
  .ta-item{
    padding:16px;
    gap:16px;
  }
  .ta-thumb{
    width:80px;
    height:80px;
    border-radius:var(--radius);
  }
  .ta-title{
    font-size:15px;
    line-height:1.4;
  }
  .ta-price{
    font-size:16px;
    font-weight:700;
    color:var(--brand);
    margin-top:6px;
  }
  .ta-footer{
    padding:16px;
    font-weight:600;
    text-align:center;
    border-top:1px solid #e5e7eb;
    display:block;
    color:var(--brand);
  }
  .search-icon{
    left:14px;
    width:20px;
    height:20px;
  }
  .search input{
    font-size:16px;
    padding:14px var(--space-4) 14px 48px;
    border-radius:var(--radius-lg);
    border-width:1.5px;
  }
  .grid{
    grid-template-columns:repeat(2,1fr);
    gap:var(--space-4);
  }
  .product-card{
    border-radius:var(--radius-lg);
    border:1px solid #f0f2f4;
    overflow:hidden;
  }
  .product-image-wrapper{
    aspect-ratio:4/3;
  }
  .product-title{
    font-size:15px;
    line-height:1.4;
    margin-bottom:var(--space-2);
  }
  .product-card .p{
    padding:var(--space-4);
  }
  .product-actions{
    flex-direction:column;
    gap:var(--space-3);
    margin-top:var(--space-3);
  }
  .product-actions .btn{
    width:100%;
    font-size:14px;
    padding:12px 16px;
    border-radius:var(--radius);
  }
  .catbar{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    padding:var(--space-2) 0 var(--space-3) 0;
    gap:var(--space-3);
    margin-bottom:var(--space-4);
  }
  .catbar::-webkit-scrollbar{
    height:4px;
  }
  .catbar::-webkit-scrollbar-thumb{
    background:#ddd;
    border-radius:2px;
  }
  .catbar a{
    white-space:nowrap;
    font-size:14px;
    padding:10px 16px;
    border-width:1.5px;
    border-radius:var(--radius-lg);
  }
  .filters{
    position:static;
    max-height:none;
    margin-bottom:var(--space-6);
    padding:var(--space-6) var(--space-6); /* Increased horizontal padding for more space from border */
    border-radius:var(--radius-lg);
    border-width:1.5px;
  }
  .filters-header{
    margin-bottom:var(--space-5);
    padding-bottom:var(--space-4);
  }
  .filters-title{
    font-size:20px;
  }
  .filters-block{
    padding:var(--space-5) 0; /* Increased padding between blocks */
    border-top-width:1.5px;
  }
  .filters-head{
    font-size:15px;
    margin-bottom:var(--space-4); /* Increased margin below heading */
    font-weight:800;
  }
  .price-filter-wrapper{
    gap:var(--space-3);
  }
  .price-row{
    gap:var(--space-3);
  }
  .price-row input{
    padding:12px 14px;
    font-size:15px;
    border-width:1.5px;
    border-radius:var(--radius);
  }
  .price-apply-btn{
    padding:12px 16px;
    font-size:15px;
    border-radius:var(--radius);
  }
  .filter-select{
    padding:12px 14px;
    font-size:15px;
    border-width:1.5px;
    border-radius:var(--radius);
  }
  .chk{
    padding:8px 0;
    gap:var(--space-3);
  }
  .chk input{
    width:20px;
    height:20px;
  }
  .chk span{
    font-size:15px;
  }
  .filters-actions{
    margin-top:var(--space-5);
    padding-top:var(--space-5); /* Increased padding */
    border-top-width:1.5px;
  }
  .filters-list{
    gap:var(--space-3); /* Increased gap between filter items */
  }
  .price-filter-wrapper{
    gap:var(--space-3); /* Increased gap in price filter */
  }
  .filters-toggle-btn{
    margin-bottom:var(--space-5);
    padding:14px 18px;
    font-size:15px;
    border-radius:var(--radius-lg);
  }
  .features-grid{
    grid-template-columns:1fr;
    gap:var(--space-4);
    max-width:100%;
  }
  .feature-card{
    padding:var(--space-5);
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    box-shadow:0 2px 10px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
    border:1px solid rgba(0,0,0,0.05);
    position:relative;
  }
  .feature-card::before{
    height:3px;
  }
  .feature-card::after{
    display:none;
  }
  .feature-card:active{
    transform:translateY(-2px);
    box-shadow:0 4px 16px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.08);
  }
  .feature-icon{
    width:56px;
    height:56px;
    margin-bottom:var(--space-3);
    box-shadow:0 3px 12px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.08);
  }
  .feature-icon svg{
    width:28px;
    height:28px;
  }
  .feature-card:active .feature-icon{
    transform:scale(1.02);
  }
  .feature-card h3{
    font-size:16px;
    margin-bottom:var(--space-2);
    text-align:center;
    position:relative;
    z-index:1;
  }
  .feature-card p{
    font-size:13px;
    text-align:center;
    line-height:1.5;
    position:relative;
    z-index:1;
  }
  .reviews-grid{
    grid-template-columns:1fr;
    gap:var(--space-3);
  }
  .review-card{
    padding:var(--space-4);
  }
  .section-title{
    font-size:22px;
    margin-bottom:var(--space-4);
  }
  .footer .cols{
    grid-template-columns:1fr;
    gap:var(--space-4);
    padding:var(--space-4) 0;
  }
  /* Mini Cart Mobile Styles */
  .mini-cart-overlay{
    display:block;
  }
  .mini-cart{
    position:fixed;
    top:auto;
    bottom:var(--space-4);
    left:var(--space-4);
    right:var(--space-4);
    width:calc(100% - var(--space-4) * 2);
    max-width:calc(100% - var(--space-4) * 2);
    max-height:85vh;
    border-radius:var(--radius-lg);
    box-shadow:0 -4px 20px rgba(0,0,0,0.15);
    padding:var(--space-6);
    z-index:9998;
    transform:translateY(calc(100% + var(--space-4)));
    transition:transform 0.3s ease;
  }
  .mini-cart.open{
    transform:translateY(0);
  }
  .mini-cart-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:var(--space-5);
    padding-bottom:var(--space-4);
    border-bottom:2px solid var(--brand);
  }
  .mini-cart-header h3{
    margin:0;
    font-size:20px;
    font-weight:800;
    color:var(--text);
  }
  .mini-cart-close{
    background:none;
    border:none;
    padding:8px;
    cursor:pointer;
    color:var(--text);
    border-radius:var(--radius);
    display:flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    transition:background var(--transition);
  }
  .mini-cart-close:hover{
    background:#f0f2f4;
  }
  .mini-cart-list{
    max-height:calc(85vh - 250px);
    padding:var(--space-3) 0;
  }
  .mini-cart-item{
    padding:var(--space-4);
    border-bottom:1px solid #e5e7eb;
    border-radius:var(--radius);
    margin-bottom:var(--space-3);
    background:#f9fafb;
  }
  .mini-cart-item:last-child{
    margin-bottom:0;
  }
  .mini-cart-footer{
    padding-top:var(--space-5);
    margin-top:var(--space-4);
    border-top:2px solid #e5e7eb;
  }
  .mini-cart-total{
    font-size:18px;
    margin-bottom:var(--space-3);
  }
  .mini-cart-total span{
    font-size:24px;
  }
  .mini-cart-footer .btn{
    width:100%;
    padding:14px 20px;
    font-size:16px;
    font-weight:700;
    border-radius:var(--radius-lg);
    min-height:52px;
  }
  .cookies-banner{
    flex-direction:column;
    align-items:stretch;
    padding:var(--space-3);
    gap:var(--space-2);
  }
  .cookies-banner p{
    font-size:13px;
  }
  #catalogMenu.mega{
    left:var(--space-3);
    right:var(--space-3);
    width:auto;
    max-width:none;
    transform:translate(0,6px);
  }
  #catalogMenu.mega.open{
    transform:translate(0,0);
  }
}

/* =================== Accessibility =================== */
*:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:2px;
}
button:disabled,.btn:disabled{
  opacity:0.5;
  cursor:not-allowed;
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* =================== Search Highlight =================== */
mark{
  background:#fff3cd;
  color:var(--text);
  padding:0 2px;
  border-radius:2px;
}
.ta-item.highlighted{
  background:var(--bg);
}

/* =================== Form Styles =================== */
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--space-4);
  margin-top:var(--space-4);
}
.form-group{
  display:flex;
  flex-direction:column;
  gap:var(--space-2);
}
.form-group label{
  font-weight:700;
  font-size:14px;
  color:var(--text);
}
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group textarea,
.form-group select{
  padding:10px var(--space-3);
  border:1px solid #e5e7eb;
  border-radius:var(--radius);
  font-size:14px;
  font-family:inherit;
  transition:border-color var(--transition),box-shadow var(--transition);
  background:#fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(31,157,89,0.1);
}
.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled{
  background:#f5f5f5;
  cursor:not-allowed;
}

/* =================== Cart Table =================== */
.cart-table-wrapper{
  overflow-x:auto;
}
.table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.table th{
  background:var(--bg);
  font-weight:700;
  text-align:left;
  padding:var(--space-3);
  border-bottom:2px solid #eee;
}
.table td{
  padding:var(--space-3);
  border-bottom:1px solid #eee;
}
.table tr:last-child td{
  border-bottom:0;
}
.table .qty{
  width:80px;
  padding:6px;
  border:1px solid #e5e7eb;
  border-radius:var(--radius);
  text-align:center;
}

/* =================== Breadcrumbs =================== */
.breadcrumbs{
  font-size:14px;
  color:var(--muted);
  margin:var(--space-4) 0;
}
.breadcrumbs a{
  color:var(--brand);
  text-decoration:underline;
}
.breadcrumbs a:hover{
  color:var(--brand-dark);
}

/* =================== Product Gallery =================== */
.product-gallery{
  display:flex;
  flex-direction:column;
  gap:var(--space-3);
}
.product-gallery img{
  width:100%;
  border-radius:var(--radius-lg);
  background:#f1f5f9;
  aspect-ratio:4/3;
  object-fit:cover;
}
.product-thumbnails{
  display:flex;
  gap:var(--space-2);
  overflow-x:auto;
  padding:var(--space-2) 0;
}
.product-thumbnails .thumbnail{
  width:80px;
  height:80px;
  border-radius:var(--radius);
  object-fit:cover;
  cursor:pointer;
  border:2px solid transparent;
  transition:border-color var(--transition);
  flex-shrink:0;
}
.product-thumbnails .thumbnail:hover,
.product-thumbnails .thumbnail.active{
  border-color:var(--brand);
}

/* =================== Checkout Response =================== */
.checkout-response{
  padding:var(--space-3);
  border-radius:var(--radius);
  font-size:14px;
}
.checkout-response.success{
  background:#e8f5e9;
  color:#2e7d32;
}
.checkout-response.error{
  background:#ffebee;
  color:#b00020;
}

/* Feature Highlights */
.features-highlights{
  background:var(--bg);
  padding:var(--space-6) 0;
}
.features-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--space-4);
  max-width:900px;
  margin:0 auto;
}
.feature-card{
  background:#fff;
  padding:var(--space-6);
  border-radius:var(--radius-lg);
  text-align:center;
  box-shadow:0 2px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  transition:transform 0.3s ease,box-shadow 0.3s ease,background 0.3s ease;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.04);
}
.feature-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:linear-gradient(90deg, rgba(31,157,89,0.1) 0%, rgba(31,157,89,0.05) 100%);
  border-radius:var(--radius-lg) var(--radius-lg) 0 0;
}
.feature-card:nth-child(1)::before{
  background:linear-gradient(90deg, rgba(16,185,129,0.2) 0%, rgba(5,150,105,0.1) 100%);
}
.feature-card:nth-child(2)::before{
  background:linear-gradient(90deg, rgba(139,92,246,0.2) 0%, rgba(124,58,237,0.1) 100%);
}
.feature-card:nth-child(3)::before{
  background:linear-gradient(90deg, rgba(236,72,153,0.2) 0%, rgba(219,39,119,0.1) 100%);
}
.feature-card::after{
  content:'';
  position:absolute;
  top:-50%;
  right:-50%;
  width:200%;
  height:200%;
  background:radial-gradient(circle, rgba(31,157,89,0.03) 0%, transparent 70%);
  opacity:0;
  transition:opacity 0.3s ease;
  pointer-events:none;
}
.feature-card:hover{
  transform:translateY(-6px);
  box-shadow:0 8px 24px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.08);
  background:linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}
.feature-card:hover::after{
  opacity:1;
}
.feature-icon{
  width:64px;
  height:64px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto var(--space-4);
  box-shadow:0 4px 16px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
  transition:transform 0.3s ease,box-shadow 0.3s ease;
  position:relative;
  z-index:1;
}
.feature-card:hover .feature-icon{
  transform:scale(1.05) translateY(-2px);
  box-shadow:0 6px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.1);
}
.feature-card h3{
  font-size:18px;
  font-weight:700;
  margin:0 0 var(--space-2) 0;
  color:var(--text);
  position:relative;
  z-index:1;
}
.feature-card p{
  font-size:14px;
  color:var(--muted);
  margin:0;
  line-height:1.5;
  position:relative;
  z-index:1;
}

/* Reviews Section */
.reviews-section{
  background:#fff;
  padding:var(--space-6) 0;
}
.section-title{
  text-align:center;
  font-size:28px;
  font-weight:800;
  margin:0 0 var(--space-6) 0;
  color:var(--text);
}
.reviews-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:var(--space-4);
  max-width:1200px;
  margin:0 auto;
}
.review-card{
  background:var(--bg);
  padding:var(--space-5);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  transition:transform var(--transition),box-shadow var(--transition);
}
.review-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-lg);
}
.review-header{
  display:flex;
  gap:var(--space-3);
  margin-bottom:var(--space-4);
  align-items:flex-start;
}
.review-avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:700;
  font-size:20px;
  flex-shrink:0;
  box-shadow:0 2px 8px rgba(0,0,0,0.15);
}
.review-info{
  flex:1;
}
.review-name{
  font-weight:700;
  font-size:16px;
  color:var(--text);
  margin-bottom:4px;
}
.review-stars{
  color:#fbbf24;
  font-size:16px;
  letter-spacing:2px;
  margin-bottom:4px;
}
.review-date{
  font-size:12px;
  color:var(--muted);
}
.review-text{
  font-size:14px;
  line-height:1.6;
  color:var(--text);
  margin:0;
}
