/* ============ RESET & BASE ============ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:        #f4efe5;
  --cream-soft:   #f6f1e8;
  --cream-hero:   #f2ebe0;
  --card:         #ffffff;
  --rose:         #c07d89;   /* primary button / accent */
  --rose-deep:    #b5717e;
  --rose-text:    #c58b97;   /* eyebrow / links */
  --ink:          #3d3833;   /* dark headings */
  --ink-soft:     #4a453f;
  --muted:        #8b847b;   /* body text */
  --line:         #e3dccf;
  --shadow:       0 18px 40px rgba(120, 95, 80, .10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.arrow { display: inline-block; transition: transform .25s ease; }

/* ============ HEADER ============ */
.header {
  background: var(--cream-soft);
  border-bottom: 1px solid rgba(0,0,0,.03);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 74px;
}

.nav {
  display: flex;
  gap: 38px;
  justify-self: start;
}

.nav__link {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}

.nav__link:hover { color: var(--rose); }

.nav__link--active { color: var(--rose); }
.nav__link--active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--rose);
}

.logo {
  justify-self: center;
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .5em;
  color: var(--rose);
  padding-left: .5em; /* balance letter-spacing */
}

.header__icons {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  transition: color .2s, transform .2s;
}
.icon-btn i { font-size: 18px; line-height: 1; }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { color: var(--rose); transform: translateY(-1px); }

.cart-count {
  position: absolute;
  top: -6px; right: -10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: #f3ece1;
  overflow: hidden;
}

.hero__bg {
  display: block;
  width: 100%;
  height: auto;               /* full, natural image height */
  object-fit: cover;
  object-position: center 42%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero__overlay .container { width: 100%; }
.hero__content {
  max-width: 470px;
  margin-left: clamp(40px, 15vw, 200px);
  pointer-events: auto;
}

.hero__eyebrow {
  color: var(--rose-text);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 46px;
  line-height: 1.14;
  color: var(--ink);
  margin-bottom: 22px;
}

.hero__subtitle {
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 34px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: background .25s, box-shadow .25s, transform .2s;
}

.btn--primary {
  background: var(--rose);
  color: #fff;
  padding: 17px 34px;
  border-radius: 40px;
  border: none;
  box-shadow: 0 10px 24px rgba(192, 125, 137, .28);
}
.btn--primary:hover {
  background: var(--rose-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(192, 125, 137, .35);
}
.btn--primary:hover .arrow { transform: translateX(4px); }

.btn--small { padding: 13px 28px; font-size: 14px; }

/* ============ CATEGORIES ============ */
.categories {
  background: var(--cream);
  padding: 46px 0;
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  position: relative;
  transition: transform .25s;
}
.category:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 18%;
  height: 64%;
  width: 1px;
  background: var(--line);
}
.category:hover { transform: translateY(-4px); }

.category__icon {
  width: 78px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
}
.category__icon svg { width: 100%; height: 100%; }
.category__icon--img { width: 82px; height: 62px; }
.category__icon--img img { height: 100%; width: 100%; object-fit: contain; object-position: center bottom; }

.category__name {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 400;
}
.category__arrow {
  color: var(--rose);
  font-size: 15px;
  transition: transform .25s;
}
.category:hover .category__arrow { transform: translateX(4px); }

/* ============ SECTION HEAD ============ */
.popular { padding: 20px 0 70px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 34px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 32px;
  color: var(--ink);
  white-space: nowrap;
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-link {
  color: var(--rose-text);
  font-size: 14.5px;
  white-space: nowrap;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.section-link:hover .arrow { transform: translateX(4px); }

/* ============ PRODUCTS ============ */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.product { cursor: pointer; }

.product__image {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #ece4d8;
  box-shadow: var(--shadow);
}
.product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product:hover .product__image img { transform: scale(1.05); }

.fav-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  backdrop-filter: blur(2px);
  transition: background .2s, color .2s, transform .2s;
}
.fav-btn i { font-size: 16px; line-height: 1; }
.fav-btn svg { width: 18px; height: 18px; }
.fav-btn:hover { transform: scale(1.1); color: var(--rose); }
.fav-btn.is-active {
  color: var(--rose);
  background: #fff;
}

.product__name {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink-soft);
  margin: 18px 0 8px;
}
.product__price {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

/* ============ ABOUT ============ */
.about {
  position: relative;
  background: linear-gradient(180deg, #f5eee3 0%, #f2ebdf 100%);
  padding: 66px 0;
  overflow: hidden;
}

.about__flowers {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  pointer-events: none;
  opacity: .95;
}
.about__flowers--left { left: 0; }
.about__flowers--right { right: 0; }

.about__inner {
  display: grid;
  grid-template-columns: 300px 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.about__cat img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
}

.about__title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 30px;
  color: var(--ink);
  margin-bottom: 20px;
}
.about__desc {
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  margin-bottom: 30px;
  line-height: 1.75;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 18px;
}
.feature__icon {
  color: var(--rose);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
}
.feature__icon i { font-size: 21px; line-height: 1; }
.feature__icon svg { width: 24px; height: 24px; }
.feature__label {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ============ FOOTER ============ */
.footer {
  background: #efe7d9;
  color: var(--ink-soft);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding: 52px 0 40px;
}
.logo--footer {
  justify-self: start;
  padding-left: 0;
  font-size: 24px;
  display: inline-block;
  margin-bottom: 14px;
}
.footer__tagline {
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
}
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a { font-size: 14.5px; color: var(--ink-soft); width: max-content; }
.footer__nav a:hover { color: var(--rose); }
.footer__social-title { display: block; font-size: 14.5px; margin-bottom: 16px; }
.footer__icons { display: flex; gap: 12px; }
.footer__icons a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--rose);
  transition: background .2s, color .2s, transform .2s;
}
.footer__icons a:hover { background: var(--rose); color: #fff; transform: translateY(-2px); }
.footer__icons i { font-size: 16px; }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ============ SUB-PAGE HEADER ============ */
.page-header {
  position: relative;
  background: linear-gradient(180deg, #f5eee3 0%, #f1e9dd 100%);
  padding: 52px 0 46px;
  text-align: center;
  overflow: hidden;
}
.page-header__flowers {
  position: absolute;
  bottom: -10px;
  height: 130%;
  width: auto;
  opacity: .9;
  pointer-events: none;
}
.page-header__flowers--left { left: -30px; }
.page-header__flowers--right { right: -30px; transform: scaleX(-1); }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; position: relative; z-index: 2; }
.breadcrumbs a:hover { color: var(--rose); }
.breadcrumbs span { color: var(--rose-text); }
.page-header__eyebrow {
  color: var(--rose-text);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 14px;
  position: relative; z-index: 2;
}
.page-header__title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 42px;
  color: var(--ink);
  position: relative; z-index: 2;
}
.page-header__subtitle {
  color: var(--muted);
  font-weight: 300;
  margin-top: 12px;
  font-size: 15px;
  position: relative; z-index: 2;
}

/* ============ CATALOG ============ */
.catalog { padding: 42px 0 72px; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 42px;
}
.filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  padding: 9px 22px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--rose); color: var(--rose); }
.filter.is-active { background: var(--rose); border-color: var(--rose); color: #fff; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 26px;
}
.product__add {
  margin-top: 12px;
  width: 100%;
  border: 1px solid var(--rose);
  background: #fff;
  color: var(--rose);
  padding: 10px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.product__add:hover { background: var(--rose); color: #fff; }

.catalog-empty {
  text-align: center;
  color: var(--muted);
  font-weight: 300;
  padding: 40px 0;
}
.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-weight: 300;
  padding: 30px 0;
}

/* ============ DELIVERY ============ */
.delivery { padding: 50px 0 72px; }
.delivery__intro {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
  color: var(--muted);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
}
.delivery__intro strong { color: var(--ink-soft); font-weight: 500; }

.block-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  text-align: center;
  margin-bottom: 34px;
  color: var(--ink);
}

.methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-bottom: 60px;
}
.method {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
}
.method__icon {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #f7edef;
  color: var(--rose);
  display: flex; align-items: center; justify-content: center;
  font-size: 25px;
  margin-bottom: 20px;
}
.method__title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--ink);
}
.method__desc {
  color: var(--muted);
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 18px;
}
.method__list { display: flex; flex-direction: column; gap: 11px; }
.method__list li {
  display: flex;
  gap: 11px;
  font-size: 14px;
  color: var(--ink-soft);
  align-items: flex-start;
}
.method__list i { color: var(--rose); margin-top: 3px; font-size: 13px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.step { text-align: center; padding: 0 8px; }
.step__num {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step__title { font-weight: 500; margin-bottom: 8px; font-size: 15px; color: var(--ink-soft); }
.step__text { color: var(--muted); font-weight: 300; font-size: 13.5px; line-height: 1.65; }

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.info-card {
  background: #f7f1e8;
  border-radius: 12px;
  padding: 26px 24px;
  text-align: center;
}
.info-card i { color: var(--rose); font-size: 24px; margin-bottom: 14px; }
.info-card h4 { font-size: 15px; color: var(--ink-soft); margin-bottom: 8px; font-weight: 500; }
.info-card p { color: var(--muted); font-weight: 300; font-size: 13.5px; line-height: 1.6; }

.delivery-cta {
  background: linear-gradient(180deg, #f5eee3 0%, #f1e7d9 100%);
  border-radius: 18px;
  text-align: center;
  padding: 50px 40px;
}
.delivery-cta h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 12px;
}
.delivery-cta p { color: var(--muted); font-weight: 300; margin-bottom: 26px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .hero__title { font-size: 42px; }
  .hero__content { max-width: 420px; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {
  .about__inner { grid-template-columns: 240px 1fr 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .nav { gap: 22px; }
  .hero__title { font-size: 40px; }
  .hero__content { max-width: 360px; }
  .categories__grid { grid-template-columns: repeat(3, 1fr); gap: 26px 0; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .methods { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .info-cards { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 220px 1fr; gap: 28px; }
  .features { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 16px 28px; }
  .feature { flex: 1 1 40%; }
  .about__desc br { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* Hero stacks: text on cream, banner below */
@media (max-width: 820px) {
  .hero { display: flex; flex-direction: column; }
  .hero__overlay {
    position: static;
    inset: auto;
    order: -1;
    background: #f3ece1;
    padding: 34px 0 30px;
    text-align: center;
  }
  .hero__content { max-width: none; margin-left: 0; }
  .hero__content .btn { display: inline-flex; }
  .hero__subtitle br { display: none; }
  .hero__bg { height: auto; }
}

@media (max-width: 720px) {
  .header__inner { grid-template-columns: auto 1fr auto; height: 64px; }
  .nav { display: none; }
  .logo { justify-self: start; font-size: 24px; }
  .hero__title { font-size: 34px; }
  .page-header__title { font-size: 32px; }
  .section-head { flex-wrap: wrap; }
  .section-line { display: none; }
  .about__inner { grid-template-columns: 1fr; text-align: center; }
  .about__cat { max-width: 220px; margin: 0 auto; }
  .features { max-width: 340px; margin: 0 auto; flex-direction: column; text-align: left; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .logo--footer, .footer__nav a { justify-self: center; margin-left: auto; margin-right: auto; }
  .footer__nav { align-items: center; }
  .footer__icons { justify-content: center; }
}

@media (max-width: 520px) {
  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .steps { grid-template-columns: 1fr; }
  .category:nth-child(even)::after { display: none; }
}
