/* =============================== */
/*          BODY & BASE             */
/* ================================ */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #f7f7f7;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================== */
/*       CART PANEL - DESKTOP       */
/* ================================ */
#cart {
  display: none;
  position: fixed;
  top: 130px;
  right: 20px;
  z-index: 9999;
  width: 360px;
  max-height: 80vh;
  padding: 20px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  font-family: 'Poppins', sans-serif;
  animation: slideIn 0.6s ease forwards;
}

/* =============================== */
/*       CART PANEL - MOBILE        */
/* ================================ */
@media (max-width: 600px) {
  #cart {
    width: 100%;
    height: 85vh;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 28px 28px 0 0;
    padding: 30px 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
  }

  #cart.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  #cart::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(0,0,0,0.3);
    border-radius: 2px;
  }
}

/* =============================== */
/*        STORE HEADER              */
/* ================================ */
.store-header {
  text-align: center;
  padding: clamp(100px, 18vh, 180px) 20px clamp(40px, 8vh, 60px) 20px;
  background: 
    linear-gradient(135deg, #111 0%, #1a1a1a 50%, #000 100%),
    radial-gradient(circle at 30% 20%, rgba(255,143,0,0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0,123,255,0.1) 0%, transparent 50%);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 40vh;
}

/* Header floating particles */
.store-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,143,0,0.4), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(0,123,255,0.5), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.2), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: float 20s ease-in-out infinite;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

/* Header animation */
@keyframes float {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(-10px) rotate(240deg); }
}

.store-header h1 {
  margin: clamp(12px, 3vw, 24px) 0 clamp(16px, 4vw, 28px) 0;
  font-size: clamp(2rem, 8vw, 4.5rem);
  background: linear-gradient(135deg, #ffd700 0%, #ff8f00 50%, #ff6b35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: clamp(1px, 0.3vw, 6px);
  line-height: 1.1;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 20px rgba(255,215,0,0.5), 0 4px 15px rgba(0,0,0,0.3);
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  0% { text-shadow: 0 0 20px rgba(255,215,0,0.5), 0 4px 15px rgba(0,0,0,0.3); }
  100% { text-shadow: 0 0 40px rgba(255,215,0,0.8), 0 8px 25px rgba(0,0,0,0.4); }
}

/* =============================== */
/*        PRODUCT GRID              */
/* ================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
  padding: 10px;
  max-width: 1500px;
  margin: 0 auto;
}

/* =============================== */
/*       PRODUCT CARD               */
/* ================================ */
.product-card {
  background-color: #fff2b3e6;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.product-card img {
  width: 100%;
  object-fit: cover;
  max-height: 280px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background: #f7f7f7;
}

/* =============================== */
/*        ADD TO CART BUTTON        */
/* ================================ */
.add-to-cart {
  background: #025a12;
  color: #fff;
  border-radius: 8px;
  padding: clamp(10px, 2vw, 14px);
  font-weight: 700;
  width: 100%;
  transition: all 0.3s ease;
}

.add-to-cart:hover {
  background: #ffb700;
  color: #000;
  transform: translateY(-2px);
}

/* =============================== */
/*        CATEGORY TABS             */
/* ================================ */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #1e1e1e;
  position: sticky;
  top: 0;
  z-index: 2000;
  border-radius: 20px 20px 0 0;
  overflow-x: auto;
}

.category-tabs button {
  padding: 10px 20px;
  border-radius: 30px;
  background: linear-gradient(135deg,#f9a825,#ff8f00);
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease-out;
}

.category-tabs button.active {
  background: linear-gradient(135deg,#1c0382,#5833ec);
  color: #fff;
  transform: scale(1.05);
}

/* Smooth slide-in animation */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.category-tabs { animation: slideIn 0.5s ease-out; }
