@font-face {
  font-family: 'PK Open Sans';
  src: url('./open-sans-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}
body {
  --pk-control-height: 48px;
  --pk-control-radius: 8px;
  --theme-font-family: 'PK Open Sans', Arial, sans-serif;
  font-family: var(--theme-font-family);
}
h1, h2, h3, h4, h5, h6, button, input, select, textarea,
.ct-header, .ct-footer, .pk-footer {
  font-family: 'PK Open Sans', Arial, sans-serif;
}
body, h1, h2, h3, button, input, select { letter-spacing: 0; }
#header [data-device="desktop"] [data-row="bottom"] { --height: 60px; }
#header [data-device="desktop"] [data-row="middle"] { --height: 150px; }
#header [data-device="mobile"] [data-row="middle"] { --height: 70px; }
body { --theme-link-initial-color: #986000; --theme-link-hover-color: #704600; }
.pk-section-heading > a, .pk-quick-notice a { color: #986000; }
.pk-section-heading > a:hover, .pk-section-heading > a:focus-visible,
.pk-quick-notice a:hover, .pk-quick-notice a:focus-visible { color: #704600; }
.post-type-archive-product .hero-section[data-type="type-2"] { --min-height: 230px !important; }
.pk-quick-buy .added_to_cart.wc-forward { display: none !important; }
#header [data-device="desktop"] .site-logo-container { --logo-max-height: 58px; }
#header [data-device="mobile"] .site-logo-container { --logo-max-height: 42px; }
#header .site-logo-container img { height: var(--logo-max-height); width: auto; max-width: 100%; object-fit: contain; }
#header [data-device="desktop"] #header-menu-1 > ul > li > a { min-height:60px; }
#offcanvas .ct-header-socials { --theme-icon-color:#fff; --theme-icon-hover-color:#b3d9c0; }
#offcanvas .ct-header-socials a { color:#fff; }
#offcanvas .ct-header-socials svg { fill:currentColor; }
.home .hero-section { display: none; }
.home .entry-content { margin-top: 0; }
.home main { --theme-content-vertical-spacing: 16px; }
.home .content-area { padding-top: 16px; }
.pk-modern-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding: 20px 0 32px; }
.pk-modern-copy { max-width: 500px; }
.pk-eyebrow { font-size: 12px; font-weight: 600; margin: 0 0 18px; color: #58635c; }
.pk-modern-copy h1 { font-size: 52px; line-height: 1.08; margin: 0 0 24px; }
.pk-modern-copy > p:not(.pk-eyebrow) { max-width: 440px; color: #606563; line-height: 1.8; }
.pk-shop-link { display: inline-flex; align-items: center; gap: 32px; border-bottom: 1px solid currentColor; padding: 8px 0; font-weight: 600; color: #171b18; }
.pk-feature { display: block; background: #f4f5f3; }
.pk-feature-image { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.pk-feature { max-width: 500px; justify-self: end; }
.pk-modern-products { padding: 16px 0 24px; }
.pk-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.pk-section-heading .pk-eyebrow { margin-bottom: 8px; }
.pk-section-heading h2 { margin: 0; font-size: 30px; }
.pk-section-heading > a { font-size: 14px; text-decoration: underline; }
.woocommerce ul.products li.product img { aspect-ratio: 1; object-fit: contain; background: #f5f6f4; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 17px; line-height: 1.5; }
.woocommerce .pk-quick-buy { width: 100%; }
/* Blocksy also lays out cart descendants; keep the quick-buy grid explicit. */
.woocommerce ul.products li.product .pk-quick-buy form.cart {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 52px !important;
  gap: 8px;
  align-items: start;
}
.woocommerce ul.products li.product .pk-quick-buy .variations,
.woocommerce ul.products li.product .pk-quick-buy .variations tbody,
.woocommerce ul.products li.product .pk-quick-buy .variations tr,
.woocommerce ul.products li.product .pk-quick-buy .variations td,
.woocommerce ul.products li.product .pk-quick-buy .single_variation_wrap,
.woocommerce ul.products li.product .pk-quick-buy .ct-cart-actions,
.woocommerce ul.products li.product .pk-quick-buy .woocommerce-variation-add-to-cart { display: contents; }
.woocommerce ul.products li.product .pk-quick-buy .variations select {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  margin: 0;
  border-radius: 8px;
}
.woocommerce ul.products li.product .pk-quick-buy .quantity {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 68px;
  min-width: 0;
  margin: 0;
}
.woocommerce ul.products li.product .pk-quick-buy button.single_add_to_cart_button {
  grid-column: 3 !important;
  grid-row: 1 !important;
  width: 52px !important;
  min-width: 0 !important;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
}
.pk-quick-buy ~ .screen-reader-text, .pk-quick-buy ~ .ct-tooltip { display: none; }
.woocommerce .pk-quick-buy .quantity { flex: none; }
.pk-quick-buy .quantity > .ct-increase, .pk-quick-buy .quantity > .ct-decrease { display: none; }
.woocommerce .pk-quick-buy button.single_add_to_cart_button { background: #1b2520; color: white; }
.woocommerce select, .woocommerce input, .woocommerce button.button { border-radius: 8px; }
.woocommerce div.product form.cart .variations select { min-height: 48px; }
.woocommerce div.product .product_title { font-size: 34px; line-height: 1.2; }
.single-product .summary .stock, .single-product .woocommerce-variation-availability { display: none; }
.woocommerce div.product .woocommerce-tabs video { max-width: 100%; height: auto; }
#footer { display: none; }
.pk-footer { padding: 24px; text-align: center; background: #f5f6f4; margin-top: 32px; font-size: 13px; }
.pk-footer-logo { width: 130px; height: auto; display: block; margin: 0 auto 20px; }
.pk-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin: 20px auto; max-width: 1000px; }
.pk-footer a { color: #343b36; }
.pk-footer small { color: #69716b; }
@media (max-width: 999px) { .pk-modern-hero { gap: 28px; } .pk-modern-copy h1 { font-size: 44px; } }
@media (max-width: 689px) {
  .pk-modern-hero { grid-template-columns: 1fr; gap: 20px; padding: 12px 0 24px; }
  .pk-modern-copy h1 { font-size: 38px; margin-bottom: 16px; }
  .pk-modern-copy > p:not(.pk-eyebrow) { font-size: 15px; margin-bottom: 12px; }
  .pk-eyebrow { margin-bottom: 12px; }
  .pk-feature { max-width: 290px; justify-self: center; }
  .pk-section-heading h2 { font-size: 26px; }
  .pk-footer { margin-top: 32px; padding: 24px; }
}

/* Keep yellow My Account navigation states legible, including their icons. */
.woocommerce-MyAccount-navigation { --account-nav-text-active-color: #000; }

/* Use the theme's yellow with readable text for the checkout link's interaction states. */
.woocommerce .wc-proceed-to-checkout .checkout-button:is(:hover, :focus-visible, :active) {
  background-color: var(--theme-palette-color-1, #ffcd05);
  color: #000;
}

/* One visible radius for storefront forms, including theme/WooCommerce wrappers. */
body {
  --theme-form-field-border-radius: var(--pk-control-radius);
  --theme-button-border-radius: var(--pk-control-radius);
}
body :is(input:not([type]), input[type="text"], input[type="email"],
  input[type="password"], input[type="tel"], input[type="url"], input[type="search"],
  input[type="number"], input[type="date"], input[type="datetime-local"],
  input[type="time"], input[type="month"], input[type="week"], input[type="file"],
  textarea, select, .select2-selection, .button, .wp-element-button,
  .wc-block-components-button, .pk-mobile-buy button, .pk-mobile-buy-notice,
  .search-submit, input[type="submit"], input[type="button"],
  input[type="reset"], button[type="submit"], button[type="reset"]) {
  border-radius: var(--pk-control-radius) !important;
}
body :is(.woocommerce .quantity, .wc-block-components-quantity-selector,
  .wc-block-components-text-input input, .wc-block-components-textarea,
  .wc-block-components-combobox .components-combobox-control__input,
  .wc-blocks-components-select .wc-blocks-components-select__container) {
  border-radius: var(--pk-control-radius) !important;
}
/* Clip the grouped steppers at the outside, retaining square inner joins. */
body :is(.woocommerce .quantity, .wc-block-components-quantity-selector) {
  overflow: hidden;
}

/* Product photos: 8px for full cards/gallery, 4px for compact thumbnails. */
body :is(.products .product .ct-media-container, .products .product img,
  .ct-product-gallery-container .ct-media-container, .ct-product-gallery-container img,
  .woocommerce-product-gallery__image, .woocommerce-product-gallery img,
  [id="tab-description"] img, .pswp__img) {
  border-radius: 8px !important;
}
body :is(.products .product .ct-media-container,
  .ct-product-gallery-container .ct-media-container, .woocommerce-product-gallery__image) {
  overflow: hidden;
}
body :is(.product-thumbnail img, .product-thumbnail .ct-media-container,
  .woocommerce-mini-cart img, .woocommerce-mini-cart .ct-media-container,
  .ct-product-gallery-container .flexy-pills img,
  .ct-product-gallery-container .flexy-pills .ct-media-container,
  .woocommerce-product-gallery .flex-control-thumbs img,
  .wc-block-cart-item__image img, .wc-block-cart-item__image a,
  .wc-block-components-order-summary-item__image img,
  .wc-block-components-order-summary-item__image,
  .wc-block-mini-cart-items .wc-block-cart-item__image) {
  border-radius: 4px !important;
}
body :is(.product-thumbnail .ct-media-container,
  .woocommerce-mini-cart .ct-media-container,
  .wc-block-components-order-summary-item__image) {
  overflow: hidden;
}

/* Keep the quick-buy spinner in the exact place of the cart icon. */
body .pk-quick-buy .single_add_to_cart_button:is(.loading, [aria-busy="true"]) {
  position: relative;
}
body .pk-quick-buy .single_add_to_cart_button:is(.loading, [aria-busy="true"]) svg {
  visibility: hidden;
}
body .pk-quick-buy .single_add_to_cart_button:is(.loading, [aria-busy="true"])::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  background: none;
  mask: none;
  -webkit-mask: none;
  pointer-events: none;
  animation: pk-cart-loading .7s linear infinite;
}
@keyframes pk-cart-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  body .pk-quick-buy .single_add_to_cart_button:is(.loading, [aria-busy="true"])::after {
    animation-duration: 1.5s;
  }
}

/* Finish each product card with its controls, then a divider and breathing room. */
.woocommerce ul.products li.product .pk-quick-buy {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8e8e8;
  margin-top: 18px;
  margin-bottom: 12px;
}

/* Match the 48px catalog controls on product details at every screen size. */
  body.single-product .summary form.cart .quantity {
    --quantity-height: var(--pk-control-height);
    height: var(--pk-control-height);
    min-height: var(--pk-control-height);
  }
  body.single-product .summary form.cart .variations select,
  body.single-product .summary form.cart .quantity .qty,
  body.single-product .summary form.cart .single_add_to_cart_button {
    height: var(--pk-control-height);
    min-height: var(--pk-control-height);
    box-sizing: border-box;
  }
@media (max-width: 689px) {
  /* Keep the same horizontal description/reviews tabs used on desktop. */
  body.single-product .woocommerce-tabs ul.tabs {
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: center;
  }
  body.single-product .woocommerce-tabs ul.tabs li {
    flex: 0 1 auto;
    width: auto;
    margin-top: 0 !important;
    border-top: 0 !important;
  }
  body.single-product .woocommerce-tabs ul.tabs li a {
    white-space: nowrap;
  }
}

@media (max-width: 689px) {
  body.woocommerce-cart main :is(.button, button[type="submit"], input[type="submit"], #coupon_code) {
    height: var(--pk-control-height);
    min-height: var(--pk-control-height);
    box-sizing: border-box;
  }
  body.woocommerce-cart main :is(.button, button[type="submit"], input[type="submit"]) {
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body.woocommerce-cart .woocommerce-cart-form .coupon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
    width: 100%;
  }
  body.woocommerce-cart .woocommerce-cart-form .coupon {
    margin-bottom: 16px;
  }
  body.woocommerce-cart .woocommerce-cart-form .coupon input {
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  body.woocommerce-cart .woocommerce-cart-form .coupon button {
    width: auto;
    min-width: 0;
    margin: 0;
    padding-inline: 12px;
    white-space: nowrap;
  }
}

/* Separate every title panel from the mobile/tablet logo header. */
@media (max-width: 999.98px) {
  body:not(.home) .hero-section {
    margin-top: 24px !important;
  }
  /* These pages already had a main margin; avoid adding the gap twice. */
  body:is(.woocommerce-cart, .woocommerce-checkout) #main:has(> .hero-section) {
    margin-top: 0 !important;
  }
}

/* Product gallery: unobstructed image, navigation close to its edges. */
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
  display: none !important;
}
.single-product .woocommerce-product-gallery .flexy-arrow-prev {
  left: 8px !important;
  right: auto !important;
  transform: none !important;
}
.single-product .woocommerce-product-gallery .flexy-arrow-next {
  right: 8px !important;
  left: auto !important;
  transform: none !important;
}

.single-product .woocommerce-product-gallery .zoomImg { display: none !important; }
.single-product .woocommerce-product-gallery .flexy-items .ct-media-container { cursor: pointer; }

/* Halve the shared page-title banner, preserving each template's responsive size. */
body .hero-section[data-type="type-2"] > .entry-header {
  min-height: calc(var(--min-height, 230px) / 2) !important;
  padding-block: 25px !important;
}
