/* ------------------------------------------------------------
   Daisy-Lee shop: components layered on top of styles.css
   ------------------------------------------------------------ */

/* header additions */
.top { gap: 20px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
}
.cart-btn:hover { border-color: var(--ink); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--pink-ink); color: #fff; font-size: .72rem; font-weight: 600;
  display: none; align-items: center; justify-content: center;
}
.cart-count.has { display: inline-flex; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; padding: 11px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 820px) {
  .menu-btn { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 14px; flex-direction: column; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .next-pill { display: none; }
}

/* generic */
.muted { color: var(--ink-2); }
.wide { width: 100%; justify-content: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span::before { content: "/"; margin-right: 8px; color: var(--line); }
.flag {
  position: absolute; top: 12px; left: 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--pink-ink); color: #fff; padding: 5px 9px; border-radius: 999px;
}
.flag.inline { position: static; display: inline-block; margin-bottom: 10px; }
.deal-tag { display: inline-block; margin-left: 10px; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--pink-2); color: var(--pink-ink); vertical-align: middle; }

/* colour dots */
.dots { display: inline-flex; align-items: center; gap: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.dots em { font-style: normal; font-size: .75rem; color: var(--ink-2); margin-left: 2px; }
.swatch { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: inherit; font-size: .85rem; color: var(--ink); }
.swatch i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.swatch[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); }
.swatch.big { padding: 4px; border-radius: 50%; }
.swatch.big i { width: 28px; height: 28px; }
.swatch.big[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); border-color: transparent; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* product tiles */
.tile { width: 100%; height: 100%; display: block; }

/* product card */
.pcard { display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(43,33,26,.35); }
.pcard-media { position: relative; aspect-ratio: 4 / 3; background: var(--paper); overflow: hidden; }
.pcard-media img, .pcard-media .tile { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard-body { padding: 14px 16px 18px; }
.pcard-body h3 { font-size: 1.12rem; }
.pcard-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.pprice { font-weight: 600; }
.pprice.big { font-size: 1.4rem; margin: 6px 0 14px; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .pgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .pcard-body { padding: 12px; } }

/* home: collections grid */
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ctile { position: relative; display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--paper); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.ctile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(43,33,26,.35); }
.ctile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ctile-tone { position: absolute; inset: 0; background: var(--pink-2); display: grid; place-items: center; }
.ctile-tone img { position: static; width: 60%; height: auto; object-fit: contain; }
.ctile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 20px; background: linear-gradient(to top, rgba(255,255,255,.98) 60%, rgba(255,255,255,0)); }
.ctile.tone-pink .ctile-body { background: linear-gradient(to top, rgba(251,239,242,1) 60%, rgba(251,239,242,0)); }
.ctile-body h3 { font-size: 1.3rem; }
.ctile-body p { color: var(--ink-2); font-size: .92rem; margin-top: 4px; }
.ctile .count { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pink-ink); }
@media (max-width: 860px) { .cgrid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .ctile { aspect-ratio: 4 / 4.2; } }
@media (max-width: 480px) { .ctile-body { padding: 14px; } .ctile-body p { display: none; } }

.section-head.row { display: flex; align-items: end; justify-content: space-between; gap: 20px; max-width: none; }
.section-head.row a { white-space: nowrap; font-weight: 600; }

/* earrings deal banner */
.deal-banner { background: var(--pink-2); border-radius: 28px; padding: clamp(28px, 5vw, 48px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.deal-banner h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.deal-banner h2 em { color: var(--pink-ink); }
.deal-banner p { color: var(--ink-2); margin-top: 8px; max-width: 48ch; }
@media (max-width: 640px) { .deal-banner { grid-template-columns: 1fr; } }

/* home: markets strip */
.evlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.evt { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.evt.soon { border-color: var(--pink); background: var(--pink-2); }
.evt-date { flex: none; text-align: center; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.evt-date b { display: block; font-family: var(--display); font-size: 1.9rem; letter-spacing: -.02em; color: var(--ink); line-height: 1; margin-bottom: 4px; }
@media (max-width: 860px) { .evlist { grid-template-columns: 1fr; } }

/* collection page */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 26px; }
.filters .spacer { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .9rem; font-weight: 500; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.select { padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; background: #fff; color: var(--ink); }
.link-btn { background: none; border: 0; font: inherit; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.colour-filter { display: flex; flex-wrap: wrap; gap: 8px; }

/* product page */
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.pmedia { border-radius: 28px; overflow: hidden; background: var(--paper); aspect-ratio: 4 / 4.4; }
.pmedia img, .pmedia .tile { width: 100%; height: 100%; object-fit: cover; }
.pinfo h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.pinfo .lede { font-size: 1.05rem; margin-bottom: 20px; }
.field { margin: 18px 0; }
.field .label { font-size: .85rem; color: var(--ink-2); }
.field .label b { color: var(--ink); font-weight: 600; }
.buy { display: flex; gap: 12px; align-items: center; margin: 22px 0; }
.buy .btn { flex: 1; justify-content: center; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.perks { list-style: none; padding: 0; margin: 0 0 18px; color: var(--ink-2); font-size: .95rem; }
.perks li { padding: 6px 0 6px 22px; position: relative; }
.perks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--pollen); }
details { border-top: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
.related { margin-top: clamp(48px, 7vw, 90px); }
@media (max-width: 800px) { .product { grid-template-columns: 1fr; } .pmedia { aspect-ratio: 1; } }

/* drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(43,33,26,.35); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 80; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 90; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.2,1); box-shadow: -20px 0 50px -30px rgba(0,0,0,.4); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.5rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; color: var(--ink); }
.drawer-body { flex: 1; overflow: auto; padding: 8px 22px; }
.drawer-foot { padding: 16px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-media { display: block; width: 72px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--paper); }
.line-media img, .line-media .tile { width: 100%; height: 100%; object-fit: cover; }
.line-info a { text-decoration: none; }
.line-info .muted { display: block; font-size: .88rem; }
.line-info .qty { margin-top: 8px; transform: scale(.85); transform-origin: left; }
.line-price { text-align: right; font-weight: 600; }
.line-price .remove { display: block; margin: 8px 0 0 auto; background: none; border: 0; font: inherit; font-size: .82rem; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.empty { text-align: center; padding: 60px 0; display: grid; gap: 14px; justify-items: center; color: var(--ink-2); }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.row.total { font-weight: 600; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.row.deal { color: var(--pink-ink); font-weight: 500; }
.hint { font-size: .9rem; color: var(--ink-2); background: var(--paper); padding: 10px 12px; border-radius: 12px; }
.hint.good { color: var(--leaf); background: var(--leaf-2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: .95rem; opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; max-width: calc(100% - 40px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* checkout */
.checkout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); }
.panel h2 { font-size: 1.5rem; margin-bottom: 14px; }
.panel + .panel { margin-top: 18px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fgrid .full { grid-column: 1 / -1; }
label.f { display: grid; gap: 6px; font-size: .88rem; color: var(--ink-2); }
label.f input, label.f select { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: #fff; }
label.f input:focus { outline: 3px solid var(--pollen); outline-offset: 1px; border-color: var(--ink); }
.radio { display: flex; gap: 12px; align-items: start; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; }
.radio + .radio { margin-top: 10px; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.radio input { margin-top: 4px; }
.radio strong { display: block; }
.radio span { font-size: .9rem; color: var(--ink-2); }
.summary { position: sticky; top: 90px; }
.sline { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sline-media { position: relative; width: 56px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper); }
.sline-media img, .sline-media .tile { width: 100%; height: 100%; object-fit: cover; }
.sline-media b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.form-error { color: #B3261E; min-height: 1.4em; font-size: .92rem; margin-top: 10px; }
.secure { font-size: .85rem; color: var(--ink-2); text-align: center; margin-top: 10px; }
.demo-note { background: var(--pollen-2); border: 1px solid #F0DE9A; border-radius: 14px; padding: 12px 16px; font-size: .92rem; margin-bottom: 20px; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; order: -1; } }

/* footer nav */
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 14px; }
.foot-nav a { text-decoration: none; font-weight: 500; color: var(--ink); border-bottom: 1.5px solid var(--line); }
.foot-nav a:hover { border-bottom-color: var(--pink-ink); }

/* success */
.success { max-width: 640px; text-align: center; }
.success .order { text-align: left; margin-top: 24px; }
.order-id { font-weight: 600; margin-bottom: 8px; }
