

/* AREEJ HANDMADE — COMPLETE STYLESHEET */
:root {
  --cream: #fffaf6;
  --linen: #f6ede7;
  --paper: #fffdfb;
  --ink: #392b2c;
  --ink-soft: #78696a;
  --rose: #d58e8b;
  --rose-dark: #ad6269;
  --rose-light: #f7e6e4;
  --gold: #c49b68;
  --line: #eadbd5;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Figtree", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 115px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.65 var(--sans); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.16; }
p { margin: 0 0 1em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rose-dark); outline-offset: 3px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--ink); color: white; }
.skip:focus { top: 12px; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 30; background: #fffaf6; border-bottom: 1px solid var(--line); }
.site-header::after { display: none; }
.bar { display: flex; align-items: center; gap: 28px; min-height: 90px; padding-block: 8px; }
.brand { display: block; flex: 0 0 auto; margin-right: auto; line-height: 0; }
.brand img { width: auto; height: 70px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 34px); }
.nav a { padding: 8px 0; text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--rose-dark); border-bottom-color: var(--rose); }
.basket-btn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 15px; border: 1px solid #dfc5c0; border-radius: 999px; background: #fff8f7; font-weight: 650; white-space: nowrap; }
.basket-btn:hover { background: var(--rose-light); }
.count { display: grid; place-items: center; min-width: 29px; height: 29px; padding: 0 6px; border-radius: 50%; background: var(--rose-dark); color: white; font-size: .85rem; }
.count.bump { animation: bump .3s ease; }
@keyframes bump { 50% { transform: scale(1.18); } }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 23px; border: 1px solid transparent; border-radius: 999px; text-align: center; text-decoration: none; font-size: .96rem; font-weight: 700; transition: background .2s, color .2s; }
.btn-primary, .btn-warm { background: var(--rose); color: white; }
.btn-primary:hover, .btn-warm:hover { background: var(--rose-dark); }
.btn-quiet { padding-inline: 8px; background: transparent; text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 5px; }
.btn-ghost { border-color: var(--rose-dark); color: var(--rose-dark); background: transparent; }
.btn-ghost:hover { background: var(--rose-light); }
.btn-ghost-light { border-color: rgba(255,255,255,.65); color: white; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }

/* HERO */
.hero {
  position: relative;
  display: block;
  min-height: 570px;
  padding: 44px 0;
  overflow: hidden;
  background-color: #b18d7e;
  background-image: url("assets/hero-floral.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-grid { display: flex; align-items: center; min-height: 480px; }
.hero-copy { position: relative; z-index: 1; width: min(660px, 100%); padding: clamp(26px, 5vw, 54px); border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: rgba(35,25,25,.77); box-shadow: 0 16px 48px rgba(24,14,14,.18); color: white; }
.hero-copy::before { content: "HANDMADE WITH CARE"; display: block; margin-bottom: 20px; color: #f4d3c6; font-size: .75rem; font-weight: 750; letter-spacing: .24em; }
.hero h1 { max-width: 14ch; color: white; font-size: clamp(2.35rem, 4.4vw, 4.3rem); line-height: 1.15; }
.hero .lead { max-width: 35em; margin: 22px 0 0; color: #f4eae6; font-size: clamp(1rem, 1.65vw, 1.15rem); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn-primary { background: var(--rose); color: white; }
.hero-actions .btn-quiet { border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 12px 22px; color: white; text-decoration: none; }
.hero-actions .btn-quiet:hover { background: rgba(255,255,255,.14); }
.hero-note { margin: 28px 0 0; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.24); color: #eee0da; font-size: .89rem; }
.hero-note::before { display: none; }
.hero-art { display: none !important; }
.draw, .fade { animation: none !important; }

/* SHOP */
.section { padding: 78px 0; }
.shop { background: var(--cream); }
.section-head { max-width: 700px; margin: 0 auto 28px; text-align: center; }
.section-head h2, .custom h2, .about h2 { font-size: clamp(2rem, 4vw, 3rem); }
.shop .section-head::before { content: "— EXPLORE —"; display: block; margin-bottom: 15px; color: var(--rose-dark); font-size: .75rem; font-weight: 750; letter-spacing: .25em; }
.section-head p { margin: 13px 0 0; color: var(--ink-soft); font-size: 1.05rem; }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 38px; }
.chip { padding: 9px 21px; border: 1px solid #dfc8c1; border-radius: 999px; background: transparent; color: var(--ink); font-size: .93rem; font-weight: 650; }
.chip:hover { border-color: var(--rose-dark); background: white; }
.chip[aria-pressed="true"] { border-color: var(--rose-dark); background: var(--rose-dark); color: white; }

/* PRODUCT GRID — NO SQUISHED PHOTOS */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
  align-items: start;
}
.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 5px 18px rgba(64,36,31,.035);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(64,36,31,.11); }
.card-art {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--linen);
  line-height: 0;
}
.card-art img, .card-art svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}
.card-art img { transition: transform .3s ease; }
.card:hover .card-art img { transform: scale(1.035); }
.card-body {
  display: flex;
  flex: 1;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 110px;
  padding: 17px 17px 20px;
  background: var(--paper);
  line-height: 1.35;
}
.card-body > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.card h3 { margin: 0; color: var(--ink); font-size: clamp(1.04rem, 1.6vw, 1.24rem); line-height: 1.4; overflow-wrap: anywhere; }
.card:hover h3 { color: var(--rose-dark); }
.card .price { flex-shrink: 0; margin: 0; color: var(--ink); font-size: 1.03rem; font-weight: 750; white-space: nowrap; }
.card .tag { display: inline-block; margin: 8px 0 0; padding: 4px 9px; border-radius: 999px; background: var(--rose-light); color: var(--rose-dark); font-size: .75rem; font-weight: 650; line-height: 1.4; }
.card-category, .card .category, .card .eyebrow { display: block; margin: 0 0 7px; color: var(--rose-dark); font-size: .72rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.empty { color: var(--ink-soft); }

/* CUSTOM ORDERS */
.custom { position: relative; background: #4a3439; color: #fffaf7; }
.custom::before, .custom::after { display: none; }
.custom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 62px; align-items: start; }
.custom-copy p { max-width: 33em; margin-top: 20px; color: #f1e2dd; font-size: 1.08rem; }
.ticks { display: grid; gap: 12px; margin: 25px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 29px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: #f1b6ad; font-weight: 800; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .95rem; font-weight: 650; }
.field input, .field select, .field textarea { display: block; width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #dbc8c2; border-radius: 10px; background: white; color: var(--ink); }
.field textarea { resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d46d72; }
.form-error { margin: 0 0 14px; color: #ffd1d1; font-weight: 650; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions.stack { flex-direction: column; }
.form-actions.stack .btn { width: 100%; }

/* ABOUT */
.about { background: var(--linen); }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px; align-items: start; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy p { max-width: 35em; font-size: 1.06rem; }
.steps { display: grid; gap: 23px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; gap: 3px; min-height: 48px; padding-left: 64px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--rose); border-radius: 50%; color: var(--rose-dark); font-family: var(--serif); }
.steps strong { font-size: 1.04rem; }
.steps span { color: var(--ink-soft); }

/* FOOTER */
.site-footer { padding: 52px 0 0; border-top: 1px solid var(--line); background: var(--cream); }
.site-footer::before { display: none; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 40px; align-items: start; }
.foot-grid img { width: 150px; height: auto; }
.foot-grid h2 { margin-bottom: 14px; font-size: 1.3rem; }
.foot-grid p { margin-bottom: 8px; color: var(--ink-soft); }
.plain { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plain a { text-decoration-color: var(--rose); text-underline-offset: 4px; }
.legal { padding: 36px 0 30px; }
.legal p { margin: 0; color: var(--ink-soft); font-size: .89rem; }

/* PRODUCT POPUP */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(32,20,22,.6); }
.close { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: white; }
.close:hover { background: var(--rose-light); }
.product-dialog { width: min(960px, 94vw); max-height: 92dvh; padding: 0; overflow: auto; border: 0; border-radius: 18px; background: var(--paper); }
.product-dialog .close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.pd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-art { display: grid; place-items: center; min-height: 340px; overflow: hidden; background: var(--linen); }
.pd-art img, .pd-art svg { width: 100%; height: 100%; max-height: 620px; object-fit: cover; }
.pd-info { display: flex; flex-direction: column; justify-content: center; padding: 46px 36px; }
.pd-cat { margin: 0 0 7px; color: var(--rose-dark); font-size: .85rem; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.pd-info h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.pd-price { margin: 12px 0; font-size: 1.4rem; font-weight: 750; }
.pd-details { display: grid; gap: 4px; margin: 0 0 20px; padding-left: 1.2em; color: var(--ink-soft); }
.pd-info .form-error, .bk-foot .form-error { color: var(--rose-dark); }
.pd-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #dec6c1; border-radius: 999px; }
.qty button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 1.25rem; }
.qty button:hover { background: var(--rose-light); }
.qty output { min-width: 28px; text-align: center; font-weight: 750; }

/* BASKET */
.basket-dialog { width: min(460px, 100vw); height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: var(--paper); }
.basket-dialog[open] { display: flex; flex-direction: column; animation: drawer .25s ease-out; }
@keyframes drawer { from { transform: translateX(35px); opacity: .6; } }
.bk-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.bk-head::after { display: none; }
.bk-head h2 { font-size: 1.6rem; }
.bk-body { flex: 1; overflow: auto; padding: 8px 24px; }
.bk-empty { padding: 40px 0; }
.bk-empty p { color: var(--ink-soft); }
.bk-item { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bk-thumb { width: 74px; height: 74px; overflow: hidden; border-radius: 10px; background: var(--linen); }
.bk-thumb img, .bk-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.bk-item h3 { font-size: 1.02rem; }
.bk-note { margin: 4px 0 0; color: var(--ink-soft); font-size: .85rem; }
.bk-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.bk-row .qty button { width: 32px; height: 32px; }
.link-btn { padding: 4px 0; border: 0; background: transparent; color: var(--rose-dark); text-decoration: underline; }
.bk-foot { max-height: 62dvh; padding: 16px 24px 24px; overflow: auto; border-top: 1px solid var(--line); background: var(--linen); }
.bk-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.bk-total strong { font-size: 1.4rem; }
.small { margin: 14px 0 0; color: var(--ink-soft); font-size: .87rem; }

/* TOAST */
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 50; max-width: calc(100% - 30px); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: white; font-weight: 650; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* TABLETS */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .custom-grid, .about-grid { gap: 36px; }
  .foot-grid { gap: 24px; }
  .bar { gap: 16px; }
  .nav { gap: 16px; }
}

/* PHONES */
@media (max-width: 680px) {
  html { scroll-padding-top: 125px; }
  .wrap { width: min(100% - 32px, 1180px); }
  .bar { flex-wrap: wrap; min-height: 0; gap: 4px 12px; padding-block: 8px; }
  .brand img { height: 54px; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; overflow-x: auto; font-size: .86rem; }
  .basket-btn { padding: 7px 11px; font-size: .9rem; }
  .count { min-width: 25px; height: 25px; }
  .hero { min-height: 480px; padding: 26px 0; background-position: 60% center; }
  .hero-grid { min-height: 428px; }
  .hero-copy { padding: 25px 21px; background: rgba(35,25,25,.82); }
  .hero h1 { font-size: clamp(2.1rem, 8vw, 3rem); }
  .hero .lead { margin-top: 16px; font-size: .98rem; }
  .hero-actions { gap: 10px; margin-top: 20px; }
  .hero-actions .btn { padding: 11px 15px; font-size: .85rem; }
  .section { padding: 55px 0; }
  .filters { gap: 8px; margin-bottom: 25px; }
  .chip { padding: 8px 13px; font-size: .82rem; }
  .grid { gap: 16px 12px; }
  .card { border-radius: 12px; }
  .card-body { flex-wrap: wrap; min-height: 0; gap: 6px; padding: 11px; }
  .card h3 { font-size: 1rem; }
  .card .price { font-size: .98rem; }
  .custom-grid, .about-grid, .pd-grid, .foot-grid { grid-template-columns: 1fr; }
  .pd-art { min-height: 0; max-height: 340px; }
  .pd-art img { max-height: 340px; }
  .pd-info { padding: 26px 22px; }
  .foot-grid { gap: 25px; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

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