@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@300;400;600;700;800&display=swap');

:root {
  --pink: #f01f6d;
  --pink-dark: #d0165d;
  --green: #33c96e;
  --ink: #1a1a1a;
  --muted: #666;
  --bg: #f6f6f7;
  --card: #ffffff;
  --shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-title: "Bebas Neue", sans-serif;
  --font-body: "Manrope", sans-serif;
  --content-gutter: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(circle at top left, #ffe2ec, #f6f6f7 40%, #f2f3f6 100%);
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-left: var(--content-gutter);
  padding-right: var(--content-gutter);
}

.content-wrap {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 12px;
}

.header {
  background: linear-gradient(120deg, #ff1f6b, #d4145a);
  color: #fff;
  padding: 20px 18px 22px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--pink);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.logo-title {
  line-height: 1.1;
}

.logo-title span {
  display: block;
  font-size: 14px;
  opacity: 0.9;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.search {
  margin-top: 16px;
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #999;
}

.search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  font-family: var(--font-body);
}

header.header.public-nav {
  padding: 10px 12px;
  border-radius: 0 0 24px 24px !important;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.public-nav-top {
  min-height: 38px;
}

.public-nav .logo-badge {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.public-nav .logo-title {
  font-size: 30px;
  line-height: 0.95;
}

.public-nav .logo-title span {
  font-size: 11px;
}

.public-nav-controls {
  gap: 8px;
}

.public-nav .icon-btn {
  width: 34px;
  height: 34px;
}

.public-nav-search {
  margin-top: 10px;
  padding: 8px 12px;
  min-height: 38px;
  width: 100%;
  gap: 8px;
}

.public-nav-search input {
  font-size: 13px;
}

.banner {
  margin: 16px;
  background: linear-gradient(110deg, #d4145a, #ff1f6b);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.banner h1 {
  font-family: var(--font-title);
  font-size: 34px;
  margin: 0 0 6px;
}

.banner p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

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

.banner-grid {
  margin: 0 16px 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.banner-tile {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  box-shadow: var(--shadow);
  gap: 8px;
}

.banner-tile h3 {
  font-family: var(--font-title);
  margin: 0;
  font-size: 20px;
}

.banner-tile img {
  width: 100%;
  border-radius: 12px;
}

.chips {
  display: flex;
  gap: 10px;
  padding: 8px 16px 0;
  overflow-x: auto;
}

.chip {
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  background: #ececec;
  color: #444;
  cursor: pointer;
  white-space: nowrap;
}

.chip.active {
  background: var(--pink);
  color: #fff;
}

.section {
  padding: 14px 16px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.link {
  color: var(--pink);
  font-weight: 700;
  font-size: 14px;
}

.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 68%;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow);
  position: relative;
  display: grid;
  gap: 6px;
}

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

.card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--pink);
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 10px;
}

.card h4 {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 800;
  color: var(--pink);
}

.price span {
  color: #999;
  font-weight: 600;
  text-decoration: line-through;
  font-size: 12px;
}

.fab {
  position: fixed;
  right: 18px;
  bottom: 90px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #19c15b;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 30;
}

.fab.cart {
  bottom: 20px;
  background: var(--pink);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: var(--pink);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.footer-space {
  height: 90px;
}

.detail {
  background: #fff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: -20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.detail h2 {
  margin: 6px 0 8px;
  font-size: 22px;
}

.detail .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #777;
}

.tag {
  background: #f7e3ea;
  color: var(--pink);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f2f2f2;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
}

.qty button {
  border: none;
  background: var(--pink);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  border: none;
  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.btn.primary {
  background: var(--pink);
  color: #fff;
}

.btn.whatsapp {
  background: var(--green);
  color: #fff;
}

.empty {
  min-height: 40vh;
  display: grid;
  place-items: center;
  color: #666;
  font-weight: 600;
}

.cart-wrap {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-item {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 12px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
}

.cart-item img {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
}

.cart-name {
  font-weight: 800;
}

.cart-meta {
  color: #666;
  font-size: 12px;
}

.cart-actions .icon-btn {
  background: #f2f2f2;
  color: #444;
}

.cart-total {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.checkout {
  padding: 16px;
  display: grid;
  gap: 16px;
}

.checkout-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
}

.checkout-card h3 {
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: var(--font-body);
}

.form-grid textarea {
  min-height: 80px;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.confirm {
  padding: 24px;
  display: grid;
  place-items: center;
  min-height: 70vh;
}

.confirm-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --content-gutter: 24px;
  }
  .public-nav-search { width: 100%; }
  .banner {
    grid-template-columns: 2fr 1fr;
  }
  .banner h1 {
    font-size: 40px;
  }
  .scroller {
    grid-auto-columns: 42%;
  }
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
  .page {
    max-width: 920px;
    margin: 0 auto;
  }
  .header {
    border-radius: 0 0 24px 24px;
  }
}

@media (min-width: 1024px) {
  :root {
    --content-gutter: 32px;
  }
  .page {
    max-width: 100%;
    margin: 0;
  }
  .content-wrap { padding-top: 24px; }
  .header {
    border-radius: 0;
    padding: 20px 0 22px;
  }
  header.header.public-nav { border-radius: 0 0 28px 28px !important; }
  .public-nav {
    padding: 10px 0;
  }
  .public-nav .header-top {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
  }
  .public-nav .search {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
  }
  .header-top,
  .search,
  .banner,
  .banner-grid,
  .chips,
  .section {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
  }
  .section {
    padding-top: 20px;
  }
  .banner {
    grid-template-columns: 2fr 1fr;
  }
  .banner h1 {
    font-size: 44px;
  }
  .scroller {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }
  .products {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
