
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #20211f;
  --muted: #777970;
  --paper: #faf9f6;
  --white: #ffffff;
  --accent: #334fcb;
  --line: #e8e6df;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

button, input {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.announcement {
  padding: 9px 16px;
  text-align: center;
  color: white;
  background: var(--ink);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 6%;
  background: rgba(250, 249, 246, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -1px;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
  margin-left: 4px;
}

.navigation, .header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.navigation a {
  font-size: 14px;
  color: #53544f;
}

.navigation a:hover, .site-footer a:hover {
  color: var(--accent);
}

.header-actions {
  gap: 12px;
}

.icon-button, .menu-toggle {
  border: 0;
  background: transparent;
  font-size: 25px;
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 8px 13px;
  background: white;
}

#cart-count {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: white;
  background: var(--accent);
  border-radius: 50%;
  font-size: 12px;
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 35px;
  min-height: 480px;
  padding: 70px 8%;
  overflow: hidden;
}

.hero-content {
  max-width: 570px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

h1, h2 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -1.5px;
  line-height: 1.15;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
}

h1 span {
  color: var(--accent);
}

.hero-description {
  max-width: 420px;
  margin: 22px 0;
  color: var(--muted);
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}

.primary-button:hover {
  background: #263da8;
  transform: translateY(-2px);
}

.hero-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  border-radius: 30px;
  background: linear-gradient(140deg, #e9e7ff, #f5e8d9 55%, #dbe5f5);
  overflow: hidden;
}

.hero-circle {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(51, 79, 203, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255,255,255,.2),
              0 0 0 58px rgba(255,255,255,.16);
}

.hero-emoji {
  position: absolute;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 23px;
  background: rgba(255,255,255,.83);
  box-shadow: 0 15px 35px rgba(37, 38, 57, .12);
  font-size: 43px;
  transform: rotate(-8deg);
  animation: float 4s ease-in-out infinite;
}

.hero-emoji-one { top: 43px; left: 20%; }
.hero-emoji-two { top: 48px; right: 17%; transform: rotate(8deg); }
.hero-emoji-three { bottom: 42px; left: 20%; transform: rotate(7deg); animation-delay: .7s; }
.hero-emoji-four { bottom: 42px; right: 17%; transform: rotate(-7deg); animation-delay: 1.3s; }

.hero-label {
  z-index: 1;
  padding: 15px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 1.8;
  text-align: center;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.section {
  padding: 55px 8%;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2, .newsletter h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 38px);
}

.section-heading > p {
  color: var(--muted);
  font-size: 13px;
}

.categories-section {
  background: white;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
  transition: border-color .2s, transform .2s;
}

.category-card span {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: #eaeaff;
  color: var(--accent);
  font-size: 23px;
}

.category-card strong {
  font-size: 13px;
}

.category-card:hover, .category-card.active {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.search-box input {
  width: 170px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.result-count {
  margin: -10px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  min-width: 0;
}

.product-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eeece6;
}

.product-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .35s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 5px;
  background: white;
  font-size: 10px;
  font-weight: 700;
}

.product-info {
  padding: 13px 2px;
}

.product-category {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.product-info h3 {
  margin: 4px 0;
  font-size: 15px;
  font-weight: 600;
}

.product-rating {
  color: #ad7916;
  font-size: 12px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
}

.add-button {
  padding: 8px 10px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
}

.add-button:hover {
  color: white;
  background: var(--ink);
}

.empty-message {
  padding: 35px;
  text-align: center;
  color: var(--muted);
}

.newsletter {
  padding: 65px 20px;
  background: #eeece6;
  text-align: center;
}

.newsletter > p:not(.eyebrow, .form-message) {
  color: var(--muted);
}

.newsletter form {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 470px;
  margin: 25px auto 0;
}

.newsletter input {
  min-width: 0;
  flex: 1;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.form-message {
  min-height: 20px;
  color: var(--accent);
  font-size: 13px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 8%;
  background: white;
}

.site-footer p, .site-footer > a:last-child {
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  max-width: calc(100% - 40px);
  padding: 13px 18px;
  border-radius: 9px;
  color: white;
  background: var(--ink);
  box-shadow: 0 8px 30px #0002;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: .2s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero { padding: 55px 5%; }
  .section { padding: 45px 5%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-art { min-height: 300px; }
  .hero-emoji { width: 78px; height: 78px; font-size: 34px; }
}

@media (max-width: 650px) {
  .site-header { padding: 14px 5%; gap: 10px; }
  .logo { font-size: 18px; }
  .menu-toggle { display: block; }
  .navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    align-items: stretch;
    gap: 0;
    padding: 8px 5% 15px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .navigation.open { display: flex; flex-direction: column; }
  .navigation a { padding: 12px 0; }
  .header-actions { gap: 5px; }
  .icon-button { font-size: 22px; }
  .cart-button { gap: 5px; padding: 6px 9px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding: 48px 5%; gap: 28px; }
  .hero-art { min-height: 285px; }
  .hero-emoji-one, .hero-emoji-three { left: 12%; }
  .hero-emoji-two, .hero-emoji-four { right: 12%; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .search-box, .search-box input { width: 100%; }
  .product-image, .product-image img { min-height: 170px; height: 170px; }
  .product-grid { gap: 14px; }
  .product-bottom { align-items: flex-start; flex-direction: column; }
  .add-button { width: 100%; }
  .newsletter form { flex-direction: column; padding: 0 10px; }
  .site-footer { flex-direction: column; text-align: center; gap: 5px; }
}
