*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{--primary:#e84600;--primary-dark:#c03b00;--text:#1a1a1a;--text-muted:#666;--bg:#fafaf8;--card-bg:#fff;--border:#e5e5e0;--radius:12px}
body{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;background:var(--bg);color:var(--text);line-height:1.6}
a{color:inherit;text-decoration:none}img{max-width:100%;display:block}
.container{max-width:1100px;margin:0 auto;padding:0 1.5rem}
header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.95);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);padding:0 1.5rem}
.header-inner{max-width:1100px;margin:0 auto;height:64px;display:flex;align-items:center;justify-content:space-between;gap:1.5rem}
.logo{font-size:1.4rem;font-weight:700;color:var(--primary);text-decoration:none}
.header-nav{display:flex;gap:1.5rem;flex:1;justify-content:center}
.header-nav a{font-size:.9rem;font-weight:500;color:var(--text-muted);transition:color .2s}
.header-nav a:hover{color:var(--primary)}
.cart-btn{background:none;border:2px solid var(--border);border-radius:999px;padding:.5rem 1rem;cursor:pointer;font-size:1rem;transition:border-color .2s}
.cart-btn:hover{border-color:var(--primary)}
.hero{background:linear-gradient(135deg,#1a1a1a 0%,#3d1500 100%);color:white;text-align:center;padding:6rem 1.5rem}
.hero-content{max-width:640px;margin:0 auto}
.hero h1{font-size:clamp(1.8rem,4vw,3rem);margin-bottom:1rem;line-height:1.2}
.hero p{font-size:1.05rem;opacity:.85;margin-bottom:2rem;line-height:1.7}
.hero-cta{display:inline-block;background:var(--primary);color:white;padding:.875rem 2rem;border-radius:10px;font-weight:700;font-size:1rem;transition:background .2s}
.hero-cta:hover{background:var(--primary-dark)}
.benefits{padding:4rem 1.5rem;background:white;border-bottom:1px solid var(--border)}
.benefits-grid{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:2rem;text-align:center}
.benefit-icon{font-size:2.5rem;margin-bottom:.75rem}
.benefit h3{font-size:1.1rem;margin-bottom:.5rem}
.benefit p{font-size:.9rem;color:var(--text-muted)}
.products{padding:4rem 0}
.products h2{font-size:1.6rem;margin-bottom:2rem}
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem}
.product-card{background:var(--card-bg);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:transform .2s,box-shadow .2s}
.product-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(0,0,0,.08)}
.product-image{aspect-ratio:4/3;overflow:hidden;background:#f0ede8}
.product-image img{width:100%;height:100%;object-fit:cover}
.product-info{padding:1.25rem}
.product-info h3{font-size:1rem;margin-bottom:.5rem}
.product-info p{font-size:.875rem;color:var(--text-muted);line-height:1.5;margin-bottom:1rem}
.product-footer{display:flex;align-items:center;justify-content:space-between}
.price{font-size:1.2rem;font-weight:700;color:var(--primary)}
.product-footer button{background:var(--primary);color:white;border:none;padding:.6rem 1rem;border-radius:8px;cursor:pointer;font-size:.875rem;font-weight:600;transition:background .2s}
.product-footer button:hover{background:var(--primary-dark)}
.about{padding:4rem 1.5rem;background:white;border-top:1px solid var(--border)}
.about h2{font-size:1.6rem;margin-bottom:1rem}
.about p{font-size:1rem;color:var(--text-muted);line-height:1.8;max-width:720px}
.cart-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:200}
.cart-overlay.open{display:block}
.cart{position:fixed;right:0;top:0;bottom:0;width:min(420px,100vw);background:white;z-index:300;transform:translateX(100%);transition:transform .3s ease;display:flex;flex-direction:column}
.cart.open{transform:translateX(0)}
.cart-header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;border-bottom:1px solid var(--border)}
.cart-header h3{font-size:1.1rem}
.cart-header button{background:none;border:none;font-size:1.2rem;cursor:pointer;padding:.25rem}
#cart-items{flex:1;overflow-y:auto;padding:1rem 1.5rem}
.cart-empty{color:var(--text-muted);text-align:center;margin-top:2rem}
.cart-item{display:flex;gap:1rem;align-items:center;padding:.875rem 0;border-bottom:1px solid var(--border)}
.cart-item img{width:60px;height:60px;object-fit:cover;border-radius:8px;background:#f0ede8}
.cart-item-info{flex:1}
.cart-item-name{font-size:.875rem;font-weight:600;display:block}
.cart-item-price{font-size:.875rem;color:var(--primary)}
.cart-item-qty{display:flex;align-items:center;gap:.5rem}
.cart-item-qty button{width:28px;height:28px;border:1px solid var(--border);background:none;border-radius:6px;cursor:pointer;font-size:1rem}
.cart-item-qty button:hover{border-color:var(--primary);color:var(--primary)}
.cart-footer{padding:1.25rem 1.5rem;border-top:1px solid var(--border)}
.cart-total{display:flex;justify-content:space-between;margin-bottom:1rem;font-size:1rem}
.checkout-btn{width:100%;background:var(--primary);color:white;border:none;padding:1rem;border-radius:10px;font-size:1rem;font-weight:700;cursor:pointer;transition:background .2s;margin-bottom:.875rem}
.checkout-btn:hover:not(:disabled){background:var(--primary-dark)}
.checkout-btn:disabled{opacity:.6;cursor:not-allowed}
.payment-icons{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap}
.payment-icons img{height:24px;opacity:.7}
footer{border-top:1px solid var(--border);text-align:center;padding:2rem 1.5rem;font-size:.875rem;color:var(--text-muted)}
footer a{color:var(--primary)}
.message-page{text-align:center;padding:6rem 1.5rem}
.message-icon{font-size:4rem;margin-bottom:1rem}
.message-page h1{margin-bottom:1rem}
.message-page p{color:var(--text-muted);margin-bottom:2rem}
.btn-primary{display:inline-block;background:var(--primary);color:white;padding:.875rem 2rem;border-radius:10px;text-decoration:none;font-weight:700;transition:background .2s}
.btn-primary:hover{background:var(--primary-dark)}
.lang-switcher{display:flex;gap:4px;align-items:center;margin-right:12px}
.lang-btn{background:none;border:1px solid #ddd;border-radius:6px;padding:3px 8px;font-size:.78rem;font-weight:600;cursor:pointer;color:#555;transition:all .2s}
.lang-btn:hover{border-color:#e84600;color:#e84600}
.lang-btn.active{background:#e84600;border-color:#e84600;color:white}
.header-right{display:flex;align-items:center}
@media(max-width:640px){.header-nav{display:none}.hero{padding:4rem 1.5rem}.products-grid{grid-template-columns:1fr}}

.cart-items, #cart-items, #shipping-panel, .cart-footer {
  padding-left: 16px;
  padding-right: 16px;
}

/* Targetes de producte alineades */
.product-card {
  display: flex;
  flex-direction: column;
}
.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-info p {
  flex: 1;
}
.product-footer {
  margin-top: auto;
}
.product-image img,
.gallery-main img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fafafa;
}
.product-image {
  height: 220px;
  background: #fafafa;
  border-radius: 8px;
  overflow: hidden;
}
.gallery-thumbs {
  min-height: 76px;
}

.thumb-video {
  width: 60px; height: 60px; background: #1a1a1a; border-radius: 6px;
  cursor: pointer; border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem;
  transition: border-color .2s, opacity .2s; opacity: 0.7; flex-shrink: 0;
}
.thumb-video:hover { opacity: 1; }
.thumb-video.active { border-color: #e84600; opacity: 1; }
