/*
 * WooCommerce Custom Stylesheet
 * 
 * This stylesheet contains all custom styles for WooCommerce-related pages on the site.
 * It is intended to style the product pages, shop page, product categories, checkout, 
 * cart pages, and other WooCommerce-related elements separately from the rest of the 
 * theme's styles.
 * 
 * The styles here include:
 * - Layout adjustments for product listings and product details
 * - Custom styles for WooCommerce buttons (e.g., 'Add to Cart')
 * - Pagination and navigation styling for shop and product categories
 * - Cart and checkout page styling
 * - Responsive styles for WooCommerce pages to ensure compatibility across devices
 * 
 * To use this stylesheet, ensure that it is properly enqueued in the theme's functions.php
 * file, and it will only load on WooCommerce pages such as the product page, cart, checkout, etc.
 */

/* WooCommerce Custom Styles */

.main-product-content li a {
  color: #e41936;
  text-decoration: underline;
  display: inline-block;
}
.main-product-content li a:hover {
  text-decoration: none;
}
.main-product-content h3 {
  color: #000;
  margin-top: 2em;
}
/* ------------------------------------------------------------
  * Sidebar Product Categories Styles
  * ------------------------------------------------------------ */
  .shop-sidebar {
    display: none;
  }
  
  @media (min-width: 981px) {
    .content-with-sidebar {
      display: flex;
      gap: 50px;
      max-width: 90%;
      margin: 0 auto;
    }
  
    .shop-sidebar {
      display: block;
      flex: 0 0 300px;
      background: #fff;
      padding: 50px 20px 20px;
      box-sizing: border-box;
      margin-left: 15px;
      margin-bottom: 15px;
    }
    .shop-sidebar h3 {
        background-color: #e41936;
        padding: 10px;
        color: #fff;
    }
  
    .main-shop-content {
      flex: 1;
    }
  
    .custom-product-cat-menu {
      list-style: none;
      padding-left: 0;
      margin: 0 0 30px 0;
      font-family: sans-serif;
    }
  
    .custom-product-cat-menu > li {
      margin-bottom: 8px;
      padding-left: 0;
      position: relative;
      padding: 10px;
      border-bottom: 1px solid #949494;
      list-style-type: none;
      font-size: 1em;
    }
  
    .custom-product-cat-menu li.has-children > a::after {
      content: "+";
      position: absolute;
      right: 15px;
      top: 12px;
      cursor: pointer;
      transition: transform 0.3s ease;
      color: #e41936;
      font-weight: bold;
    }
  
    .custom-product-cat-menu li.has-children.expanded > a::after {
      content: "-";
    }
  
    .custom-product-cat-menu li ul {
      list-style-type: disc;
      margin-left: 20px;
      padding-left: 20px;
      margin-top: 4px;
      display: none;
    }
  
    .custom-product-cat-menu li.has-children.expanded > ul {
      display: block;
    }
  
    .custom-product-cat-menu li ul li {
      list-style-type: disclosure-closed;
      margin: 20px 0;
      color: #e41936;
      font-size: 1em;
    }
  
    .custom-product-cat-menu li a {
        color: #e41936;
      text-decoration: none;
      font-weight: 600;
      transition: color 0.3s ease;
      display: inline-block;
      padding-right: 1.25em;
    }
  
    .custom-product-cat-menu li a:hover {
      text-decoration: underline;
    }
  
    .custom-product-cat-menu .current-cat > a,
    .custom-product-cat-menu .current-cat-parent > a {
      font-weight: bold;
      color: #e41936;
      text-decoration: underline;
    }
  }
  
  @media (min-width: 1600px) {
    .content-with-sidebar {
      max-width: 1500px;
    }
  }
  
  
/* ------------------------------------------------------------
  * Breadcrumbs  Styles
  * ------------------------------------------------------------ */
.woocommerce .woocommerce-breadcrumb {
  font-weight: bold;
}
.woocommerce-breadcrumb .container  {
  font-size: 0.9em;
  color: #000;
  flex-direction: row;
  margin: 25px auto;
  flex-wrap: wrap;
}

.woocommerce-breadcrumb .container a {
  color: #e41936;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-block;
  font-size: 1em;
}

.woocommerce-breadcrumb .container a:hover {
  text-decoration: underline;
}

.woocommerce-breadcrumb .container span {
  color: #000;
  font-weight: bold;
}

/* ------------------------------------------------------------
  * Banner Styles
  * ------------------------------------------------------------ */
 .category-banner {
  position: relative;
  min-height: 35vh;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: #fff;
  overflow: hidden;
  margin-top: 9em;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Background video styling */
.category-banner-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* Overlay for image fallback (not needed over video unless desired) */
.category-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.category-banner-text {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 60%;
  background-color: #e41936;
  padding: 15px;
}

.category-banner-text p {
  font-size: 1.2em;
  margin-top: 10px;
  color: #fff;
}

.category-title-with-thumb img {
  width: 100px;
  background-color: #fff;
}

@media (min-width: 641px) {
  .category-banner {
    margin-top: 6em;
  }
}

@media (min-width: 981px) {
  .category-banner {
    height: 50vh;
  }

  .category-banner-text {
    max-width: 50%;
    padding: 20px;
  }

  .category-banner-subheading {
    font-size: 1.5em;
  }
}


/* ------------------------------------------------------------
  * Category Description Styles
  * ------------------------------------------------------------ */
.category-description-section {
  margin-top: 45px;
}

.category-description-item {
  width: 100%;
  min-height: 11.875em;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 0px 3px;
}

.category-description-item h3 {
  margin-bottom: 0;
  transition: opacity 0.3s ease;
}

.category-description-item img {
  width: 5em;
  height: 5em;
}

.category-description-item .desc-text {
  position: absolute;
  color: #fff;
  line-height: 1.5;
  padding: 20px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 2;
  margin: 0 auto;
}

@media (min-width: 641px) {
  .category-description-section .container {
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: row;
  }

  .category-description-item {
    flex: 1 1 45%;
    width: auto;
    gap: 20px;
  }
}

@media (min-width: 981px) {
  .category-description-section .container {
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .category-description-item {
    flex: 1 1 25%;
    justify-content: center;
    align-items: center;
    min-height: 15em;
    cursor: text;
  }

  .category-description-item:focus-visible {
    background-color: #e41936;
    outline: 2px solid #e41936;
    outline-offset: 4px;
  }

  .category-description-item:focus-visible .icon-wrapper,
  .category-description-item:focus-visible h3 {
    display: none;
  }

  .category-description-item:hover {
    background-color: #e41936;
  }

  .category-description-item:hover .icon-wrapper,
  .category-description-item:hover h3 {
    display: none;
  }

  .category-description-item:hover .desc-text,
  .category-description-item:focus-visible .desc-text {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ------------------------------------------------------------
  * Sub-Category Bucket Styles
  * ------------------------------------------------------------ */
  .subcategory-section {
    text-align: center;
    width: 100%;
}

.subcategory-section .container {
    max-width: 90%;
    padding: 0;
    margin: 0 auto;
}

.subcategory-section .container > h2 {
    text-align: left;
    font-weight: normal;
    margin-bottom: 1em;
}

.subcategory-section .woocommerce-ordering select.orderby {
    font-size: 1em;
    padding: 10px;
    max-width: 200px;
}

.subcategory-grid {
    display: grid;
    grid-gap: 20px;
    margin-top: 2em;
    margin-bottom: 2em;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr; /* default 1 column for mobile */
}

.subcategory-item {
    padding: 1em;
    box-sizing: border-box;
    min-height: 15em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, 0.35) 5px 5px 15px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    margin: 0.5em auto;
    width: 100%;
    background-color: #fff;
    text-align: center;
    text-decoration: none;
}

.subcategory-item:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    z-index: 2;
    background-color: #e41936;
    color: #fff;
    opacity: 1;
}
.subcategory-item:focus {
    outline: 2px solid #000;
    outline-offset: 4px;
}
.subcategory-item img {
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1em;
    max-width: 3.75em;
    height: auto;
}

.subcategory-item:hover h3,
.subcategory-item:hover img{
  display: none;
}
.subcategory-item p {
    display: none;
    margin-top: 1em;
}

.subcategory-item:hover p {
    display: block;
    color: #fff;
    text-decoration: none;
}

.subcategory-item a {
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.subcategory-item a:hover {
    color: #fff;
}

@media (min-width: 641px) {
    .subcategory-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on small tablets */
    }
}

@media (min-width: 981px) {
    .subcategory-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on medium screens */
    }
}

@media (min-width: 1200px) {
    .subcategory-section .container {
        max-width: 90%;
    }

    .subcategory-item {
        margin: 10px auto;
    }
}

@media (min-width: 1600px) {
    .subcategory-section .container {
        max-width: 1500px;
    }

    .subcategory-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on large screens */
    }
}

/* ------------------------------------------------------------
  * Product Listing Bucket Styles
  * ------------------------------------------------------------ */
  .woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* center items below 641px */
    padding: 0;
    list-style: none;
    box-sizing: border-box;
    gap: 20px; /* add some gap */
  }
  .woocommerce ul.products::before {
    display: none;
}
  .woocommerce ul.products li.product {
    flex: 0 0 100%;
    max-width: 300px;
    box-sizing: border-box;
    margin-bottom: 30px;
    box-shadow: rgba(0, 0, 0, 0.35) 2px 2px 10px;
    padding-bottom: 15px;
    text-align: center;
  }
  .woocommerce ul.products li.product a img {
    margin: 1.5em auto;
    width: 75%;
  }
  .woocommerce-page ul.products li.product:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease-in-out;
    z-index: 2;
  }
  .woocommerce ul.products li.last, .woocommerce-page ul.products li.last {
    margin-right: 3.8%;
  }
  .woocommerce-loop-product__title,
  .woocommerce ul.products li.product h3 {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    padding-left: 0.25em !important;
    padding-right: 0.25em !important;
  }
  
  .woocommerce ul.products li.product .button {
    margin: 0.5em;
    background-color: #e41936;
    color: #fff;
    border-radius: 0;
  }
  
  .woocommerce ul.products li.product .button:hover {
    transform: scale(1.15);
    transition: transform 0.2s ease-in-out;
  }
  
  .woocommerce ul.products li.product .price {
    font-size: 1em;
    color: #000;
  }
  
  .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
  }

  
  @media (min-width: 641px) {
    .woocommerce ul.products li.product {
      flex: 0 0 43%; 
      max-width: none;
    }
  }
  
  @media (min-width: 1281px) {
    .woocommerce ul.products {
        justify-content: flex-start;
    }
  }
  
  @media (min-width: 1600px) {
    .woocommerce ul.products li.product {
      flex: 0 0 27%; 
    }
  }
/*-------------------------------------
  WooCommerce Notices & Headings
-------------------------------------*/
.woocommerce-message {
  border-top: 3px solid #e41936;
  border-bottom: 3px solid #e41936;
}
.woocommerce-message::before {
  color: #e41936;
}
.woocommerce-message a.button.wc-forward {
  background-color: #e41936;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.woocommerce-message a.button.wc-forward:hover {
  color: #e41936;
  background-color: #fff;
}
.woocommerce h2 {
  font-weight: normal;
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-size: 1.5em;
}

@media (min-width: 981px) {
  .woocommerce h2 {
    font-size: 2em;
  }
}
/*-------------------------------------
  Product Section
-------------------------------------*/
.woo-product-section {
  margin: 10px auto;
}
.woo-product-section p {
  line-height: 1.35em;
  font-size: 1em;
}
@media (min-width: 981px) {
  .woo-product-section p {
    font-size: 1.15em;
  }
}

/*-------------------------------------
  Single Product Layout
-------------------------------------*/
.single-product div.product .flex-row {
  display: block;
  align-items: flex-start;
}
@media (min-width: 641px),
(min-width: 981px) {
  .single-product div.product .flex-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2em;
  }
}


  .single-product div.product .summary.entry-summary {
    width: 100%
  }
@media (min-width: 641px) {
  .single-product div.product .summary.entry-summary {
    flex: 1 1 50%;
    min-width: 300px;
  }
}
@media (min-width: 981px) {
  .single-product div.product .summary.entry-summary {
    min-width: 320px;
  }
}
@media (min-width: 1281px) {
  .single-product div.product .summary.entry-summary {
    min-width: 400px;
  }
}

/*-------------------------------------
  Custom Product Gallery
-------------------------------------*/
.custom-product-gallery {
  margin: 0 auto 30px;
  max-width: 280px;
  box-shadow: rgba(0, 0, 0, 0.35) 2px 2px 10px;
}
@media (min-width: 481px) {
  .custom-product-gallery { 
    max-width: 440px; 
  }
}
@media (min-width: 641px) {
  .custom-product-gallery { 
    flex: 1 1 45%; 
    max-width: 500px; 
  }
}
@media (min-width: 981px) {
  .custom-product-gallery { 
    max-width: 520px; 
  }
}
@media (min-width: 1281px) {
  .custom-product-gallery { 
    max-width: 600px; 
  }
}
/*-------------------------------------
  Custom Gallery - Main Image
-------------------------------------*/
.custom-main-image {
  max-width: 500px;
  max-height: 500px;
  margin: 1em auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
}
.custom-main-image img.lightbox-image {
  max-height: 500px;
  object-fit: contain;
  user-select: none;
  pointer-events: auto;
}
/* -------------------------------------
   Custom Gallery - Thumbnails
------------------------------------- */
.thumbnails-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  max-width: 100%;
  margin-top: 1em;
}

.custom-thumbnails {
  display: inline-flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 10px;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.custom-thumbnails::-webkit-scrollbar {
  height: 8px;
}

.custom-thumbnails::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.custom-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.thumbnail-button {
  flex: 0 0 auto;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.thumbnail-button img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  user-select: none;
}

.thumbnail-button.active img,
.thumbnail-button:hover img {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 0 8px #999;
}

.thumbnail-button:focus-visible,
.thumb-arrow-left:focus-visible,
.thumb-arrow-right:focus-visible {
  outline: 2px solid #e41936;
  outline-offset: 4px;
  border-radius: 4px;
}


/*-------------------------------------
  Gallery Arrows
-------------------------------------*/
.thumb-arrow-left,
.thumb-arrow-right {
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  font-size: 24px;
  line-height: 1;
  color: #e41936;
  padding: 0 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  transition: color 0.3s ease;
}
.thumb-arrow-left:hover,
.thumb-arrow-right:hover {
  color: #a11328;
}
@media (min-width: 641px) {
  .thumb-arrow-left,
  .thumb-arrow-right {
    font-size: 22px;
    padding: 0 9px;
  }
}
@media (min-width: 981px) {
  .thumb-arrow-left,
  .thumb-arrow-right {
    font-size: 23px;
    padding: 0 10px;
  }
}


/* Product Price Style */
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
  color: #e41936;
  font-size: 1.25em;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Discount Banner Styles */
.discount-code-banner {
  width: 100%;
  background-color: #e41936;
  color: #fff;
  padding: 1em 0;
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
  animation: blink-animation 800ms infinite;
  margin-bottom: 1em;
}

@keyframes blink-animation {
  0%   { opacity: 1; }
  50%  { opacity: 0.2; }
  100% { opacity: 1; }
}

/* Description Module CSS */
.woo-product-section h1.product_title.entry-title {
  margin-bottom: 0.5em;
  font-size: 2em;
  border-bottom: 1px solid #877f7f;
}
.made-in-usa-logo-wrapper {
	text-align: left;
	margin-top: 8px;
	margin-bottom: 8px;
}

img.made-in-usa-logo {
	display: inline-block;
  width: 100%;
  max-width: 8.75em;
}
.woo-product-section .woocommerce-Price-amount {
  color: #e41936;
  font-size: 1.75em;
}
form.cart .single_add_to_cart_button {
  background: #222;
  color: #fff;
}
.variations_form {
  display: flex;
  align-items: center;
  margin-top: 2em;
}
.woocommerce div.product form.cart .variations select {
  padding: 10px 32px 10px 10px;
  width: 100%;
  padding-right: 2.5em;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-repeat: no-repeat;
  background-position: right 0.75em center;
  background-size: 1em;
}
.woocommerce div.product form.cart .button {
  background-color: #e41936;
  margin-left: 1em;
  border-radius: 0;
}
.woocommerce div.product form.cart .button:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
.woo-product-section .quantity .qty {
  font-size: 1em;
}
 .product_meta span {
  font-weight: bold;
  margin: 5px 0;
}
span.sku_wrapper {
  display: block;
}
 .product_meta a, span.sku {
  display: inline-block;
  color: #e41936;
}
 .woocommerce div.product  .product_meta a:hover {
  text-decoration: none;
}
.woocommerce-product-details__short-description {
  margin-bottom: 1.25em;
}
.woocommerce-product-details__short-description li {
  line-height: 1.25em;
  margin-bottom: 5px;
  list-style-type: disc;
  font-size: 1em;
}
@media (min-width: 981px) {
  .woo-product-section h1.product_title.entry-title {
    font-size: 3em;
  }
  .woocommerce-product-details__short-description li {
    font-size: 1.15em;
  }
  .made-in-usa-logo-wrapper {
    text-align: right;
  }
}

/* Product Variations Styles */
.woo-product-section div.product form.cart {
  flex-direction: column;
  align-items: flex-start;
}
.woocommerce div.product form.cart .variations {
  width: 100% !important;
  text-align: left;
}

@media (min-width: 981px) {  
  .woocommerce div.product form.cart .variations {
    width: 50% !important;
  }
}

/* Product Video module */
.product-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5em;
    margin-top: 2em;
}

.product-video-item {
    text-align: center;
}

.product-video-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
    
}

.product-video-thumb:hover {
    transform: scale(1.02);
}

.product-video-title {
    margin-top: 1em;
    font-size: 1em;
    font-weight: 600;
}
.video-thumb-wrapper {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}
.video-thumb-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    background: url('/wp-content/themes/tescometering/assets/images/youtube-icon.svg') no-repeat center center;
    background-size: contain;
    opacity: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-thumb-wrapper:hover::after {
    opacity: 0.8;
}


/* Product Specifications module */
.product-specifications ul li {
  line-height: 1.25em;
  margin-bottom: 5px;
  list-style-type: disc;
  font-size: 1em;
}
.product-specifications ol li {
  list-style: decimal;
}
/* Specs Table css*/
.specs-table {
  width: 100%;
  margin: 2em 0;
  background-color: #fff;
}

.specs-table table,
.specs-table thead,
.specs-table tbody,
.specs-table tr,
.specs-table th,
.specs-table td {
  display: block;
  width: 100%;
}

.specs-table table {
  padding: 0.5em 0;
}
.specs-table thead {
  display: none;
}

.specs-table td {
  padding: 10px 14px;
  position: relative;
  text-align: left;
  max-width: 90%;
  margin: 0 auto;
}

.specs-table td::before {
  content: attr(data-label);
  font-weight: bold;
  color: #e41936;
  display: block;
  margin-bottom: 4px;
}

.specs-table td:first-child::before {
  content: "";
}

.specs-table td:first-child {
  font-weight: bold;
  background-color: #f9f9f9;
}

/* 🟨 Tablet: Restore table layout */
@media (min-width: 641px) {
  .specs-table table {
    display: table;
    border-collapse: collapse;
    width: 100%;
  }

  .specs-table thead {
    display: table-header-group;
  }

  .specs-table tbody {
    display: table-row-group;
  }

  .specs-table tr {
    display: table-row;
  }

  .specs-table th,
  .specs-table td {
    display: table-cell;
    width: auto;
    padding: 10px 14px;
    text-align: left;
    border: 1px solid #ddd;
    white-space: normal;
  }

  .specs-table th {
    background-color: #e41936;
    color: #fff;
    font-weight: bold;
  }

  .specs-table td::before {
    display: none;
  }

  .specs-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
  }

  .specs-table tbody tr:hover {
    background-color: #fbe6e8;
  }
}

@media (min-width: 981px) {
  .product-specifications li {
    font-size: 1.15em;
  }

  .specs-table table {
    table-layout: fixed;
  }
}

/* Product Document Module */
.product-documents {
  margin: 30px 0;
}
.product-documents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

.doc-title {
  color: #000 !important;
  font-weight: bold;
  text-decoration: none !important;
  font-size: 1em;
  flex: 1;
  transition: color 0.2s;
  margin-left: 10px;
}
.doc-title:hover {
  color: #e41936 !important;
  text-decoration: underline !important;
}
.doc-title img {
  margin-right: 15px;;
}

.doc-download-btn {
  background: #e41936;
  color: #fff;
  border: none;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  margin-left: 16px;
  text-decoration: none;
}
.doc-download-btn:hover {
  transform: scale(1.15);
}

.doc-download-btn svg,
.doc-download-btn img {
  display: block;
}

@media (min-width: 641px) {
  .product-documents ul {
    max-width: 80%;
  }
}

@media (min-width: 1600px) {
  .product-documents ul {
    max-width: 60%;
  }
}


/* Related and accessories module */
.related-products {
  margin: 30px auto;
}
.woocommerce a.added_to_cart {
  display: block;
}
.related-products .woocommerce-Price-amount {
  font-size: 1em;
  color: #000;
}
.related-products h2.woocommerce-loop-product__title {
  padding: 0.5em !important;
}
  .related-products ul.products li.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
.related-products ul.products li.product .button {
  margin: 1em;
}
@media (min-width: 481px) {
  .related-products ul.products {
    justify-content: flex-start !important;
    gap: 1em;
  }
  .related-products ul.products li.product {
    flex: 0 0 44%; 
    padding-bottom: 0;
    margin-right: 0;
  }
}
@media (min-width: 981px) {
  .related-products ul.products li.product {
    flex: 0 0 27%; 
  }
}
@media (min-width: 1281px) {
  .related-products ul.products li.product {
    flex: 0 0 22%; 
  }
}

/* Product sales form CSS */
.rfq-pop-up-btn {
	display: inline-block;
	background-color: #e41936;
	color: #fff;
	padding: 0.75em 1.5em;
	text-align: center;
	text-decoration: none;
	font-weight: bold;
  margin: 1em 0;
}
.rfq-pop-up-btn:hover {
  opacity: 0.75;
}
/* RFQ Popup Modal Styles */
.rfq-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.rfq-modal-content {
  background-color: #fff;
  margin: 2% auto;
  padding: 2em;
  max-width: 600px;
  width: 75%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.rfq-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
}

.rfq-modal-close:hover {
  color: #e41936;
}
@media (min-width: 641px) {
  .rfq-modal-content {
    width: 90%;
  }
}

.woocommerce span.onsale {
  background-color: #e41936;
}

