/* ── Reset & Base ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pink-light: #fce8ee;
  --pink-mid: #f9d0dc;
  --pink-accent: #e8728e;
  --pink-dark: #c75473;
  --text-dark: #2e2e2e;
  --text-mid: #555;
  --text-muted: #888;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(200, 80, 110, 0.12);
}

body {
  font-family: "Nunito", sans-serif;
  background: #fdf5f7;
  color: var(--text-dark);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ── Top Bar ──────────────────────────────────────────────────── */
.top-bar {
  background: #fff;
  border-bottom: 1px solid var(--pink-mid);
  padding: 8px 0;
}
.top-bar .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-mid);
}
.top-bar .left-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.top-bar .left-links a:hover {
  color: var(--pink-accent);
}
.top-bar .sep {
  color: #ccc;
}
.top-bar .right-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.top-bar .right-links a:hover {
  color: var(--pink-accent);
}

/* ── Main Navbar ──────────────────────────────────────────────── */
.navbar {
  background: #fff;
  padding: 14px 0;
  box-shadow: 0 2px 12px rgba(200, 80, 110, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon {
  width: 52px;
  height: 52px;
  background: var(--pink-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
}
/* Fix logo image size */
.logo-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--pink-accent);
  line-height: 1.15;
}
.logo-text span {
  display: block;
}

/* Search */
.search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
}
.search-wrap input {
  flex: 1;
  height: 42px;
  border: 1.5px solid var(--pink-mid);
  border-right: none;
  border-radius: 22px 0 0 22px;
  padding: 0 18px;
  font-size: 14px;
  font-family: "Nunito", sans-serif;
  color: var(--text-dark);
  background: #fdf5f7;
  outline: none;
  transition: border-color 0.2s;
}
.search-wrap input::placeholder {
  color: var(--text-muted);
}
.search-wrap input:focus {
  border-color: var(--pink-accent);
}
.search-wrap button {
  height: 42px;
  padding: 0 22px;
  background: var(--pink-accent);
  color: #fff;
  border: none;
  border-radius: 0 22px 22px 0;
  font-size: 14px;
  font-weight: 700;
  font-family: "Nunito", sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.search-wrap button:hover {
  background: var(--pink-dark);
}

/* Nav icons */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.nav-icons a {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--pink-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-accent);
  font-size: 18px;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-icons a:hover {
  background: var(--pink-accent);
  color: #fff;
}

/* ── Hero strip ───────────────────────────────────────────────── */
.hero-strip {
  background: linear-gradient(135deg, #fce8ee 0%, #fdf5f7 60%, #fce8ee 100%);
  padding: 36px 20px 28px;
  text-align: center;
}
.hero-strip h1 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  color: var(--pink-dark);
  margin-bottom: 6px;
}
.hero-strip p {
  font-size: 15px;
  color: var(--text-mid);
}

/* ── Sections ─────────────────────────────────────────────────── */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 20px;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 28px;
}

/* ── Categories Grid ──────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
/* Rows: first 5 cols, second row left-aligned */
@media (max-width: 700px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: 1.5px solid var(--pink-mid);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(200, 80, 110, 0.18);
}
.cat-card .cat-img {
  width: 80px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  overflow: hidden;
}
.cat-card .cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.cat-card .cat-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-accent);
  text-align: center;
  line-height: 1.3;
}

/* ── Divider ──────────────────────────────────────────────────── */
.divider {
  max-width: 960px;
  margin: 0 auto 0;
  padding: 0 20px;
  border: none;
  border-top: 1.5px solid var(--pink-mid);
}

/* ── Featured Products ────────────────────────────────────────── */
.featured-header {
  max-width: 960px;
  margin: 32px auto 0;
  padding: 0 20px;
}
.featured-header h2 {
  font-family: "Nunito", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.products-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 700px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--pink-mid);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fce8ee22 0%, transparent 60%);
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(200, 80, 110, 0.18);
}
.product-card .prod-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--pink-light);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .prod-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--pink-accent);
  line-height: 1.3;
}
.product-card .prod-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.product-card .prod-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}
.product-card .cart-btn {
  width: 36px;
  height: 36px;
  background: var(--pink-light);
  border: 1.5px solid var(--pink-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pink-accent);
  font-size: 17px;
  transition:
    background 0.2s,
    color 0.2s;
}
.product-card .cart-btn:hover {
  background: var(--pink-accent);
  color: #fff;
  border-color: var(--pink-accent);
}
.product-card .login-note {
  font-size: 11.5px;
  color: var(--text-muted);
}
.product-card .login-note a {
  color: var(--pink-accent);
  font-weight: 700;
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  background: #fff;
  border-top: 1.5px solid var(--pink-mid);
  padding: 18px 20px;
}
footer .inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer .copy {
  font-size: 13px;
  color: var(--text-muted);
}
footer .copy span {
  color: var(--pink-accent);
  font-weight: 700;
}
footer .socials {
  display: flex;
  gap: 10px;
}
footer .socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--pink-accent);
  transition:
    background 0.2s,
    color 0.2s;
  font-weight: 700;
}
footer .socials a:hover {
  background: var(--pink-accent);
  color: #fff;
}

/* ── SVG Icons (inline) ──────────────────────────────────────── */
.icon {
  display: inline-block;
  vertical-align: middle;
}
