/* ── Reset & Variables ──────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pink-pale: #fce8ee;
  --pink-mid: #f5c6d4;
  --pink-accent: #e8728e;
  --pink-dark: #c75473;
  --pink-btn: #e8728e;
  --text-dark: #2e2e2e;
  --text-mid: #555;
  --text-muted: #888;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(200, 80, 110, 0.12);
}

html,
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Nunito", sans-serif;
  background: #fdf5f7;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ── Top Bar ────────────────────────────────────────────── */
.top-bar {
  background: var(--pink-pale);
  border-bottom: 1.5px solid var(--pink-mid);
  padding: 8px 0;
}
.top-bar .inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-mid);
}
.top-bar .left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-bar .left a:hover {
  color: var(--pink-accent);
}
.top-bar .sep {
  color: #ccc;
}
.top-bar .right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-dark);
}
.top-bar .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pink-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  background: #fff;
  border-bottom: 1.5px solid var(--pink-mid);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(200, 80, 110, 0.07);
}
.navbar .inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--pink-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 2px solid var(--pink-mid);
}
/* Fix logo image size */
.logo-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--pink-accent);
  line-height: 1.2;
}
.logo-text span {
  display: block;
}

/* Search */
.search-wrap {
  flex: 1;
  display: flex;
}
.search-wrap input {
  flex: 1;
  height: 40px;
  border: 1.5px solid var(--pink-mid);
  border-right: none;
  border-radius: 20px 0 0 20px;
  padding: 0 16px;
  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: 40px;
  padding: 0 20px;
  background: var(--pink-btn);
  color: #fff;
  border: none;
  border-radius: 0 20px 20px 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: 6px;
  flex-shrink: 0;
}
.nav-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--pink-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 17px;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  position: relative;
}
.nav-icons a:hover {
  background: var(--pink-accent);
  color: #fff;
  border-color: var(--pink-accent);
}
.nav-icons a svg {
  display: block;
}

/* ── Page wrapper ───────────────────────────────────────── */
.page {
  flex: 1;
}

/* ── Section ────────────────────────────────────────────── */
.section {
  max-width: 1020px;
  margin: 0 auto;
  padding: 32px 24px 0;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 24px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-header h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-dark);
}
.see-more-btn {
  background: var(--pink-pale);
  color: var(--pink-accent);
  border: 1.5px solid var(--pink-mid);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: "Nunito", sans-serif;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.see-more-btn:hover {
  background: var(--pink-accent);
  color: #fff;
}

/* ── Categories ─────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cat-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--pink-mid);
  padding: 12px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: var(--shadow);
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(200, 80, 110, 0.18);
}
.cat-img-wrap {
  width: 74px;
  height: 64px;
  background: var(--pink-pale);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pink-accent);
  text-align: center;
  line-height: 1.3;
}

/* ── Products grid ──────────────────────────────────────── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 8px;
}
@media (max-width: 700px) {
  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.prod-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--pink-mid);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.prod-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(200, 80, 110, 0.17);
}

/* Sale badge */
.badge-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--pink-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

.prod-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--pink-pale);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-accent);
  line-height: 1.3;
}
.prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.prod-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.prod-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
}
.prod-price-orig {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Cart button */
.cart-btn {
  width: 34px;
  height: 34px;
  background: var(--pink-pale);
  border: 1.5px solid var(--pink-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pink-accent);
  transition:
    background 0.2s,
    color 0.2s;
  flex-shrink: 0;
}
.cart-btn:hover {
  background: var(--pink-accent);
  color: #fff;
  border-color: var(--pink-accent);
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: #fff;
  border-top: 1.5px solid var(--pink-mid);
  padding: 18px 24px;
  margin-top: 40px;
}
footer .inner {
  max-width: 1020px;
  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-mid);
}
footer .copy span {
  color: var(--pink-accent);
  font-weight: 700;
}
footer .socials {
  display: flex;
  gap: 10px;
}
footer .socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pink-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  transition:
    background 0.2s,
    color 0.2s;
}
footer .socials a:hover {
  background: var(--pink-accent);
  color: #fff;
}

/* ── Section bottom spacer ──────────────────────────────── */
.section-gap {
  padding-bottom: 32px;
}
