/* =========================
   Root + Reset
========================= */

:root {
  --pink-main: #ec4899;
  --pink-light: #fde7f3;
  --pink-mid: #f472b6;
  --text-dark: #1f1f1f;
  --text-muted: #6b7280;
  --border-light: #eee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: var(--text-dark);
}

/* =========================
   Typography
========================= */

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
}

p {
  line-height: 1.5;
  color: var(--text-muted);
}

/* =========================
   Buttons
========================= */

button {
  font-family: inherit;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.pill-btn {
  background: var(--pink-light);
  color: var(--pink-main);
  border: none;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
}

.primary-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: var(--pink-main);
  color: white;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.secondary-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: none;
  background: #f3f4f6;
  color: var(--text-dark);
  cursor: pointer;
}

/* =========================
   Top Bar
========================= */

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: white;
  z-index: 100;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--pink-main), var(--pink-mid));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* =========================
   Search
========================= */

.search {
  flex: 1;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  font-size: 14px;
  outline: none;
}

.search:focus {
  border-color: var(--pink-main);
}

/* =========================
   Hero
========================= */

.hero {
  padding: 36px 24px 18px;
}

.hero h2 {
  font-size: 28px;
}

.hero p {
  margin-top: 6px;
}

/* =========================
   Product Grid
========================= */

#product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
  padding: 24px;
}

.product {
  background: white;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.1);
}

.product img {
  width: 100%;
  border-radius: 14px;
}

.product h3 {
  margin-top: 12px;
  font-size: 16px;
}

.product p {
  margin-top: 4px;
  font-size: 14px;
}

/* =========================
   Side Menu
========================= */

.menu {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: white;
  padding: 24px;
  box-shadow: 8px 0 30px rgba(0,0,0,0.15);
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 1000;
}

.menu nav {
  margin-top: 30px;
}

.menu nav a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  text-decoration: none;
  color: var(--text-dark);
  cursor: pointer;
}

.menu nav hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 20px 0;
}

/* =========================
   Cart Modal
========================= */

.cart {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 340px;
  transform: translate(-50%, -50%);
  background: white;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  z-index: 1100;
}

.cart h2 {
  margin-bottom: 12px;
}

.cart ul {
  padding-left: 18px;
}

.cart .total {
  margin-top: 12px;
  font-weight: 600;
}

/* =========================
   Product Page
========================= */

.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  max-width: 1100px;
  margin: auto;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.image-grid img {
  width: 100%;
  border-radius: 16px;
}

.product-info h1 {
  font-size: 28px;
}

.product-info p {
  margin-top: 10px;
}

.product-info .price {
  font-size: 22px;
  margin: 16px 0;
  color: var(--text-dark);
}

/* =========================
   About Page
========================= */

.about {
  max-width: 720px;
  margin: auto;
  padding: 48px 24px;
}

.about h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

/* =========================
   Footer
========================= */

footer {
  padding: 28px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

footer a {
  margin: 0 10px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}

/* =========================
   Utility
========================= */

.hidden {
  display: none;
}

/* =========================
   Responsive
========================= */

@media (max-width: 900px) {
  .product-page {
    grid-template-columns: 1fr;
  }
}
