/* English layout refinements */
*, *::before, *::after { direction: ltr; }
.brand { direction: ltr; }
.product-price b, .cart-subtotal b, .checkout-total b { direction: ltr; text-align: left; }
.sort-control select { direction: ltr; padding: 5px 16px 5px 0; }
.sort-control > span { left: auto; right: 2px; }
.remove-item { left: auto; right: 2px; }
.checkout-close { left: auto; right: 0; }
.product-image .sock-art { display: block; width: 100%; height: 100%; }
.sock-art svg, .cart-art svg, #hero-visual svg, #story-visual svg,
.sock-art img, .cart-art img, #hero-visual img, #story-visual img { display: block; width: 100%; height: 100%; }
.sock-art img, .cart-art img { object-fit: contain; background: #fffdf7; }
.cart-art { display: block; flex: 0 0 81px; width: 81px; height: 91px; background: #eeece4; }
#hero-visual { width: min(100%, 575px); aspect-ratio: 1; }
#story-visual { position: relative; z-index: 1; display: block; width: min(92%, 480px); aspect-ratio: 1; filter: drop-shadow(0 16px 12px rgba(60,56,45,.1)); transform: rotate(-5deg); }
.hero-sock-layer img { border: 4px solid #17191d; background: #fffdf7; box-shadow: 4px 5px #17191d; object-fit: contain; }
#story-visual img { border: 4px solid #17191d; background: #fffdf7; box-shadow: 5px 6px #17191d; object-fit: contain; }
.product-image .sock-art { display: grid; place-items: center; }
.sock-photo { position: relative; display: block; width: 66%; height: 96%; overflow: hidden; aspect-ratio: .62; background: #fffdf7; }
.sock-photo img { width: 100%; height: 100%; max-width: none; border: 0; object-fit: cover; object-position: var(--sock-x, 50%) 50%; transform: scale(1.5); }
#hero-visual .hero-sock-layer { display: grid; place-items: center; padding: 6px; border: 4px solid #17191d; background: #fffdf7; }
#hero-visual .hero-sock-layer .sock-photo { width: 59%; height: 96%; }
#hero-visual .hero-sock-layer img { border: 0; box-shadow: none; }
.cart-art .sock-photo { width: 67%; height: 96%; }
.footer-bottom .powered-by { color: #f2c744; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.site-header { background: #fffdf7; border-bottom: 3px solid #17191d; }
.brand-mark { color: #1765ed; }
.cart-count { background: #f54f4b; }
.hero { min-height: 610px; padding-top: 50px; padding-bottom: 48px; color: #17191d; background-color: #1765ed; background-image: radial-gradient(circle, rgba(255,222,35,.85) 0 2px, transparent 2.6px); background-size: 22px 22px; border-bottom: 5px solid #17191d; }
.hero::before { position: absolute; inset: 0; content: ""; pointer-events: none; opacity: .24; background: repeating-conic-gradient(from 0deg at 70% 45%, transparent 0deg 9deg, #fff 10deg 10.8deg, transparent 12deg 18deg); }
.hero-copy { z-index: 2; padding: 25px 27px 23px; background: #fffdf4; border: 4px solid #15171b; box-shadow: 8px 9px 0 #14161b; transform: rotate(-1deg); }
.hero-copy .eyebrow { color: #1462e5; }
.hero-copy h1 { margin: 13px 0 18px; color: #15171b; font-family: "DM Sans", sans-serif; font-size: clamp(39px, 4.3vw, 59px); font-style: italic; font-weight: 900; line-height: .99; letter-spacing: -.06em; text-transform: uppercase; }
.hero-copy h1 em { color: #f34c47; font-family: "DM Sans", sans-serif; font-style: italic; font-weight: 900; -webkit-text-stroke: 1.5px #15171b; text-shadow: 3px 4px 0 #15171b; }
.hero-copy > p { margin-top: 12px; max-width: 380px; color: #33353a; font-size: 12px; font-weight: 500; line-height: 1.75; }
.hero-copy .button-dark { border: 2px solid #15171b; background: #ffe02f; box-shadow: 3px 4px 0 #15171b; color: #15171b; font-weight: 800; text-transform: uppercase; }
.hero-copy .button-dark:hover { background: #ffca25; }
.hero-copy .text-link { font-weight: 700; }
.hero-proof { color: #3d4147; }
.promo-bubbles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.promo-bubble { position: relative; isolation: isolate; display: flex; min-height: 102px; flex-direction: column; justify-content: center; align-items: center; padding: 7px 5px 9px; border: 3px solid #17191d; border-radius: 38% 45% 37% 43% / 28% 38% 31% 40%; background-color: #fff; background-image: radial-gradient(#f34c47 1.1px, transparent 1.4px); background-size: 9px 9px; box-shadow: 3px 4px 0 #17191d; color: #101114; line-height: .92; text-align: center; transform: rotate(-2deg); }
.promo-bubble::after { position: absolute; z-index: -1; right: 15%; bottom: -12px; width: 22px; height: 19px; content: ""; background: #fff; border-right: 3px solid #17191d; border-bottom: 3px solid #17191d; transform: skew(24deg) rotate(22deg); }
.promo-bubble small { font-size: 13px; font-weight: 900; letter-spacing: .06em; }
.promo-bubble strong { font-size: clamp(17px, 2.1vw, 24px); font-weight: 900; font-style: italic; }
.promo-bubble b { margin-top: 2px; color: #f34c47; font-size: clamp(24px, 3vw, 34px); font-weight: 900; font-style: italic; letter-spacing: -.05em; -webkit-text-stroke: .7px #14161b; text-shadow: 1.5px 2px 0 #14161b; }
.promo-bubble-red { background-color: #fff; transform: rotate(2deg); }
.promo-terms { display: block; margin-top: 10px; color: #51545a; font-size: 8px; font-weight: 700; }
.hero-art { z-index: 1; min-height: 480px; }
.hero-backdrop { width: min(100%, 465px); background: #ffe02f; border: 5px solid #17191d; border-radius: 0; clip-path: polygon(50% 0%,58% 10%,69% 3%,74% 15%,87% 12%,87% 25%,100% 32%,92% 43%,100% 55%,88% 63%,94% 78%,80% 81%,78% 96%,64% 91%,54% 100%,45% 91%,31% 98%,27% 84%,13% 86%,15% 72%,2% 66%,10% 54%,0% 43%,12% 35%,5% 21%,20% 19%,24% 5%,39% 11%); }
.hero-socks { z-index: 2; width: min(100%, 560px); height: 100%; filter: drop-shadow(0 7px 0 #111) drop-shadow(0 15px 10px rgba(0,0,0,.28)); animation: comic-float 4.4s ease-in-out infinite; }
@keyframes comic-float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
#hero-visual .hero-sock-layer { position: absolute; display: block; width: 63%; height: 63%; filter: drop-shadow(3px 3px 0 #17191d); }
#hero-visual .hero-sock-layer:nth-child(1) { top: 24%; left: -1%; transform: rotate(-23deg) scale(.88); }
#hero-visual .hero-sock-layer:nth-child(2) { top: 3%; left: 19%; transform: rotate(-8deg); }
#hero-visual .hero-sock-layer:nth-child(3) { top: 4%; right: 0; transform: rotate(15deg) scale(.94); }
#hero-visual .hero-sock-layer:nth-child(4) { right: 20%; bottom: -2%; transform: rotate(21deg) scale(.78); }
#hero-visual .hero-sock-layer:nth-child(5) { bottom: -4%; left: 3%; transform: rotate(-17deg) scale(.78); }
#hero-visual .hero-sock-layer:nth-child(6) { right: -3%; bottom: -6%; transform: rotate(17deg) scale(.78); }
.hero-note { top: 2%; right: 1%; padding: 7px 12px; border: 3px solid #17191d; background: #fffdf4; box-shadow: 3px 4px #17191d; color: #17191d; font-weight: 800; transform: rotate(4deg); }
.hero-sticker { z-index: 3; top: 17%; left: 2%; border: 3px solid #17191d; background: #f24e48; box-shadow: 3px 3px #17191d; font-weight: 900; transform: rotate(-12deg); }
.hero-art-caption { bottom: -1%; left: 1%; padding: 7px 10px; border: 2px solid #17191d; background: #fffdf4; box-shadow: 3px 3px #17191d; color: #17191d; font-weight: 700; }
.benefits { border-bottom: 3px solid #17191d; background: #ffe02f; }
.benefit-icon { border: 2px solid #17191d; background: #fffdf4; color: #1765ed; }
.product-image-wrap { border: 3px solid #17191d; background-color: #1765ed; background-image: radial-gradient(#ffe02f 1px, transparent 1.6px); background-size: 12px 12px; box-shadow: 4px 5px 0 #17191d; }
.product-image { background: transparent; }
.product-badge { border: 2px solid #17191d; background: #ffe02f; color: #17191d; font-weight: 800; }
.quick-add { border: 2px solid #17191d; background: #fffdf4; box-shadow: 2px 2px #17191d; font-weight: 800; }
.favorite-button { border: 2px solid #17191d; background: #fffdf4; }
.filter-chip { border: 2px solid #17191d; background: #fffdf4; box-shadow: 2px 2px #17191d; color: #17191d; font-weight: 700; }
.filter-chip.active { border-color: #17191d; background: #1765ed; color: #fff; box-shadow: 2px 2px #17191d; }
.cart-promo { margin: 12px 0 3px; padding: 10px 12px; border: 2px solid #17191d; background: #ffe02f; box-shadow: 3px 3px #17191d; color: #17191d; font-size: 10px; font-weight: 800; text-align: center; }
.cart-item-copy .quantity-controls span { color: #f24e48; font-size: 9px; font-weight: 800; }
@media(max-width:650px) {
  .hero { padding: 31px 7% 26px; }
  .hero-copy { padding: 20px 18px; }
  .hero-copy h1 { font-size: clamp(38px, 10vw, 53px); }
  .promo-bubble { min-height: 87px; }
  .hero-art { min-height: 300px; margin-top: 16px; }
  #hero-visual .hero-sock-layer { width: 65%; height: 65%; }
  #hero-visual .hero-sock-layer:nth-child(1) { top: 20%; }
  #hero-visual .hero-sock-layer:nth-child(2) { top: 0; }
  #hero-visual .hero-sock-layer:nth-child(3) { top: 3%; }
  #hero-visual .hero-sock-layer:nth-child(4) { bottom: -6%; }
  #hero-visual .hero-sock-layer:nth-child(5) { bottom: -3%; left: 0; transform: rotate(-17deg) scale(.7); }
  #hero-visual .hero-sock-layer:nth-child(6) { right: -5%; bottom: -4%; transform: rotate(17deg) scale(.7); }
  .hero-sticker { top: 14%; }
}
