/* NenoWorks theme x the existing Whop storefront.
   Loaded on shop pages only (never checkout or order-complete), after the
   original storefront stylesheets and the theme's own theme.css. It only
   settles the few places where the original sheets and the theme share a
   class or element name, and styles the app's cart drawer as the theme bag. */

/* Links: the original sheet removes every underline; the theme expects the
   browser default unless a component says otherwise. :where() keeps this
   weaker than any theme class rule. */
:where(.site-shell, .drawer) a { text-decoration-line: underline; }

/* .hero, .eyebrow, .prose and .note are original class names too. */
.site-shell .hero {
  min-height: 0;
  padding: 0;
  align-items: normal;
  justify-content: normal;
  flex-direction: row;
}
@media (min-width: 39.01rem) { .site-shell .hero { min-height: 0; } }
.site-shell .eyebrow {
  display: block;
  gap: normal;
  align-items: normal;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.site-shell .prose { padding: 0; line-height: 1.65; }
.site-shell .prose :is(p, ul, ol) { margin-bottom: 0; color: inherit; }
.site-shell .prose ul { padding-left: 1.25rem; list-style: disc; }
.site-shell .prose h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.12;
}
.site-shell .prose b { color: var(--wine-ink); }
.site-shell .note {
  border: 1px solid var(--border);
  border-radius: .9rem;
  padding: .8rem 1rem;
  background: #f4dfd3;
  color: var(--wine-ink);
  font-size: .92rem;
}
.site-shell .prose .product-grid { margin-block: 1.2rem 1.6rem; }
.site-shell .prose .button { color: var(--white); text-decoration: none; }
.site-shell .prose .button--outline { color: var(--wine-ink); }
.site-shell .prose .button--outline:hover { color: var(--white); }
.site-shell .prose .button .nw-wa-icon { width: 1.1rem; height: 1.1rem; }
.site-shell .section-end .nw-wa { gap: .45rem; }
.site-shell .section-end .nw-wa-icon { width: 1.1rem; height: 1.1rem; }
.site-shell .section-end { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.nw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Product page: variant chips, buy area and the printed-set panel. */
.product-summary .nw-buy { display: block; }
.product-summary .nw-option { margin: .9rem 0 0; border: 0; padding: 0; }
.product-summary .nw-option legend { margin-bottom: .45rem; color: var(--wine-ink); font-weight: 750; }
.product-summary .nw-option .filter-list { margin: 0; }
.product-summary .product-actions .button svg { width: 1.05rem; height: 1.05rem; }
.nw-print-material { margin-block: .7rem .4rem; }
.nw-print-lines { display: grid; gap: .3rem; margin: .5rem 0 .2rem; padding: 0; list-style: none; max-width: 22rem; }
.nw-print-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.nw-print-lines li:last-child { border-top: 1px solid var(--border); padding-top: .35rem; color: var(--wine-ink); }
.product-accordion .button--small { color: var(--white); text-decoration: none; }

/* The app's cart drawer, dressed as the theme's project bag. */
.drawer-backdrop { z-index: 90; background: #382728b5; }
.drawer {
  width: min(28rem, 100%);
  border-left: 0;
  border-radius: 1.4rem 0 0 1.4rem;
  padding: 1.4rem 1.3rem;
  background: var(--paper, #fff7e7);
  color: var(--ink, #352824);
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  box-shadow: -1.5rem 0 3rem -1.5rem #43282c55;
}
.drawer-head h2 {
  color: var(--wine-ink, #57262f);
  font: 780 clamp(1.7rem, 4vw, 2.3rem) / 1.05 var(--font-display, Fraunces, Georgia, serif);
  letter-spacing: -.035em;
}
.drawer-close { border: 1px solid var(--border, #ddcbb2); background: var(--paper, #fff7e7); color: var(--wine-ink, #57262f); }
.drawer-lines { margin: 0; padding: 0; }
.drawer-line { border: 0; border-bottom: 1px solid var(--border, #ddcbb2); border-radius: 0; padding: .55rem 0 .85rem; background: none; }
.drawer-line img, .drawer-ph { border-radius: .7rem; background: #f4dfd3; object-fit: cover; }
.drawer-title { color: var(--wine-ink, #57262f); font-weight: 750; }
.drawer-sub { color: var(--muted, #665349); }
.drawer-remove { color: var(--wine-ink, #57262f); font-weight: 700; }
.drawer-empty { color: var(--muted, #665349); }
.drawer-empty .button, .drawer-checkout { justify-self: stretch; color: var(--white, #fffdf1); text-decoration: none; text-align: center; }
.drawer-foot { border-top: 1px solid var(--border, #ddcbb2); }
.drawer-subtotal b { color: var(--wine-ink, #57262f); font-family: var(--font-display, Fraunces, Georgia, serif); }
.drawer-foot .note {
  border: 1px solid var(--border, #ddcbb2);
  border-radius: .9rem;
  background: #f8e9d2;
  color: var(--muted, #665349);
}

/* Maker tools cards (shop layout, above the footer). */
.nw-tools { position: relative; padding-block: clamp(2rem, 4vw, 3.4rem) 0; }
.nw-tools-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nw-tool-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background: var(--paper-deep);
}
.nw-tool-card:nth-child(n + 4) { grid-column: span 3; }
.nw-tool-card:nth-child(3n + 2) { background: #f4dfd3; }
.nw-tool-card:nth-child(3n) { background: #edf0d9; }
.nw-tool-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sage-soft); }
.nw-tool-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nw-tool-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .55rem; padding: 1rem 1.15rem 1.2rem; }
.nw-tool-body h3 { color: var(--wine-ink); font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.15; }
.nw-tool-body p { flex: 1; margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.nw-tool-body .button { margin-top: .35rem; text-decoration: none; }
@media (max-width: 62rem) {
  .nw-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw-tool-card, .nw-tool-card:nth-child(n + 4) { grid-column: auto; }
  .nw-tool-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 38rem) {
  .nw-tools-grid { grid-template-columns: 1fr; }
  .nw-tool-card:last-child { grid-column: auto; }
}

/* Footer WhatsApp button. */
.site-footer .footer-inner > div > a.footer-whatsapp {
  display: inline-flex;
  width: fit-content;
  margin: .1rem 0 .55rem;
  color: #4b2523;
  font-size: .9rem;
  text-decoration: none;
}
.site-footer .footer-inner > div > a.footer-whatsapp:hover { background: #ffd98d; color: #4b2523; text-decoration: none; }
.site-footer .footer-inner > div > a.footer-whatsapp svg { width: 1.05rem; height: 1.05rem; }
