/* ==========================================================================
   Wendi shop brand layer. Loads after default.css and color-scheme.css.
   Selectors are prefixed with `body` to win over the legacy Store styles.
   ========================================================================== */
:root { --w-ease: cubic-bezier(.2, .8, .2, 1); --w-ink: #2a0f22; --w-grad: linear-gradient(135deg, #ffb0dd, #ff8fc4); }

html { font-size: var(--font-size, 16px); }
body,
body h1, body h2, body h3, body h4, body h5, body h6,
body .title-font, body .body-font, body .section-title {
  font-family: var(--w-font) !important;
}
body {
  font-family: var(--w-font);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgb(255 179 211 / .16), transparent 28%),
    radial-gradient(circle at 90% 8%, rgb(215 164 255 / .14), transparent 24%),
    linear-gradient(180deg, #180914 0%, #220f1e 46%, #2b1324 100%);
}
body a { color: var(--primary-2); text-underline-offset: .2em; }
body a:hover { color: #fff; }
body :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
body .mega-container { max-width: 1180px; padding-inline: 16px; }

/* ---- Header ---- */
body #top-bar { background: rgba(24, 9, 20, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line, rgba(255, 255, 255, .12)); }
body #top-bar .top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
body #site-logo img { display: block; height: 72px; width: auto; }
body .nav-hamburger,
body #top-bar #searchicon,
body #top-bar .top-account {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line, rgba(255, 255, 255, .2));
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  transition: background .2s, transform .2s var(--w-ease);
}
body .nav-hamburger:hover,
body #top-bar #searchicon:hover,
body #top-bar .top-account:hover { background: rgba(255, 143, 196, .22); transform: translateY(-2px); color: #fff; }

/* ---- Shop hero (output by wendi_shop_hero()) ---- */
.shop-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin: 0 0 2rem;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem);
  border-radius: 32px;
  text-align: center;
  color: #fff0f9;
  background:
    radial-gradient(110% 90% at 85% 0%, #5a2a66 0%, transparent 60%),
    radial-gradient(90% 80% at 0% 100%, #7a2f55 0%, transparent 60%),
    linear-gradient(180deg, #1b0b20, #180914);
}
.shop-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.shop-hero-eyebrow {
  display: inline-block;
  margin: 0 0 .9rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffd9a0;
  background: rgba(255, 217, 160, .08);
  border: 1px solid rgba(255, 217, 160, .28);
}
body .shop-hero h1 {
  margin: 0 0 .6rem;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.05;
  background: linear-gradient(100deg, #ffb0dd, #d7a4ff 55%, #ffd9a0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}
.shop-hero p { max-width: 44ch; margin: 0 auto; font-size: clamp(1.05rem, 2vw, 1.25rem); color: #e6c4d8; }

/* ---- Breadcrumbs, result count, ordering ---- */
body.woocommerce .woocommerce-breadcrumb { margin: 0 0 1rem; font-size: .9rem; color: var(--muted); }
body.woocommerce .woocommerce-breadcrumb a { color: var(--primary-2); }
body.woocommerce .woocommerce-result-count { margin: .5rem 0 1rem; color: var(--muted); }
body.woocommerce .woocommerce-ordering select,
body select, body input[type="text"], body input[type="email"], body input[type="tel"], body input[type="password"],
body input[type="number"], body input[type="search"], body textarea {
  min-height: 46px;
  padding: .6rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font: inherit;
  color: var(--text);
  background-color: var(--surface);
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}
body textarea { min-height: 120px; }
body select:focus, body input:focus, body textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255, 143, 196, .25); outline: none; }
body ::placeholder { color: var(--muted); opacity: .8; }

/* ---- Product grid ---- */
body.woocommerce ul.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.9rem, 2.5vw, 1.5rem); margin: 0 0 2rem; }
@media (min-width: 900px) { body.woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { body.woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body.woocommerce ul.products::before, body.woocommerce ul.products::after { display: none; }
body.woocommerce ul.products li.product {
  position: relative;
  float: none;
  width: auto !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line, rgba(255, 255, 255, .12));
  border-radius: 24px;
  background: var(--surface-soft, rgba(255, 255, 255, .06));
  text-align: center;
  transition: transform .3s var(--w-ease), border-color .3s, box-shadow .3s;
}
body.woocommerce ul.products li.product:hover,
body.woocommerce ul.products li.product:focus-within { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 26px 50px -24px rgba(255, 143, 196, .55); }
body.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: cover; filter: none; transition: transform .6s var(--w-ease); }
body.woocommerce ul.products li.product:hover a img { transform: scale(1.05); filter: none; }
body.woocommerce ul.products li.product > a:first-child { display: block; overflow: hidden; }
body.woocommerce ul.products li.product .product-desc { padding: .85rem 1rem 0; }
body.woocommerce ul.products li.product h2,
body.woocommerce ul.products li.product h3,
body.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
body.woocommerce ul.products li.product .price { display: block; margin: .35rem 0 .75rem; font-size: 1.1rem; font-weight: 700; color: var(--primary); }
body.woocommerce ul.products li.product .price del { color: var(--muted); font-weight: 500; opacity: .8; }
body.woocommerce ul.products li.product .price ins { text-decoration: none; }
body.woocommerce ul.products li.product .button { margin: auto 1rem 1rem; }

/* sale badge: pill, not diagonal ribbon */
body.woocommerce span.onsale,
body.woocommerce ul.products li.product .onsale,
body .sale-flash .onsale {
  position: absolute;
  top: .75rem;
  left: .75rem;
  right: auto;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: .25rem .75rem;
  border-radius: 999px;
  transform: none;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--w-ink);
  background: var(--w-grad);
  z-index: 3;
}
body .sale-flash { top: 0; left: 0; width: auto; height: auto; overflow: visible; }

/* ---- Buttons ---- */
body .button, body button.button, body a.button, body input.button, body #respond input#submit,
body .woocommerce a.button, body .woocommerce button.button, body .woocommerce input.button,
body .single_add_to_cart_button, body #place_order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .65rem 1.4rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  color: var(--w-ink);
  background: var(--w-grad);
  box-shadow: 0 10px 26px -12px rgba(255, 143, 196, .85);
  transition: transform .2s var(--w-ease), box-shadow .2s, filter .2s;
}
body .button:hover, body button.button:hover, body a.button:hover, body input.button:hover,
body .single_add_to_cart_button:hover, body #place_order:hover {
  color: var(--w-ink);
  background: var(--w-grad);
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(255, 143, 196, .95);
}
body .button.disabled, body .button:disabled, body .single_add_to_cart_button.disabled { opacity: .55; cursor: not-allowed; transform: none; }
body .button.alt { background: var(--w-grad); }
body .button.loading { opacity: .7; }
body .button.added::after { content: "\2713"; font-weight: 900; }

/* ---- Pagination ---- */
body.woocommerce nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; border: 0; }
body.woocommerce nav.woocommerce-pagination ul li { border: 0; float: none; }
body.woocommerce nav.woocommerce-pagination ul li a,
body.woocommerce nav.woocommerce-pagination ul li span {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 .9rem;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(255, 255, 255, .2));
  color: var(--text);
  background: transparent;
  text-decoration: none;
}
body.woocommerce nav.woocommerce-pagination ul li span.current,
body.woocommerce nav.woocommerce-pagination ul li a:hover { color: var(--w-ink); background: var(--w-grad); border-color: transparent; }

/* ---- Single product ---- */
body.single-product div.product { display: grid; gap: clamp(1.25rem, 4vw, 3rem); grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 860px) { body.single-product div.product { grid-template-columns: 1fr 1fr; align-items: start; } }
body.single-product div.product .woocommerce-product-gallery { float: none; width: 100%; margin: 0; }
body.single-product div.product .woocommerce-product-gallery__image img,
body.single-product div.product .images img { border-radius: 28px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .75); }
body.single-product div.product .summary { float: none; width: 100%; margin: 0; }
body.single-product .product_title { margin: 0 0 .5rem; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; color: var(--text); }
body.single-product div.product p.price,
body.single-product div.product span.price { display: block; margin: 0 0 1rem; font-size: 1.8rem; font-weight: 700; color: var(--primary); }
body.single-product div.product p.price del { font-size: 1.1rem; color: var(--muted); }
body.single-product div.product p.price ins { text-decoration: none; }
body.single-product .woocommerce-product-details__short-description { margin-bottom: 1.25rem; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
body.single-product form.cart { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.25rem; }
body.single-product form.cart .quantity .qty { width: 5rem; text-align: center; }
body.single-product .product_meta { padding-top: 1rem; border-top: 1px solid var(--line, rgba(255, 255, 255, .15)); font-size: .92rem; color: var(--muted); }
body.single-product .product_meta > span { display: block; margin-bottom: .25rem; }
body.single-product .woocommerce-tabs { grid-column: 1 / -1; }
body.single-product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; border: 0; }
body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after { display: none; }
body.single-product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; }
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after { display: none; }
body.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(255, 255, 255, .2));
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
body.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--w-ink); background: var(--w-grad); border-color: transparent; }
body.single-product .woocommerce-tabs .panel { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line, rgba(255, 255, 255, .15)); border-radius: 24px; background: var(--surface-soft, rgba(255, 255, 255, .06)); line-height: 1.75; }
body.single-product .related.products > h2, body.single-product .upsells.products > h2 { margin: 2rem 0 1rem; font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
body .variations select { min-width: 12rem; }
body .variations th, body .variations td { padding: .4rem .6rem .4rem 0; vertical-align: middle; }

/* ---- Notices ---- */
body .woocommerce-message, body .woocommerce-info, body .woocommerce-error {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--primary);
  border-left-width: 5px;
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 143, 196, .1);
  list-style: none;
}
body .woocommerce-error { border-color: #ff8aa0; background: rgba(255, 138, 160, .1); }
body .woocommerce-message .button, body .woocommerce-info .button { float: right; margin-left: 1rem; }

/* ---- Cart, checkout, account ---- */
body table.shop_table, body .shop_table {
  width: 100%;
  border: 1px solid var(--line, rgba(255, 255, 255, .15));
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-soft, rgba(255, 255, 255, .06));
  color: var(--text);
}
body table.shop_table th, body table.shop_table td { padding: .9rem 1rem; border-top: 1px solid var(--line, rgba(255, 255, 255, .12)); background: transparent; color: var(--text); vertical-align: middle; }
body table.shop_table thead th { border-top: 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
body table.shop_table td.product-thumbnail img { width: 72px; height: auto; border-radius: 14px; }
body table.shop_table td.product-name a { font-weight: 700; color: var(--text); text-decoration: none; }
body table.shop_table .amount { font-weight: 700; color: var(--primary-2); }
body a.remove { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--w-ink) !important; background: var(--primary); text-decoration: none; }
body a.remove:hover { background: #fff; }
body .cart-collaterals .cart_totals, body .woocommerce-checkout-review-order, body #order_review {
  padding: 1.25rem;
  border: 1px solid var(--line, rgba(255, 255, 255, .15));
  border-radius: 24px;
  background: var(--surface-soft, rgba(255, 255, 255, .06));
}
body .cart-collaterals .cart_totals h2, body #order_review_heading, body .woocommerce-billing-fields h3, body .woocommerce-shipping-fields h3 { margin: 0 0 1rem; font-size: 1.4rem; }
body .wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 54px; font-size: 1.1rem; }
body .coupon { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
body form .form-row { margin-bottom: 1rem; }
body form .form-row label { display: block; margin-bottom: .35rem; font-weight: 700; }
body form .form-row .required { color: var(--primary); text-decoration: none; }
body form .form-row input.input-text, body form .form-row textarea, body form .form-row select { width: 100%; }
body .woocommerce-invalid input.input-text { border-color: #ff8aa0; }
body #payment { border-radius: 20px; background: transparent; }
body #payment ul.payment_methods { padding: 0; border: 0; list-style: none; }
body #payment div.payment_box { border-radius: 16px; color: var(--text); background: rgba(255, 143, 196, .1); }
body #payment div.payment_box::before { border-bottom-color: rgba(255, 143, 196, .1); }
body #place_order { width: 100%; min-height: 56px; font-size: 1.1rem; }
body .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
body .woocommerce-MyAccount-navigation li a { display: block; padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line, rgba(255, 255, 255, .2)); color: var(--text); text-decoration: none; font-weight: 600; }
body .woocommerce-MyAccount-navigation li.is-active a { color: var(--w-ink); background: var(--w-grad); border-color: transparent; }

/* ---- Footer: layout comes from wendi-design.css; these beat the legacy !important footer rules ---- */
body #colophon { padding: 0; background: none !important; text-align: left; color: var(--muted) !important; }
body .site-footer.wf { margin-top: clamp(3rem, 8vw, 5rem); padding: 0 0 1.5rem; }
body #colophon .wf-btn { color: #fff0f9 !important; }
body #colophon .wf-btn--primary,
body #colophon .wf-btn--primary:hover { color: var(--w-ink) !important; }
body #colophon .wf-col a:hover { color: #ffb0dd !important; }
body #colophon .wf-col-title,
body #colophon .wf-col .widget-title { color: #ffd9a0 !important; }
body #colophon .footer-widget .wf-col-title,
body #colophon .footer-widget .widget-title { display: none; }
body #colophon .footer-widget,
body #colophon .wf-col .widget { margin: 0 0 1rem; padding: 0; background: none; border: 0; }
body #colophon .footer-widget:last-child,
body #colophon .wf-col .widget:last-child { margin-bottom: 0; }
body #colophon .wf-col .menu { margin: 0; padding: 0; list-style: none; }
body #colophon .wf-legal a { color: var(--muted) !important; text-decoration: underline; }
body #colophon .wf-legal a:hover { color: var(--primary-2) !important; }

/* ---- Product card extras: wishlist heart and the quantity + cart row ---- */
body.woocommerce ul.products li.product .nwishlist-wrapper { position: absolute; top: .6rem; right: .6rem; z-index: 3; }
body.woocommerce ul.products li.product .cart-flex { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: auto 1rem 1rem; }
body.woocommerce ul.products li.product .cart-flex .quantity .qty { width: 4.2rem; min-height: 46px; padding: .4rem; text-align: center; }
body.woocommerce ul.products li.product .cart-flex .button,
body.woocommerce ul.products li.product .button.alt { margin: 0; min-width: 52px; padding-inline: 1rem; border-radius: 999px; color: var(--w-ink); background: var(--w-grad); }
body.woocommerce ul.products li.product .cart-flex .button:hover,
body.woocommerce ul.products li.product .button.alt:hover { color: var(--w-ink); background: var(--w-grad); filter: brightness(1.06); }

/* ---- Motion ---- */
@media (max-width: 520px) {
  body .woocommerce-message .button, body .woocommerce-info .button { float: none; margin: .75rem 0 0; }
  body table.shop_table_responsive td::before { color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) {
  body *, body *::before, body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
