/* Alt-Forge storefront palette and layout */
:root body {
  --af-ink: #231b34;
  --af-muted: #61586e;
  --af-canvas: #f8f6fb;
  --af-paper: #fff;
  --af-line: #e6dfed;
  --af-purple: #6032b1;
  --af-purple-dark: #452283;
  --af-peach: #ffe5db;
  --af-mint: #d8f5e5;
  --af-lilac: #e9dfff;
  --af-lemon: #f8eead;
  --ast-global-color-0: #6032b1;
  --ast-global-color-1: #452283;
  --ast-global-color-2: #231b34;
  --ast-global-color-3: #544961;
  --ast-global-color-4: #f8f6fb;
  --ast-global-color-5: #fff;
  --ast-global-color-6: #e9dfff;
  --ast-global-color-7: #251a3b;
  --ast-global-color-8: #e6dfed;
  background: var(--af-canvas);
  color: var(--af-ink);
}
body.ast-theme-transparent-header #masthead {position: relative; inset: auto;}
body #masthead .ast-primary-header-bar {background: var(--af-paper); border-bottom: 1px solid var(--af-line);}
body #masthead .ast-primary-header-bar .ast-builder-grid-row-container-inner {padding-block: 0;}
body #masthead .ast-primary-header-bar .ast-builder-grid-row {min-height: 76px;}
body #masthead .custom-logo-link img {width: 62px; max-height: 62px; object-fit: contain;}
body #masthead .main-header-menu .menu-link,
body #masthead .ast-woo-header-cart-info-wrap,
body #masthead .ast-menu-cart-outline .ast-cart-menu-wrap,
body #masthead .ast-header-woo-cart .ast-icon,
body #masthead .ast-builder-menu-mobile .main-header-menu .menu-link,
body #masthead .ast-button-wrap .menu-toggle {color: var(--af-ink);}
body #masthead .main-header-menu .current-menu-item > .menu-link,
body #masthead .main-header-menu .menu-link:hover {color: var(--af-purple);}
body #masthead .ast-mobile-popup-drawer .ast-mobile-popup-inner,
body #masthead .ast-mobile-header-content {background: var(--af-paper);}
body #colophon .site-primary-footer-wrap {background: #2d2042; border: 0; color: #fff;}
body #colophon .site-below-footer-wrap {background: #21172f; border: 0; color: #e9e0f4;}
body #colophon :is(h2,h3,p,a,.ast-footer-copyright,.ast-footer-html) {color: inherit;}
body #colophon .widget-title, body #colophon .widget h2 {color:#fff; font-size: clamp(1.2rem, 2vw, 1.55rem);}
body #colophon a[href="#"], body #colophon a[href$="/#"] {display:none;}

body .ast-woocommerce-container,
body.ast-separate-container .ast-article-single,
body.ast-separate-container .ast-article-post {background: var(--af-paper);}
body.ast-woo-shop-archive .ast-woocommerce-container {background: transparent; padding: 0;}
body.ast-woo-shop-archive #content > .ast-container {width: min(100% - 48px, 1300px); max-width:none; padding: 0; gap: 32px; align-items: flex-start; margin-inline:auto;}
body.ast-woo-shop-archive #primary {flex: 1; width: auto; min-width:0; padding: 0; margin: 36px 0 72px; border: 0;}
body.ast-woo-shop-archive #secondary {width: 228px; flex: 0 0 228px; padding: 0; margin: 36px 0 48px; border: 0;}
body #secondary .widget {background: var(--af-paper) !important; border: 1px solid var(--af-line) !important; box-shadow:none; padding:18px; color:var(--af-muted); margin-bottom:14px;}
body #secondary .widget :is(h2,h3,.widget-title) {color: var(--af-ink); font-size:1.05rem; margin-bottom: 12px;}
body #secondary .widget a {color: var(--af-purple-dark);}
body.ast-woo-shop-archive #secondary #block-8:not(:has(a[href*="/product/"])) {display: none;}
body :is(.woocommerce-breadcrumb,.ast-breadcrumbs) a {color:var(--af-purple-dark) !important;}
body.woocommerce :is(.woocommerce-products-header__title,.product_title) {font-size:clamp(2rem,4vw,3.4rem); letter-spacing:-.045em; line-height:1.05; color:var(--af-ink);}
body.woocommerce .woocommerce-products-header {margin-bottom: 24px;}
body.woocommerce .woocommerce-products-header__title {margin: 0;}
body.woocommerce .woocommerce-result-count {color:var(--af-muted); font-size:.9rem; margin-top: 9px;}
body.woocommerce .woocommerce-ordering select.orderby {border-color:var(--af-line) !important; color:var(--af-ink) !important; min-height:44px;}
body.woocommerce ul.products, body .af-home ul.products {gap: 20px;}
body.woocommerce ul.products li.product, body .af-home ul.products li.product {background:var(--af-paper); border:1px solid var(--af-line); border-radius: 19px; overflow:hidden; padding:0; box-shadow:0 3px 12px #29184409; display:flex; flex-direction:column; height:100%; margin:0;}
body :is(.woocommerce,.af-home) ul.products li.product:hover, body.woocommerce ul.products li.product:hover {border-color:#cab8ed; box-shadow:0 7px 24px #3e265817;}
body :is(.woocommerce,.af-home) ul.products li.product .astra-shop-thumbnail-wrap,
body.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {background:#f0eaf6; margin:0; overflow:hidden;}
body :is(.woocommerce,.af-home) ul.products li.product img, body.woocommerce ul.products li.product img {width:100%; aspect-ratio:1; object-fit:contain; margin:0; display:block;}
body :is(.woocommerce,.af-home) .astra-shop-summary-wrap, body.woocommerce .astra-shop-summary-wrap {padding: 14px 15px 16px; flex: 1; display:flex; flex-direction:column; align-items:flex-start;}
body :is(.woocommerce,.af-home) .ast-woo-product-category, body.woocommerce .ast-woo-product-category {display:none;}
body :is(.woocommerce,.af-home) .woocommerce-loop-product__title, body.woocommerce .woocommerce-loop-product__title {color:var(--af-ink); font-weight:700; font-size:clamp(.88rem,1.2vw,1.04rem); line-height:1.35; letter-spacing:-.018em; margin:0 0 8px; padding:0;}
body :is(.woocommerce,.af-home) .price, body.woocommerce .price {color:var(--af-purple-dark); font-weight:700;}
body :is(.woocommerce,.af-home) .astra-shop-summary-wrap .price, body.woocommerce .astra-shop-summary-wrap .price {margin-top:auto; margin-bottom:12px;}
body :is(.woocommerce,.af-home) ul.products li.product .button, body.woocommerce ul.products li.product .button {background:var(--af-lilac); color:var(--af-purple-dark); font-weight:700; font-size:.8rem; min-height:38px; padding:10px 13px; border:0; border-radius:9px; margin:0; line-height:1.3;}
body :is(.woocommerce,.af-home) ul.products li.product .button:hover, body.woocommerce ul.products li.product .button:hover {background:var(--af-purple); color:#fff;}
body.woocommerce :is(.single_add_to_cart_button,.woocommerce-pagination ul.page-numbers li .current),
body.woocommerce-page :is(.checkout-button,.wc-block-components-button.wp-element-button) {background:var(--af-purple); color:#fff; border-radius:10px; border-color:var(--af-purple);}
body.woocommerce-cart :is(.shop_table.cart,.cart_totals,.wc-block-cart__totals-sidebar) {background:var(--af-paper); color:var(--af-ink);}
body.woocommerce nav.woocommerce-pagination ul {border:0; display:inline-flex; gap:6px; flex-wrap:wrap;}
body.woocommerce nav.woocommerce-pagination ul li {border:0;}
body.woocommerce nav.woocommerce-pagination ul li > * {min-width:38px; min-height:38px; display:grid; place-items:center; border:1px solid var(--af-line); border-radius:8px;}
body :is(a,button,input,select):focus-visible {outline:3px solid #a171eb; outline-offset:3px;}

.af-home {width:min(100% - 48px, 1240px); margin:0 auto; padding:32px 0 64px; color:var(--af-ink);}
.af-hero {position:relative; display:grid; grid-template-columns:1fr .94fr; align-items:center; gap:20px; overflow:hidden; background:#2d2044; color:#fff; border-radius:28px; padding:clamp(28px,5vw,76px); min-height:470px;}
.af-hero-copy {position:relative; z-index:2;}
.af-hero .af-location {color:#eadbff; font-size:.89rem; font-weight:650; margin:0 0 16px;}
.af-hero h1 {color:#fff; font-size:clamp(2.65rem,5.6vw,5.45rem); letter-spacing:-.065em; line-height:1.01; margin:0 0 15px; font-weight:800;}
.af-hero h1 span {color:var(--af-lemon);}
.af-hero .af-intro {color:#f0e8fa; max-width:38ch; margin:0 0 25px; font-size:clamp(1rem,1.55vw,1.18rem); line-height:1.55;}
.af-actions {display:flex; flex-wrap:wrap; gap:10px;}
body .af-home a.af-button {display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:12px 17px; min-height:46px; font-weight:750; line-height:1.2; border-radius:10px; text-decoration:none;}
.af-button-main {background:var(--af-lemon); color:#281940 !important;}
.af-button-main:hover {background:#fff6c9;}
.af-button-alt {border:1px solid #826e9d; color:#fff !important;}
.af-button-alt:hover {background:#4f396e;}
.af-hero-art {position:relative; width:100%; min-width:0; height:clamp(270px,33vw,395px); isolation:isolate;}
.af-hero-art::before {content:""; position:absolute; width:72%; aspect-ratio:1; border-radius:50%; background:#7450a9; left:10%; top:8%; opacity:.67;}
.af-hero-art::after {content:""; position:absolute; width:13%; aspect-ratio:1; border-radius:50%; background:var(--af-lemon); left:9%; bottom:8%; z-index:-1;}
.af-hero-tile {position:absolute; border:5px solid #f9f4ff; overflow:hidden; border-radius:20px; box-shadow:0 12px 32px #180e2c50; display:block;}
.af-hero-tile img {display:block; width:100%; height:100%; aspect-ratio:1; object-fit:cover;}
.af-hero-tile-one {width:60%; left:10%; top:7%; transform:rotate(-9deg);}
.af-hero-tile-two {width:46%; right:0; top:30%; transform:rotate(10deg); border-color:var(--af-mint);}
.af-hero-tile-three {width:33%; left:34%; bottom:0; transform:rotate(-6deg); border-color:var(--af-peach);}
.af-section {margin-top:clamp(35px,5vw,64px);}
.af-section-head {display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:16px;}
.af-section-head h2 {color:var(--af-ink); font-size:clamp(1.65rem,3.25vw,2.65rem); letter-spacing:-.045em; line-height:1.14; margin:0;}
body .af-home .af-text-link {color:var(--af-purple-dark); font-weight:750; text-decoration:none;}
body .af-home .af-text-link:hover {text-decoration:underline;}
.af-collections {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px;}
body .af-home a.af-collection {display:flex; flex-direction:column; justify-content:space-between; gap:12px; min-height:140px; padding:22px; border-radius:18px; color:var(--af-ink); text-decoration:none;}
.af-collection:hover {box-shadow: inset 0 0 0 2px #6032b15c;}
.af-collection-clickers {background:var(--af-mint);}
.af-collection-flexis {background:var(--af-peach);}
.af-collection strong {font-size:clamp(1.25rem,2.4vw,1.8rem); line-height:1.2; letter-spacing:-.03em;}
.af-collection span {color:#4b4155; font-size:.96rem;}
.af-home .af-section .woocommerce {margin:0;}
.af-home .af-section .woocommerce::before, .af-home .af-section .woocommerce::after {content:none;}
body .af-home ul.products {display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0; padding:0;}
body .af-home ul.products::before, body .af-home ul.products::after {content:none;}
body .af-home ul.products li.product {width:auto; float:none; clear:none; list-style:none;}
.af-wholesale {background:var(--af-lilac); border-radius:18px; padding:22px 26px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;}
.af-wholesale h2 {margin:0; color:var(--af-ink); font-size:1.3rem;}

@media (max-width: 920px) {
  body.ast-woo-shop-archive #content > .ast-container {gap:20px; width:calc(100% - 32px);}
  body.ast-woo-shop-archive #secondary {width:175px; flex-basis:175px;}
  .af-hero {padding:32px; min-height:360px;}
  .af-hero-art {height:255px;}
}
@media (max-width: 700px) {
  body #masthead .ast-primary-header-bar .ast-builder-grid-row {min-height:62px;}
  body #masthead .custom-logo-link img {width:49px; max-height:49px;}
  .af-home {width:calc(100% - 28px); padding:14px 0 38px;}
  .af-hero {grid-template-columns:1fr; padding:26px 20px 22px; gap:18px; border-radius:20px;}
  .af-hero-art {height:clamp(227px,69vw,315px); max-width:420px; margin:auto;}
  .af-hero-art::before {width:58%; left:18%;}
  .af-hero-tile-one {width:52%; left:12%;}
  .af-hero-tile-two {width:40%; right:4%;}
  .af-hero-tile-three {width:29%;}
  .af-section-head {align-items:flex-start;}
  .af-collections {gap:10px;}
  body .af-home a.af-collection {padding:14px; min-height:115px;}
  body .af-home ul.products {grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;}
  body.ast-woo-shop-archive #content > .ast-container {display:flex; flex-direction:column; width:calc(100% - 28px); gap:12px;}
  body.ast-woo-shop-archive #primary {width:100%; margin:0 0 40px; order:2;}
  body.ast-woo-shop-archive #secondary {width:100%; flex:initial; margin:12px 0 0; order:1;}
  body.ast-woo-shop-archive #secondary #block-7 {display:none;}
  body.ast-woo-shop-archive #secondary .widget_product_categories {margin:0; padding:11px 12px;}
  body.ast-woo-shop-archive #secondary .widget_product_categories h2 {margin:0 0 5px; font-size:.82rem;}
  body.ast-woo-shop-archive #secondary .widget_product_categories ul {display:flex; flex-wrap:wrap; gap:3px 12px; margin:0; font-size:.76rem;}
  body.ast-woo-shop-archive #secondary .widget_product_categories li {border:0; margin:0; padding:0;}
  body.woocommerce .woocommerce-products-header {margin-bottom:14px;}
  body.woocommerce ul.products {gap:10px;}
  body :is(.woocommerce,.af-home) .astra-shop-summary-wrap, body.woocommerce .astra-shop-summary-wrap {padding:11px;}
}

/* Keep Astra's archive spacing from squeezing the filters and featured grid. */
body.ast-woo-shop-archive.ast-left-sidebar #secondary {padding:0;}
body.ast-woo-shop-archive #secondary .widget {padding:18px !important;}
body.ast-woo-shop-archive #secondary .product-categories li {display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:baseline;}
body.ast-woo-shop-archive #secondary .product-categories li a {overflow-wrap:normal;}
body.woocommerce ul.products li.product .ast-woo-product-category,
body .af-home ul.products li.product .ast-woo-product-category {color:var(--af-muted); font-size:.76rem; margin-bottom:5px;}
body.woocommerce ul.products li.product_cat-uncategorized .ast-woo-product-category {display:none;}
body .af-home .woocommerce ul.products.columns-4 {grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
@media (max-width:700px) {
  body.ast-woo-shop-archive #secondary .widget_product_categories {padding:11px 12px !important;}
  body.ast-woo-shop-archive #secondary .product-categories li {display:flex; gap:4px;}
  body .af-home .woocommerce ul.products.columns-4 {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}

/* Product pages and catalog text contrast. */
:root body {
  --af-canvas: #ede5f5;
  --af-paper: #f6effa;
  --af-line: #d5c4e6;
  --af-muted: #514561;
  --ast-global-color-4: #ede5f5;
  --ast-global-color-5: #f6effa;
  background-color: var(--af-canvas) !important;
}
body #masthead .ast-primary-header-bar {background-color:#e9def4 !important;}
body.ast-woo-shop-archive .ast-woocommerce-container {background:transparent !important;}
body.woocommerce-page ul.products li.product, body .af-home ul.products li.product {
  background-color:var(--af-paper) !important;
}
body.woocommerce ul.products li.product h2.woocommerce-loop-product__title,
body .af-home ul.products li.product h2.woocommerce-loop-product__title {
  color:#261c36 !important; font-size:clamp(.96rem,1.35vw,1.075rem); font-weight:750;
}
body.woocommerce ul.products li.product .price,
body .af-home ul.products li.product .price {
  color:#452283 !important; font-size:1.12rem; font-weight:800; line-height:1.35;
}
body.woocommerce ul.products li.product .price :is(.amount,bdi),
body .af-home ul.products li.product .price :is(.amount,bdi) {color:inherit; font-weight:inherit;}

body.single-product {
  --af-detail: #e8dcf4;
  --af-detail-ink: #251934;
  --af-detail-link: #442475;
}
body.single-product #content .ast-woocommerce-container {
  background-color:var(--af-detail) !important;
  color:var(--af-detail-ink);
  border:1px solid #d2bce6;
  border-radius:24px;
  padding:clamp(20px,4.6vw,58px);
}
body.single-product #content .ast-woocommerce-container > div.product {background:transparent !important;}
body.single-product div.product .summary,
body.single-product div.product .summary :is(.woocommerce-product-details__short-description,.ast-shipping-text,.product_meta) {
  color:var(--af-detail-ink) !important;
}
body.single-product div.product .summary h1.product_title {
  color:var(--af-detail-ink) !important;
  font-size:clamp(1.9rem,3.5vw,3.15rem);
  line-height:1.12;
  letter-spacing:-.034em;
  font-weight:750;
  margin-block:.28em .5em;
}
body.single-product div.product .summary .price,
body.single-product div.product .summary .price :is(.woocommerce-Price-amount,bdi) {
  color:#462477 !important;
  font-size:clamp(1.55rem,2.65vw,2rem);
  font-weight:800;
}
body.single-product div.product .summary .ast-shipping-text {
  font-size:.92rem; font-weight:650;
}
body.single-product div.product .summary .woocommerce-product-details__short-description {font-size:1rem; line-height:1.65;}
body.single-product div.product :is(.summary a,.woocommerce-tabs .tabs a) {color:var(--af-detail-link) !important;}
body.single-product div.product form.cart .single_add_to_cart_button {
  background:#4b2685 !important;
  color:#fff !important;
  border:1px solid #4b2685 !important;
  border-radius:10px;
  min-height:44px;
  padding:11px 22px;
  font-size:.88rem;
  font-weight:750;
  letter-spacing:.025em;
}
body.single-product div.product form.cart .single_add_to_cart_button:hover {background:#35175f !important; border-color:#35175f !important;}
body.single-product div.product form.cart .quantity .qty {
  background:#f7f0fb; border:1px solid #af95cb; color:var(--af-detail-ink); border-radius:8px; min-height:44px;
}
body.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  overflow:hidden; border-radius:16px;
}
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel {color:var(--af-detail-ink);}
@media (max-width: 700px) {
  body.single-product #content .ast-woocommerce-container {padding:16px; border-radius:16px;}
  body.single-product div.product .summary h1.product_title {font-size:clamp(1.65rem,7vw,2.25rem);}
}

/* Give the shop and collection cards room for full product names. */
body.ast-woo-shop-archive #content > .ast-container {width:min(100% - 40px, 1360px); gap:24px;}
body.ast-woo-shop-archive #secondary {width:196px; flex-basis:196px; padding-inline:0 !important;}
body.ast-woo-shop-archive #primary ul.products {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:20px;
}
body.ast-woo-shop-archive #primary ul.products > li.product {width:auto; min-width:0;}
body.ast-woo-shop-archive #primary ul.products .astra-shop-summary-wrap {min-width:0;}
body.ast-woo-shop-archive #primary ul.products .ast-loop-product__link {
  display:block; width:100%; min-width:0;
}
body.ast-woo-shop-archive #primary ul.products h2.woocommerce-loop-product__title {
  display:block; font-size:16px; line-height:1.4; letter-spacing:0;
  white-space:normal; word-break:normal; overflow-wrap:anywhere;
}
@media (max-width:1179px) {
  body.ast-woo-shop-archive #primary ul.products {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width:921px) {
  body.ast-woo-shop-archive #content > .ast-container {display:flex; flex-direction:column; width:calc(100% - 28px); gap:16px;}
  body.ast-woo-shop-archive #secondary {width:100%; flex:initial; margin:14px 0 0; order:1;}
  body.ast-woo-shop-archive #primary {width:100%; margin:0 0 40px; order:2;}
  body.ast-woo-shop-archive #secondary .widget_product_categories {margin-bottom:0;}
}
@media (max-width:520px) {
  body.ast-woo-shop-archive #primary ul.products {grid-template-columns:minmax(0,1fr) !important; gap:12px;}
  body.ast-woo-shop-archive #primary ul.products > li.product {
    display:grid; grid-template-columns:minmax(90px,34%) minmax(0,1fr); align-items:start;
  }
  body.ast-woo-shop-archive #primary ul.products .astra-shop-thumbnail-wrap {height:100%; display:grid; align-content:start;}
  body.ast-woo-shop-archive #primary ul.products .astra-shop-summary-wrap {padding:10px 12px 12px;}
  body.ast-woo-shop-archive #primary ul.products h2.woocommerce-loop-product__title {
    font-size:15px; line-height:1.35; margin-bottom:6px;
  }
}

/* Keep category names and counts aligned with nested lists across both columns. */
@media (min-width: 922px) {
  body.ast-woo-shop-archive #secondary {width:224px; flex-basis:224px;}
}
body.ast-woo-shop-archive #secondary .widget_product_categories ul.product-categories,
body.ast-woo-shop-archive #secondary .widget_product_categories .product-categories ul.children {
  display:block;
}
body.ast-woo-shop-archive #secondary .widget_product_categories .product-categories li {
  display:grid;
  grid-template-columns:minmax(0,1fr) max-content;
  column-gap:8px;
  row-gap:0;
  align-items:baseline;
}
body.ast-woo-shop-archive #secondary .widget_product_categories .product-categories li > a {
  word-break:normal;
  overflow-wrap:normal;
}
body.ast-woo-shop-archive #secondary .widget_product_categories .product-categories ul.children {
  grid-column:1 / -1;
  padding-inline-start:8px;
}



