/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary-pink: #FF8DA1;
  --primary-hover: #E87287;
  --bg-soft-pink: #FFF5F6;
  --bg-card: #FFFFFF;
  --text-dark: #222222;
  --text-muted: #777777;
  --border-light: #EEEEEE;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 50px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header & Nav */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5%;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.logo span {
  color: var(--primary-pink);
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin: 0 12px;
  font-weight: 500;
  color: #555;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover, nav a.active {
  color: var(--primary-pink);
  text-decoration: underline;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-badge {
  background: #0F52BA;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
}

.icon-cart {
  background: #333;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--primary-pink);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  display: inline-block;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-pill-outline {
  background: var(--primary-pink);
  color: white;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  text-align: center;
}

.btn-pill-outline:hover {
  background: var(--primary-hover);
}

/* Sections */
.section-container {
  padding: 40px 5%;
}

.bg-soft {
  background-color: var(--bg-soft-pink);
}

/* --- SHOP PAGE GRID --- */
.shop-layout {
  display: flex;
  gap: 40px;
  padding: 40px 5%;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
}

.sidebar h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  color: #333;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.category-btn {
  color: #666;
}

.category-btn.active, .category-btn:hover {
  color: var(--primary-pink);
  font-weight: 600;
}

.shop-main {
  flex-grow: 1;
}

.shop-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background-color: #FAFAFA;
  margin-bottom: 12px;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.75);
  color: white;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  z-index: 2;
}

.product-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.old-price {
  text-decoration: line-through;
  color: #BBB;
}

.current-price {
  color: var(--primary-pink);
  font-weight: 700;
}

/* --- HOW-TO-USE PAGE GRID --- */
.how-to-use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.review-card {
  background: white;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tiktok-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 15px 0;
  background-color: #FAFAFA;
}

.tiktok-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PDP Page Styles */
.pdp-container {
  display: flex;
  gap: 50px;
  padding: 60px 8%;
  align-items: center;
  min-height: 70vh;
}

.pdp-image-box {
  flex: 1;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.pdp-image-box img {
  width: 100%;
  display: block;
}

.pdp-details {
  flex: 1;
}

.pdp-category {
  text-transform: uppercase;
  color: #888;
  font-size: 0.8rem;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pdp-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 15px;
  line-height: 1.2;
}

.pdp-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.pdp-disclaimer {
  font-size: 0.78rem;
  color: #AAA;
  margin-top: 15px;
}

/* Footer */
footer {
  background: white;
  padding: 40px 5% 30px 5%;
  border-top: 1px solid var(--border-light);
  margin-top: 40px;
}

.footer-top {
  margin-bottom: 30px;
  max-width: 700px;
  color: #555;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #333;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: #666;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #333;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE BREAKPOINTS 📱
   ========================================== */

/* Tablet & Mobile Screens (Under 900px) */
@media screen and (max-width: 900px) {
  /* Header adjustment */
  header {
    padding: 14px 4%;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  nav a {
    margin: 0 6px;
    font-size: 0.85rem;
  }

  /* Shop Layout stack sidebar on top */
  .shop-layout {
    flex-direction: column;
    padding: 20px 4%;
    gap: 20px;
  }

  .sidebar {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
  }

  .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .sidebar ul li {
    margin-bottom: 0;
  }

  .pdp-container {
    flex-direction: column;
    padding: 30px 5%;
    gap: 30px;
    text-align: center;
  }

  .pdp-image-box {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Small Mobile Screens (Under 600px) */
@media screen and (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-icons {
    position: absolute;
    top: 16px;
    right: 5%;
  }

  nav {
    margin-top: 10px;
    width: 100%;
    justify-content: space-between;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr); /* Clean 2-column grid on phones */
    gap: 12px;
  }

  .product-card {
    padding: 8px;
  }

  .product-title {
    font-size: 0.78rem;
  }

  .price-box {
    font-size: 0.78rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .how-to-use-grid {
    grid-template-columns: 1fr;
  }

  .pdp-title {
    font-size: 1.6rem;
  }
}
