:root{
  --bg: #0f172a;
  --card: #0b1220;
  --muted: #94a3b8;
  --accent: #7c3aed;
  --glass: rgba(255,255,255,0.03);
  --glass-2: rgba(255,255,255,0.02);
  --radius: 12px;
  --max-width: 1100px;
  --gap: 18px;
  --glass-border: rgba(255,255,255,0.04);
}

/* Global */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg,#020617 0%, #07112b 100%);
  color:#e6eef8;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding-bottom: 60px; /* footer üçün boşluq */
}

/* Container */
.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:24px;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(11,17,32,0.7), rgba(11,17,32,0.4));
  border-bottom:1px solid var(--glass-border);
  z-index:50;
}
.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

/* Logo + Brand */
.brand{
  display:flex;
  gap:12px;
  align-items:center;
}
.logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(124,58,237,0.18);
  background: transparent;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 720px) {
  .logo {
    width: 44px;
    height: 44px;
  }
}
.brand h1{margin:0;font-size:18px}
.brand small{color:var(--muted)}

/* Social Links (Font Awesome) */
.social-links{
  display:flex;
  gap:12px;
}
.social-links a{
  font-size:24px;
  color:#e6eef8;
  transition: transform 0.2s, color 0.2s;
}
.social-links a:hover{
  transform: scale(1.2);
  color: var(--accent);
}

/* Cart button */
.cart-button button{
  padding:8px 16px;
  border-radius:8px;
  background-color: var(--accent);
  color:#fff;
  border:none;
  cursor:pointer;
  transition: background-color 0.2s;
}
.cart-button button:hover{
  background-color:#5b1fcf;
}

/* Responsive header */
@media(max-width:768px){
  .header-inner{
    flex-direction:column;
    align-items:center;
  }
  .brand{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
  .social-links{
    justify-content:center;
  }
  .cart-button{
    order:1;
  }
}

/* Products grid */
.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:var(--gap);
  margin-top:20px;
}

/* Card */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border:1px solid var(--glass-border);
  padding:14px;
  border-radius:12px;
  display:flex;
  flex-direction:column;
  gap:12px;
  transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform: translateY(-6px); box-shadow: 0 10px 30px rgba(2,6,23,0.6)}

/* Image */
.product-image{
  width:100%;
  height:180px;
  border-radius:10px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--glass-2);
  border:1px solid rgba(255,255,255,0.02);
  cursor:pointer;
}
.product-image img{max-width:100%;max-height:100%;display:block;object-fit:contain}

/* Info */
.product-title{display:flex;justify-content:space-between;align-items:center;gap:8px}
.product-title h3{margin:0;font-size:16px}
.product-desc{color:var(--muted);font-size:13px;min-height:38px}
.price{font-weight:600}

/* Controls */
.controls{display:flex;gap:10px;align-items:center;justify-content:space-between}
.qty{
  display:flex;align-items:center;gap:8px;background:var(--glass);padding:6px;border-radius:8px;border:1px solid rgba(255,255,255,0.02)
}
.qty button{background:transparent;border:0;color:inherit;font-size:16px;cursor:pointer;padding:4px}
.qty input{width:46px;text-align:center;background:transparent;border:0;color:inherit;font-size:14px}

/* Buttons */
.btn{
  border:0;padding:10px 14px;border-radius:10px;cursor:pointer;font-weight:600;
}
.btn.primary{background:linear-gradient(90deg,var(--accent),#4f46e5);box-shadow:0 8px 20px rgba(79,70,229,0.14);color:#fff}
.btn.secondary{background:transparent;border:1px solid rgba(255,255,255,0.04);color:var(--muted)}

/* Cart drawer */
.cart-drawer{
  position:fixed;right:18px;top:80px;width:360px;max-width:calc(100% - 32px);background:linear-gradient(180deg, rgba(6,10,20,0.95), rgba(8,12,22,0.95));border:1px solid var(--glass-border);border-radius:14px;padding:12px;box-shadow:0 30px 60px rgba(2,6,23,0.6);transform:translateY(-20px);opacity:0;pointer-events:none;transition:all .18s ease;z-index:80;
}
.cart-drawer[aria-hidden="false"]{transform:translateY(0);opacity:1;pointer-events:auto}
.cart-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,0.02)}
.cart-body{max-height:340px;overflow:auto;padding:8px 0}
.cart-item{display:flex;gap:10px;align-items:center;padding:8px;border-radius:8px;border:1px solid rgba(255,255,255,0.02);margin-bottom:10px}
.cart-item img{width:68px;height:68px;border-radius:8px;object-fit:cover}
.cart-item .meta{flex:1}
.cart-total{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-top:1px solid rgba(255,255,255,0.02)}
.cart-actions{display:flex;gap:8px;justify-content:space-between}

/* Modal */
.modal{position:fixed;left:0;top:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:rgba(1,2,8,0.6);backdrop-filter: blur(6px);opacity:0;pointer-events:none;transition:all .14s ease;z-index:90}
.modal[aria-hidden="false"]{opacity:1;pointer-events:auto}
.modal-content{background:linear-gradient(180deg,#071028,#071220);padding:18px;border-radius:12px;max-width:900px;width:94%;max-height:92vh;overflow:auto;border:1px solid rgba(255,255,255,0.03)}
.modal-body{display:flex;gap:18px;align-items:flex-start;flex-wrap:wrap}
.modal-body img{max-width:420px;border-radius:10px;object-fit:contain}
.modal-close{position:absolute;right:18px;top:18px;background:transparent;border:0;color:inherit;font-size:19px;cursor:pointer}

/* Footer */
.site-footer{
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.02);
}
.site-footer .container{
  display:flex;
  justify-content:center;
  align-items:center;
}

/* Responsive tweaks */
@media (max-width:720px){
  .product-image{height:150px}
  .cart-drawer{right:12px;left:12px;top:auto;bottom:70px;width:auto}
  .modal-body{flex-direction:column;align-items:center}
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  z-index: 100;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}
@media (max-width:480px){
  .whatsapp-float{
    width:50px;
    height:50px;
    font-size:24px;
    bottom:16px;
    right:16px;
  }
}
