/* Dilnasheen Crochet — warm handmade theme, mobile-first, light only */

:root {
  --cream: #FFF9F3;
  --cream-deep: #FDEFE3;
  --card: #FFFFFF;
  --rose: #C4577A;
  --rose-dark: #A63F61;
  --rose-soft: #F9E1E9;
  --cocoa: #4A2F2A;
  --cocoa-soft: #7A5A52;
  --sage: #7FA07A;
  --sage-soft: #E5EFE1;
  --butter: #F2C14E;
  --butter-soft: #FCF0D2;
  --wa-green: #25D366;
  --wa-green-dark: #1DA851;
  --shadow: 0 6px 24px rgba(74, 47, 42, 0.10);
  --shadow-lift: 0 12px 32px rgba(74, 47, 42, 0.16);
  --radius: 18px;
  --header-h: 66px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-tap-highlight-color: rgba(196, 87, 122, 0.15);
}

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--cocoa); }

:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 249, 243, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-deep);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cocoa); min-height: 44px; }
.brand-mark { font-size: 30px; line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 20px; }
.brand-tag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px; color: var(--rose); text-transform: uppercase; }

.main-nav { display: none; margin-left: auto; gap: 4px; }
.main-nav a {
  color: var(--cocoa);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.main-nav a:hover { background: var(--rose-soft); color: var(--rose-dark); }

.cart-button {
  margin-left: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--rose);
  background: #fff;
  color: var(--rose-dark);
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.cart-button:hover { background: var(--rose-soft); }
.cart-button:active { transform: scale(0.97); }

.cart-count {
  position: absolute;
  top: -7px; right: -5px;
  min-width: 22px; height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cream);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--rose); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--rose-dark); }
.btn-whatsapp { background: var(--wa-green); color: #fff; box-shadow: var(--shadow); }
.btn-whatsapp:hover { background: var(--wa-green-dark); }
.btn-outline { background: #fff; border-color: var(--rose); color: var(--rose-dark); }
.btn-outline:hover { background: var(--rose-soft); }
.btn-big { font-size: 18px; padding: 14px 28px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 100%);
  padding: 34px 0 40px;
}

.hero-inner { display: grid; gap: 26px; align-items: center; }

.hero-badge {
  display: inline-block;
  margin: 0 0 10px;
  background: var(--rose-soft);
  color: var(--rose-dark);
  font-weight: 800;
  font-size: 13.5px;
  padding: 6px 14px;
  border-radius: 999px;
}

.hero h1 { font-size: clamp(40px, 9vw, 62px); margin: 0 0 4px; line-height: 1.05; }
.hero-motto { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: clamp(19px, 4.5vw, 24px); color: var(--rose-dark); margin: 0 0 12px; }
.hero-text { margin: 0 0 22px; font-size: 17px; color: var(--cocoa-soft); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 16px 0 0; font-weight: 700; font-size: 14.5px; color: var(--cocoa-soft); }

.hero-photo {
  margin: 0;
  background: #fff;
  padding: 10px;
  border-radius: 26px;
  box-shadow: var(--shadow-lift);
  transform: rotate(1.2deg);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 18px;
}
.hero-photo figcaption { text-align: center; font-weight: 700; color: var(--cocoa-soft); padding: 10px 4px 4px; font-size: 14.5px; }

/* ---------- Trust strip ---------- */

.trust-strip { background: #fff; border-top: 1px solid var(--cream-deep); border-bottom: 1px solid var(--cream-deep); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding-top: 16px; padding-bottom: 16px; }
.trust-item { font-weight: 800; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.trust-item span { font-size: 19px; }

/* ---------- Sections ---------- */

.section-title { font-size: clamp(27px, 5.5vw, 36px); margin: 0 0 6px; }
.section-sub { margin: 0 0 20px; color: var(--cocoa-soft); max-width: 40rem; }

.shop-section { padding: 44px 0 8px; }
.how-section { padding: 40px 0; }
.about-section { padding: 30px 0 44px; }
.note-section { padding: 0 0 48px; }

/* ---------- Shop controls ---------- */

.shop-controls { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }

.search-box {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 2px solid var(--cream-deep);
  border-radius: 999px;
  padding: 0 16px;
  min-height: 50px;
  box-shadow: var(--shadow);
}
.search-box:focus-within { border-color: var(--rose); }
.search-box input {
  border: 0; outline: none; background: transparent;
  font: inherit; font-size: 16px; color: var(--cocoa);
  width: 100%; min-height: 46px;
}
.search-box input::placeholder { color: #B79B92; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--cream-deep);
  background: #fff;
  color: var(--cocoa);
  font-family: inherit;
  font-weight: 800;
  font-size: 14.5px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--rose); color: var(--rose-dark); }
.chip.active { background: var(--rose); border-color: var(--rose); color: #fff; }

/* ---------- Product grid & cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-bottom: 26px;
}

.product-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--rose-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }

.ph-tile {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(145deg, var(--rose-soft), var(--butter-soft));
  color: var(--rose-dark);
}
.ph-emoji { font-size: 42px; line-height: 1; }
.ph-initial { font-family: 'Playfair Display', Georgia, serif; font-size: 30px; font-weight: 700; opacity: 0.65; }

.badge-chip {
  position: absolute; z-index: 2;
  top: 10px; left: 10px;
  background: var(--butter);
  color: var(--cocoa);
  font-size: 12px; font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-cat { font-size: 11.5px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--sage); margin: 0; }
.card-name { font-size: 17.5px; margin: 0; line-height: 1.25; }
.card-desc { margin: 0; font-size: 13.5px; color: var(--cocoa-soft); flex: 1; }
.card-price { margin: 6px 0 4px; font-size: 18px; font-weight: 800; color: var(--rose-dark); }

.card-actions { display: flex; gap: 8px; margin-top: 6px; }
.add-btn {
  flex: 1;
  min-height: 46px;
  border: 0; border-radius: 12px;
  background: var(--rose); color: #fff;
  font-family: inherit; font-weight: 800; font-size: 14.5px;
  cursor: pointer; padding: 10px 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.add-btn:hover { background: var(--rose-dark); }
.add-btn:active { transform: scale(0.97); }
.wa-btn {
  width: 46px; min-height: 46px; flex: 0 0 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--wa-green); color: #fff;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.wa-btn:hover { background: var(--wa-green-dark); }
.wa-btn:active { transform: scale(0.95); }

.shop-state { text-align: center; color: var(--cocoa-soft); font-weight: 700; padding: 26px 0 34px; margin: 0; }
.empty-state .empty-emoji { font-size: 40px; margin: 0 0 6px; }
.empty-state p { margin: 0 0 14px; }

/* ---------- How to order ---------- */

.steps-grid { display: grid; gap: 14px; }
.step-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px; }
.step-num {
  margin: 0 0 8px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--rose-soft); color: var(--rose-dark);
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 21px;
  display: flex; align-items: center; justify-content: center;
}
.step-card h3 { margin: 0 0 6px; font-size: 20px; }
.step-card p { margin: 0; color: var(--cocoa-soft); }

/* ---------- About ---------- */

.about-inner { display: grid; gap: 24px; align-items: center; }
.about-photo { margin: 0; background: #fff; padding: 10px; border-radius: 26px; box-shadow: var(--shadow-lift); transform: rotate(-1.2deg); }
.about-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 42%; border-radius: 18px; }
.about-copy p { color: var(--cocoa-soft); }
.about-copy p strong { color: var(--cocoa); }
.about-copy .btn { margin-top: 8px; }

/* ---------- Note card ---------- */

.note-card {
  background: var(--sage-soft);
  border: 2px dashed var(--sage);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.note-card h2 { margin: 0 0 8px; font-size: 24px; }
.note-card p { margin: 0 0 8px; color: var(--cocoa); }
.note-card p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--cocoa); color: #F7E9E4; padding: 44px 0 110px; }
.footer-inner { text-align: center; }
.footer-brand { font-family: 'Playfair Display', Georgia, serif; font-size: 28px; font-weight: 700; margin: 0 0 4px; color: #fff; }
.footer-tag { margin: 0 0 16px; color: var(--butter); font-weight: 700; }
.footer-text { margin: 0 0 18px; color: #E8CFC6; }
.footer-credit { margin: 26px 0 0; font-size: 14px; color: #C9A79C; }

/* ---------- Cart drawer ---------- */

.cart-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(74, 47, 42, 0.45);
  opacity: 0; transition: opacity 0.22s ease;
}
.cart-overlay.show { opacity: 1; }

.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 61;
  width: min(420px, 94vw); height: 100dvh;
  background: var(--cream);
  box-shadow: -12px 0 40px rgba(74, 47, 42, 0.25);
  transform: translateX(105%);
  transition: transform 0.25s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--cream-deep);
  background: #fff;
}
.cart-head h2 { margin: 0; font-size: 23px; }
.icon-button {
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: var(--rose-soft); color: var(--rose-dark);
  font-size: 17px; font-weight: 800; cursor: pointer;
}

.cart-items { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.cart-empty { text-align: center; color: var(--cocoa-soft); font-weight: 700; padding: 34px 16px; margin: 0; line-height: 1.7; }

.cart-line { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; }
.cart-line-top { display: flex; justify-content: space-between; gap: 10px; }
.cart-line-name { font-weight: 800; margin: 0; }
.cart-line-price { font-size: 13.5px; color: var(--cocoa-soft); margin: 2px 0 0; }
.remove-btn {
  border: 0; background: transparent; color: var(--rose);
  font-family: inherit; font-weight: 800; font-size: 13.5px;
  cursor: pointer; min-height: 44px; padding: 6px 4px;
}
.cart-line-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.qty-control { display: inline-flex; align-items: center; gap: 4px; }
.qty-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--cream-deep);
  background: #fff; color: var(--cocoa);
  font-size: 18px; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.qty-btn:hover { border-color: var(--rose); color: var(--rose-dark); }
.qty-value { min-width: 30px; text-align: center; font-weight: 800; }
.line-total { font-weight: 800; color: var(--rose-dark); }

.cart-foot { border-top: 1px solid var(--cream-deep); background: #fff; padding: 16px 18px 20px; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 12px; }
.cart-total-row strong { color: var(--rose-dark); }
.cart-note { font-size: 13px; color: var(--cocoa-soft); margin: 10px 0 0; text-align: center; }

/* ---------- Mobile sticky bar ---------- */

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #fff;
  border-top: 1px solid var(--cream-deep);
  box-shadow: 0 -6px 24px rgba(74, 47, 42, 0.12);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
}
.mobile-bar-info { display: flex; flex-direction: column; line-height: 1.25; font-size: 13.5px; color: var(--cocoa-soft); white-space: nowrap; }
.mobile-bar-info strong { color: var(--rose-dark); font-size: 16px; }
.mobile-bar .btn { flex: 1; min-height: 50px; padding: 10px 12px; font-size: 15px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 92px; z-index: 70;
  transform: translateX(-50%) translateY(16px);
  background: var(--cocoa); color: #fff;
  font-weight: 800; font-size: 15px;
  padding: 12px 20px; border-radius: 999px;
  box-shadow: var(--shadow-lift);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 92vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-controls { flex-direction: row; align-items: center; }
  .search-box { flex: 0 1 340px; }
  .chip-row { flex: 1; }
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .cart-button { margin-left: 0; }
  .header-inner { gap: 22px; }
  .main-nav { margin-left: auto; }
  .cart-button { margin-left: 6px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero-photo img { aspect-ratio: 4 / 3.4; }
  .about-inner { grid-template-columns: 0.95fr 1.05fr; }
  .about-photo img { aspect-ratio: 4 / 3.4; }
  .mobile-bar { display: none; }
  .site-footer { padding-bottom: 44px; }
  .toast { bottom: 28px; }
}

@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
