@import url("./theme.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .wordmark { font-family: var(--serif); font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(94%, 1320px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 4; background: white; padding: 8px 16px; }

.announcement { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 6px; background: var(--ink); color: var(--paper); font-size: clamp(10px, 3vw, 13px); font-weight: 650; white-space: nowrap; }
.announcement:hover { text-decoration: underline; text-underline-offset: 3px; }
.shop-announcement { margin: 0; padding: 7px 12px; background: var(--sand); text-align: center; font-size: .85rem; }
.kicker span { margin-inline: .55em; }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 86px; }
.masthead nav { display: flex; gap: clamp(10px, 2vw, 28px); font-size: 13px; }
.masthead > .contact { justify-self: end; }
.wordmark { display: inline-block; text-align: center; font-size: clamp(24px, 4vw, 35px); line-height: .96; letter-spacing: -.055em; white-space: nowrap; }
.wordmark small { display: block; margin-top: 9px; font: 8px/1 var(--sans); letter-spacing: .31em; }
.contact { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); padding: 9px 13px; font-size: 12px; white-space: nowrap; }
.contact:hover, .filters button:hover { border-color: var(--accent); }

.hero { background: var(--sand); text-align: center; padding: clamp(10px, 2vw, 24px); }
.hero-copy { padding: clamp(32px, 5vw, 69px) 10px clamp(30px, 4vw, 50px); }
.kicker { color: var(--accent); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .20em; }
h1 { margin: 12px 0 15px; font-size: clamp(56px, 9vw, 127px); line-height: .94; letter-spacing: -.075em; }
h1 em { color: var(--accent); font-weight: 400; }
.hero-copy > p:not(.kicker) { color: var(--muted); max-width: 42ch; margin: 0 auto; }
.primary, .order { display: inline-flex; align-items: center; gap: 13px; background: var(--green); color: white; padding: 10px 15px; font-size: 13px; }
.primary { margin-top: 21px; }
.primary:hover, .order:hover { background: var(--green-hover); }
.hero-gallery { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 4px; }
.hero-gallery img { height: clamp(148px, 34vw, 450px); object-fit: cover; object-position: center 24%; }

.style-section, .collection { padding-block: clamp(38px, 6vw, 78px) 0; scroll-margin-top: 10px; }
h2 { font-size: clamp(40px, 6vw, 72px); line-height: 1; margin-top: 7px; letter-spacing: -.055em; }
.category-grid, .product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(9px, 2vw, 24px); }
.category-grid { margin-top: 20px; }
.category { background: var(--sand); overflow: hidden; }
.category img { height: clamp(113px, 22vw, 270px); object-fit: cover; object-position: center 28%; transition: transform 250ms ease; }
.category:hover img { transform: scale(1.035); }
.category span { display: flex; align-items: center; justify-content: space-between; padding: 9px clamp(6px, 2vw, 16px); font: clamp(15px, 3vw, 27px)/1.1 var(--serif); }
.category b { font: 14px var(--sans); margin-left: 3px; }

.section-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.filters button { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 6px 11px; font-size: 12px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.collection-note { text-align: center; color: var(--muted); margin: 12px 0 23px; font-size: 13px; }
.product { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); }
.product-media { position: relative; background: var(--sand); }
.product-media img { aspect-ratio: 1; object-fit: contain; }
.product-body { display: flex; align-items: flex-start; flex-direction: column; flex: 1; padding: clamp(10px, 2vw, 18px); }
.product-title { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 3px; text-align: center; }
.product-title h3 { font-size: clamp(19px, 2.7vw, 28px); line-height: 1.1; }
.product-title > span { font-size: 12px; white-space: nowrap; color: var(--accent); font-weight: 650; }
.description { width: 100%; text-align: center; margin: 7px 0 13px; color: var(--muted); font-size: 12px; }
.colours { margin: auto 0 12px; padding: 0; border: 0; min-width: 0; }
.colours legend { padding: 0; font-size: 11px; color: var(--muted); }
.colours legend span { color: var(--ink); font-weight: 650; margin-left: 3px; }
.swatches { display: flex; gap: 5px; }
.swatch { display: grid; place-items: center; position: relative; min-width: 34px; min-height: 34px; cursor: pointer; }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.swatch span { width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; background: var(--swatch); }
.swatch input:checked + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.order { width: 100%; justify-content: space-between; }

.footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 7vw, 90px); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding-block: 28px; }
.footer-inner p { color: var(--muted); margin-top: 4px; font-size: 12px; }

@media (max-width: 680px) {
  .masthead { grid-template-columns: 1fr auto; min-height: 64px; }
  .masthead nav { display: none; }
  .masthead .wordmark { justify-self: start; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order { gap: 4px; padding: 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .category img { transition: none; }
}

/* The shared layout remains Maknoon Jamil's; each additional brand owns only its palette and imagery. */
.pop-petals-theme { --paper: #fff8f6; --card: #fffcfb; --sand: #f5e2df; --ink: #3f2b32; --muted: #7c6168; --accent: #ae6478; --line: #edcfd2; --green: #6c4657; --green-hover: #805569; }
.pop-petals-theme .product-media img { object-fit: cover; }
.pop-petals-theme .hero-gallery img { object-position: center 50%; }
.pop-petals-theme .hero h1 { max-width: 1000px; margin-inline: auto; }
.pop-petals-theme .hero-copy > p:not(.kicker) { max-width: 48ch; }
.pop-petals-theme .product-body { text-align: center; align-items: center; }
.pop-petals-theme .product-title > span { display: none; }
.pop-petals-theme .collection-note { max-width: 570px; margin-inline: auto; }
.product-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 18px; }
.product-gallery img { width: 100%; height: 155px; object-fit: cover; border: 1px solid var(--line); }
@media (max-width: 680px) { .pop-petals-theme .hero h1 { font-size: clamp(48px,11vw,72px); } .product-gallery img { height: 100px; } }

.variant-page { padding-block: clamp(24px, 6vw, 70px); }
.variant-back { display: inline-block; margin-bottom: 20px; text-decoration: underline; text-underline-offset: 4px; }
.variant-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; }
.variant-layout > img { max-height: 72vh; object-fit: contain; background: var(--sand); }
.variant-layout > div { text-align: center; }
.variant-layout h1 { font-size: clamp(42px, 7vw, 96px); }
.variant-description, .variant-price { margin-block: 12px; }
.variant-colours { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-block: 22px; }
.variant-colours a { border: 1px solid var(--line); padding: 6px 10px; }
.variant-colours a[aria-current="page"] { border-color: var(--ink); background: var(--sand); }
.variant-layout .order { width: auto; }
@media (max-width: 680px) {
  .variant-layout { grid-template-columns: 1fr; }
  .variant-layout > img { max-height: 60vh; }
}

.stock-note { color: var(--accent); padding-block: 8px; font-weight: 650; }

.order, .whatsapp-contact {
  background: #25d366;
  border-color: #25d366;
  color: #10261a;
  font-weight: 700;
}
.order:hover, .whatsapp-contact:hover { background: #1ebe5d; border-color: #1ebe5d; }
.order-pending,.order-pending:hover { background:#d8d5d0; border-color:#d8d5d0; color:#5d5752; cursor:not-allowed; opacity:1; }
.whatsapp-icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }

.product-share { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; margin: 5px auto 0; padding: 7px 10px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.product-share:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.product-share:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.product-share-dialog { position: fixed; inset: 0; width: min(440px, calc(100vw - 24px)); max-height: 90dvh; margin: auto; padding: 20px; overflow: auto; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.product-share-dialog::backdrop { background: #201c1880; }
.product-share-dialog h2 { padding-right: 55px; font-size: 28px; }
.product-share-dialog img { display: block; width: 100%; height: min(32dvh, 270px); object-fit: contain; margin: 12px 0; background: var(--sand); }
.product-share-dialog textarea { display: block; width: 100%; min-height: 115px; padding: 10px; resize: vertical; background: var(--card); color: var(--ink); border: 1px solid var(--line); font: inherit; font-size: 14px; }
.product-share-dialog p { margin-top: 12px; font-size: 12px; color: var(--muted); }
.share-close { position: absolute; right: 14px; top: 14px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share-actions a, .share-actions button, .share-close { min-height: 44px; padding: 9px 12px; background: transparent; border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.share-actions .share-photo { width: 100%; background: var(--ink); color: var(--paper); }
.share-photo:disabled { opacity: .55; cursor: wait; }

.masthead .wordmark { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; padding-block: 10px; }
.wordmark > img { width: 36px; height: 36px; object-fit: contain; margin: 0 auto 7px; }
.hero h1 { overflow-wrap: anywhere; }
.hero-gallery[data-count="1"] { grid-template-columns: minmax(0, 420px); justify-content: center; }
.hero-gallery[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-inner > div { min-width: 0; }
.footer .wordmark { white-space: normal; overflow-wrap: anywhere; }
.category-grid[data-count="1"], .product-grid[data-count="1"] { grid-template-columns: minmax(0, 420px); justify-content: center; }
.category-grid[data-count="2"], .product-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.flawless-glow-theme { --paper:#fcf5f0;--card:#fffcf8;--sand:#f1dfd7;--ink:#48352f;--muted:#806b64;--accent:#a77f76;--line:#e4cbc0;--green:#25d366;--green-hover:#1ebe5d; }
.flawless-glow-theme .hero { background:#f2e5dd; }
.flawless-glow-theme .hero h1 { max-width:860px;margin-inline:auto; }
.glow-brand-art { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;min-height:clamp(240px,30vw,390px);margin-top:8px;background:radial-gradient(ellipse at 45% 28%,#f7e9d4,#ebcfc8 70%,#d7b2aa);color:#806058;font:11px/1.2 var(--sans);letter-spacing:.24em; }
.glow-art-disc { width:clamp(145px,24vw,235px);height:clamp(145px,24vw,235px);display:grid;place-items:center;border:1px solid #ba9881;border-radius:50%;font:clamp(49px,8vw,90px)/1 var(--serif);letter-spacing:-.11em;color:#715346; }
.empty-collection { max-width:440px;margin:25px auto 0;padding:32px;border:1px solid var(--line);background:var(--card);color:var(--muted);text-align:center;font:clamp(17px,3vw,24px)/1.3 var(--serif); }
.pop-petals-theme .product-title > span { display: inline; }
