.cms-index-index [data-content-type=row][data-appearance=contained] {
    padding: 0;
}


.catalog-product-view .product-info-main section .my-2.flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
 
 
.catalog-product-view .product-info-main section .my-2.flex .price-label {
    display: none;
}


.productoptionmain { order:3; }
.productnameepdp { order:2; }

#maincontent { background: #fff; }

.catalog-product-view textarea { height: 113px; }

.catalog-product-view #header nav.navigation, .catalog-product-view #header>.bg-slate-200.hidden.lg\:block  { display: block !important; } 

@media screen and (max-width:979px) {
.catalog-product-view #header nav.navigation, .catalog-product-view #header>.bg-slate-200.hidden.lg\:block  { display: none !important; } 
}

.hyva_checkout-index-index .checkout-form-elements .gap-2 { padding-left: 0 !important; }

nav.pages li a {
    color: #000;
    font-weight: bold;
}


/* Hyva media gallery only */
.catalog-product-view #gallery {
    min-width: 0;
}

.catalog-product-view #gallery > .relative {
    position: relative;
    min-width: 0;
    flex: 1 1 0%;
}

/* Main image carousel */
.catalog-product-view #gallery #gallery-main {
    display: flex;
    width: 100%;
    aspect-ratio: var(--gallery-ratio, 700 / 586);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    background: #fff;
}

.catalog-product-view #gallery #gallery-main::-webkit-scrollbar {
    display: none;
}

.catalog-product-view #gallery #gallery-main > div {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}

.catalog-product-view #gallery .stack {
    display: grid;
}

.catalog-product-view #gallery .stack > * {
    grid-area: 1 / 1;
}

.catalog-product-view #gallery #gallery-main > div > button {
    width: 100%;
    padding: 0;
}

.catalog-product-view #gallery #gallery-main img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--gallery-ratio, 700 / 586);
    object-fit: scale-down;
}

/* Pager: dots on smaller screens */
.catalog-product-view #gallery .snap-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding-block: 8px;
}

.catalog-product-view #gallery [data-pager] {
    padding-block: 0;
}

.catalog-product-view #gallery .snap-marker {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #475569;
    border-radius: 16px;
    background: transparent;
}

.catalog-product-view #gallery .snap-marker[aria-current="true"] {
    width: 28px;
    border-color: var(--color-primary, #1f48c5);
    background: var(--color-primary, #1f48c5);
}

/* Keep the overflow image tile desktop-only */
.catalog-product-view #gallery > .snap-pager > button.snap-marker {
    display: none;
}

/* Desktop thumbnail column */
@media (min-width: 1024px) {
    .catalog-product-view #gallery {
        display: flex;
        align-items: flex-start;
    }

    .catalog-product-view #gallery .snap-pager {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        padding-block: 0;
    }

    .catalog-product-view #gallery > .snap-pager {
        order: -1;
        flex-shrink: 0;
        padding-inline-end: 16px;
    }

    .catalog-product-view #gallery .snap-marker,
    .catalog-product-view #gallery .snap-marker[aria-current="true"] {
        width: 90px;
        height: 90px;
        padding: 1px;
        border-radius: 6px;
        background: transparent;
    }

    .catalog-product-view #gallery .snap-marker img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: var(--thumb-ratio, 1 / 1);
        object-fit: cover;
        border-radius: 4px;
    }

    .catalog-product-view #gallery .snap-marker[aria-current="true"] {
        box-shadow: inset 0 0 0 1px var(--color-primary, #1f48c5);
    }

    .catalog-product-view #gallery .snap-marker[data-overflow] {
        display: none;
    }

    .catalog-product-view #gallery > .snap-pager > button.snap-marker {
        display: grid;
    }

    .catalog-product-view #gallery > .snap-pager > button.snap-marker > span {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgb(0 0 0 / 30%);
        color: #fff;
        border-radius: 4px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .catalog-product-view #gallery #gallery-main {
        scroll-behavior: smooth;
    }
}

@media (max-width: 1023px) {
  #gallery > .relative > .absolute.flex.gap-2.bottom-2.end-2 {
    right: 8px;
    bottom: 8px;
    gap: 8px;
  }

  #gallery > .relative > .absolute.flex.gap-2.bottom-2.end-2 > button {
    width: 40px;
    height: 40px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #18372f;
    background: #fff;
    border: 0;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
  }

  #gallery-main [role="tabpanel"] > button > span.absolute.bottom-2 {
    left: 8px;
    right: auto;
    bottom: 8px;
    width: calc(100% - 114px);
    max-width: none;
    box-sizing: border-box;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    background: rgba(229, 231, 235, 0.78);
    border-radius: 4px;
  }
}


/* Product gallery: thumbnails below the main image */
#gallery {
    display: block !important;
}

#gallery > .relative {
    width: 100%;
}

/* Thumbnail container */
#gallery > .snap-pager {
    display: flex !important;
    flex-direction: row !important;
    order: initial !important;
    width: 100%;
    padding: 12px 0 0 !important;
    overflow-x: auto;
    gap: 8px !important;
}

/* Thumbnail row */
#gallery [data-pager] {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    width: max-content;
    gap: 8px !important;
}

/* Individual thumbnails */
#gallery [data-pager] .snap-marker {
    display: block !important;
    flex: 0 0 82px;
    width: 82px !important;
    height: 82px !important;
    padding: 2px !important;
    border-radius: 6px;
    overflow: hidden;
}

/* Make thumbnail images visible on mobile */
#gallery [data-pager] .snap-marker img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
}

/* Highlight the selected thumbnail */
#gallery [data-pager] .snap-marker[aria-current="true"] {
    box-shadow: inset 0 0 0 2px currentColor;
}

/* Slightly smaller thumbnails on phones */
@media (max-width: 767px) {
    #gallery [data-pager] .snap-marker {
        flex-basis: 68px;
        width: 68px !important;
        height: 68px !important;
    }

    #gallery > .snap-pager {
        padding-top: 8px !important;
    }
}

/* Center gallery arrows on the left and right sides of the main image */
#gallery > .relative > div:has([data-prev][aria-label="Previous image"]) {
    inset: 50% 0.5rem auto;
    bottom: auto;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

#gallery [data-prev],
#gallery [data-next] {
    pointer-events: auto;
}


/* Position arrows on the left/right edges, slightly below true centre */
#gallery > .relative > div:has([data-prev][aria-label="Previous image"]) {
    top: 63% !important;
    right: -1rem !important;
    bottom: auto;
    left: -1rem !important;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

#gallery [data-prev],
#gallery [data-next] {
    pointer-events: auto;
}

/* Reduce space between the main image and thumbnails */
#gallery > .snap-pager {
    padding-top: 4px !important;
}

/* Preserve the desktop side-thumbnail layout */
@media (min-width: 1024px) {
    #gallery > .snap-pager {
        padding-top: 0 !important;
    }
}

@media (min-width: 1024px) {
  #gallery button[x-show="hasOverflow"] {
    display: none !important;
  }
}

#product-addtocart-button {
  margin-left: 12px;
}


/* Desktop gallery thumbnails: wrap onto multiple rows */
@media (min-width: 1024px) {

  [aria-label="Gallery"] [x-show="showPager"] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: visible !important;
    order: initial !important;
  }

  [aria-label="Gallery"] [role="tablist"][data-pager] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    align-content: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    scroll-snap-type: none !important;
  }

  [aria-label="Gallery"] [role="tablist"][data-pager] > [role="tab"] {
    display: grid !important;
    flex: 0 0 90px !important;
    width: 90px !important;
    height: 90px !important;
  }

  /* Show thumbnails that the desktop theme normally hides */
  [aria-label="Gallery"] [role="tablist"][data-pager] > [data-overflow] {
    display: grid !important;
  }

  /* Hide the +N thumbnail */
  [aria-label="Gallery"] [x-show="showPager"] > button {
    display: none !important;
  }
}


.page-title.md\:sr-only {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 0 2rem !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  border: 0 !important;
}

@media (min-width: 768px) {
  #maincontent > .container {
    position: relative !important;
  }

 .catalog-product-view #maincontent > .container > .page-title {
    position: absolute !important;
    display: block !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;

    /* Align with the top of the product section */
    top: 24px !important;
    left: calc(50% + 20px) !important;
    width: calc(50% - 44px) !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    text-align: left !important;
    font-size: 30px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    z-index: 10 !important;
  }

  /* Reserve enough room for a two-line product title */
  [aria-label="Product Info"] > .productoptionmain {
    padding-top: 65px !important;
  }
}


/* Large product price */
.productoptionmain .price-box .final-price .price-wrapper,
.productoptionmain .price-box .final-price .price {
  display: inline-block !important;
  font-size: 40px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #000 !important;
  letter-spacing: 0 !important;
}

/* Add balanced spacing around the price */
.productoptionmain .price-box {
  margin-top: 12px !important;
  margin-bottom: 20px !important;
}


body.pl-thm-bradfords.catalog-category-view .page-main{ margin-top: 16px !important; }
body.pl-thm-bradfords.catalog-category-view .page-title{ margin-bottom: 8px !important; }
body.pl-thm-bradfords.catalog-category-view .category-description [data-element]{ margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; min-height: 0 !important; }
body.pl-thm-bradfords.catalog-category-view .category-description figure img{ display: block; margin: 0 auto; max-height: 220px; width: auto !important; max-width: 100%; object-fit: contain; }


@media (min-width: 768px) { body.pl-thm-bradfords.catalog-category-view .category-description img.pagebuilder-mobile-only { display: none !important; } }
@media (max-width: 767px) { body.pl-thm-bradfords.catalog-category-view .category-description img.pagebuilder-mobile-hidden { display: none !important; } }
body.pl-thm-bradfords.catalog-category-view .columns section.py-8{ padding-top: 12px !important; }
@media (max-width: 767px) {
  body.pl-thm-bradfords.catalog-category-view .breadcrumbs ol.items{ padding: 6px 0 !important; }
  body.pl-thm-bradfords.catalog-category-view .page-main{ margin-top: 10px !important; }
  body.pl-thm-bradfords.catalog-category-view .page-title{ font-size: 26px !important; margin-bottom: 4px !important; }
  body.pl-thm-bradfords.catalog-category-view .category-description h3, body.pl-thm-bradfords.catalog-category-view .category-description h3 *, body.pl-thm-bradfords.catalog-category-view .category-description p{ font-size: 14px !important; line-height: 1.45 !important; margin: 0 !important; }
  body.pl-thm-bradfords.catalog-category-view .category-description figure img{ max-height: 120px; }
  body.pl-thm-bradfords.catalog-category-view aside.sidebar .block{ margin: 10px 0 0 !important; padding: 10px 14px !important; }
  body.pl-thm-bradfords.catalog-category-view .columns{ row-gap: 0 !important; }
}

  body.pl-thm-bradfords #termly-code-snippet-support .t-consentPrompt{ left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; width: auto !important; max-width: none !important; max-height: none !important; margin: 0 !important; transform: none !important; padding: 12px 14px calc(10px + env(safe-area-inset-bottom)) !important; }
  body.pl-thm-bradfords #termly-code-snippet-support .t-consentPrompt [data-termly-part="banner-message"]{ font-size: 11.5px !important; line-height: 1.4 !important; margin: 0 0 10px !important; }
  body.pl-thm-bradfords #termly-code-snippet-support .t-consentPrompt [data-termly-part="banner-actions"]{ display: flex !important; flex-direction: row !important; gap: 8px !important; padding: 0 !important; position: static !important; }
  body.pl-thm-bradfords #termly-code-snippet-support .t-consentPrompt [data-termly-part="banner-actions"] button{ flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; max-width: none !important; min-height: 40px !important; margin: 0 !important; padding: 0 6px !important; }

    body.pl-thm-bradfords:has(#termly-code-snippet-support .t-consentPrompt) #min-widget,
  body.pl-thm-bradfords:has(#termly-code-snippet-support .t-consentPrompt) #message-preview,
  body.pl-thm-bradfords:has(#termly-code-snippet-support .t-consentPrompt) #chat-bubble{ display: none !important; }

    body.pl-thm-bradfords.catalog-product-view .productoptionmain > div:has(#product-addtocart-button){ position: sticky; bottom: 0; z-index: 30; flex-direction: row !important; align-items: center !important; gap: 10px; margin: 12px -16px 0 !important; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)) !important; background: #FFFFFF; box-shadow: 0 -6px 18px rgba(0, 0, 0, .12); }
  body.pl-thm-bradfords.catalog-product-view .productoptionmain > div:has(#product-addtocart-button) > div:has(#product-addtocart-button){ margin: 0 !important; flex: 1 1 auto; gap: 8px; }
  body.pl-thm-bradfords.catalog-product-view #product-addtocart-button{ flex: 1 1 auto; justify-content: center; }


    body.pl-thm-bradfords.catalog-product-view #scroll-to-top{ bottom: 92px !important; }

      body.pl-thm-bradfords #gallery .snap-pager.py-0{ flex-wrap: nowrap !important; overflow-x: auto !important; justify-content: flex-start !important; gap: 8px !important; scrollbar-width: none; }
  body.pl-thm-bradfords #gallery .snap-pager.py-0 .snap-marker{ flex: 0 0 56px !important; width: 56px !important; height: 56px !important; }

