/* ==========================================================================
   Look v2 (2026-11-09): warm linen, patterns first, stitched details.
   Only loaded while body has .atcs-v2 (admin preview), so the live look is untouched.
   ========================================================================== */
body.atcs-v2 {
  --v2-cream: #fbf8f2;
  --v2-linen: #f4ecdf;
  --v2-aida: #f5f4ef;
  --v2-line: #e7dcc9;
  --v2-wood: #d8b685;
  --v2-wood-dark: #b48d58;
  --v2-red: #b02232;
  --v2-ink: #22335b;
  --v2-soft: #4e5a72;
  /* The theme's cool gray panel and line colors become warm linen on every page. */
  --wp--preset--color--mist: #f4ecdf;
  --wp--preset--color--line: #e7dcc9;
  --wp--preset--color--sage-light: #efe3cf;
  background: var(--v2-cream);
}
/* Panels that had the old cool gray written in directly */
.atcs-v2 .photo-start, .atcs-v2 .photo-form, .atcs-v2 .photo-wait, .atcs-v2 .photo-facts li, .atcs-v2 .photo-recent a,
.atcs-v2 .photo-account li, .atcs-v2 .photo-sample__facts, .atcs-v2 .member-extras, .atcs-v2 .video-note { background: var(--v2-linen); }
.atcs-v2 .photo-custom__field input, .atcs-v2 .photo-custom__field select { border-color: var(--v2-line); }
.atcs-v2 .page-banner img { box-shadow: 0 14px 30px rgba(60, 40, 20, .12); }

/* Season note above the header */
.atcs-v2 .v2-note { margin: 0; background: var(--v2-red); text-align: center; padding: 9px 16px; font-size: 17px; font-weight: 700; max-width: none; }
.atcs-v2 .v2-note a { color: #fff; text-decoration: none; }
.atcs-v2 .v2-note a:hover { text-decoration: underline; }

/* Header: cream, and the whole menu shows on laptops (from 1200px) */
.atcs-v2 .site-header { background: var(--v2-cream); border-bottom-color: var(--v2-line); }
@media (min-width: 1200px) {
  body.atcs-v2 .site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: none; }
  body.atcs-v2 .site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: block; width: 100%; position: relative; z-index: auto; background-color: inherit; }
  body.atcs-v2 .site-header > .alignwide { max-width: 1290px !important; }
  body.atcs-v2 .site-header .wp-block-navigation, body.atcs-v2 .site-header .wp-block-navigation__container { gap: 22px; font-size: 17.5px; }
  body.atcs-v2 .site-header .wp-block-navigation__container { flex-wrap: nowrap; }
}

/* Shared bits */
.atcs-v2 .v2-eyebrow { margin: 0 0 8px; font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--v2-red); }
.atcs-v2 .v2sec { padding-block: 76px; }
.atcs-v2 .v2sec--linen { background: var(--v2-linen); }
.atcs-v2 .v2wide { max-width: 1200px; margin-inline: auto; padding-inline: 24px; box-sizing: border-box; }
.atcs-v2 .v2sec h2 { font-size: clamp(30px, 3.4vw, 42px); margin: 0 0 14px; text-align: left; }
.atcs-v2 .v2sec p { color: var(--v2-soft); font-size: 19px; }
.atcs-v2 .v2head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 30px; }
.atcs-v2 .v2head h2 { margin: 0; }
.atcs-v2 .v2head--center { justify-content: center; text-align: center; }
.atcs-v2 .v2head--center h2 { text-align: center; }
.atcs-v2 .v2more { font-weight: 700; font-size: 19px; color: var(--v2-red); text-decoration: none; white-space: nowrap; }
.atcs-v2 .v2more:hover { text-decoration: underline; }
.atcs-v2 .wp-element-button.btn-outline { background: transparent; }
.atcs-v2 .wp-element-button.btn-outline:hover { background: var(--v2-ink); color: #fff; }

/* ---------- Hero: linen with an Aida weave, three stitched hoops ---------- */
.atcs-v2 .v2hero {
  background-color: var(--v2-linen);
  background-image: radial-gradient(rgba(34, 51, 91, .07) 1px, transparent 1.4px);
  background-size: 9px 9px;
  border-bottom: 1px solid var(--v2-line);
  margin-top: 0;
}
.atcs-v2 .v2hero__inner { max-width: 1200px; margin: 0 auto; padding: 64px 24px 72px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.atcs-v2 .v2hero h1 { font-size: clamp(40px, 4.8vw, 62px); line-height: 1.08; margin: 0 0 22px; }
/* "love" gets a red running-stitch underline */
.atcs-v2 .v2hero h1 em { font-style: normal; color: var(--v2-red); padding-bottom: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='6' viewBox='0 0 20 6'%3E%3Cpath d='M2 3h10' stroke='%23b02232' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left bottom / 20px 6px; }
.atcs-v2 .v2hero__lead { font-size: 21px; line-height: 1.55; color: #33405d; margin: 0 0 28px; max-width: 32em; }
.atcs-v2 .v2hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.atcs-v2 .v2hero__buttons a { text-decoration: none; font-size: 20px; padding: 16px 28px; }
.atcs-v2 .v2checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.atcs-v2 .v2checks li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--v2-ink); max-width: none; }
.atcs-v2 .v2checks li::before { content: ""; width: 14px; height: 14px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2L2 12' stroke='%23b02232' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Hoops: the stitched picture on Aida inside a wooden ring with its brass screw on top */
.atcs-v2 .hoops2 { position: relative; aspect-ratio: 1 / .92; max-width: 560px; width: 100%; margin-left: auto; }
.atcs-v2 .hoop2 { position: absolute; display: block; border-radius: 50%; background: var(--v2-aida); overflow: visible;
  box-shadow: 0 0 0 9px var(--v2-wood), 0 0 0 11px var(--v2-wood-dark), 0 18px 36px rgba(60, 40, 20, .22); transition: transform .2s ease; }
.atcs-v2 .hoop2 img { width: 100%; height: 100%; object-fit: contain; padding: 11%; box-sizing: border-box; border-radius: 50%; display: block; }
.atcs-v2 .hoop2::before { content: ""; position: absolute; left: 50%; top: -22px; width: 22px; height: 16px; margin-left: -11px; border-radius: 3px; background: linear-gradient(#e2c27a, #a8833a); box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.atcs-v2 .hoop2--1 { width: 66%; aspect-ratio: 1; left: 14%; top: 10%; z-index: 2; }
.atcs-v2 .hoop2--2 { width: 38%; aspect-ratio: 1; left: 0; top: 56%; z-index: 3; transform: rotate(-6deg); }
.atcs-v2 .hoop2--3 { width: 36%; aspect-ratio: 1; right: 0; top: 0; z-index: 1; transform: rotate(7deg); }
.atcs-v2 .hoop2:hover { transform: scale(1.03); z-index: 4; }

/* Phones/tablets: the main sections as big buttons right under the hero (the menu hides behind its button there) */
.atcs-v2 .v2quick { display: none; }
@media (max-width: 1199px) {
  .atcs-v2 .v2quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 1200px; margin: 0 auto; padding: 22px 24px 0; box-sizing: border-box; }
  .atcs-v2 .v2quick a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 58px; padding: 8px 12px; background: #fff; border: 1.5px solid var(--v2-line); border-radius: 10px; font-weight: 700; font-size: 18px; color: var(--v2-ink); text-decoration: none; line-height: 1.25; }
  .atcs-v2 .v2quick a:hover { border-color: var(--v2-ink); }
}

/* ---------- Pattern cards ---------- */
.atcs-v2 .pcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.atcs-v2 .pcard { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--v2-line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--v2-ink); padding-bottom: 16px; transition: box-shadow .2s, transform .2s; }
.atcs-v2 .pcard__img { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--v2-aida); margin-bottom: 10px; }
.atcs-v2 .pcard__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; box-sizing: border-box; display: block; }
.atcs-v2 .pcard__free { position: absolute; left: 12px; top: 12px; background: var(--v2-red); color: #fff; font-weight: 700; font-size: 15px; padding: 3px 11px; border-radius: 999px; }
.atcs-v2 .pcard__title { font-family: var(--wp--preset--font-family--serif); font-size: 21px; line-height: 1.25; padding-inline: 16px; }
.atcs-v2 .pcard__meta { font-size: 16px; color: var(--v2-soft); padding-inline: 16px; }
.atcs-v2 .pcard:hover, .atcs-v2 .pcard:focus-visible { box-shadow: 0 14px 30px rgba(60, 40, 20, .14); transform: translateY(-3px); }

/* ---------- Theme circles ---------- */
.atcs-v2 .tcircles { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 34px; }
.atcs-v2 .tcircle { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 140px; text-decoration: none; color: var(--v2-ink); text-align: center; }
.atcs-v2 .tcircle__img { display: block; width: 128px; height: 128px; border-radius: 50%; background: var(--v2-aida); margin-bottom: 14px;
  box-shadow: 0 0 0 6px var(--v2-wood), 0 0 0 8px var(--v2-wood-dark), 0 10px 20px rgba(60, 40, 20, .18); transition: transform .2s; }
.atcs-v2 .tcircle__img img { width: 100%; height: 100%; object-fit: contain; padding: 14%; box-sizing: border-box; display: block; }
.atcs-v2 .tcircle strong { font-family: var(--wp--preset--font-family--serif); font-weight: 400; font-size: 21px; line-height: 1.2; }
.atcs-v2 .tcircle > span:last-child { font-size: 16px; color: var(--v2-soft); }
.atcs-v2 .tcircle:hover .tcircle__img { transform: scale(1.06); }

/* ---------- Photo tool and Stitch Tracker rows ---------- */
.atcs-v2 .v2show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.atcs-v2 .v2show--flip > :first-child { order: 2; }
.atcs-v2 .v2show .compare { margin-inline: auto; box-shadow: 0 18px 40px rgba(60, 40, 20, .2); border-radius: 14px; }
.atcs-v2 .v2show .showcase__facts li { background: var(--v2-linen); }
.atcs-v2 .v2show .showcase__facts strong { color: var(--v2-ink); }
.atcs-v2 .v2tracker img { width: 100%; height: auto; display: block; border-radius: 14px; background: #fff; border: 1px solid var(--v2-line); box-shadow: 0 18px 40px rgba(60, 40, 20, .14); }

/* ---------- School ---------- */
.atcs-v2 .v2school { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.atcs-v2 .v2school__list { background: #fff; border: 1px solid var(--v2-line); border-radius: 14px; padding: 10px 28px; }
.atcs-v2 .v2school__list .weeks-list { grid-template-columns: 1fr; margin: 0; }
.atcs-v2 .v2school__list .weeks-list li:last-child { border-bottom: 0; }
.atcs-v2 .weeks-list li { border-bottom-color: var(--v2-line); padding: 12px 0; }

/* ---------- Email ---------- */
.atcs-v2 .v2mail { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; background: var(--v2-ink); border-radius: 18px; padding: 56px 56px 56px 72px; }
.atcs-v2 .v2mail h2 { color: #fff; }
.atcs-v2 .v2mail p { color: #dfe5ee; }
.atcs-v2 .v2mail .v2-eyebrow { color: #f2c6cb; }
.atcs-v2 .v2mail__hoops .hoops2 { aspect-ratio: 1 / .8; max-width: 380px; margin: 0 auto; }
.atcs-v2 .v2mail__hoops .hoop2--1 { width: 64%; left: 0; top: 14%; }
.atcs-v2 .v2mail__hoops .hoop2--2 { width: 52%; left: auto; right: 0; top: 4%; transform: rotate(6deg); z-index: 1; }
.atcs-v2 .v2mail .signup { justify-content: flex-start; margin: 18px 0 0; max-width: 560px; }
.atcs-v2 .v2mail .signup input[type=email] { border: 0; border-radius: 8px; }
.atcs-v2 .v2mail .signup__note { color: #c9d2e0; }
.atcs-v2 .v2mail .signup .wp-element-button { background: var(--v2-red); }
.atcs-v2 .v2mail .signup .wp-element-button:hover { background: #8c1a26; }

/* ---------- FAQ and footer ---------- */
.atcs-v2 .home-faq .faq details { border-bottom-color: #ddd0bb; }
.atcs-v2 .site-footer .sampler { background-color: var(--v2-cream); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1000px) {
  .atcs-v2 .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .atcs-v2 .v2mail { padding: 44px 36px; }
}
@media (max-width: 860px) {
  .atcs-v2 .v2hero__inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 48px; }
  .atcs-v2 .hoops2 { max-width: 420px; margin: 10px auto 0; }
  .atcs-v2 .v2show, .atcs-v2 .v2school, .atcs-v2 .v2mail { grid-template-columns: 1fr; gap: 32px; }
  .atcs-v2 .v2show--flip > :first-child { order: 0; }
}
@media (max-width: 700px) {
  .atcs-v2 .v2sec { padding-block: 52px; }
  .atcs-v2 .v2wide { padding-inline: 16px; }
  .atcs-v2 .v2hero h1 { font-size: 36px; }
  .atcs-v2 .v2hero__lead { font-size: 19px; }
  .atcs-v2 .v2hero__buttons a { flex: 1 1 100%; }
  .atcs-v2 .v2quick { grid-template-columns: 1fr 1fr; padding-inline: 16px; }
  .atcs-v2 .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .atcs-v2 .pcard__title { font-size: 18px; padding-inline: 10px; }
  .atcs-v2 .pcard__meta { font-size: 14.5px; padding-inline: 10px; }
  .atcs-v2 .pcard__free { font-size: 14px; left: 8px; top: 8px; }
  .atcs-v2 .tcircles { gap: 24px 12px; }
  .atcs-v2 .tcircle { width: 104px; }
  .atcs-v2 .tcircle__img { width: 92px; height: 92px; }
  .atcs-v2 .tcircle strong { font-size: 18px; }
  .atcs-v2 .tcircle > span:last-child { font-size: 15px; }
  .atcs-v2 .v2school__list { padding: 4px 16px; }
  .atcs-v2 .v2mail { padding: 34px 20px; border-radius: 14px; }
  .atcs-v2 .v2mail__hoops { display: none; }
}
@media (prefers-reduced-motion: reduce) { .atcs-v2 .pcard, .atcs-v2 .hoop2, .atcs-v2 .tcircle__img { transition: none; } }

/* Fixes after the first look (2026-11-09) */
.atcs-v2 .v2sec .v2-eyebrow { color: var(--v2-red); }
.atcs-v2 .v2sec .v2mail .v2-eyebrow { color: #f2c6cb; }
@media (min-width: 1100px) {
  .atcs-v2 .tcircles { flex-wrap: nowrap; gap: 22px; }
  .atcs-v2 .tcircle { width: 136px; }
}
.atcs-v2 .v2mail { padding-top: 64px; }
.atcs-v2 .v2mail__hoops .hoops2 { margin-top: 18px; }
.atcs-v2 .v2mail__hoops .hoop2--2 { top: 8%; }
@media (max-width: 700px) {
  .atcs-v2 .hoops2 { width: calc(100% - 28px); margin-inline: auto; }
}
.atcs-v2 #signup { scroll-margin-top: 20px; }

/* Shop patterns on the home page (2026-11-10) */
.atcs-v2 .pcard__price { font-weight: 700; font-size: 19px; color: var(--v2-red); padding-inline: 16px; margin-top: 2px; }
.atcs-v2 .pcard__draft { background: #6b7280; }
.atcs-v2 .v2sec--shoponly:not(:has(.pcard)) { display: none; }
@media (min-width: 900px) {
  .atcs-v2 .tcircles { display: grid; grid-template-columns: repeat(5, 150px); justify-content: center; gap: 30px 34px; flex-wrap: wrap; }
  .atcs-v2 .tcircle { width: 150px; }
}
@media (max-width: 700px) { .atcs-v2 .pcard__price { font-size: 17px; padding-inline: 10px; } }

/* Shop pattern pictures are framed close-ups: crop them to a square so the design fills the card (2026-11-10). */
.atcs-v2 .pcard--shop .pcard__img { aspect-ratio: 1; background: #ddd3c3; }
.atcs-v2 .pcard--shop .pcard__img img { object-fit: cover; padding: 0; }
.atcs-v2 .wp-block-woocommerce-product-collection .wc-block-components-product-image img,
.atcs-v2 .wc-block-product .wc-block-components-product-image img { aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; }
.atcs-v2 .pcard--shop .pcard__img { overflow: hidden; }
.atcs-v2 .pcard--shop .pcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.atcs-v2 .pcard--shop .pcard__free { z-index: 1; }

/* Shop grid on phones: two columns with big pictures and readable, compact text (2026-11-10). */
@media (max-width: 600px) {
  .atcs-v2 .wp-block-woocommerce-product-collection .wc-block-product { padding: 6px 6px 14px; }
  .atcs-v2 .wp-block-woocommerce-product-collection .wc-block-components-product-image img { border-radius: 8px; }
  .atcs-v2 .wp-block-woocommerce-product-collection .wp-block-post-title,
  .atcs-v2 .wp-block-woocommerce-product-collection h3.wp-block-post-title { font-size: 17px; line-height: 1.3; margin: 10px 4px 4px; }
  .atcs-v2 .wp-block-woocommerce-product-collection .wc-block-components-product-price { font-size: 18px; margin-bottom: 8px; }
  .atcs-v2 .wp-block-woocommerce-product-collection .wp-block-button__link { font-size: 16px; padding: 8px 12px; min-height: 44px; width: calc(100% - 8px); }
  .atcs-v2 .wp-block-woocommerce-product-collection .wc-block-product-template { gap: 12px; }
}

/* ==========================================================================
   Scale v3 (owner 2026-11-10: "website bht zyada barhi huwi lagrahi hai ... ui kamzor"):
   calmer sizes like a boutique pattern shop. Text 17px (16px on phones), smaller headings and buttons,
   tighter sections, four patterns per row in the shop.
   ========================================================================== */
html body.atcs-v2 { font-size: 17px; line-height: 1.6; }
html body.atcs-v2 .wp-element-button, html body.atcs-v2 .wp-block-button__link,
html body.atcs-v2 .woocommerce .button, html body.atcs-v2 button.button {
  font-size: 16px; min-height: 46px; padding: 11px 22px; border-radius: 6px; letter-spacing: .01em; }
.atcs-v2 main h1, .atcs-v2 .wp-block-post-title, .atcs-v2 .wp-block-query-title { letter-spacing: -.01em; }
.atcs-v2 main h1 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.15; }
.atcs-v2 main h2 { font-size: clamp(24px, 2.4vw, 30px); }
.atcs-v2 main h3 { font-size: 20px; }
.atcs-v2 p, .atcs-v2 li { max-width: 70ch; }

/* Header and season note */
.atcs-v2 .v2-note { font-size: 15px; padding: 7px 16px; font-weight: 600; }
.atcs-v2 .site-header { padding-block: 10px; }
.atcs-v2 .site-logo { font-size: 20px; }
.atcs-v2 .site-logo img { width: 36px; }
@media (min-width: 1200px) {
  body.atcs-v2 .site-header .wp-block-navigation, body.atcs-v2 .site-header .wp-block-navigation__container { font-size: 15.5px; gap: 24px; }
}
.atcs-v2 .nav-club a { padding: 7px 14px !important; font-size: 15px; }

/* Sections */
.atcs-v2 .v2sec { padding-block: 56px; }
.atcs-v2 .v2sec h2 { font-size: clamp(24px, 2.4vw, 32px); }
.atcs-v2 .v2sec p { font-size: 17px; }
.atcs-v2 .v2-eyebrow { font-size: 13px; letter-spacing: .12em; }
.atcs-v2 .v2more { font-size: 16px; }
.atcs-v2 .v2head { margin-bottom: 22px; }
.atcs-v2 .section { padding-block: 56px; }

/* Home hero */
.atcs-v2 .v2hero__inner { padding: 44px 24px 52px; gap: 40px; }
.atcs-v2 .v2hero h1 { font-size: clamp(34px, 3.8vw, 48px); margin-bottom: 16px; }
.atcs-v2 .v2hero__lead { font-size: 18px; margin-bottom: 22px; }
.atcs-v2 .v2hero__buttons a { font-size: 16px; padding: 13px 24px; }
.atcs-v2 .v2checks li { font-size: 15px; }
.atcs-v2 .hoops2 { max-width: 470px; }

/* Home cards and theme hoops */
.atcs-v2 .pcards { gap: 18px; }
.atcs-v2 .pcard { padding-bottom: 12px; border-radius: 10px; }
.atcs-v2 .pcard__title { font-size: 17px; padding-inline: 12px; }
.atcs-v2 .pcard__meta { font-size: 14px; padding-inline: 12px; }
.atcs-v2 .pcard__price { font-size: 16px; padding-inline: 12px; }
.atcs-v2 .tcircle__img { width: 108px; height: 108px; }
.atcs-v2 .tcircle strong { font-size: 18px; }
.atcs-v2 .tcircle > span:last-child { font-size: 14px; }
@media (min-width: 900px) { .atcs-v2 .tcircles { grid-template-columns: repeat(5, 130px); } .atcs-v2 .tcircle { width: 130px; } }

/* Shop and category grids: four per row, compact cards, two buttons */
.atcs-v2 .shop-main { padding-block: 24px 56px; }
.atcs-v2 .shop-main .wp-block-query-title { font-size: clamp(30px, 3.2vw, 40px); }
.atcs-v2 .shop-intro, .atcs-v2 .shop-main .wp-block-term-description { font-size: 17px; }
.atcs-v2 .cat-chips a { font-size: 15px; padding: 6px 14px; }
@media (min-width: 1000px) {
  .atcs-v2 .wc-block-product-template.wc-block-product-template { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 22px !important; }
}
.atcs-v2 .wp-block-woocommerce-product-collection .wc-block-product { padding: 10px 10px 16px; border-radius: 10px; transition: box-shadow .2s, transform .2s; }
.atcs-v2 .wp-block-woocommerce-product-collection .wc-block-product:hover { box-shadow: 0 12px 26px rgba(60, 40, 20, .12); transform: translateY(-2px); }
.atcs-v2 .wp-block-woocommerce-product-collection .wp-block-post-title,
.atcs-v2 .wp-block-woocommerce-product-collection h3.wp-block-post-title { font-size: 16px; line-height: 1.3; margin: 10px 4px 4px; }
.atcs-v2 .wp-block-woocommerce-product-collection .wc-block-components-product-price { font-size: 16px; margin-bottom: 10px; }
.atcs-buy-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.atcs-buy-row > * { margin: 0 !important; }
.atcs-v2 .wp-block-woocommerce-product-collection .wp-block-button__link,
.atcs-v2 .atcs-buy-row .wp-element-button { font-size: 14px !important; padding: 8px 12px !important; min-height: 38px !important; }
.atcs-v2 .atcs-buy-row .atcs-buy-now { background: var(--v2-ink); color: #fff; text-decoration: none; display: inline-flex; align-items: center; border-radius: 6px; }
.atcs-v2 .atcs-buy-row .atcs-buy-now:hover { background: #121d36; color: #fff; }

/* Pattern page */
.atcs-v2.single-product main { padding-block: 16px 56px; }
.atcs-v2.single-product .wp-block-post-title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }
.atcs-v2.single-product .wc-block-components-product-price, .atcs-v2.single-product .wp-block-woocommerce-product-price { font-size: 24px; }
.atcs-v2.single-product .woocommerce-product-details__short-description, .atcs-v2.single-product .wp-block-post-excerpt { font-size: 16px; }
.atcs-v2.single-product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 8px; }
.atcs-v2.single-product form.cart .single_add_to_cart_button { margin: 0; font-size: 16px; min-height: 50px; padding: 12px 26px; background: #fff; color: var(--v2-red); box-shadow: inset 0 0 0 2px var(--v2-red); }
.atcs-v2.single-product form.cart .single_add_to_cart_button:hover { background: #fbeaec; }
.atcs-v2.single-product .atcs-buy-now { display: inline-flex; align-items: center; min-height: 50px; padding: 12px 28px; background: var(--v2-red); color: #fff; border-radius: 6px; font-weight: 700; font-size: 16px; text-decoration: none; }
.atcs-v2.single-product .atcs-buy-now:hover { background: #8c1a26; color: #fff; }
.atcs-v2 .woocommerce-tabs .woocommerce-Tabs-panel h2 { font-size: 22px; }
.atcs-v2 .woocommerce-tabs .woocommerce-Tabs-panel, .atcs-v2 .woocommerce-tabs .woocommerce-Tabs-panel li { font-size: 16px; }

/* Phones */
@media (max-width: 600px) {
  html body.atcs-v2 { font-size: 16px; }
  .atcs-v2 .v2-note { font-size: 13.5px; }
  .atcs-v2 .v2hero h1 { font-size: 32px; }
  .atcs-v2 .v2hero__lead { font-size: 17px; }
  .atcs-v2 .v2sec { padding-block: 40px; }
  .atcs-v2 .v2quick a { font-size: 15px; min-height: 50px; }
  .atcs-v2 .atcs-buy-row { flex-direction: column; }
  .atcs-v2 .atcs-buy-row > * , .atcs-v2 .atcs-buy-row .wp-element-button { width: 100%; justify-content: center; }
  .atcs-v2.single-product form.cart .single_add_to_cart_button, .atcs-v2.single-product .atcs-buy-now { flex: 1 1 100%; justify-content: center; }
}
/* Two buttons the same size; "Buy PDF" is the main (filled) one, "Add to cart" the outline one, everywhere. */
.atcs-v2.single-product form.cart > *, .atcs-v2.single-product form.cart .quantity { margin: 0 !important; }
.atcs-v2.single-product form.cart .quantity:has(input[type=hidden]) { display: none; }
.atcs-v2.single-product form.cart .single_add_to_cart_button, .atcs-v2.single-product .atcs-buy-now {
  height: 50px; min-height: 50px; padding: 0 26px; box-sizing: border-box; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.atcs-v2 .atcs-buy-row .wp-block-button__link, .atcs-v2 .atcs-buy-row .add_to_cart_button {
  background: #fff !important; color: var(--v2-red) !important; box-shadow: inset 0 0 0 2px var(--v2-red); }
.atcs-v2 .atcs-buy-row .wp-block-button__link:hover, .atcs-v2 .atcs-buy-row .add_to_cart_button:hover { background: #fbeaec !important; }
.atcs-v2 .atcs-buy-row .atcs-buy-now { background: var(--v2-red); }
.atcs-v2 .atcs-buy-row .atcs-buy-now:hover { background: #8c1a26; }
/* Audit 2026-11-10: the inactive "Reviews" tab text had too little contrast. */
.atcs-v2 .woocommerce-tabs ul.tabs li a, .atcs-v2 .wc-tabs li a { color: #3f4c63 !important; }

/* "You may also like" under the buy box on shop pattern pages: always 4 across, 2 x 2 on phones */
.atcs-v2 .also-like { margin: 40px 0 8px; }
.atcs-v2 .also-like h2 { margin: 0 0 16px; }
.atcs-v2 .also-like .pcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 781px) { .atcs-v2 .also-like .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* Pattern search (2026-11-11): header icon, shop search box, results page */
.atcs-v2 .header-search { margin: 0; }
.atcs-v2 .header-search .wp-block-search__button { background: transparent; color: var(--wp--preset--color--ink); border: 0; padding: 8px; min-height: 44px; min-width: 44px; box-shadow: none; }
.atcs-v2 .header-search .wp-block-search__button svg { width: 26px; height: 26px; fill: currentColor; }
.atcs-v2 .header-search .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.atcs-v2 .site-header { position: relative; }
.atcs-v2 .header-search, .atcs-v2 .header-search .wp-block-search__inside-wrapper { position: static; }
/* The opened field drops below the header across its width, so the icons never move off screen */
.atcs-v2 .header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input { position: absolute; top: calc(100% + 1px); left: 0; right: 0; width: 100% !important; max-width: none; box-sizing: border-box; z-index: 60; border: 0; border-bottom: 2px solid var(--v2-line); border-radius: 0; padding: 16px max(16px, calc((100% - 1200px) / 2)); font: inherit; font-size: 18px; background: #fff; box-shadow: 0 10px 24px rgba(60, 40, 20, .12); }
.atcs-v2 .pattern-search { display: flex; gap: 8px; max-width: 640px; margin: 4px 0 18px; }
.atcs-v2 .pattern-search input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 17px; padding: 11px 14px; border: 1px solid var(--v2-line); border-radius: 8px; background: #fff; }
.atcs-v2 .pattern-search button { flex: 0 0 auto; }
.atcs-v2 .search-patterns { margin: 8px 0 40px; }
.atcs-v2 .search-patterns h2, .atcs-v2 .search-posts-title { margin: 0 0 16px; }
.atcs-v2 .search-count { color: var(--wp--preset--color--muted, #5f6e6a); font-size: .7em; }
@media (max-width: 600px) { .atcs-v2 .pattern-search input { font-size: 16px; } }
/* Phones: logo + menu + account + search + cart must fit one row (search icon added 2026-11-11) */
@media (max-width: 480px) {
  .atcs-v2 .site-header { padding-left: 16px !important; padding-right: 16px !important; }
  .atcs-v2 .site-header .alignwide { gap: 10px; }
  .atcs-v2 .header-right { gap: 4px !important; }
  .atcs-v2 .site-logo span { font-size: 17px; }
  .atcs-v2 .site-logo img { width: 30px; height: auto; }
  .atcs-v2 .header-search .wp-block-search__button { min-width: 40px; padding: 6px; }
}

/* Bundle deal (atcs-bundle.php, owner 2026-11-13): line under the price on pattern pages, box above the cart. */
.atcs-v2 .bundle-note { display: block; margin-top: 8px; padding: 8px 12px; border-left: 4px solid var(--wp--preset--color--coral-strong); background: #fbf3e8; color: #22335b; font-size: 16px; font-weight: 600; line-height: 1.45; }
.atcs-v2 .bundle-note strong { color: var(--wp--preset--color--coral-strong); }
.atcs-v2 .bundle-progress { margin: 0 0 20px; padding: 14px 16px; border: 2px dashed var(--wp--preset--color--coral-strong); border-radius: 8px; background: #fbf3e8; color: #22335b; font-size: 17px; font-weight: 600; line-height: 1.5; }
.atcs-v2 .bundle-progress[hidden] { display: none; }
.atcs-v2 .bundle-progress strong { color: var(--wp--preset--color--coral-strong); }
.atcs-v2 .bundle-progress a { margin-left: 4px; white-space: nowrap; }
.atcs-v2 .cart-also-like[hidden] { display: none; }

/* "The Weekly Stitch" email popup (atcs-popup.php, owner 2026-11-13). */
.ws-pop { position: fixed; inset: 0; z-index: 99999; background: rgba(20, 28, 45, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ws-pop[hidden] { display: none; }
html.ws-pop-open { overflow: hidden; }
.ws-pop__box { position: relative; display: grid; grid-template-columns: 42% 1fr; width: 100%; max-width: 760px; max-height: calc(100vh - 32px); overflow: auto; background: #fffaf2; color: #22335b; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.ws-pop__img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; display: block; border-radius: 12px 0 0 12px; }
.ws-pop__body, .ws-pop__done { padding: 30px 28px 24px; font-size: 17px; line-height: 1.55; }
.ws-pop__done[hidden], .ws-pop__body[hidden] { display: none; }
.ws-pop__eyebrow { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b02232; }
.ws-pop h2 { margin: 0 0 10px; font-size: 27px; line-height: 1.2; color: #22335b; }
.ws-pop__lead { margin: 0 0 16px; }
.ws-pop__form input[type=email] { width: 100%; box-sizing: border-box; min-height: 52px; padding: 10px 14px; font: inherit; font-size: 18px; border: 2px solid #c9b99f; border-radius: 8px; background: #fff; color: #22335b; }
.ws-pop__form input[type=email]:focus { outline: 3px solid #2c4a75; outline-offset: 1px; border-color: #2c4a75; }
.ws-pop__go { display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; min-height: 52px; margin-top: 10px; border: 0; border-radius: 8px; background: #b02232; color: #fff !important; font: inherit; font-size: 18px; font-weight: 700; text-decoration: none !important; cursor: pointer; }
.ws-pop__go:hover { background: #8f1a28; }
.ws-pop__go:disabled { opacity: .7; cursor: wait; }
.ws-pop__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ws-pop__msg { margin: 8px 0 0; min-height: 1em; font-size: 16px; font-weight: 600; }
.ws-pop__msg.is-bad { color: #b02232; }
.ws-pop__fine { margin: 12px 0 0; font-size: 14px; color: #4d5b57; }
.ws-pop__fine a { color: #2c4a75; }
.ws-pop__no { display: block; margin: 10px auto 0; padding: 8px 12px; border: 0; background: none; color: #4d5b57; font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; }
.ws-pop__x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #22335b; font-size: 30px; line-height: 1; cursor: pointer; }
.ws-pop__x:focus-visible, .ws-pop__no:focus-visible, .ws-pop__go:focus-visible { outline: 3px solid #22335b; outline-offset: 3px; }
@media (max-width: 640px) {
  .ws-pop { align-items: flex-end; padding: 0; }
  .ws-pop__box { grid-template-columns: 1fr; max-height: 92vh; border-radius: 16px 16px 0 0; }
  .ws-pop__img { height: 130px; min-height: 0; border-radius: 16px 16px 0 0; }
  .ws-pop__body, .ws-pop__done { padding: 18px 18px 20px; }
  .ws-pop h2 { font-size: 23px; }
  .ws-pop__lead { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ws-pop:not([hidden]) .ws-pop__box { animation: ws-in .25s ease-out; }
  @keyframes ws-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Review popup after buying (atcs-review-popup.php, owner 2026-11-13). Uses the .atcs-pop shell of the Spam popup. */
.rv-pop .rv-pop__box { position: relative; text-align: left; }
.rv-pop h2 { margin: 0 0 8px; font-size: 25px; line-height: 1.2; }
.rv-pop p { margin: 0 0 10px; }
.rv-pop__name { font-size: 18px; }
.rv-pop .rv-stars { display: flex; justify-content: flex-end; flex-direction: row-reverse; gap: 4px; margin: 4px 0 12px; padding: 0; border: 0; min-width: 0; }
.rv-pop .rv-stars label { font-size: 46px; line-height: 1; padding: 0 2px; color: #d9cdb8; }
.rv-pop .rv-stars label:hover, .rv-pop .rv-stars label:hover ~ label, .rv-pop .rv-stars input:checked ~ label { color: #e0a100; }
.rv-pop .rv-stars input:focus-visible + label { outline: 3px solid #22335b; border-radius: 6px; }
.rv-pop__label { display: block; margin: 8px 0 4px; font-weight: 700; font-size: 16px; }
.rv-pop__label span { font-weight: 400; color: #4d5b57; }
.rv-pop select, .rv-pop textarea, .rv-pop input[type=text] { width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; font-size: 17px; border: 2px solid #c9b99f; border-radius: 8px; background: #fff; color: #22335b; }
.rv-pop select, .rv-pop input[type=text] { min-height: 48px; }
.rv-pop__msg { min-height: 1em; font-weight: 600; font-size: 16px; }
.rv-pop__msg.is-bad { color: #b02232; }
.rv-pop__fine { font-size: 14px; color: #4d5b57; }
.rv-pop__later { display: block; margin: 4px auto 0; padding: 8px 12px; border: 0; background: none; color: #4d5b57; font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; }
.rv-pop__x { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #22335b; font-size: 30px; line-height: 1; cursor: pointer; }
.rv-pop__done[hidden], .rv-pop__form[hidden] { display: none; }
.rv-pop .rv-pop__box:focus { outline: none; }

/* "Join our Facebook group" box (atcs-community.php atcs_group_box): thank-you page and free patterns page. */
body.atcs-v2 .fb-group { display: flex; gap: 16px; align-items: flex-start; background: #eef3fb; border: 1px solid #c9d7f0; border-radius: 10px; padding: 18px 20px; margin: 24px 0; }
body.atcs-v2 .fb-group__icon { font-size: 32px; line-height: 1; }
body.atcs-v2 .fb-group__title { font-weight: 700; font-size: 19px; margin: 0 0 4px; }
body.atcs-v2 .fb-group__body p { margin: 0 0 12px; }
body.atcs-v2 .fb-group__btn { display: inline-block; background: #145dbf; color: #fff !important; font-weight: 700; text-decoration: none; padding: 11px 22px; border-radius: 6px; min-height: 46px; box-sizing: border-box; }
body.atcs-v2 .fb-group__btn:hover, body.atcs-v2 .fb-group__btn:focus-visible { background: #0f4c9e; }
body.atcs-v2 .fb-group--free { margin: 8px 0 40px; }
@media (max-width: 480px) { body.atcs-v2 .fb-group { flex-direction: column; gap: 8px; } body.atcs-v2 .fb-group__btn { display: block; text-align: center; } }

/* 1200-1299px: the full menu (with "Join our Group") fits on one line per item. */
@media (min-width: 1200px) and (max-width: 1299px) {
  body.atcs-v2 .site-header .wp-block-navigation, body.atcs-v2 .site-header .wp-block-navigation__container { font-size: 15px; gap: 13px; }
  body.atcs-v2 .site-header .wp-block-navigation-item__content { white-space: nowrap; }
  body.atcs-v2 .site-header .header-right { gap: 10px; }
}
