/* ===== VARIABLES ===== */
:root {
  --primary-color: #ff6f61;
  --accent-color: #6c5ce7;
  --bg-color: #f7f7f7;
  --text-color: #333;
  --white: #fff;
  --gradient: linear-gradient(135deg, #ff6f61, #6c5ce7);
  --font-main: 'Poppins', sans-serif;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-main);
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

/* ===== HEADER / NAVBAR ===== */
header {
  background: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}
.navbar ul {
  display: flex;
  gap: 1rem;
  list-style: none;
}
.navbar ul li a:hover {
  color: var(--primary-color);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 5px;
  transition: 0.3s ease;
}
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* ===== SECTIONS ===== */
section {
  padding: 2rem 0;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

/* ===== HERO BANNER ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gradient);
  padding: 3rem 1rem;
  color: white;
  flex-wrap: wrap;
}
.hero-text {
  flex: 1 1 300px;
}
.hero-image {
  flex: 1 1 300px;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.grid-3, .grid-4 {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card, .product-card, .feature-box {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s ease;
}
.card:hover, .product-card:hover, .feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-single {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
}
.product-single img {
  max-width: 400px;
  width: 100%;
  border-radius: 10px;
}
.product-single .price {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table td, .cart-table th {
  border: 1px solid #ccc;
  padding: 8px;
}
.cart-table th {
  background: #f5f5f5;
}

/* ===== RESPONSIVENESS ===== */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    background: var(--white);
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }
}
