/* Yellow theme variables */
:root{
  --theme: #f2b705; /* primary yellow */
  --theme-dark: #e0a500;
  --muted: #777;
  --bg: #fff;
  --dark-footer: #222224;
  --container: 1180px;
  --radius: 6px;
}

*{box-sizing:border-box}
body{font-family:'Poppins',sans-serif;margin:0;background:var(--bg);color:#222}
.container{max-width:var(--container);margin:0 auto;padding:0 20px}

/* Topbar */
.topbar{background:var(--theme);color:#fff;font-size:14px}
.topbar-inner{display:flex;justify-content:space-between;align-items:center;padding:8px 0}
.topbar .contact span{margin-right:18px}
.topbar .socials a{color:#fff;margin-left:20px;text-decoration:none}

/* Header */
.header{background:#fff;padding:18px 0;border-bottom:4px solid var(--theme-dark);position:relative}
.header-inner{display:flex;align-items:center;gap:18px;padding-left:180px}
.logo{display:flex;align-items:center;gap:12px;position:absolute;left:200px;top:50%;transform:translateY(-50%);z-index:6;overflow:visible}
.logo img{width:auto;height:72px;max-width:240px;border-radius:8px;object-fit:contain;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:block}
.brand-text{font-weight:700;color:#333}
.brand-text span{color:var(--theme)}
.brand-text small{display:block;font-weight:400;font-size:12px;color:var(--muted)}

.search{
  display:flex;
  align-items:center;
  flex:1;
  gap:0;
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:999px;
  padding:4px; /* reduced pill padding for smaller height */
  box-shadow:0 4px 12px rgba(0,0,0,0.04);
}

.search select{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  border:none;
  background:transparent;
  padding:6px 12px;
  color:#666;
  font-size:14px;
  min-width:70px;
  cursor:pointer;
}

.search input{
  border:none;
  outline:none;
  padding:8px 12px;
  font-size:15px;
  color:#666;
  flex:1;
  background:transparent;
}

.search-btn{
  background:var(--theme);
  border:none;
  color:#fff;
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  cursor:pointer;
  margin-left:6px;
  box-shadow:0 6px 14px rgb(246, 246, 246);
}

.search .select-arrow{pointer-events:none;margin-left:6px}

.nav{display:flex;gap:18px;margin-left:12px}
.nav a{text-decoration:none;color:#333;font-weight:600}

.actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.cart{background:#fff;border:1px solid #f0f0f0;padding:8px 12px;border-radius:8px;cursor:pointer;position:relative}
.cart .badge{background:var(--theme);color:#fff;padding:2px 6px;border-radius:12px;margin-left:6px;font-size:12px}
.signin{background:#fff;border:1px solid var(--theme);color:var(--theme);padding:8px 14px;border-radius:6px;cursor:pointer}

/* Hero */
.hero{height:720px;background-image:url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?q=80&w=1600&auto=format&fit=crop&ixlib=rb-4.0.3&s=3c8b3d9e7e8f6a7b8c9d0e1f2a3b4c5d');background-size:cover;background-position:center;position:relative;display:flex;align-items:center}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.3) 100%)}
.hero-inner{position:relative;color:#fff}
.hero h1{font-size:36px;letter-spacing:2px;margin-left:20px}

/* Products grid */
.products{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding:40px 0;grid-auto-rows:1fr;align-items:stretch}
.product-card{background:#fff;border-radius:8px;padding:18px;border:1px solid #eee;box-shadow:0 2px 6px rgba(0,0,0,0.03);display:flex;flex-direction:column;height:100%}
.product-card img{width:100%;height:220px;object-fit:contain;border-radius:6px;display:block}

/* prevent image distortion site-wide */
img{max-width:100%;height:auto;display:block}
.product-card h3{margin:12px 0 8px;font-size:18px}
.product-card .excerpt{color:var(--muted);font-size:14px;line-height:1.4}
.price{margin-top:12px}
.price .now{color:var(--theme);font-weight:700;margin-right:8px}
.price .old{text-decoration:line-through;color:#bbb}
.tax-note{color:#e74c3c;font-size:13px;margin-top:8px}
.card-actions{display:flex;gap:12px;margin-top:12px;margin-top:auto}
.card-actions .add{flex:1;background:#fff;border:2px solid var(--theme);color:var(--theme);padding:10px;border-radius:8px;cursor:pointer}
.card-actions .buy{flex:1;background:var(--theme);border:none;color:#fff;padding:10px;border-radius:8px;cursor:pointer}

/* Footer */
.footer{background:var(--dark-footer);color:#ddd;padding:48px 0;margin-top:40px}
.footer-inner{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:24px}
.footer .col h4{color:#fff;margin-bottom:8px}
.footer .footer-logo{height:72px;width:auto;border-radius:8px;margin-bottom:12px}
.footer-bottom{display:flex;justify-content:space-between;padding:18px 0;border-top:1px solid rgba(255,255,255,0.06);color:#aaa;font-size:14px}

/* Chat widget */
.chat-widget{position:fixed;right:24px;bottom:24px;display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.chat-bubble{background:#fff;padding:14px 18px;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,0.14)}
.chat-actions{display:flex;flex-direction:column;gap:8px}
.chat-btn{background:#fff;border:2px solid var(--theme);color:var(--theme);padding:10px 14px;border-radius:20px;cursor:pointer}
.chat-btn.slim{background:transparent;color:#2d2d2d;border:2px solid #cdf0a5}
.chat-icon{background:var(--theme);color:#222;padding:14px;border-radius:50%;box-shadow:0 6px 18px rgba(0,0,0,0.18);position:relative}
.chat-icon .notif{background:#e83e3e;color:#fff;border-radius:50%;padding:2px 6px;font-size:12px;position:absolute;right:-8px;top:-8px}

/* Responsive */
@media(max-width:1100px){
  .products{grid-template-columns:repeat(2,1fr)}
  .hero{height:520px}
}
@media(max-width:1100px){
  .header-inner{padding-left:140px}
}
@media(max-width:700px){
  .header-inner{padding-left:20px}
  .logo{position:static;transform:none;margin-right:8px}
  .logo img{transform:none;width:90px}
}
@media(max-width:700px){
  .header-inner{flex-direction:column;align-items:stretch}
  .nav{order:3;justify-content:center}
  .products{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr}
  .hero{height:440px}
  .hero h1{font-size:28px}
}
