/*
Theme Name: Stax Moulds
Template: storefront
Description: Plum and pink design for Stax of Moulds, built on Storefront.
Version: 1.0.9
Text Domain: stax-moulds
*/

:root {
  --plum: #2c1a3d;
  --plum-mid: #5a2d7c;
  --pink: #ec4f97;
  --blush: #fbe3f5;
  --lilac: #e9d5f7;
  --script: "Kaushan Script", "Brush Script MT", cursive;
  --display: "Fredoka", "Trebuchet MS", sans-serif;
  --body: "Nunito", "Segoe UI", Arial, sans-serif;
}

/* Base */
body, body.custom-background { background: var(--blush) !important; color: var(--plum) !important; font-family: var(--body) !important; font-weight: 500; }
h1, h2, h3, h4, .page-title, .entry-title, .woocommerce-loop-product__title { color: var(--plum) !important; font-family: var(--display) !important; font-weight: 600 !important; }
a { color: var(--plum-mid); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.stax-wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.stax-top a, .stax-nav a, .stax-footer a, .stax-tile, .stax-btn { text-decoration: none !important; }

/* Top bar and banner */
.stax-top { background: var(--plum); color: #fff; font-size: 14px; font-weight: 700; }
.stax-top a { color: #fff; }
.stax-top .stax-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 8px; }
.stax-top ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; }
.stax-banner { display: block; background: var(--plum); }
.stax-banner img { display: block; width: 100%; height: auto; max-width: 1596px; margin: 0 auto; }

/* Menu */
.stax-nav { background: linear-gradient(90deg, var(--plum), #46275f, var(--plum)); position: sticky; top: 0; z-index: 50; }
.stax-nav .stax-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 9px; }
.stax-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; font: 600 16px var(--display); }
.stax-nav a { display: block; padding: 6px 14px; border-radius: 999px; color: #fff; }
.stax-nav a:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.stax-search { display: flex; flex: 0 1 280px; margin: 0; background: #fff; border-radius: 999px; overflow: hidden; }
.stax-search input[type="search"] { flex: 1; min-width: 0; border: 0; box-shadow: none; padding: 8px 16px; background: transparent; color: var(--plum); font: inherit; }
.stax-search button { border: 0; border-radius: 0; background: var(--pink); color: #fff; font: 600 14px var(--display); padding: 0 16px; }

/* Buttons */
.stax-btn, .button, button.button, input.button, .added_to_cart, .single_add_to_cart_button, .wc-proceed-to-checkout .checkout-button, #place_order {
  border: 0 !important; border-radius: 999px !important; color: #fff !important; font-family: var(--display) !important; font-weight: 700 !important;
  background: linear-gradient(180deg, #ff7dbb, var(--pink) 60%, #d6327f) !important; box-shadow: 0 3px 0 #a81f63;
}
.stax-btn { display: inline-block; padding: 12px 30px; font-size: 20px; }
.stax-btn:hover, .button:hover { filter: brightness(1.06); }

/* Home page */
.home .site-content { padding: 0; }
.home .site-content > .col-full { max-width: none; margin: 0; padding: 0; }
.home .storefront-breadcrumb, .home .woocommerce-breadcrumb { display: none; }
.stax-hero { background: linear-gradient(100deg, #5b3274 0%, #7d4a96 52%, #4d2a69 100%); color: #fff; overflow: hidden; }
.stax-hero .stax-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.stax-copy { padding-block: 40px; }
.stax-hero h1 { color: #fff !important; font: 400 clamp(44px, 5.6vw, 72px)/1.1 var(--script) !important; text-shadow: 0 3px 10px rgba(30, 10, 50, .55); margin: 0; }
.stax-copy p { font: 600 clamp(19px, 2vw, 24px)/1.35 var(--display); margin: 14px 0 24px; }
.stax-friends { display: flex; align-items: flex-end; justify-content: flex-end; align-self: stretch; }
.stax-friends img { width: 100%; height: auto; max-width: 640px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

.stax-perks { background: linear-gradient(180deg, #f9dcf1, var(--blush)); }
.stax-perks ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 20px 0; }
.stax-perks li { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 800; font-size: 15px; line-height: 1.25; }
.stax-perks svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--plum); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.stax-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding-block: 28px; }
.stax-tile { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #fff, var(--lilac)); border: 2px solid #fff; box-shadow: 0 4px 12px rgba(90, 45, 124, .28); transition: transform .15s; }
.stax-tile:hover { transform: translateY(-3px); }
.stax-tile img { display: block; width: 100%; aspect-ratio: 151 / 88; object-fit: cover; }
.stax-tile h2 { flex: 1; display: grid; place-items: center; margin: 0; padding: 12px 8px; text-align: center; font-size: 20px; line-height: 1.15; font-weight: 700 !important; }
.stax-tile.is-request { background: linear-gradient(160deg, #ecdcfa, #cfaef0); }
.stax-tile.is-request svg { width: 100%; aspect-ratio: 151 / 88; padding: 14px; box-sizing: border-box; fill: none; stroke: var(--plum-mid); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.stax-new { position: relative; overflow: hidden; margin-bottom: 32px; padding: 34px 170px 40px; border-radius: 20px; text-align: center; color: #fff; background: linear-gradient(100deg, #3f2158, var(--plum-mid) 50%, #3f2158); }
.stax-new h2 { color: #fff !important; font: 400 clamp(34px, 4.6vw, 58px)/1.15 var(--script) !important; margin: 0 0 18px; }
.stax-bomb { position: absolute; bottom: 0; width: 150px; height: 100%; object-fit: cover; }
.stax-bomb.is-left { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.stax-bomb.is-right { right: 0; -webkit-mask-image: linear-gradient(270deg, #000 60%, transparent); mask-image: linear-gradient(270deg, #000 60%, transparent); }

/* Shop pages */
.site-content { padding-top: 24px; }
ul.products li.product { background: #fff; border-radius: 16px; padding: 12px 12px 16px !important; box-shadow: 0 3px 10px rgba(90, 45, 124, .18); }
ul.products li.product img { border-radius: 10px; }
ul.products li.product .woocommerce-loop-product__title { font-size: 17px !important; }
ul.products li.product .price { color: var(--plum) !important; font-weight: 800; }
.widget-area a { color: var(--plum-mid); }
.woocommerce-breadcrumb { background: transparent !important; color: var(--plum); }

/* Footer */
.stax-footer { background: var(--plum); color: #f2e6fa; font-size: 15px; }
.stax-footer a { color: #f2e6fa; }
.stax-footer .stax-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; }
.stax-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }

@media (max-width: 1000px) {
  .stax-tiles { grid-template-columns: repeat(3, 1fr); }
  .stax-search { flex-basis: 100%; }
}
@media (max-width: 720px) {
  .stax-hero .stax-wrap { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .stax-copy { padding-block: 28px 8px; }
  .stax-friends { justify-content: center; }
  .stax-perks ul { grid-template-columns: 1fr; }
  .stax-perks li { justify-content: flex-start; }
  .stax-tiles { grid-template-columns: repeat(2, 1fr); }
  .stax-new { padding: 28px 20px 32px; }
  .stax-bomb { display: none; }
}
@media (max-width: 420px) {
  .stax-wrap { padding-inline: 16px; }
  .stax-tile h2 { font-size: 17px; }
  .stax-nav ul { font-size: 15px; }
  .stax-nav a { padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) { .stax-tile { transition: none; } }

/* Category menu */
.stax-cats { display: grid; gap: 18px; clear: both; margin: 0 0 32px; padding: 24px; background: #fff; border-radius: 18px; box-shadow: 0 3px 10px rgba(90, 45, 124, .14); }
.stax-cat-group h2 { margin: 0 0 10px; font-size: 18px; }
.stax-cat-group ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stax-cat-group a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: var(--blush); color: var(--plum); font-size: 14px; font-weight: 700; text-decoration: none !important; transition: background .15s, color .15s; }
.stax-cat-group a:hover { background: var(--plum-mid); color: #fff; }
.stax-cat-group span { font-size: 12px; font-weight: 600; opacity: .7; }

/* Even product images */
ul.products li.product img, .wc-block-grid__product-image img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 10px; }
.wc-block-grid__product { background: #fff; border-radius: 16px; padding: 12px !important; box-shadow: 0 3px 10px rgba(90, 45, 124, .18); }
.wc-block-grid__product-title { color: var(--plum); font-family: var(--display); font-size: 16px !important; font-weight: 600; }
@media (max-width: 720px) { .stax-cats { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .stax-cat-group a { transition: none; } }

/* Moulds dropdown */
.stax-drop { position: relative; }
.stax-caret { font-size: 11px; margin-left: 2px; }
.stax-nav .stax-drop-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 60; width: min(560px, 92vw); max-height: 70vh; overflow-y: auto; margin-top: 4px; padding: 10px; background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(44, 26, 61, .25); grid-template-columns: repeat(3, 1fr); gap: 2px; font: 600 15px var(--display); }
.stax-drop:hover .stax-drop-menu, .stax-drop:focus-within .stax-drop-menu, .stax-drop.is-open .stax-drop-menu { display: grid; }
.stax-nav .stax-drop-menu a { color: var(--plum); padding: 6px 12px; border-radius: 10px; }
.stax-nav .stax-drop-menu a:hover { background: var(--blush); color: var(--plum); }
.stax-nav .stax-drop-all { grid-column: 1 / -1; border-bottom: 1px solid var(--lilac); margin-bottom: 4px; padding-bottom: 4px; }
.stax-nav .stax-drop-all a { color: var(--pink); }
@media (max-width: 640px) {
  .stax-nav .stax-drop-menu { position: fixed; left: 16px; right: 16px; top: auto; width: auto; grid-template-columns: repeat(2, 1fr); }
}
