/* SOP 1.3 — catalog, product photography and customer service. */
body.sop-theme .sop-category-nav-wrap { padding-top: 28px; }
body.sop-theme .sop-category-nav-wrap > .eyebrow { font-size: 12px; color: #bdbdbd; margin-bottom: 14px; }
body.sop-theme .sop-category-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
body.sop-theme .sop-category-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid #3e3e3e;
  border-radius: 12px;
  background: linear-gradient(150deg, #232323, #151515);
  box-shadow: 0 4px 14px #0002;
  text-align: center;
  text-decoration: none;
  color: #eee;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
body.sop-theme .sop-category-button:hover { border-color: var(--yellow); transform: translateY(-2px); }
body.sop-theme .sop-category-button.is-active { background: var(--yellow); border-color: var(--yellow); color: #111; box-shadow: 0 5px 20px #f1be101a; }
body.sop-theme .sop-category-button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
body.sop-theme .sop-category-controls [hidden] { display: none !important; }
body.sop-theme .filter-child-category { margin-top: 18px; padding-top: 18px; border-top: 1px solid #383838; }
body.sop-theme .filter-child-category label { color: var(--yellow); }
body.sop-theme .shop-filter-form select,
body.sop-theme .shop-filter-form input[type="search"] { font-size: 14px; min-height: 48px; }
body.sop-theme .shop-filter-form .filter-title { font-size: 14px; }
body.sop-theme .shop-filter-form select { padding-right: 30px; text-overflow: ellipsis; }
body.sop-theme .filter-submit { font-size: 12px; }
body.sop-theme .product-card {
  box-shadow: 0 10px 28px #0003;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
body.sop-theme .product-card:hover { box-shadow: 0 18px 38px #0006; }
body.sop-theme .product-card__media { border-color: #ffffff22; box-shadow: 0 3px 12px #0002; }

/* Keep the native WooCommerce gallery/zoom, with a separate compact thumbnail strip. */
body.sop-theme.woocommerce .product-detail > div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 32px 52px;
  align-items: start;
  padding-top: 12px;
}
body.sop-theme.woocommerce .product-detail > div.product::before,
body.sop-theme.woocommerce .product-detail > div.product::after { display: none; }
body.sop-theme.woocommerce .product-detail > div.product > .images,
body.sop-theme.woocommerce .product-detail > div.product > .summary {
  float: none;
  width: 100%;
  min-width: 0;
  margin: 0;
}
body.sop-theme.woocommerce .product-detail > div.product > .woocommerce-tabs,
body.sop-theme.woocommerce .product-detail > div.product > .related,
body.sop-theme.woocommerce .product-detail > div.product > .up-sells { grid-column: 1 / -1; min-width: 0; }
body.sop-theme.woocommerce div.product div.images {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
body.sop-theme.woocommerce div.product div.images .flex-viewport,
body.sop-theme.woocommerce div.product div.images > .woocommerce-product-gallery__wrapper {
  background: #fff;
  border: 1px solid #ffffff29;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px #0005, 0 1px 0 #ffffff15;
}
body.sop-theme.woocommerce .woocommerce-product-gallery__image > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fff;
  overflow: hidden;
}
body.sop-theme.woocommerce div.product div.images .woocommerce-product-gallery__image > a > img:not(.zoomImg) {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 12px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}
body.sop-theme.woocommerce div.product div.images .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0 0;
  margin: 0;
  background: transparent;
  overflow: visible;
}
body.sop-theme.woocommerce div.product div.images .flex-control-thumbs li {
  float: none;
  width: 80px;
  flex: 0 0 80px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
}
body.sop-theme.woocommerce div.product div.images .flex-control-thumbs li img {
  width: 80px;
  height: 80px;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 12px;
  object-fit: contain;
  opacity: .75;
  background: #fff;
  box-shadow: 0 4px 12px #0003;
  transition: opacity .2s, border-color .2s;
}
body.sop-theme.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
body.sop-theme.woocommerce div.product div.images .flex-control-thumbs li img:hover { opacity: 1; border-color: var(--yellow); }
body.sop-theme.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 3px 12px #0002;
}
body.sop-theme.woocommerce div.product .summary { padding: 12px 0; }
body.sop-theme.woocommerce div.product .product_title { font-size: clamp(26px, 2.4vw, 38px); line-height: 1.3; overflow-wrap: anywhere; }
body.sop-theme.woocommerce div.product .product_meta { line-height: 1.8; font-size: 13px; }

/* A composed request form: clear fields, strong hierarchy, compact contact details. */
body.sop-theme .contact-page { padding-block: 48px 72px; }
body.sop-theme .contact-hero { max-width: 900px; padding: 0; margin-bottom: 32px; }
body.sop-theme .contact-hero h1 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.12; }
body.sop-theme .contact-hero > p:last-child { font-size: 16px; line-height: 1.75; max-width: 760px; color: #c7c7c7; }
body.sop-theme .contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
body.sop-theme .contact-request,
body.sop-theme .contact-aside .contact-panel {
  min-width: 0;
  padding: 32px;
  background: #171717;
  border: 1px solid #353535;
  border-radius: 16px;
  box-shadow: 0 12px 36px #0003;
}
body.sop-theme .contact-request h2 { font-size: 27px; line-height: 1.3; letter-spacing: -.025em; margin: 8px 0 14px; }
body.sop-theme .contact-request a { font-size: inherit; }
body.sop-theme .contact-request > p:not(.eyebrow) { color: #bdbdbd; font-size: 15px; line-height: 1.7; }
body.sop-theme .contact-aside { display: grid; gap: 20px; min-width: 0; }
body.sop-theme .contact-aside .contact-panel h2 { font-size: 22px; letter-spacing: -.02em; }
body.sop-theme .contact-aside .contact-phone { font-size: 27px; }
body.sop-theme .contact-aside .contact-email { font-size: 22px; }
body.sop-theme .contact-aside p { font-size: 15px; line-height: 1.8; }
body.sop-theme .contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 25px; }
body.sop-theme .contact-field { min-width: 0; }
body.sop-theme .contact-field--wide { grid-column: 1 / -1; }
body.sop-theme .contact-field > label { display: block; color: #eee; font-size: 14px; font-weight: 800; margin-bottom: 9px; }
body.sop-theme .contact-field input,
body.sop-theme .contact-field select,
body.sop-theme .contact-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid #4b4b4b;
  border-radius: 10px;
  background-color: #222;
  color: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}
body.sop-theme .contact-field textarea { resize: vertical; min-height: 160px; }
body.sop-theme .contact-field input:focus,
body.sop-theme .contact-field select:focus,
body.sop-theme .contact-field textarea:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }
body.sop-theme .contact-field [aria-invalid=true] { border-color: #f3a492; }
body.sop-theme .contact-field-error { display: block; margin-top: 7px; color: #ffc2b4; font-size: 13px; line-height: 1.5; }
body.sop-theme .contact-feedback { padding: 16px 18px; margin-block: 20px; border: 1px solid #76662b; border-radius: 10px; background: #2a2515; font-size: 15px; line-height: 1.65; }
body.sop-theme .contact-feedback--error { background: #2a1b18; border-color: #9c5c4f; }
body.sop-theme .contact-feedback--success { background: #16251d; border-color: #42785a; }
body.sop-theme .contact-feedback a { text-decoration: underline; }
body.sop-theme .contact-honeypot { display: none !important; }
body.sop-theme .contact-privacy { color: #bdbdbd; font-size: 13px; line-height: 1.7; margin: 20px 0 0; }
body.sop-theme .contact-privacy a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
body.sop-theme .contact-field .optional { color: #bcbcbc; font-weight: 600; font-size: 12px; }
body.sop-theme .sop-contact-form .button { min-height: 50px; padding: 14px 24px; border-radius: 10px; font-size: 14px; margin-top: 22px; }
body.sop-theme .sop-contact-form .contact-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; color: #c7c7c7; font-size: 13px; line-height: 1.7; }
body.sop-theme .sop-contact-form .contact-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--yellow); }
body.sop-theme .sop-contact-form .contact-consent a { color: var(--yellow); text-decoration: underline; }

/* Category spelling and capitalization come directly from WooCommerce. */
body.sop-theme .product-card__category,
body.sop-theme .woocommerce-loop-category__title,
body.sop-theme .sop-category-button,
body.sop-theme .category-number,
body.sop-theme .category-bottom,
body.sop-theme .category-quicklinks a { text-transform: none; }
body.sop-theme .category-card h3.category-term-name { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.16; margin-top: 12px; text-transform: none; overflow-wrap: anywhere; }
body.sop-theme .category-quicklinks > a { white-space: normal; min-width: 0; overflow-wrap: anywhere; }
body.sop-theme .category-bottom > svg { flex-shrink: 0; margin-left: 10px; }
body.sop-theme .category-grid--single { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(320px, auto); }
body.sop-theme .category-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(320px, auto); }
body.sop-theme .category-grid--single > .category-card,
body.sop-theme .category-grid--pair > .category-card { grid-row: auto; }
@media (max-width: 680px) {
  body.sop-theme .category-grid--pair { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(320px, auto)); }
  body.sop-theme .category-card--engine h3 { font-size: clamp(32px, 12vw, 53px); }
}

/* Native WooCommerce account forms, with a quieter, more rectangular profile. */
body.sop-theme.woocommerce-account .page-main { max-width: 1200px; }
body.sop-theme.woocommerce-account .page-heading { padding-block: 32px 22px; }
body.sop-theme.woocommerce-account .page-heading h1 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.2; }
body.sop-theme .sop-account-shell { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr); gap: 40px; padding-block: 12px 60px; align-items: start; }
body.sop-theme .sop-account-intro { padding: 32px; border: 1px solid #39352a; background: linear-gradient(135deg, #252217, #151515 80%); border-radius: 12px; }
body.sop-theme .sop-account-intro h2 { font-size: 29px; line-height: 1.3; margin: 12px 0 18px; }
body.sop-theme .sop-account-intro p { font-size: 16px; color: #ccc; line-height: 1.8; }
body.sop-theme .sop-account-intro ul { list-style: none; margin: 24px 0 0; padding: 0; }
body.sop-theme .sop-account-intro li { font-size: 14px; color: #dedede; line-height: 1.6; padding: 14px 0; border-top: 1px solid #37352f; }
body.sop-theme .sop-account-intro li::before { content: '✓'; color: var(--yellow); margin-right: 10px; }
body.sop-theme .sop-account-forms { min-width: 0; }
body.sop-theme.sop-account-guest .sop-account-forms { padding: 28px; border: 1px solid #3a3a3a; border-radius: 12px; background: #171717; box-shadow: 0 12px 35px #0003; }
body.sop-theme .sop-account-shell--dashboard { grid-template-columns: minmax(0, 1fr); gap: 24px; }
body.sop-theme .sop-account-shell--dashboard .sop-account-intro { padding: 24px 30px; }
body.sop-theme .sop-account-intro > .text-link { margin-top: 22px; font-size: 13px; }
body.sop-theme .sop-account-forms h2 { font-size: 24px; line-height: 1.3; margin: 0 0 18px; }
body.sop-theme .sop-account-forms .u-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
body.sop-theme .sop-account-forms .u-columns::before,
body.sop-theme .sop-account-forms .u-columns::after { display: none; }
body.sop-theme .sop-account-forms .u-column1,
body.sop-theme .sop-account-forms .u-column2 { float: none; width: 100%; }
body.sop-theme .woocommerce form.login,
body.sop-theme .woocommerce form.register,
body.sop-theme .woocommerce form.lost_reset_password {
  margin: 0;
  padding: 28px;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  background: #171717;
  box-shadow: 0 12px 35px #0003;
}
body.sop-theme.sop-account-guest .woocommerce .sop-account-forms form { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
body.sop-theme.woocommerce-account .woocommerce form .form-row { padding: 0; margin: 0 0 20px; }
body.sop-theme.woocommerce-account .woocommerce form .form-row label { color: #e4e4e4; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
body.sop-theme.woocommerce-account .woocommerce form .input-text { min-height: 50px; font-size: 16px; border-radius: 8px; padding: 12px 14px; }
body.sop-theme.woocommerce-account .woocommerce form .button { min-height: 48px; border-radius: 8px; font-size: 14px; padding: 12px 25px; }
body.sop-theme .sop-account-forms .woocommerce-LostPassword { margin: 18px 0 0; font-size: 14px; }
body.sop-theme .sop-account-forms .woocommerce-LostPassword a { text-decoration: underline; text-underline-offset: 3px; }
body.sop-theme.woocommerce-account .woocommerce-MyAccount-navigation ul { border-radius: 12px; overflow: hidden; background: #161616; }
body.sop-theme.woocommerce-account .woocommerce-MyAccount-navigation a { padding: 16px 20px; font-size: 14px; }
body.sop-theme.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--yellow); color: #111; }
body.sop-theme.woocommerce-account .woocommerce-MyAccount-content { padding: 28px; border: 1px solid #383838; border-radius: 12px; background: #171717; font-size: 16px; }
body.sop-theme .motion-toggle { right: auto; left: 18px; bottom: 18px; width: 40px; height: 40px; }

@media (max-width: 959px) {
  body.sop-theme .sop-category-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.sop-theme.woocommerce .product-detail > div.product { gap: 30px; grid-template-columns: minmax(0, 1fr); }
  body.sop-theme.woocommerce .product-detail > div.product > .woocommerce-tabs,
  body.sop-theme.woocommerce .product-detail > div.product > .related,
  body.sop-theme.woocommerce .product-detail > div.product > .up-sells { grid-column: 1; }
  body.sop-theme .contact-layout { grid-template-columns: minmax(0, 1fr); }
  body.sop-theme .contact-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.sop-theme .sop-account-shell { gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  body.sop-theme .sop-account-shell--dashboard { grid-template-columns: minmax(0, 1fr); }
  body.sop-theme .sop-account-intro { padding: 24px; }
}
@media (max-width: 680px) {
  body.sop-theme .sop-category-nav-wrap { padding-top: 20px; }
  body.sop-theme .sop-category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.sop-theme .sop-category-button { min-height: 52px; padding: 10px; font-size: 12px; }
  body.sop-theme .contact-page { padding-block: 28px 44px; }
  body.sop-theme .contact-fields,
  body.sop-theme .contact-aside,
  body.sop-theme .sop-account-shell { grid-template-columns: minmax(0, 1fr); }
  body.sop-theme .contact-request,
  body.sop-theme .contact-aside .contact-panel { padding: 22px 18px; }
  body.sop-theme .contact-request h2 { font-size: 24px; }
  body.sop-theme .sop-contact-form .button { width: 100%; }
  body.sop-theme .sop-account-intro { padding: 22px; }
  body.sop-theme.sop-account-guest .sop-account-forms { padding: 22px 18px; }
  body.sop-theme .sop-account-intro h2 { font-size: 25px; }
  body.sop-theme .sop-account-intro ul { margin-top: 16px; }
  body.sop-theme .sop-account-shell { gap: 26px; padding-bottom: 40px; }
  body.sop-theme .woocommerce form.login,
  body.sop-theme .woocommerce form.register,
  body.sop-theme .woocommerce form.lost_reset_password { padding: 22px 18px; }
  body.sop-theme.woocommerce .product-detail > div.product { gap: 24px; }
  body.sop-theme.woocommerce div.product div.images .flex-control-thumbs li { width: 64px; flex-basis: 64px; }
  body.sop-theme.woocommerce div.product div.images .flex-control-thumbs li img { width: 64px; height: 64px; }
  body.sop-theme.woocommerce div.product .product_title { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  body.sop-theme .product-card,
  body.sop-theme .sop-category-button,
  body.sop-theme.woocommerce div.product div.images .flex-control-thumbs li img { transition: none; }
}
