﻿/*
 * Hand-Drawn Sketchbook design layer for Flatsome.
 * This file is intentionally scoped to body.hd-handdrawn for predictable overrides.
 */

@import url("https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Patrick+Hand&display=swap");

body.hd-handdrawn {
  --hd-background: #fdfbf7;
  --hd-foreground: #2d2d2d;
  --hd-muted: #e5e0d8;
  --hd-muted-foreground: #746f65;
  --hd-accent: #ff4d4d;
  --hd-accent-foreground: #ffffff;
  --hd-secondary: #2d5da1;
  --hd-tertiary: #fff3a6;
  --hd-quaternary: #2d5da1;
  --hd-border: #2d2d2d;
  --hd-input-border: #d6d0c5;
  --hd-card: #ffffff;
  --hd-ring: #2d5da1;
  --hd-border-width: 3px;
  --hd-radius-sm: 14px 18px 12px 20px / 18px 12px 20px 14px;
  --hd-radius-md: 28px 14px 30px 12px / 12px 30px 14px 28px;
  --hd-radius-lg: 38px 18px 40px 16px / 16px 40px 18px 38px;
  --hd-radius-note: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --hd-radius-blob: 58% 42% 44% 56% / 53% 38% 62% 47%;
  --hd-radius-full: 9999px;
  --hd-shadow-pop: 4px 4px 0 0 #2d2d2d;
  --hd-shadow-pop-hover: 2px 2px 0 0 #2d2d2d;
  --hd-shadow-pop-active: 0 0 0 0 #2d2d2d;
  --hd-shadow-card: 3px 3px 0 0 #2d2d2d;
  --hd-shadow-card-featured: 6px 6px 0 0 #2d2d2d;
  --hd-ease-bouncy: cubic-bezier(0.2, 0.95, 0.4, 1.08);
  --hd-motion-scale: 1;
  --hd-enter-duration-fast: 220ms;
  --hd-enter-duration: 360ms;
  --hd-enter-distance: 12px;
  --hd-enter-rotate: 1.7deg;
  --hd-font-heading: "Kalam", "Comic Sans MS", cursive;
  --hd-font-body: "Patrick Hand", "Segoe UI", sans-serif;
  --hd-section-space: clamp(60px, 9vw, 108px);
  --fs-color-primary: var(--hd-accent);
  --fs-color-secondary: var(--hd-secondary);
  --fs-color-base: var(--hd-foreground);
  background-color: var(--hd-background);
  background-image:
    radial-gradient(rgba(214, 208, 197, 0.88) 1px, transparent 1px),
    linear-gradient(180deg, #fdfbf7 0%, #fffef9 100%);
  background-size: 24px 24px, 100% 100%;
  color: var(--hd-foreground);
  font-family: var(--hd-font-body);
}

body.hd-handdrawn h1,
body.hd-handdrawn h2,
body.hd-handdrawn h3,
body.hd-handdrawn h4,
body.hd-handdrawn h5,
body.hd-handdrawn h6,
body.hd-handdrawn .heading-font {
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  letter-spacing: 0.01em;
  line-height: 1.08;
}

body.hd-handdrawn h1,
body.hd-handdrawn h2,
body.hd-handdrawn h3 {
  font-weight: 700;
}

body.hd-handdrawn h4,
body.hd-handdrawn h5,
body.hd-handdrawn h6 {
  font-weight: 700;
}

body.hd-handdrawn p,
body.hd-handdrawn li,
body.hd-handdrawn label,
body.hd-handdrawn input,
body.hd-handdrawn select,
body.hd-handdrawn textarea {
  font-family: var(--hd-font-body);
}

body.hd-handdrawn a {
  color: var(--hd-accent);
  text-decoration-style: wavy;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

body.hd-handdrawn a:hover {
  color: #ff4d4d;
  text-decoration-thickness: 3px;
}

body.hd-handdrawn .container,
body.hd-handdrawn .container-width,
body.hd-handdrawn .row {
  max-width: 1200px;
}

body.hd-handdrawn .section {
  padding-bottom: var(--hd-section-space);
  padding-top: var(--hd-section-space);
}

body.hd-handdrawn .section-title span {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-sm);
  font-family: var(--hd-font-heading);
  font-weight: 700;
  padding: 0.38em 0.88em;
  transform: rotate(-0.75deg);
}

body.hd-handdrawn .section-title b {
  background-image: linear-gradient(90deg, rgba(255, 243, 166, 0.55), rgba(255, 243, 166, 0.22));
  opacity: 0.85;
}

body.hd-handdrawn .button:not(.icon),
body.hd-handdrawn button:not(.icon):not(.mfp-close),
body.hd-handdrawn input[type="button"],
body.hd-handdrawn input[type="submit"],
body.hd-handdrawn input[type="reset"] {
  background-color: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-sm);
  box-shadow: var(--hd-shadow-pop);
  color: var(--hd-foreground);
  font-family: var(--hd-font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-height: 48px;
  padding: 0.75em 1.3em;
  transition:
    transform 100ms ease,
    box-shadow 100ms ease,
    background-color 100ms ease,
    color 100ms ease;
}

body.hd-handdrawn .button:not(.icon):hover,
body.hd-handdrawn button:not(.icon):not(.mfp-close):hover,
body.hd-handdrawn input[type="button"]:hover,
body.hd-handdrawn input[type="submit"]:hover,
body.hd-handdrawn input[type="reset"]:hover {
  background-color: var(--hd-accent);
  box-shadow: var(--hd-shadow-pop-hover);
  color: var(--hd-accent-foreground);
  transform: translate(2px, 2px) rotate(-0.4deg);
}

body.hd-handdrawn .button:not(.icon):active,
body.hd-handdrawn button:not(.icon):not(.mfp-close):active,
body.hd-handdrawn input[type="button"]:active,
body.hd-handdrawn input[type="submit"]:active,
body.hd-handdrawn input[type="reset"]:active {
  box-shadow: var(--hd-shadow-pop-active);
  transform: translate(4px, 4px) rotate(0deg);
}

body.hd-handdrawn .button.is-outline,
body.hd-handdrawn .button.secondary,
body.hd-handdrawn button.is-outline {
  background-color: var(--hd-muted);
  box-shadow: var(--hd-shadow-pop);
  color: var(--hd-foreground);
}

body.hd-handdrawn .button.is-outline:hover,
body.hd-handdrawn .button.secondary:hover,
body.hd-handdrawn button.is-outline:hover {
  background-color: var(--hd-secondary);
  box-shadow: var(--hd-shadow-pop-hover);
  color: #fff;
  transform: translate(2px, 2px) rotate(0.4deg);
}

body.hd-handdrawn :is(.button, button, input, select, textarea):focus-visible {
  box-shadow:
    4px 4px 0 0 #2d2d2d,
    0 0 0 4px rgba(45, 93, 161, 0.2);
  outline: 2px dashed rgba(45, 93, 161, 0.7);
  outline-offset: 2px;
}

body.hd-handdrawn .box,
body.hd-handdrawn .message-box,
body.hd-handdrawn .widget:not(.widget_shopping_cart):not(.widget_product_search) {
  background-color: var(--hd-card);
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow-card);
  overflow: hidden;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

body.hd-handdrawn .box:hover,
body.hd-handdrawn .message-box:hover {
  box-shadow: var(--hd-shadow-card-featured);
  transform: rotate(1deg) translate(-1px, -1px);
}

body.hd-handdrawn .box-text h1,
body.hd-handdrawn .box-text h2,
body.hd-handdrawn .box-text h3,
body.hd-handdrawn .box-text h4 {
  font-family: var(--hd-font-heading);
  font-weight: 700;
}

body.hd-handdrawn .badge-inner {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-sm);
  box-shadow: 2px 2px 0 0 #2d2d2d;
  font-family: var(--hd-font-heading);
  font-weight: 700;
}

body.hd-handdrawn label {
  color: var(--hd-foreground);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
}

body.hd-handdrawn input[type="text"],
body.hd-handdrawn input[type="email"],
body.hd-handdrawn input[type="tel"],
body.hd-handdrawn input[type="password"],
body.hd-handdrawn input[type="number"],
body.hd-handdrawn input[type="search"],
body.hd-handdrawn select,
body.hd-handdrawn textarea {
  background-color: #fff;
  border: var(--hd-border-width) solid var(--hd-input-border);
  border-radius: var(--hd-radius-sm);
  box-shadow: 4px 4px 0 0 transparent;
  color: var(--hd-foreground);
  font-size: 1.03rem;
  line-height: 1.35;
  min-height: 48px;
  padding: 0.72em 0.95em;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

body.hd-handdrawn input::placeholder,
body.hd-handdrawn textarea::placeholder {
  color: var(--hd-muted-foreground);
}

body.hd-handdrawn input[type="text"]:focus,
body.hd-handdrawn input[type="email"]:focus,
body.hd-handdrawn input[type="tel"]:focus,
body.hd-handdrawn input[type="password"]:focus,
body.hd-handdrawn input[type="number"]:focus,
body.hd-handdrawn input[type="search"]:focus,
body.hd-handdrawn select:focus,
body.hd-handdrawn textarea:focus {
  border-color: var(--hd-secondary);
  box-shadow:
    4px 4px 0 0 #2d2d2d,
    0 0 0 3px rgba(45, 93, 161, 0.2);
}

body.hd-handdrawn .hd-decoration-tape,
body.hd-handdrawn .hd-decoration-tack {
  position: relative;
}

body.hd-handdrawn .hd-decoration-tape::before {
  background: rgba(214, 208, 197, 0.68);
  border: 1px dashed rgba(45, 45, 45, 0.32);
  border-radius: 5px;
  content: "";
  height: 18px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: -11px;
  transform: translateX(-50%) rotate(-3deg);
  width: 84px;
  z-index: 2;
}

body.hd-handdrawn .hd-decoration-tack::before {
  background: var(--hd-accent);
  border: 2px solid var(--hd-foreground);
  border-radius: 50%;
  box-shadow: 1px 1px 0 0 #2d2d2d;
  content: "";
  height: 14px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: -8px;
  transform: translateX(-50%);
  width: 14px;
  z-index: 3;
}

body.hd-handdrawn .hd-speech-bubble {
  position: relative;
}

body.hd-handdrawn .hd-speech-bubble::after {
  border-left: 12px solid transparent;
  border-right: 4px solid transparent;
  border-top: 14px solid #fff;
  bottom: -13px;
  content: "";
  left: 24px;
  position: absolute;
}

body.hd-handdrawn .hd-sticky-tag {
  background: var(--hd-tertiary);
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-sm);
  box-shadow: 2px 2px 0 0 #2d2d2d;
  color: var(--hd-foreground);
  display: inline-block;
  font-family: var(--hd-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.2em 0.75em;
  transform: rotate(-2deg);
}

body.hd-handdrawn .hd-drop-cap::first-letter {
  color: var(--hd-accent);
  float: left;
  font-family: var(--hd-font-heading);
  font-size: 2.35em;
  line-height: 0.84;
  margin: 0.08em 0.12em 0 0;
}
body.hd-handdrawn .header .nav > li > a {
  border: 2px solid transparent;
  border-radius: var(--hd-radius-sm);
  font-family: var(--hd-font-heading);
  font-size: 1rem;
  font-weight: 700;
  padding-left: 0.9em;
  padding-right: 0.9em;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    transform 120ms ease,
    color 140ms ease;
}

body.hd-handdrawn .header .nav > li > a:hover,
body.hd-handdrawn .header .nav > li.active > a,
body.hd-handdrawn .header .nav > li.current > a {
  background-color: var(--hd-tertiary);
  border-color: var(--hd-foreground);
  color: var(--hd-foreground);
  transform: rotate(-1deg);
}

body.hd-handdrawn .nav-dropdown {
  background-color: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-sm);
  box-shadow: 4px 4px 0 0 #2d2d2d;
}

body.hd-handdrawn .nav-dropdown > li > a {
  border-radius: var(--hd-radius-sm);
  font-family: var(--hd-font-body);
  font-weight: 700;
}

body.hd-handdrawn .nav-dropdown > li > a:hover {
  background-color: var(--hd-muted);
}

body.hd-handdrawn .hd-decorated-section {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

body.hd-handdrawn .hd-decorated-section::before,
body.hd-handdrawn .hd-decorated-section::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

body.hd-handdrawn .hd-decorated-section::before {
  aspect-ratio: 1;
  background: rgba(255, 243, 166, 0.92);
  border: 2px dashed rgba(45, 45, 45, 0.4);
  border-radius: var(--hd-radius-note);
  left: -90px;
  top: -120px;
  width: clamp(180px, 22vw, 280px);
  transform: rotate(-3deg);
}

body.hd-handdrawn .hd-decorated-section::after {
  background: repeating-linear-gradient(
    -45deg,
    rgba(45, 93, 161, 0.24) 0 8px,
    transparent 8px 16px
  );
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-sm);
  height: clamp(90px, 14vw, 150px);
  right: -40px;
  top: 26%;
  transform: rotate(8deg);
  width: clamp(90px, 14vw, 150px);
}

body.hd-handdrawn .hd-decorated-section > * {
  position: relative;
  z-index: 1;
}

body.hd-handdrawn .hd-dot-grid {
  background-image: radial-gradient(circle at 2px 2px, rgba(45, 45, 45, 0.14) 2px, transparent 0);
  background-size: 18px 18px;
}

body.hd-handdrawn .hd-diagonal-stripes {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 243, 166, 0.36) 0 12px,
    rgba(255, 243, 166, 0.12) 12px 24px
  );
}

body.hd-handdrawn .hd-bubble-radius {
  border-radius: var(--hd-radius-sm);
}

body.hd-handdrawn .hd-arch-radius {
  border-radius: var(--hd-radius-md);
}

body.hd-handdrawn .hd-hero {
  align-items: center;
  column-gap: clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

body.hd-handdrawn .hd-hero-copy {
  position: relative;
  z-index: 1;
}

body.hd-handdrawn .hd-hero-copy::before {
  aspect-ratio: 1;
  background: rgba(255, 243, 166, 0.86);
  border-radius: var(--hd-radius-note);
  content: "";
  left: -9%;
  pointer-events: none;
  position: absolute;
  top: -15%;
  width: clamp(170px, 24vw, 320px);
  z-index: -1;
}

body.hd-handdrawn .hd-hero-media {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-blob);
  box-shadow: var(--hd-shadow-pop);
  overflow: hidden;
  position: relative;
  transform: rotate(-1deg);
}

body.hd-handdrawn .hd-hero-media::after {
  background-image: radial-gradient(circle at 1.5px 1.5px, rgba(45, 45, 45, 0.2) 1.5px, transparent 0);
  background-size: 16px 16px;
  content: "";
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.25;
  pointer-events: none;
  position: absolute;
}

body.hd-handdrawn .hd-features-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
}

body.hd-handdrawn .hd-features-grid::before {
  border-top: 2px dashed #8f887b;
  content: "";
  left: 12%;
  position: absolute;
  right: 12%;
  top: 50%;
  z-index: 0;
}

body.hd-handdrawn .hd-features-grid > * {
  position: relative;
  z-index: 1;
}

body.hd-handdrawn .hd-pricing-grid {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.hd-handdrawn .hd-plan.is-popular {
  transform: scale(1.05) rotate(-1deg);
}

body.hd-handdrawn .hd-popular-badge {
  background-color: var(--hd-tertiary);
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-sm);
  box-shadow: var(--hd-shadow-pop);
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.45em 0.9em;
  position: absolute;
  right: -8px;
  text-transform: none;
  top: -16px;
  transform: rotate(8deg);
}

body.hd-handdrawn .hd-icon-bubble {
  align-items: center;
  background: var(--hd-quaternary);
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: 54% 46% 43% 57% / 55% 40% 60% 45%;
  box-shadow: var(--hd-shadow-pop);
  color: #fff;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

@keyframes hd-pop-in {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }
  70% {
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hd-enter-drop {
  0% {
    opacity: 0;
    transform: translateY(var(--hd-enter-distance)) scale(0.97) rotate(calc(var(--hd-enter-rotate) * -1));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes hd-enter-rise {
  0% {
    opacity: 0;
    transform: translateY(calc(var(--hd-enter-distance) * 0.66)) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hd-wiggle {
  0% {
    transform: rotate(0deg);
  }
  33% {
    transform: rotate(3deg);
  }
  66% {
    transform: rotate(-3deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes hd-gentle-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-5px) rotate(1deg);
  }
}

body.hd-handdrawn .hd-pop-in {
  animation: hd-pop-in var(--hd-enter-duration) var(--hd-ease-bouncy) both;
}

body.hd-handdrawn .hd-wiggle-hover:hover {
  animation: hd-wiggle 420ms ease-in-out 1;
}

body.hd-handdrawn .hd-bounce {
  animation: hd-gentle-bounce 3s ease-in-out infinite;
}

body.hd-handdrawn .hd-arrow-doodle {
  border: 2px dashed var(--hd-foreground);
  border-left: 0;
  border-radius: var(--hd-radius-sm);
  height: 24px;
  position: relative;
  transform: rotate(-6deg);
  width: 92px;
}

body.hd-handdrawn .hd-arrow-doodle::after {
  border-left: 10px solid var(--hd-foreground);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  content: "";
  position: absolute;
  right: -12px;
  top: 4px;
}

body.hd-handdrawn .hd-squiggle-divider {
  border: 0;
  border-top: 3px dashed var(--hd-foreground);
  margin: 1rem 0;
  opacity: 0.5;
  transform: rotate(-0.8deg);
}

/* WooCommerce deep styling */
body.hd-handdrawn.woocommerce .products .product-small .box,
body.hd-handdrawn.woocommerce-page .products .product-small .box {
  border-color: var(--hd-foreground);
  border-radius: var(--hd-radius-lg);
  box-shadow: 7px 7px 0 0 #2d2d2d;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: visible;
}

body.hd-handdrawn .products .product-small .box-image {
  border-radius: var(--hd-radius-md);
  overflow: hidden;
  position: relative;
}

body.hd-handdrawn .products .product-small .box-image::after {
  background:
    radial-gradient(circle at 8px 8px, rgba(45, 45, 45, 0.16) 1.4px, transparent 0) 0 0 / 18px 18px;
  content: "";
  inset: 0;
  opacity: 0.23;
  pointer-events: none;
  position: absolute;
}

body.hd-handdrawn .products .product-small .box-text {
  border-top: var(--hd-border-width) solid var(--hd-foreground);
  padding: 1rem;
}

body.hd-handdrawn .products .product-small .name,
body.hd-handdrawn .products .product-small .woocommerce-loop-product__title {
  font-family: var(--hd-font-heading);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.25;
}

body.hd-handdrawn .products .product-small .price-wrapper {
  margin-top: 0.35rem;
}

body.hd-handdrawn .price,
body.hd-handdrawn span.amount {
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-weight: 800;
}

body.hd-handdrawn del span.amount {
  color: var(--hd-muted-foreground);
}

body.hd-handdrawn ins,
body.hd-handdrawn ins span.amount {
  color: #ff4d4d;
  text-decoration: none;
}

body.hd-handdrawn .products .badge-container {
  left: 12px;
  top: 12px;
}

body.hd-handdrawn .products .badge-inner {
  background-color: var(--hd-tertiary);
  color: var(--hd-foreground);
}

body.hd-handdrawn .products .image-tools .button,
body.hd-handdrawn .products .image-tools .cart-icon strong {
  border-color: var(--hd-foreground) !important;
  box-shadow: 2px 2px 0 0 #2d2d2d;
}

body.hd-handdrawn .products .grid-tools a {
  background-color: var(--hd-accent);
  border-top: var(--hd-border-width) solid var(--hd-foreground);
  color: #fff;
  font-family: var(--hd-font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

body.hd-handdrawn .products .grid-tools a:hover {
  background-color: #ff4d4d;
}

body.hd-handdrawn .woocommerce-pagination .page-numbers,
body.hd-handdrawn .woocommerce-pagination .page-number {
  border-radius: var(--hd-radius-full);
  font-family: var(--hd-font-heading);
  font-weight: 700;
}

body.hd-handdrawn .woocommerce-pagination .page-number.current,
body.hd-handdrawn .woocommerce-pagination .page-numbers.current {
  background-color: var(--hd-tertiary);
  border: var(--hd-border-width) solid var(--hd-foreground);
  box-shadow: 2px 2px 0 0 #2d2d2d;
  color: var(--hd-foreground);
}

body.hd-handdrawn .woocommerce-message,
body.hd-handdrawn .woocommerce-info,
body.hd-handdrawn .woocommerce-error,
body.hd-handdrawn .message-wrapper .message-container {
  background-color: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-left-width: 8px;
  border-radius: var(--hd-radius-md);
  box-shadow: 4px 4px 0 0 #2d2d2d;
  color: var(--hd-foreground);
}

body.hd-handdrawn .woocommerce-message {
  border-left-color: var(--hd-quaternary);
}

body.hd-handdrawn .woocommerce-info {
  border-left-color: var(--hd-accent);
}

body.hd-handdrawn .woocommerce-error {
  border-left-color: var(--hd-secondary);
}

body.hd-handdrawn.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-message,
body.hd-handdrawn.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-info,
body.hd-handdrawn.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-error,
body.hd-handdrawn.woocommerce-checkout .woocommerce-notices-wrapper > .message-wrapper {
  animation: hd-enter-rise var(--hd-enter-duration-fast) var(--hd-ease-bouncy) both;
}

body.hd-handdrawn.woocommerce-checkout .woocommerce-notices-wrapper > *:nth-child(2) {
  animation-delay: 40ms;
}

body.hd-handdrawn.woocommerce-checkout .woocommerce-notices-wrapper > *:nth-child(3) {
  animation-delay: 80ms;
}

body.hd-handdrawn.woocommerce-cart .woocommerce-cart-form,
body.hd-handdrawn.woocommerce-cart .cart-sidebar .col-inner,
body.hd-handdrawn.woocommerce-cart .cart_totals {
  background-color: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow-card);
  padding: 18px;
}

body.hd-handdrawn.woocommerce-cart .cart-wrapper {
  border-radius: var(--hd-radius-md);
  overflow: hidden;
}

body.hd-handdrawn.woocommerce-cart .shop_table {
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
}

body.hd-handdrawn.woocommerce-cart .shop_table thead th {
  background-color: var(--hd-muted);
  border-bottom: var(--hd-border-width) solid var(--hd-foreground);
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.hd-handdrawn.woocommerce-cart .shop_table tbody td {
  border-bottom: 1px dashed #d6d0c5;
  vertical-align: middle;
}

body.hd-handdrawn.woocommerce-cart .shop_table tr:last-child td {
  border-bottom: 0;
}

body.hd-handdrawn.woocommerce-cart .shop_table .product-thumbnail img {
  border: var(--hd-border-width) solid var(--hd-border);
  border-radius: var(--hd-radius-sm);
}

body.hd-handdrawn.woocommerce-cart .shop_table .product-name a {
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-weight: 700;
  text-decoration: none;
}

body.hd-handdrawn.woocommerce-cart .shop_table .product-name a:hover {
  color: var(--hd-accent);
}

body.hd-handdrawn.woocommerce-cart .shop_table .remove {
  background: var(--hd-muted);
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: 50%;
  color: var(--hd-foreground) !important;
  display: inline-flex;
  font-size: 18px !important;
  height: 28px;
  justify-content: center;
  line-height: 1 !important;
  width: 28px;
}

body.hd-handdrawn.woocommerce-cart .shop_table .remove:hover {
  background: var(--hd-secondary);
  color: #fff !important;
}

body.hd-handdrawn .ux-quantity.quantity {
  border-radius: var(--hd-radius-full);
  box-shadow: 2px 2px 0 0 #2d2d2d;
  overflow: hidden;
}

body.hd-handdrawn .ux-quantity.quantity .ux-quantity__button {
  background: var(--hd-tertiary);
  border-color: var(--hd-foreground) !important;
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-weight: 800;
  min-height: 42px;
  min-width: 42px;
  padding: 0;
}

body.hd-handdrawn .ux-quantity.quantity input.qty {
  background: #fff;
  border-color: var(--hd-foreground) !important;
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-weight: 700;
  min-height: 42px;
}

body.hd-handdrawn.woocommerce-cart .coupon,
body.hd-handdrawn.woocommerce-cart .ux-cart-coupon .coupon,
body.hd-handdrawn .checkout_coupon {
  background: #fff;
  border: var(--hd-border-width) dashed var(--hd-foreground);
  border-radius: var(--hd-radius-md);
  margin-top: 14px;
  padding: 14px;
}

body.hd-handdrawn .coupon .widget-title,
body.hd-handdrawn .woocommerce-form-coupon-toggle .woocommerce-info {
  font-family: var(--hd-font-heading);
  font-weight: 700;
}

body.hd-handdrawn.woocommerce-cart .cart_totals .shop_table {
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-md);
  overflow: hidden;
}

body.hd-handdrawn.woocommerce-cart .cart_totals .shop_table th,
body.hd-handdrawn.woocommerce-cart .cart_totals .shop_table td {
  border-bottom: 1px dashed #d6d0c5;
  padding: 0.7em 0.9em;
}

body.hd-handdrawn.woocommerce-cart .cart_totals .shop_table tr:last-child th,
body.hd-handdrawn.woocommerce-cart .cart_totals .shop_table tr:last-child td {
  border-bottom: 0;
}

body.hd-handdrawn.woocommerce-cart .cart_totals .order-total th,
body.hd-handdrawn.woocommerce-cart .cart_totals .order-total td {
  background-color: rgba(45, 93, 161, 0.12);
}

body.hd-handdrawn.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  width: 100%;
}

body.hd-handdrawn.woocommerce-checkout form.checkout > .row > .col:first-child,
body.hd-handdrawn.woocommerce-checkout .checkout-sidebar,
body.hd-handdrawn.woocommerce-checkout .col-inner.has-border {
  background-color: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow-card);
}

body.hd-handdrawn.woocommerce-checkout form.checkout > .row > .col:first-child {
  padding: 18px;
}

body.hd-handdrawn.woocommerce-checkout .checkout-sidebar {
  padding: 18px;
}

body.hd-handdrawn.woocommerce-checkout #customer_details .clear + .clear {
  border-top: 2px dashed #d6d0c5;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
}

body.hd-handdrawn.woocommerce-checkout h3#order_review_heading,
body.hd-handdrawn.woocommerce-checkout form.checkout h3 {
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: none;
}

body.hd-handdrawn.woocommerce-checkout #order_review .shop_table,
body.hd-handdrawn.woocommerce-checkout .woocommerce-checkout-review-order-table {
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-md);
  overflow: hidden;
}

body.hd-handdrawn.woocommerce-checkout #order_review .shop_table thead th,
body.hd-handdrawn.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
  background-color: var(--hd-muted);
  border-bottom: var(--hd-border-width) solid var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.hd-handdrawn.woocommerce-checkout #order_review .shop_table td,
body.hd-handdrawn.woocommerce-checkout #order_review .shop_table th {
  border-bottom: 1px dashed #d6d0c5;
}

body.hd-handdrawn.woocommerce-checkout #order_review .shop_table tr:last-child td,
body.hd-handdrawn.woocommerce-checkout #order_review .shop_table tr:last-child th {
  border-bottom: 0;
}

body.hd-handdrawn.woocommerce-checkout #order_review .order-total td,
body.hd-handdrawn.woocommerce-checkout #order_review .order-total th {
  background-color: rgba(45, 93, 161, 0.15);
}

body.hd-handdrawn.woocommerce-checkout #order_review .woocommerce-checkout-payment {
  background-color: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-md);
  margin-top: 14px;
  padding: 14px;
}

body.hd-handdrawn.woocommerce-checkout #order_review .payment_methods > li {
  border-bottom: 1px dashed #d6d0c5;
  margin-bottom: 0;
  padding: 0.65em 0;
}

body.hd-handdrawn.woocommerce-checkout #order_review .payment_methods > li:last-child {
  border-bottom: 0;
}

body.hd-handdrawn.woocommerce-checkout #payment input[type="radio"] {
  accent-color: var(--hd-accent);
}

body.hd-handdrawn.woocommerce-checkout #payment .payment_box {
  background-color: var(--hd-muted);
  border: 1px solid #d6d0c5;
  border-radius: var(--hd-radius-sm);
}

body.hd-handdrawn.woocommerce-checkout #place_order {
  background-color: var(--hd-accent);
  font-size: 1.03rem;
  letter-spacing: 0.02em;
  min-height: 52px;
}

body.hd-handdrawn .woocommerce-form-coupon-toggle {
  margin-bottom: 1rem;
}

body.hd-handdrawn .woocommerce-form-coupon-toggle .woocommerce-info {
  border-left-color: var(--hd-tertiary);
}

body.hd-handdrawn .widget_shopping_cart .woocommerce-mini-cart,
body.hd-handdrawn .cart-popup-inner .woocommerce-mini-cart {
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-md);
  padding: 8px 12px;
}

body.hd-handdrawn .widget_shopping_cart .product_list_widget li,
body.hd-handdrawn .cart-popup-inner .product_list_widget li {
  border-bottom: 1px dashed #d6d0c5;
  padding-bottom: 10px;
  padding-top: 10px;
}

body.hd-handdrawn .widget_shopping_cart .product_list_widget li:last-child,
body.hd-handdrawn .cart-popup-inner .product_list_widget li:last-child {
  border-bottom: 0;
}

body.hd-handdrawn .widget_shopping_cart .woocommerce-mini-cart__total,
body.hd-handdrawn .cart-popup-inner .woocommerce-mini-cart__total {
  background-color: var(--hd-muted);
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-sm);
  font-family: var(--hd-font-heading);
  margin-bottom: 0.7rem;
  padding: 0.6rem 0.8rem;
}

body.hd-handdrawn .widget_shopping_cart .woocommerce-mini-cart__buttons .button,
body.hd-handdrawn .cart-popup-inner .woocommerce-mini-cart__buttons .button {
  min-height: 44px;
}

body.hd-handdrawn .woocommerce-cart .shipping__list_item,
body.hd-handdrawn .woocommerce-checkout .shipping__list_item {
  border: 1px dashed #d6d0c5;
  border-radius: var(--hd-radius-sm);
  margin-bottom: 6px;
  padding: 4px 8px;
}

body.hd-handdrawn .woocommerce-cart .shipping__list_label,
body.hd-handdrawn .woocommerce-checkout .shipping__list_label {
  color: var(--hd-foreground);
}

body.hd-handdrawn .woocommerce-cart .shipping__list input:checked + .shipping__list_label,
body.hd-handdrawn .woocommerce-checkout .shipping__list input:checked + .shipping__list_label {
  color: var(--hd-accent);
  font-weight: 700;
}

/* Single product page styling */
body.hd-handdrawn.single-product .product-main .product-gallery,
body.hd-handdrawn.single-product .product-main .product-info {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow-card);
  padding: 14px;
}

body.hd-handdrawn.single-product .product-main .content-row {
  row-gap: 18px;
}

body.hd-handdrawn.single-product .product-gallery .woocommerce-product-gallery__wrapper,
body.hd-handdrawn.single-product .product-gallery .product-gallery-slider {
  border-radius: var(--hd-radius-md);
  overflow: hidden;
}

body.hd-handdrawn.single-product .product-gallery .woocommerce-product-gallery__image a,
body.hd-handdrawn.single-product .product-gallery .slide a {
  display: block;
  position: relative;
}

body.hd-handdrawn.single-product .product-gallery .woocommerce-product-gallery__image a::after,
body.hd-handdrawn.single-product .product-gallery .slide a::after {
  background: radial-gradient(circle at 2px 2px, rgba(45, 45, 45, 0.14) 1.3px, transparent 0) 0 0 / 18px 18px;
  content: "";
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  position: absolute;
}

body.hd-handdrawn.single-product .product-gallery .woocommerce-product-gallery__image img,
body.hd-handdrawn.single-product .product-gallery .slide img {
  border: var(--hd-border-width) solid var(--hd-border);
  border-radius: var(--hd-radius-sm);
}

body.hd-handdrawn.single-product .product-thumbnails {
  margin-top: 0.7rem;
}

body.hd-handdrawn.single-product .product-thumbnails a {
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-sm);
  box-shadow: 2px 2px 0 0 #2d2d2d;
  overflow: hidden;
}

body.hd-handdrawn.single-product .product-thumbnails img {
  opacity: 0.65;
  transform: none !important;
}

body.hd-handdrawn.single-product .product-thumbnails .is-nav-selected a,
body.hd-handdrawn.single-product .product-thumbnails a:hover {
  background-color: rgba(45, 93, 161, 0.12);
  border-color: var(--hd-accent);
  box-shadow: 3px 3px 0 0 #2d2d2d;
}

body.hd-handdrawn.single-product .product-thumbnails .is-nav-selected img,
body.hd-handdrawn.single-product .product-thumbnails a:hover img {
  opacity: 1;
}

body.hd-handdrawn.single-product .product-gallery .flickity-prev-next-button {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  box-shadow: var(--hd-shadow-pop);
  color: var(--hd-foreground);
}

body.hd-handdrawn.single-product .product-gallery .flickity-prev-next-button:hover {
  background: var(--hd-tertiary);
}

body.hd-handdrawn.single-product .product-info .product-title,
body.hd-handdrawn.single-product .product-info h1.product-title {
  font-family: var(--hd-font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

body.hd-handdrawn.single-product .product-info .woocommerce-product-rating {
  align-items: center;
  display: flex;
  gap: 8px;
}

body.hd-handdrawn.single-product .product-info .star-rating {
  border: 1px solid #d6d0c5;
  border-radius: var(--hd-radius-full);
  padding: 5px 10px;
}

body.hd-handdrawn.single-product .product-summary .price {
  color: #ff4d4d;
  display: inline-flex;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  gap: 6px;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

body.hd-handdrawn.single-product .product-summary .woocommerce-Price-currencySymbol {
  font-size: 0.64em;
  opacity: 0.8;
  position: relative;
  top: 0.2em;
}

body.hd-handdrawn.single-product .woocommerce-variation-price {
  background: rgba(45, 93, 161, 0.12);
  border: 1px dashed #2d5da1;
  border-radius: var(--hd-radius-sm);
  margin: 0.5rem 0 0.7rem;
  padding: 0.55rem 0.7rem;
}

body.hd-handdrawn.single-product form.cart,
body.hd-handdrawn.single-product .variations_form {
  background: #fff;
  border: var(--hd-border-width) dashed var(--hd-foreground);
  border-radius: var(--hd-radius-md);
  padding: 12px;
}

body.hd-handdrawn.single-product table.variations {
  background: var(--hd-muted);
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-md);
  margin-bottom: 0.8rem;
  padding: 8px 10px;
}

body.hd-handdrawn.single-product table.variations tr + tr {
  border-top: 1px dashed #d6d0c5;
}

body.hd-handdrawn.single-product table.variations .label label {
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.hd-handdrawn.single-product table.variations .value select {
  border-width: var(--hd-border-width);
  min-height: 44px;
}

body.hd-handdrawn.single-product .variations .reset_variations {
  background: var(--hd-muted);
  border: 1px solid #d6d0c5;
  border-radius: var(--hd-radius-full);
  color: var(--hd-muted-foreground);
  padding: 2px 8px;
}

body.hd-handdrawn.single-product .ux-swatches {
  gap: 8px;
  margin-top: 0.35rem;
}

body.hd-handdrawn.single-product .ux-swatch {
  background-color: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: 10px;
  box-shadow: 2px 2px 0 0 #2d2d2d;
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-weight: 700;
}

body.hd-handdrawn.single-product .ux-swatch:hover:not(.selected):not(.disabled) {
  background-color: rgba(255, 243, 166, 0.42);
  border-color: var(--hd-foreground);
}

body.hd-handdrawn.single-product .ux-swatch.selected {
  background-color: rgba(45, 93, 161, 0.16);
  border-color: var(--hd-accent);
  box-shadow: 3px 3px 0 0 #2d2d2d;
}

body.hd-handdrawn.single-product .ux-swatch.disabled {
  opacity: 0.4;
}

body.hd-handdrawn.single-product .single_add_to_cart_button,
body.hd-handdrawn.single-product .ux-buy-now-button .button,
body.hd-handdrawn.single-product .sticky-add-to-cart-select-options-button {
  min-height: 50px;
}

body.hd-handdrawn.single-product .product_meta {
  background: #fff;
  border: 1px dashed #d6d0c5;
  border-radius: var(--hd-radius-sm);
  padding: 0.55rem 0.75rem;
}

body.hd-handdrawn.single-product .product_meta > span {
  border-top-style: dashed;
}

body.hd-handdrawn.single-product .product-footer .woocommerce-tabs {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow-card);
  margin-top: 14px;
  padding: 0;
  overflow: hidden;
}

body.hd-handdrawn.single-product .woocommerce-tabs .tabs.product-tabs {
  background: var(--hd-muted);
  border-bottom: var(--hd-border-width) solid var(--hd-foreground);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 10px;
}

body.hd-handdrawn.single-product .woocommerce-tabs .tabs.product-tabs > li {
  margin: 0;
}

body.hd-handdrawn.single-product .woocommerce-tabs .tabs.product-tabs > li > a {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-full);
  color: var(--hd-foreground);
  display: inline-flex;
  font-family: var(--hd-font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-height: 40px;
  padding: 0.45em 0.95em;
  text-transform: uppercase;
}

body.hd-handdrawn.single-product .woocommerce-tabs .tabs.product-tabs > li.active > a,
body.hd-handdrawn.single-product .woocommerce-tabs .tabs.product-tabs > li > a:hover {
  background: var(--hd-tertiary);
}

body.hd-handdrawn.single-product .woocommerce-tabs .tab-panels {
  background:
    radial-gradient(circle at 1px 1px, rgba(45, 45, 45, 0.08) 1px, transparent 0) 0 0 / 22px 22px,
    #fff;
  padding: 18px;
}

body.hd-handdrawn.single-product .woocommerce-tabs .panel {
  background: #fff;
  border: 1px dashed #d6d0c5;
  border-radius: var(--hd-radius-md);
  padding: 14px;
}

body.hd-handdrawn.single-product .sticky-add-to-cart {
  background: #fff;
  border-top: var(--hd-border-width) solid var(--hd-foreground);
  box-shadow: 0 -6px 0 0 rgba(45, 45, 45, 0.12);
}

body.hd-handdrawn.single-product .sticky-add-to-cart--active {
  background:
    radial-gradient(circle at 2px 2px, rgba(45, 45, 45, 0.12) 1.3px, transparent 0) 0 0 / 18px 18px,
    #fff;
  border-top: var(--hd-border-width) solid var(--hd-foreground);
  box-shadow: 0 -6px 0 0 rgba(45, 45, 45, 0.12);
  min-height: 66px;
}

body.hd-handdrawn.single-product .sticky-add-to-cart__product {
  gap: 10px;
}

body.hd-handdrawn.single-product .sticky-add-to-cart__product .sticky-add-to-cart-img {
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-sm);
  box-shadow: 2px 2px 0 0 #2d2d2d;
  height: 50px;
  width: 50px;
}

body.hd-handdrawn.single-product .sticky-add-to-cart__product .product-title-small strong {
  font-family: var(--hd-font-heading);
  font-size: 0.92rem;
}

body.hd-handdrawn.single-product .sticky-add-to-cart--active .quantity,
body.hd-handdrawn.single-product .sticky-add-to-cart--active .single_add_to_cart_button,
body.hd-handdrawn.single-product .sticky-add-to-cart--active .sticky-add-to-cart-select-options-button {
  margin-bottom: 0;
}

body.hd-handdrawn.single-product .sticky-add-to-cart--active .single_add_to_cart_button,
body.hd-handdrawn.single-product .sticky-add-to-cart--active .sticky-add-to-cart-select-options-button {
  min-height: 42px;
}

/* Related products, upsells and reviews */
body.hd-handdrawn.single-product .related.related-products-wrapper.product-section,
body.hd-handdrawn.single-product .up-sells.upsells-wrapper.product-section {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow-card);
  margin-top: 16px;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

body.hd-handdrawn.single-product .related.related-products-wrapper.product-section::before,
body.hd-handdrawn.single-product .up-sells.upsells-wrapper.product-section::before {
  background: repeating-linear-gradient(
    -45deg,
    rgba(45, 93, 161, 0.22) 0 9px,
    rgba(255, 77, 77, 0.1) 9px 18px
  );
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: 12px;
  content: "";
  height: 72px;
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 10px;
  transform: rotate(8deg);
  width: 72px;
}

body.hd-handdrawn.single-product .related .product-section-title,
body.hd-handdrawn.single-product .up-sells .product-section-title,
body.hd-handdrawn.single-product .widget-upsell .widget-title {
  align-items: center;
  color: var(--hd-foreground);
  display: flex;
  font-family: var(--hd-font-heading);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 0.9rem;
  margin-top: 0;
  padding-right: 90px;
  position: relative;
  text-transform: none;
  z-index: 1;
}

body.hd-handdrawn.single-product .related .product-section-title::after,
body.hd-handdrawn.single-product .up-sells .product-section-title::after,
body.hd-handdrawn.single-product .widget-upsell .widget-title::after {
  background: linear-gradient(90deg, var(--hd-tertiary), var(--hd-quaternary));
  border-radius: var(--hd-radius-full);
  content: "";
  flex: 1;
  height: 6px;
  margin-left: 12px;
  min-width: 42px;
  opacity: 0.8;
}

body.hd-handdrawn.single-product .related .products,
body.hd-handdrawn.single-product .up-sells .products {
  margin-bottom: 0;
}

body.hd-handdrawn.single-product .widget.widget-upsell {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow-card);
  margin-top: 16px;
  padding: 14px;
}

body.hd-handdrawn.single-product .widget.widget-upsell .is-divider {
  background-color: var(--hd-accent);
  height: 4px;
  max-width: 70px;
  opacity: 1;
}

body.hd-handdrawn.single-product .widget.widget-upsell .product_list_widget li {
  border-bottom: 1px dashed #d6d0c5;
  margin-bottom: 0;
  min-height: 88px;
  padding-bottom: 12px;
  padding-top: 12px;
}

body.hd-handdrawn.single-product .widget.widget-upsell .product_list_widget li:last-child {
  border-bottom: 0;
}

body.hd-handdrawn.single-product .widget.widget-upsell .product_list_widget li img {
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-sm);
  box-shadow: 2px 2px 0 0 #2d2d2d;
}

body.hd-handdrawn.single-product .widget.widget-upsell .product-title {
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

body.hd-handdrawn.single-product .widget.widget-upsell .product-title:hover {
  color: var(--hd-accent);
}

body.hd-handdrawn.single-product #reviews.woocommerce-Reviews {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow-card);
  margin-top: 10px;
  overflow: hidden;
  padding: 14px;
}

body.hd-handdrawn.single-product #reviews #comments,
body.hd-handdrawn.single-product #reviews #review_form_wrapper {
  padding-bottom: 8px;
}

body.hd-handdrawn.single-product #reviews .woocommerce-Reviews-title,
body.hd-handdrawn.single-product #reviews .comment-reply-title {
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.9rem;
  text-transform: none;
}

body.hd-handdrawn.single-product #reviews .woocommerce-noreviews,
body.hd-handdrawn.single-product #reviews .woocommerce-verification-required {
  background: var(--hd-muted);
  border: 1px dashed #d6d0c5;
  border-radius: var(--hd-radius-sm);
  color: var(--hd-muted-foreground);
  padding: 0.65rem 0.8rem;
}

body.hd-handdrawn.single-product #reviews .commentlist {
  margin: 0;
}

body.hd-handdrawn.single-product #reviews .commentlist > li {
  border: 0;
  margin: 0;
  padding: 0;
}

body.hd-handdrawn.single-product #reviews .commentlist > li + li {
  margin-top: 10px;
}

body.hd-handdrawn.single-product #reviews .comment_container.review-item {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-md);
  box-shadow: 3px 3px 0 0 #2d2d2d;
  gap: 10px;
  padding: 10px;
}

body.hd-handdrawn.single-product #reviews .comment_container .avatar {
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: 50%;
  box-shadow: 2px 2px 0 0 #2d2d2d;
}

body.hd-handdrawn.single-product #reviews .comment-text {
  margin: 0;
  padding: 0;
}

body.hd-handdrawn.single-product #reviews .comment-text .star-rating {
  background: rgba(255, 243, 166, 0.3);
  border: 1px dashed #2d2d2d;
  border-radius: var(--hd-radius-full);
  margin-bottom: 0.45rem;
  margin-top: 0;
  padding: 4px 9px;
}

body.hd-handdrawn.single-product #reviews .comment-text .meta {
  align-items: center;
  color: var(--hd-muted-foreground);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 8px;
  margin-bottom: 0.45rem;
}

body.hd-handdrawn.single-product #reviews .comment-text .meta strong {
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-size: 0.95rem;
}

body.hd-handdrawn.single-product #reviews .description p {
  color: var(--hd-foreground);
  line-height: 1.58;
  margin-bottom: 0;
}

body.hd-handdrawn.single-product #reviews .woocommerce-pagination {
  margin-top: 0.85rem;
}

body.hd-handdrawn.single-product #reviews .woocommerce-pagination .page-number {
  border-radius: var(--hd-radius-full);
  font-family: var(--hd-font-heading);
  font-weight: 700;
}

body.hd-handdrawn.single-product #reviews .woocommerce-pagination .page-number.current {
  background: var(--hd-tertiary);
  border: var(--hd-border-width) solid var(--hd-foreground);
  box-shadow: 2px 2px 0 0 #2d2d2d;
  color: var(--hd-foreground);
}

body.hd-handdrawn.single-product #review_form_wrapper .review-form-inner {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-md);
  box-shadow: 3px 3px 0 0 #2d2d2d;
  padding: 12px;
}

body.hd-handdrawn.single-product #review_form .comment-form-rating {
  margin-bottom: 0.7rem;
}

body.hd-handdrawn.single-product #review_form .comment-form-rating label,
body.hd-handdrawn.single-product #review_form .comment-form-comment label {
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.hd-handdrawn.single-product #review_form #rating {
  margin-top: 5px;
  min-height: 44px;
  width: 100%;
}

body.hd-handdrawn.single-product #review_form .comment-form-rating .stars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}

body.hd-handdrawn.single-product #review_form .comment-form-rating .stars a {
  align-items: center;
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-full);
  box-shadow: 2px 2px 0 0 #2d2d2d;
  color: transparent !important;
  display: inline-flex;
  font-size: 0 !important;
  height: 40px;
  justify-content: center;
  margin-left: 0;
  min-width: 46px;
  padding: 0 10px;
  text-decoration: none;
  transition:
    transform 220ms var(--hd-ease-bouncy),
    box-shadow 220ms var(--hd-ease-bouncy),
    background-color 180ms ease;
}

body.hd-handdrawn.single-product #review_form .comment-form-rating .stars a + a {
  border-left: var(--hd-border-width) solid var(--hd-foreground);
}

body.hd-handdrawn.single-product #review_form .comment-form-rating .stars a::after,
body.hd-handdrawn.single-product #review_form .comment-form-rating .stars a.star-2::after,
body.hd-handdrawn.single-product #review_form .comment-form-rating .stars a.star-3::after,
body.hd-handdrawn.single-product #review_form .comment-form-rating .stars a.star-4::after,
body.hd-handdrawn.single-product #review_form .comment-form-rating .stars a.star-5::after {
  color: #8f887b;
  content: "\e005" / "";
  font-family: fl-icons;
  font-size: 15px;
  margin: 0;
}

body.hd-handdrawn.single-product #review_form .comment-form-rating .stars:hover a::after {
  color: #d6d0c5;
}

body.hd-handdrawn.single-product #review_form .comment-form-rating .stars a:hover,
body.hd-handdrawn.single-product #review_form .comment-form-rating .stars a.active {
  background: var(--hd-tertiary);
  box-shadow: 3px 3px 0 0 #2d2d2d;
  transform: translate(-1px, -1px);
}

body.hd-handdrawn.single-product #review_form .comment-form-rating .stars a:hover::after,
body.hd-handdrawn.single-product #review_form .comment-form-rating .stars a.active::after {
  color: #2d2d2d;
}

body.hd-handdrawn.single-product #review_form .comment-form-rating .stars.selected a:not(.active) {
  background: rgba(255, 77, 77, 0.18);
}

body.hd-handdrawn.single-product #review_form .comment-form-rating .stars.selected a:not(.active)::after {
  color: #ff4d4d;
}

body.hd-handdrawn.single-product #review_form .comment-form-rating .stars a:focus-visible {
  outline: 3px solid rgba(45, 93, 161, 0.25);
  outline-offset: 2px;
}

body.hd-handdrawn.single-product #review_form textarea#comment {
  min-height: 132px;
}

body.hd-handdrawn.single-product #review_form .form-submit {
  margin-bottom: 0;
}

body.hd-handdrawn.single-product #review_form #submit,
body.hd-handdrawn.single-product #review_form .submit {
  min-height: 46px;
}

@media (max-width: 849px) {
  body.hd-handdrawn {
    background-size: 18px 18px, 100% 100%;
  }

  body.hd-handdrawn .hd-hero,
  body.hd-handdrawn .hd-features-grid,
  body.hd-handdrawn .hd-pricing-grid {
    grid-template-columns: 1fr;
  }

  body.hd-handdrawn .hd-features-grid::before,
  body.hd-handdrawn .hd-decorated-section::before,
  body.hd-handdrawn .hd-decorated-section::after {
    display: none;
  }

  body.hd-handdrawn .hd-arrow-doodle,
  body.hd-handdrawn .hd-bounce,
  body.hd-handdrawn .hd-squiggle-divider {
    display: none;
  }

  body.hd-handdrawn .box,
  body.hd-handdrawn .message-box,
  body.hd-handdrawn .widget:not(.widget_shopping_cart):not(.widget_product_search),
  body.hd-handdrawn .button:not(.icon),
  body.hd-handdrawn button:not(.icon):not(.mfp-close),
  body.hd-handdrawn input[type="button"],
  body.hd-handdrawn input[type="submit"],
  body.hd-handdrawn input[type="reset"] {
    box-shadow: 2px 2px 0 0 #2d2d2d;
  }

  body.hd-handdrawn .box:hover,
  body.hd-handdrawn .message-box:hover {
    transform: none;
  }

  body.hd-handdrawn.woocommerce-cart .woocommerce-cart-form,
  body.hd-handdrawn.woocommerce-cart .cart-sidebar .col-inner,
  body.hd-handdrawn.woocommerce-cart .cart_totals,
  body.hd-handdrawn.woocommerce-checkout form.checkout > .row > .col:first-child,
  body.hd-handdrawn.woocommerce-checkout .checkout-sidebar,
  body.hd-handdrawn.woocommerce-checkout .col-inner.has-border {
    box-shadow: 2px 2px 0 0 #2d2d2d;
    padding: 12px;
  }

  body.hd-handdrawn.woocommerce-cart .shop_table thead {
    display: none;
  }

  body.hd-handdrawn.woocommerce-cart .shop_table tbody tr.woocommerce-cart-form__cart-item {
    border: var(--hd-border-width) solid var(--hd-foreground);
    border-radius: var(--hd-radius-md);
    display: block;
    margin-bottom: 12px;
    padding: 10px;
  }

  body.hd-handdrawn.woocommerce-cart .shop_table tbody tr.woocommerce-cart-form__cart-item td {
    border-bottom: 0;
    padding: 0;
  }

  body.hd-handdrawn.woocommerce-cart .shop_table .product-thumbnail {
    max-width: 86px;
  }

  body.hd-handdrawn.woocommerce-cart .shop_table .product-remove {
    text-align: right;
  }

  body.hd-handdrawn.woocommerce-checkout #order_review .shop_table td,
  body.hd-handdrawn.woocommerce-checkout #order_review .shop_table th {
    padding: 0.55em 0.45em;
  }

  body.hd-handdrawn.single-product .product-main .product-gallery,
  body.hd-handdrawn.single-product .product-main .product-info {
    box-shadow: 2px 2px 0 0 #2d2d2d;
    padding: 10px;
  }

  body.hd-handdrawn.single-product .woocommerce-tabs .tabs.product-tabs {
    gap: 6px;
    padding: 8px;
  }

  body.hd-handdrawn.single-product .woocommerce-tabs .tabs.product-tabs > li > a {
    font-size: 0.75rem;
    min-height: 36px;
    padding: 0.38em 0.8em;
  }

  body.hd-handdrawn.single-product .woocommerce-tabs .tab-panels {
    padding: 12px;
  }

  body.hd-handdrawn.single-product .sticky-add-to-cart--active {
    min-height: 58px;
    padding: 6px;
  }

  body.hd-handdrawn.single-product .sticky-add-to-cart__product .sticky-add-to-cart-img {
    height: 42px;
    width: 42px;
  }

  body.hd-handdrawn.single-product .related.related-products-wrapper.product-section,
  body.hd-handdrawn.single-product .up-sells.upsells-wrapper.product-section,
  body.hd-handdrawn.single-product .widget.widget-upsell,
  body.hd-handdrawn.single-product #reviews.woocommerce-Reviews {
    box-shadow: 2px 2px 0 0 #2d2d2d;
    padding: 10px;
  }

  body.hd-handdrawn.single-product .related.related-products-wrapper.product-section::before,
  body.hd-handdrawn.single-product .up-sells.upsells-wrapper.product-section::before {
    display: none;
  }

  body.hd-handdrawn.single-product .related .product-section-title,
  body.hd-handdrawn.single-product .up-sells .product-section-title,
  body.hd-handdrawn.single-product .widget-upsell .widget-title {
    padding-right: 0;
  }

  body.hd-handdrawn.single-product #reviews #comments,
  body.hd-handdrawn.single-product #reviews #review_form_wrapper {
    width: 100%;
  }
}

@media (max-width: 549px) {
  body.hd-handdrawn .section {
    padding-bottom: clamp(40px, 9vw, 56px);
    padding-top: clamp(40px, 9vw, 56px);
  }

  body.hd-handdrawn .header .nav > li > a {
    padding-left: 0.75em;
    padding-right: 0.75em;
  }

  body.hd-handdrawn .button:not(.icon),
  body.hd-handdrawn button:not(.icon):not(.mfp-close),
  body.hd-handdrawn input[type="button"],
  body.hd-handdrawn input[type="submit"],
  body.hd-handdrawn input[type="reset"] {
    font-size: 0.92rem;
  }

  body.hd-handdrawn .products .product-small .box-text {
    padding: 0.8rem;
  }

  body.hd-handdrawn .woocommerce-message,
  body.hd-handdrawn .woocommerce-info,
  body.hd-handdrawn .woocommerce-error {
    border-left-width: 6px;
    padding: 0.7em 0.85em;
  }

  body.hd-handdrawn.single-product table.variations {
    padding: 8px;
  }

  body.hd-handdrawn.single-product .variations .reset_variations {
    font-size: 10px;
  }

  body.hd-handdrawn.single-product .single_add_to_cart_button,
  body.hd-handdrawn.single-product .ux-buy-now-button .button {
    width: 100%;
  }

  body.hd-handdrawn.single-product .sticky-add-to-cart--active .single_add_to_cart_button,
  body.hd-handdrawn.single-product .sticky-add-to-cart--active .sticky-add-to-cart-select-options-button {
    min-height: 40px;
    padding-left: 0.8em;
    padding-right: 0.8em;
  }

  body.hd-handdrawn.single-product #reviews .comment_container.review-item {
    border-radius: var(--hd-radius-sm);
    padding: 8px;
  }

  body.hd-handdrawn.single-product #reviews .comment_container .avatar {
    height: 46px;
    width: 46px;
  }

  body.hd-handdrawn.single-product #review_form_wrapper .review-form-inner {
    padding: 10px;
  }

  body.hd-handdrawn.single-product #review_form .comment-form-rating .stars {
    gap: 6px;
  }

  body.hd-handdrawn.single-product #review_form .comment-form-rating .stars a {
    height: 38px;
    min-width: 42px;
    padding: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.hd-handdrawn *,
  body.hd-handdrawn *::before,
  body.hd-handdrawn *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  body.hd-handdrawn .box:hover,
  body.hd-handdrawn .message-box:hover,
  body.hd-handdrawn .button:not(.icon):hover,
  body.hd-handdrawn button:not(.icon):not(.mfp-close):hover,
  body.hd-handdrawn input[type="button"]:hover,
  body.hd-handdrawn input[type="submit"]:hover,
  body.hd-handdrawn input[type="reset"]:hover {
    transform: none;
  }

  body.hd-handdrawn.woocommerce .products .product-small .box:hover {
    transform: none;
  }

  body.hd-handdrawn.single-product .product-thumbnails a,
  body.hd-handdrawn.single-product .product-thumbnails img {
    transition: none !important;
  }

  body.hd-handdrawn.single-product #review_form .comment-form-rating .stars a:hover,
  body.hd-handdrawn.single-product #review_form .comment-form-rating .stars a.active {
    transform: none;
  }
}

/* Global optimization batch */

/* 1) Shop filters */
body.hd-handdrawn .category-filter-row {
  align-items: center;
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-md);
  box-shadow: 4px 4px 0 0 #2d2d2d;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
}

body.hd-handdrawn .category-filter-row .filter-button {
  align-items: center;
  background: var(--hd-tertiary);
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-full);
  box-shadow: 3px 3px 0 0 #2d2d2d;
  color: var(--hd-foreground);
  display: inline-flex;
  font-family: var(--hd-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.05em;
  min-height: 40px;
  padding: 0.38rem 0.8rem;
  text-transform: uppercase;
}

body.hd-handdrawn .category-filter-row .filter-button:hover {
  background: var(--hd-secondary);
  color: #fff;
}

body.hd-handdrawn .category-filter-row .widget_layered_nav_filters {
  margin: 0;
}

body.hd-handdrawn .widget_price_filter,
body.hd-handdrawn .widget_layered_nav,
body.hd-handdrawn .widget_layered_nav_filters,
body.hd-handdrawn .widget_product_categories {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-md);
  box-shadow: 4px 4px 0 0 #2d2d2d;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
}

body.hd-handdrawn .widget_price_filter .widget-title,
body.hd-handdrawn .widget_layered_nav .widget-title,
body.hd-handdrawn .widget_layered_nav_filters .widget-title,
body.hd-handdrawn .widget_product_categories .widget-title {
  font-family: var(--hd-font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

body.hd-handdrawn .widget_price_filter .price_slider {
  background: #fdfbf7;
  border: 1px dashed #d6d0c5;
  border-radius: var(--hd-radius-full);
  height: 10px;
  margin-bottom: 0.7rem;
}

body.hd-handdrawn .widget_price_filter .ui-slider-horizontal .ui-slider-range {
  background: var(--hd-accent);
  border-radius: var(--hd-radius-full);
  opacity: 0.75;
}

body.hd-handdrawn .widget_price_filter .ui-slider .ui-slider-handle {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  box-shadow: 2px 2px 0 0 #2d2d2d;
  height: 18px;
  top: -5px;
  width: 18px;
}

body.hd-handdrawn .widget_price_filter .price_slider_amount {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

body.hd-handdrawn .widget_price_filter .price_slider_amount .button {
  background: var(--hd-accent);
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-full);
  box-shadow: 2px 2px 0 0 #2d2d2d;
  color: #fff;
  font-family: var(--hd-font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-height: 34px;
  padding: 0 0.75rem;
  text-transform: uppercase;
}

body.hd-handdrawn .widget_price_filter .price_slider_amount .button:hover {
  background: #ff4d4d;
}

body.hd-handdrawn .widget_layered_nav ul li,
body.hd-handdrawn .widget_product_categories ul li {
  margin: 0;
}

body.hd-handdrawn .widget_layered_nav ul li + li,
body.hd-handdrawn .widget_product_categories ul li + li {
  border-top: 1px dashed #d6d0c5;
  margin-top: 0.28rem;
  padding-top: 0.28rem;
}

body.hd-handdrawn .widget_layered_nav ul li a,
body.hd-handdrawn .widget_product_categories ul li a,
body.hd-handdrawn .woocommerce-widget-layered-nav-list__item a {
  border-radius: var(--hd-radius-full);
  color: var(--hd-foreground);
  display: inline-flex;
  font-family: var(--hd-font-body);
  font-weight: 600;
  padding: 0.18rem 0.5rem;
}

body.hd-handdrawn .widget_layered_nav ul li a:hover,
body.hd-handdrawn .widget_product_categories ul li a:hover,
body.hd-handdrawn .woocommerce-widget-layered-nav-list__item a:hover {
  background: rgba(45, 93, 161, 0.16);
  color: var(--hd-accent);
}

body.hd-handdrawn .widget_layered_nav_filters ul li.chosen a,
body.hd-handdrawn .widget li.chosen a,
body.hd-handdrawn .wc-layered-nav-term.chosen > a {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-full);
  box-shadow: 2px 2px 0 0 #2d2d2d;
  color: var(--hd-foreground);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.15rem 0.52rem;
}

body.hd-handdrawn .widget_layered_nav_filters ul li.chosen a:hover,
body.hd-handdrawn .widget li.chosen a:hover,
body.hd-handdrawn .wc-layered-nav-term.chosen > a:hover {
  background: var(--hd-secondary);
  color: #fff;
}

/* 2) Product list hover rhythm */
body.hd-handdrawn .products .product-small .box {
  transition:
    transform 300ms var(--hd-ease-bouncy),
    box-shadow 300ms var(--hd-ease-bouncy),
    border-color 220ms ease;
}

body.hd-handdrawn .products .product-small .box-image img {
  transition:
    transform 420ms var(--hd-ease-bouncy),
    filter 260ms ease;
}

body.hd-handdrawn .products .product-small .box-text .name,
body.hd-handdrawn .products .product-small .woocommerce-loop-product__title {
  transition:
    color 220ms ease,
    transform 260ms var(--hd-ease-bouncy);
}

body.hd-handdrawn .products .product-small .price-wrapper .price,
body.hd-handdrawn .products .product-small .price-wrapper .amount {
  transition:
    color 220ms ease,
    transform 260ms var(--hd-ease-bouncy);
}

body.hd-handdrawn .products .product-small .grid-tools a,
body.hd-handdrawn .products .product-small .add_to_cart_button,
body.hd-handdrawn .products .product-small .button {
  transition:
    transform 240ms var(--hd-ease-bouncy),
    box-shadow 240ms var(--hd-ease-bouncy),
    background-color 200ms ease,
    color 200ms ease;
}

body.hd-handdrawn .products .product-small .box:hover {
  border-color: var(--hd-accent);
}

body.hd-handdrawn .products .product-small .box:hover .box-image img {
  filter: saturate(1.08);
  transform: scale(1.045) rotate(-0.45deg);
}

body.hd-handdrawn .products .product-small .box:hover .box-text .name,
body.hd-handdrawn .products .product-small .box:hover .woocommerce-loop-product__title {
  color: var(--hd-accent);
  transform: translateY(-1px);
}

body.hd-handdrawn .products .product-small .box:hover .price-wrapper .price,
body.hd-handdrawn .products .product-small .box:hover .price-wrapper .amount {
  color: #ff4d4d;
  transform: translateY(-1px);
}

body.hd-handdrawn .products .product-small .box:hover .grid-tools a,
body.hd-handdrawn .products .product-small .box:hover .add_to_cart_button {
  box-shadow: 3px 3px 0 0 #2d2d2d;
  transform: translate(-1px, -1px);
}

/* 3) Checkout validation semantics */
body.hd-handdrawn.woocommerce-checkout .woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
body.hd-handdrawn.woocommerce-checkout .woocommerce-checkout .form-row.woocommerce-invalid select,
body.hd-handdrawn.woocommerce-checkout .woocommerce-checkout .form-row.woocommerce-invalid textarea {
  border-color: #ff4d4d;
  box-shadow: 4px 4px 0 0 #ff4d4d;
}

body.hd-handdrawn.woocommerce-checkout .woocommerce-checkout .form-row.woocommerce-validated input.input-text,
body.hd-handdrawn.woocommerce-checkout .woocommerce-checkout .form-row.woocommerce-validated select,
body.hd-handdrawn.woocommerce-checkout .woocommerce-checkout .form-row.woocommerce-validated textarea {
  border-color: #2d5da1;
  box-shadow: 4px 4px 0 0 #2d5da1;
}

body.hd-handdrawn.woocommerce-checkout .woocommerce-checkout .form-row.woocommerce-invalid > label:not(.checkbox)::after {
  color: #ff4d4d;
  content: " !";
  font-weight: 800;
}

body.hd-handdrawn.woocommerce-checkout .woocommerce-checkout .form-row.woocommerce-validated > label:not(.checkbox)::after {
  color: #2d5da1;
  content: " OK";
  font-weight: 800;
}

body.hd-handdrawn .woocommerce-error li,
body.hd-handdrawn .woocommerce-message li,
body.hd-handdrawn .woocommerce-info li {
  align-items: center;
  display: flex;
  gap: 8px;
}

body.hd-handdrawn .woocommerce-error li::before,
body.hd-handdrawn .woocommerce-message li::before,
body.hd-handdrawn .woocommerce-info li::before {
  align-items: center;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: 50%;
  box-shadow: 1px 1px 0 0 #2d2d2d;
  color: var(--hd-foreground);
  display: inline-flex;
  font-family: var(--hd-font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  height: 20px;
  justify-content: center;
  width: 20px;
}

body.hd-handdrawn .woocommerce-error li::before {
  background: var(--hd-secondary);
  content: "!";
}

body.hd-handdrawn .woocommerce-message li::before {
  background: var(--hd-quaternary);
  content: "OK";
}

body.hd-handdrawn .woocommerce-info li::before {
  background: var(--hd-tertiary);
  content: "i";
}

/* 4) Mini-cart drawer hierarchy */
body.hd-handdrawn .cart-popup-inner {
  animation: hd-enter-drop var(--hd-enter-duration) var(--hd-ease-bouncy) both;
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-lg);
  box-shadow: 6px 6px 0 0 #2d2d2d;
  overflow: hidden;
  padding: 0;
  transform-origin: top right;
}

body.hd-handdrawn .cart-popup-inner .cart-popup-title {
  background:
    radial-gradient(circle at 2px 2px, rgba(45, 45, 45, 0.14) 1.2px, transparent 0) 0 0 / 18px 18px,
    #fff;
  border-bottom: var(--hd-border-width) solid var(--hd-foreground);
  margin-bottom: 0;
  padding: 0.85rem 1rem;
}

body.hd-handdrawn .cart-popup-inner .cart-popup-title > span {
  font-family: var(--hd-font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.hd-handdrawn .cart-popup-inner .widget_shopping_cart_content {
  padding: 0.75rem 1rem;
}

body.hd-handdrawn .cart-popup-inner ul.woocommerce-mini-cart {
  border: 0;
  margin-bottom: 0.9rem;
  max-height: 52vh;
  overflow-y: auto;
  padding: 0;
}

body.hd-handdrawn .cart-popup-inner .woocommerce-mini-cart-item {
  border-bottom: 1px dashed #d6d0c5;
  padding-bottom: 0.72rem;
  padding-top: 0.72rem;
}

body.hd-handdrawn .cart-popup-inner .woocommerce-mini-cart-item:last-child {
  border-bottom: 0;
}

body.hd-handdrawn .cart-popup-inner .woocommerce-mini-cart-item .remove {
  background: var(--hd-muted);
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: 50%;
  box-shadow: 1px 1px 0 0 #2d2d2d;
  color: var(--hd-foreground) !important;
  height: 24px;
  line-height: 19px !important;
  width: 24px;
}

body.hd-handdrawn .cart-popup-inner .woocommerce-mini-cart-item img {
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-sm);
  box-shadow: 2px 2px 0 0 #2d2d2d;
}

body.hd-handdrawn .cart-popup-inner .woocommerce-mini-cart-item a:not(.remove) {
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-weight: 700;
}

body.hd-handdrawn .cart-popup-inner .woocommerce-mini-cart-item a:not(.remove):hover {
  color: var(--hd-accent);
}

body.hd-handdrawn .cart-popup-inner .ux-mini-cart-footer {
  background: var(--hd-muted);
  border-top: var(--hd-border-width) solid var(--hd-foreground);
  margin: 0;
  padding: 0.9rem 1rem 1rem;
}

body.hd-handdrawn .cart-popup-inner .woocommerce-mini-cart__total {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-sm);
  box-shadow: 2px 2px 0 0 #2d2d2d;
  margin-bottom: 0.7rem;
  padding: 0.6rem 0.75rem;
}

body.hd-handdrawn .cart-popup-inner .woocommerce-mini-cart__total strong {
  font-family: var(--hd-font-heading);
  letter-spacing: 0.02em;
}

body.hd-handdrawn .cart-popup-inner .woocommerce-mini-cart__buttons.buttons {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}

body.hd-handdrawn .cart-popup-inner .woocommerce-mini-cart__buttons.buttons .button {
  margin: 0;
  min-height: 44px;
  width: 100%;
}

/* 5) My account card system */
body.hd-handdrawn.woocommerce-account .my-account-header.page-title {
  border-bottom: var(--hd-border-width) solid var(--hd-foreground);
  border-top: var(--hd-border-width) solid var(--hd-foreground);
}

body.hd-handdrawn.woocommerce-account .my-account-header .page-title-inner h1 {
  font-family: var(--hd-font-heading);
  font-weight: 800;
}

body.hd-handdrawn.woocommerce-account .account-container .woocommerce-MyAccount-navigation,
body.hd-handdrawn.woocommerce-account .account-container .woocommerce-MyAccount-content,
body.hd-handdrawn.woocommerce-account .account-container .col-inner,
body.hd-handdrawn.woocommerce-account .dashboard-links,
body.hd-handdrawn.woocommerce-account .account-user {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow-card);
}

body.hd-handdrawn.woocommerce-account .account-container .woocommerce-MyAccount-navigation,
body.hd-handdrawn.woocommerce-account .account-container .woocommerce-MyAccount-content,
body.hd-handdrawn.woocommerce-account .account-user {
  padding: 12px;
}

body.hd-handdrawn.woocommerce-account .account-user .user-name {
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-weight: 700;
}

body.hd-handdrawn.woocommerce-account .account-user .avatar {
  border: var(--hd-border-width) solid var(--hd-foreground);
  box-shadow: 2px 2px 0 0 #2d2d2d;
}

body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-navigation ul,
body.hd-handdrawn.woocommerce-account .dashboard-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-navigation ul li,
body.hd-handdrawn.woocommerce-account .dashboard-links li {
  margin: 0;
}

body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-navigation ul li + li {
  margin-top: 6px;
}

body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-navigation ul li a,
body.hd-handdrawn.woocommerce-account .dashboard-links a {
  align-items: center;
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-full);
  box-shadow: 2px 2px 0 0 #2d2d2d;
  color: var(--hd-foreground);
  display: flex;
  font-family: var(--hd-font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
}

body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
body.hd-handdrawn.woocommerce-account .dashboard-links li.is-active a,
body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-navigation ul li a[aria-current="page"] {
  background: var(--hd-tertiary);
}

body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
body.hd-handdrawn.woocommerce-account .dashboard-links a:hover {
  background: rgba(45, 93, 161, 0.16);
  color: var(--hd-accent);
}

body.hd-handdrawn.woocommerce-account .dashboard-links {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 12px;
}

body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-content table.shop_table,
body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table,
body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details,
body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-downloads {
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-md);
  overflow: hidden;
}

body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th,
body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table thead th {
  background: var(--hd-muted);
  border-bottom: var(--hd-border-width) solid var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-content table.shop_table td,
body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table td {
  border-bottom: 1px dashed #d6d0c5;
}

body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-content table.shop_table tr:last-child td,
body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tr:last-child td {
  border-bottom: 0;
}

body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-content .button,
body.hd-handdrawn.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button {
  min-height: 40px;
}

body.hd-handdrawn.woocommerce-account .woocommerce-Addresses,
body.hd-handdrawn.woocommerce-account .addresses {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body.hd-handdrawn.woocommerce-account .woocommerce-Address,
body.hd-handdrawn.woocommerce-account .woocommerce-address-fields {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-md);
  box-shadow: 3px 3px 0 0 #2d2d2d;
  padding: 12px;
}

body.hd-handdrawn.woocommerce-account .woocommerce-Address-title h3 {
  font-family: var(--hd-font-heading);
  font-size: 1rem;
  font-weight: 700;
}

body.hd-handdrawn.woocommerce-account .woocommerce-EditAccountForm fieldset {
  border: var(--hd-border-width) dashed var(--hd-foreground);
  border-radius: var(--hd-radius-md);
  padding: 10px 12px;
}

body.hd-handdrawn.woocommerce-account .woocommerce-EditAccountForm legend {
  font-family: var(--hd-font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* 6) Empty and loading states */
body.hd-handdrawn .ux-mini-cart-empty,
body.hd-handdrawn .no-results.not-found,
body.hd-handdrawn .woocommerce-mini-cart__empty-message,
body.hd-handdrawn .woocommerce-noreviews,
body.hd-handdrawn .woocommerce-verification-required,
body.hd-handdrawn .woocommerce-cart .cart-empty,
body.hd-handdrawn .woocommerce-info:where(:not(.message-container)) {
  background: #fff;
  border: var(--hd-border-width) dashed var(--hd-foreground);
  border-radius: var(--hd-radius-md);
  color: var(--hd-muted-foreground);
  position: relative;
}

body.hd-handdrawn .ux-mini-cart-empty,
body.hd-handdrawn .no-results.not-found,
body.hd-handdrawn .woocommerce-cart .cart-empty {
  box-shadow: 4px 4px 0 0 #2d2d2d;
  padding: 1rem;
}

body.hd-handdrawn .ux-mini-cart-empty::before,
body.hd-handdrawn .no-results.not-found::before,
body.hd-handdrawn .woocommerce-cart .cart-empty::before {
  background: rgba(255, 243, 166, 0.76);
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: 50%;
  content: "";
  height: 46px;
  position: absolute;
  right: 14px;
  top: -18px;
  width: 46px;
}

body.hd-handdrawn .no-results.not-found .page-title h1,
body.hd-handdrawn .woocommerce-cart .cart-empty,
body.hd-handdrawn .ux-mini-cart-empty .woocommerce-mini-cart__empty-message {
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-weight: 700;
}

body.hd-handdrawn .loading-spin,
body.hd-handdrawn .blockUI.blockOverlay::before {
  border-bottom-color: rgba(45, 45, 45, 0.14) !important;
  border-left-color: var(--hd-accent) !important;
  border-right-color: rgba(45, 45, 45, 0.14) !important;
  border-top-color: rgba(45, 45, 45, 0.14) !important;
}

body.hd-handdrawn .blockUI.blockOverlay::before {
  border-width: 4px !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
  height: 34px !important;
  width: 34px !important;
}

/* 7) Header and mega menu convergence */
body.hd-handdrawn .header-wrapper,
body.hd-handdrawn .header-main {
  background: #fff;
}

body.hd-handdrawn .header-main {
  border-bottom: var(--hd-border-width) solid var(--hd-foreground);
  box-shadow: 0 3px 0 0 rgba(45, 45, 45, 0.15);
}

body.hd-handdrawn .header-bottom {
  border-bottom: var(--hd-border-width) solid #d6d0c5;
}

body.hd-handdrawn .header .header-nav-main.nav > li > a,
body.hd-handdrawn .header .header-bottom-nav.nav > li > a,
body.hd-handdrawn .header .top-bar-nav > li > a {
  align-items: center;
  border: var(--hd-border-width) solid transparent;
  border-radius: var(--hd-radius-full);
  display: inline-flex;
  font-family: var(--hd-font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-height: 36px;
  padding: 0 0.72rem;
  text-transform: uppercase;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

body.hd-handdrawn .header .header-nav-main.nav > li.active > a,
body.hd-handdrawn .header .header-nav-main.nav > li.current > a,
body.hd-handdrawn .header .header-nav-main.nav > li > a:hover,
body.hd-handdrawn .header .header-bottom-nav.nav > li > a:hover,
body.hd-handdrawn .header .top-bar-nav > li > a:hover {
  background: rgba(255, 243, 166, 0.42);
  border-color: var(--hd-foreground);
}

body.hd-handdrawn .header .header-button > .button,
body.hd-handdrawn .header .header-cart-link .cart-icon strong,
body.hd-handdrawn .header .header-account-title,
body.hd-handdrawn .header .header-wishlist-title {
  font-family: var(--hd-font-heading);
  font-weight: 700;
}

body.hd-handdrawn .header .header-button > .button {
  min-height: 38px;
}

body.hd-handdrawn .header .nav-dropdown,
body.hd-handdrawn .header .nav-dropdown-full {
  background: #fff;
  border: var(--hd-border-width) solid var(--hd-foreground);
  border-radius: var(--hd-radius-md);
  box-shadow: 6px 6px 0 0 #2d2d2d;
  padding: 10px;
  transform: translateY(var(--hd-enter-distance)) scale(0.985);
  transform-origin: top center;
  transition:
    opacity var(--hd-enter-duration-fast) ease,
    visibility var(--hd-enter-duration-fast) ease,
    transform var(--hd-enter-duration-fast) var(--hd-ease-bouncy);
}

body.hd-handdrawn .header .has-dropdown:hover > .nav-dropdown,
body.hd-handdrawn .header .has-dropdown:hover > .nav-dropdown-full,
body.hd-handdrawn .header li.current-dropdown > .nav-dropdown,
body.hd-handdrawn .header li.current-dropdown > .nav-dropdown-full {
  animation: hd-enter-drop var(--hd-enter-duration-fast) var(--hd-ease-bouncy) both;
  transform: translateY(0) scale(1);
}

body.hd-handdrawn .header .nav-dropdown > li > a,
body.hd-handdrawn .header .nav-dropdown .nav-column > li > a {
  border-radius: var(--hd-radius-sm);
  color: var(--hd-foreground);
  font-weight: 600;
  margin: 2px 0;
  padding: 8px 10px;
}

body.hd-handdrawn .header .nav-dropdown > li > a:hover,
body.hd-handdrawn .header .nav-dropdown .nav-column > li > a:hover {
  background: var(--hd-muted);
  color: var(--hd-accent);
}

body.hd-handdrawn .header .nav-dropdown .nav-dropdown-col > a,
body.hd-handdrawn .header .nav-dropdown .menu-item-has-children > a {
  color: var(--hd-foreground);
  font-family: var(--hd-font-heading);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.hd-handdrawn .header .menu-item-has-block .nav-dropdown {
  border-radius: var(--hd-radius-lg);
}

body.hd-handdrawn .header .menu-item-has-block .nav-dropdown .col-inner {
  border-radius: var(--hd-radius-md);
}

@media (max-width: 849px) {
  body.hd-handdrawn .category-filter-row,
  body.hd-handdrawn .widget_price_filter,
  body.hd-handdrawn .widget_layered_nav,
  body.hd-handdrawn .widget_layered_nav_filters,
  body.hd-handdrawn .widget_product_categories,
  body.hd-handdrawn .cart-popup-inner,
  body.hd-handdrawn.woocommerce-account .account-container .woocommerce-MyAccount-navigation,
  body.hd-handdrawn.woocommerce-account .account-container .woocommerce-MyAccount-content,
  body.hd-handdrawn.woocommerce-account .dashboard-links,
  body.hd-handdrawn.woocommerce-account .account-user {
    box-shadow: 2px 2px 0 0 #2d2d2d;
  }

  body.hd-handdrawn .category-filter-row {
    gap: 8px;
    padding: 0.5rem;
  }

  body.hd-handdrawn .category-filter-row .filter-button {
    font-size: 0.74rem;
    min-height: 36px;
    padding: 0.3rem 0.66rem;
  }

  body.hd-handdrawn .cart-popup-inner {
    border-radius: var(--hd-radius-md);
  }

  body.hd-handdrawn .cart-popup-inner .cart-popup-title,
  body.hd-handdrawn .cart-popup-inner .widget_shopping_cart_content,
  body.hd-handdrawn .cart-popup-inner .ux-mini-cart-footer {
    padding-left: 0.72rem;
    padding-right: 0.72rem;
  }

  body.hd-handdrawn.woocommerce-account .dashboard-links {
    grid-template-columns: 1fr 1fr;
  }

  body.hd-handdrawn .header .header-nav-main.nav > li > a,
  body.hd-handdrawn .header .header-bottom-nav.nav > li > a,
  body.hd-handdrawn .header .top-bar-nav > li > a {
    min-height: 34px;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  body.hd-handdrawn .header .nav-dropdown,
  body.hd-handdrawn .header .nav-dropdown-full {
    box-shadow: 3px 3px 0 0 #2d2d2d;
    padding: 8px;
  }
}

@media (max-width: 549px) {
  body.hd-handdrawn .widget_price_filter .price_slider_amount {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  body.hd-handdrawn .widget_price_filter .price_slider_amount .button {
    width: 100%;
  }

  body.hd-handdrawn .products .product-small .box:hover .box-image img {
    transform: scale(1.025);
  }

  body.hd-handdrawn .cart-popup-inner .woocommerce-mini-cart__buttons.buttons {
    gap: 6px;
  }

  body.hd-handdrawn.woocommerce-account .dashboard-links {
    grid-template-columns: 1fr;
  }

  body.hd-handdrawn .ux-mini-cart-empty::before,
  body.hd-handdrawn .no-results.not-found::before,
  body.hd-handdrawn .woocommerce-cart .cart-empty::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.hd-handdrawn .products .product-small .box:hover .box-image img,
  body.hd-handdrawn .products .product-small .box:hover .box-text .name,
  body.hd-handdrawn .products .product-small .box:hover .woocommerce-loop-product__title,
  body.hd-handdrawn .products .product-small .box:hover .price-wrapper .price,
  body.hd-handdrawn .products .product-small .box:hover .amount,
  body.hd-handdrawn .products .product-small .box:hover .grid-tools a,
  body.hd-handdrawn .products .product-small .box:hover .add_to_cart_button {
    transform: none;
  }

  body.hd-handdrawn #cart-popup .cart-popup-inner,
  body.hd-handdrawn .header .nav-dropdown,
  body.hd-handdrawn .header .nav-dropdown-full,
  body.hd-handdrawn.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-message,
  body.hd-handdrawn.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-info,
  body.hd-handdrawn.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-error,
  body.hd-handdrawn.woocommerce-checkout .woocommerce-notices-wrapper > .message-wrapper {
    animation: none !important;
    transform: none !important;
  }
}







