/*
Theme Name: JJ Needles Theme
Author: Chris Lomas
Description: Custom theme for Entaco Medical
Version: 1.0
*/

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-weight: 700;
}

h1 {
  margin-bottom: 0;
}

h2 {
  color: #000000;
  font-size: 36px;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

h3 {
  font-size: 14px;
  font-weight: 700;
}

p {
  font-size: 18px;
  margin: 0 0 1rem 0;
}

.container, body>div.woocommerce, #primary {
  max-width: 1400px;
  margin: 0 auto;
  width: 90%;
}

.youarehere {
  color: #FFFFFF;
  font-size: 0.9rem;
}
.youarehere a {
  color: #FFFFFF;
  font-size: 0.9rem;
  text-decoration: none;
}

header .container {
  display: flex;
}

header .youarehere .breadcrumb {
  background: #f9d135;
  padding: 0.6rem 0 0.6rem 10px;
  width: 80%;
}

header .spacer {
  background: #f9d135;
  width: 30%;
}

header .nav-container {
  background-color: #000000;
  padding: 1.8rem 0 0;
  width: 70%;
}

header .corner-container {
  background-image: url('/wp-content/themes/jjneedles/images/top-corner.png');
  background-size: 100%;
  background-repeat: no-repeat;
  width: 10%;
}

header .logo-container {
  background: #f9d135;
  width: 20%;
}

header .logo-container img.logo {
  max-width: 100%;
  height: auto;
  float: right;
  padding: 0 20px 20px;
}

.primary-menu {
  padding-inline-start: 0;
  display: flex;
}

.primary-menu>li {
  display: inline-block;
  position: relative;
}

.primary-menu>li a {
  color: #FFFFFF;
  border-radius: 5px;
  font-size: 14px;
  margin-right: 8px;
  padding: 10px;
}

.primary-menu>li.menu-item-has-children a {
  border-radius: 5px 5px 0 0;
  padding: 10px 30px 5px 10px;
  text-wrap: nowrap;
}

.primary-menu>.menu-item-has-children>a::after {
  background-image: url('/wp-content/themes/jjneedles/images/down-carat.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  content: "";
  display: inline-block;
  height: 16px;
  margin-left:5px;
  width: 16px;
}
.primary-menu>.menu-item-has-children:hover a::after {
  background: none;
}

.primary-menu>li .sub-menu {
  display: none;
  position: absolute;
  top: 24px;
  background: #ffffff;
  padding: 1rem;
  z-index: 1000;
  list-style: none;
}

.primary-menu>li>a {
  color: #FFFFFF;
  text-decoration: none;
}

.primary-menu>li:hover>a {
  background-color: #f9d135;
  color: #000000;
}

.primary-menu>li:hover .sub-menu {
  background-color: #f2f2f2;
  border-radius: 0 5px 5px 5px;
  overflow: hidden;
  display: block;
  padding: 0;
  min-width: 250px;
  border: solid 1px #000000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.primary-menu>li:hover .sub-menu>li {
  border-top: solid 1px #000000;
  margin-top: 0;
  padding: 1px 0 1px 10px;
}
.primary-menu>li:hover .sub-menu>li:first-of-type {
  border-top: none;
}
.primary-menu>li:hover .sub-menu>li:nth-of-type(odd) {
  background: #FFFFFF;
}

.primary-menu>li:hover>.sub-menu li a {
  color: #000000;
  text-decoration: none;
  padding: 1px;
  font-size: 12px;
  display: block;
  width: 100%;
}

.woocommerce-breadcrumb, .woocommerce-result-count, .woocommerce-ordering {
  display: none;
}

.hero-section {
  margin: 0 auto;
}

.home .hero-section .wp-block-video {
  width: 100%;
  position: relative;
  display: inline-block; /* or block, depending on layout */
}

.home .hero-section .wp-block-video figcaption {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0; /* reset any default margins */
  color: #f9d135; /* optional for visibility */
  text-align: center;
  font-size: 48px;
  pointer-events: none; /* optional: lets clicks go through to the video */
}

.content-wrapper {
  width: 100%;
}

.content-wrapper-single {
  width: 100%;
}
.home .content-wrapper-single {
  background: #000000;
  padding-bottom: 30px;
}

footer .container {
  background-image: url('/wp-content/themes/jjneedles/images/footer-background.png');
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center bottom;
}

footer .container.border {
  background: none;
  border-top: dashed 3px #f9d135;
  width: 100%;
  margin-top: 30px;
  padding: 10px 0;
}
footer .container.gutter {
  background-image: none;
  background-color: #f1f1f1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  padding-top: 20px;
}

.gutter-menu-class ul {
  padding-left: 0;
  margin: 0;
}
.gutter {
  font-size: 12px;
}
.gutter b {
  margin: 0;
  padding: 10px 0 0 0;
}

.gutter-menu1,
.gutter-menu2,
.gutter-menu3 {
  grid-column: span 2;
}

.gutter-menu1 li,
.gutter-menu2 li,
.gutter-menu3 li {
  list-style: none;
  font-size: 12px;
}

.gutter-menu1 li a,
.gutter-menu2 li a,
.gutter-menu3 li a {
  text-decoration: none;
  color: #000000;
}

.gutter-logo1, .gutter-logo2 {
  grid-column: span 3;
  text-align: right;
}
.gutter-logo2 {
  text-align: left;
}

.gutter-logo1 img, .gutter-logo2 img {
  max-height: 65px;
  width: auto;
  max-width: 300px;
  margin-top: 30px;
}

.home footer .container.border {
  background: #000000;
  margin-top: 0;
}

footer .container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding: 10px 0 40px 0;
}

footer .container>div {
  padding: 0 2rem;
  border-right: solid 1px #f9d135;
}

footer .container>div:first-of-type , footer .container>div:last-of-type, footer .container.gutter>div {
  border-right: none;
}

footer img, .woocommerce footer img, .woocommerce footer img {
  max-width: 150px;
}

footer .container>.footer-info {
  width: 40%;
}

footer .container>.footer-info, footer .container>.footer-info-mobile {
  padding: 0;
  position: relative;
}

footer .container>.footer-info-mobile {
  display: none;
}

footer .footer-info-text {
  margin: 20px 0 -30px 10px;
  width: 100%;
}

footer .footer-info p, footer .footer-info-mobile p {
  font-size: 12px;
  color: #000000;
  margin-top: 0;
  margin-bottom: 5px;
}

footer .footer-menu {
  padding-left: 0;
  list-style: none;
}

footer .container>div.footer-contact {
  padding-left: 1rem;
  padding-right: 1rem;
}

footer .footer-contact p, footer .footer-sitemap li a {
  font-size: 11px;
  margin: 2px 0;
  text-decoration: none;
  color: #FFFFFF;
}

footer .footer-contact p:first-of-type {
  margin-top: 0;
}
footer .footer-contact b {
  color: #f9d135;
  margin-top: 10px;
}


.wpforms-container .wpforms-form * {
  text-align: left;
}

.mobile-show {
  display: none;
}

/* Basic reset */
.mobile-nav {
  display: none; /* hidden by default on mobile */
  background-color: #DDDDDD;
  padding: 20px;
  width: 90%;
  position: absolute;
  margin-top: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 9;
}

.menu-toggle {
  display: none !important; /* hidden by default */
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  display: inline-block;
  z-index: 1000; /* stays on top */
  margin-top: -10px;
}

.menu-toggle span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: #FFF;
  left: 0;
  transition: 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

/* Active state = cross */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Show nav when active */
.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
}
.mobile-nav li {
  border-top: dotted #a7aaad;
  margin: 10px;
  padding-top: 5px;
}
.mobile-nav li a {
  text-decoration: none;
  color: #000000;
}

.mobile-menu {
  padding-left: 0;
}

.mobile-menu li:before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 0;
  background-image: url('/wp-content/themes/jjneedles/images/right-carat.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left top;
}

.info-boxes {
  display: grid;
  gap: 1rem; /* space between boxes */
  grid-template-columns: repeat(6, 1fr); /* 6 columns on desktop */
  margin-top: 20px;
  padding: 0 10px;
}

/* Optional: styling for boxes */
.info-box {
  background: #f3f3f3;
  padding: 0;
  text-align: center;
  border-radius: 8px 8px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden; /* this clips the h2 inside the rounded shape */
}

.info-box h2 {
  margin: 0;
  padding: 0;
  width: calc(100% - 10px);
}

.info-box h2 a {
  text-decoration: none;
  color: #000000;
  font-size: 12px;
  width: 100% ;
  display: block;
  padding: 5px;
  text-align: center;
  background-color: #f9d135;
  border: solid 1px #FFFFFF;
}

.info-box img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* Shop Styles */

.woocommerce #content div.product div.images, .woocommerce div.product div.images, .woocommerce-page #content div.product div.images, .woocommerce-page div.product div.images, .woocommerce #content div.product div.summary, .woocommerce div.product div.summary,
.woocommerce-page #content div.product div.summary, .woocommerce-page div.product div.summary {
  width: 49%;
}

li.product {
  position: relative;
  border-radius: 10px;
  border: solid 1px #000000;
  overflow: hidden;
  box-sizing: border-box;
}

li.product img {
  margin-bottom: 0 !important;
  margin-top: 29px !important;
}

li.product h2 {
  position: absolute;
  top: 0px;
  width: 100%;
  background-color: #f9d135;
  text-align: center;
  font-size: 13px !important;
  font-weight: normal;
}

li.product h2 .count {
  display: none;
}

li.product .price, li.product .button {
  display: none !important;
}

.posted_in a {
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  color: #000000;
}

.woocommerce div.product .product_title {
  margin-bottom: 0;
}

.sku_wrapper {
  font-size: 14px;
}

.sku_wrapper .sku {
  font-weight: bold;
}

.woocommerce-product-gallery, .product .summary, #wpgs-gallery {
  margin-top: 10px;
}

.woocommerce div.product div.images div.woocommerce-product-gallery__wrapper>div.woocommerce-product-gallery__image:first-of-type {
    width: 78%;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    border: solid 1px #000000;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-thumb-wrapper {
    width: 17%;
    text-align: right;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    float: right;
}
.gallery-thumb-wrapper img {
    border: solid 1px #000000;
    margin-bottom: 10px;
    border-radius: 3px;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image:nth-child(n+2) {
  width: 100%;
}

.woocommerce #content div.product .woocommerce-tabs, .woocommerce div.product .woocommerce-tabs, .woocommerce-page #content div.product .woocommerce-tabs, .woocommerce-page div.product .woocommerce-tabs {
  clear: none;
}

.wc-tabs-wrapper {
  width: 75%;
  float: right;
  box-sizing: border-box;
}

.wc-tabs-wrapper p {
  font-size: 12px;
}
.wc-tabs-wrapper h2:first-of-type {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  margin-bottom: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: none;
}

.woocommerce div.product .woocommerce-tabs .panel {
  border: solid 1px #000000;
  border-radius: 8px;
  padding: 10px;
  margin: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs::after {
  content: "";
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active::before, .woocommerce div.product .woocommerce-tabs ul.tabs li.active::after {
  box-shadow: none;
  border: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background-color: #f9d135;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-size: 12px;
  text-transform: none;
  padding: 10px 15px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 5px 10px;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
  font-size: 28px;
  font-weight: bold;
  padding: 10px;
  border-radius: 8px;
  background-color: #f9d135;
  display: inline-block;
  color: #000000;
  margin: 0 0 10px 0;
  box-sizing: border-box;
  text-align: center;
  width: 20%;
}

.woocommerce div.product form.cart {
  width: 20%;
  box-sizing: border-box;
}

a.reset_variations {
  display: none !important;
}

span.price-tax {
  display: block;
  font-size: 12px;
  text-align: center;
  font-weight: normal;
}

table.variations th {
  text-align: left;
  font-weight: normal;
}
table.variations td.value {
  text-align: right;
}
select#pa_size {
  background-color: #f9d135;
  width: auto;
  border-radius: 5px;
  padding: 3px 4px;
  margin-right: 0;
}
.woocommerce .quantity .qty {
  background: #000000;
  color: #f9d135;
  border-radius: 5px;
}
.woocommerce div.product form.cart .variations {
  margin-bottom: 0;
}
.woocommerce div.product form.cart .variations label {
  font-weight: normal;
  font-size: 12px;
}
.woocommerce div.product form.cart .button {
  background-color: #f9d135;
  color: #000000;
  width: 100%;
  padding: 5px;
  font-size: 12px;
  text-align: left;
  margin-top: 6px;
  box-sizing: border-box;
}
.woocommerce div.product form.cart .single_checkout_button {
  background-color: #000000;
  color: #f9d135;
}
#wpgs-gallery.vertical.wcgs-woocommerce-product-gallery .wcgs-carousel {
  border: solid 1px #000000;
  overflow: hidden;
  border-radius: 5px;
}

section.up-sells, section.rvpw-recently-view, section.related {
  clear: both;
  border-top: dashed 3px #DDDDDD;
}

section.up-sells>h2, section.rvpw-recently-view>h2, section.related>h2 {
  margin-top: -3px;
  margin-bottom: 15px;
  background-color: #999999;
  color: #FFFFFF;
  padding: 10px;
  font-size: 12px;
  width: auto;
  display: inline-block;
  border-radius: 0 0 10px 10px;
}
section.rvpw-recently-view>h2 {
  background-color: #BBBBBB;
  color: #000000;
}

.woocommerce section.up-sells ul.products li.product, .woocommerce-page section.rvpw-recently-view ul.products li.product, .woocommerce-page section.related ul.products li.product {
  margin-bottom: 10px !important;
}

/* FAQs */

.page-template-page-faqs .content-wrapper {
  width: 80%;
}

.faqs-list {
  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;
  column-gap: 40px;
  -webkit-column-gap: 40px;
  -moz-column-gap: 40px;
}

.faq-item {
  margin-bottom: 2rem;
}

h3.faq-question {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 0;
  background: #f9d135;
  color: #000000;
  padding: 3px 10px 3px 0px;
  display: inline-block;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  vertical-align: top;
}

h3.faq-question::before {
  background-color: #000000;
  color: #FFFFFF;
  content: "Q";
  height: 12px;
  margin-right: 5px;
  width: 16px;
  overflow: auto;
  text-align: center;
  padding: 4px;
}

.faq-answer {
  margin-top: 0;
  font-size: 12px;
  line-height: 18px;
  background-color: #000000;
  color: #FFFFFF;
  padding: 3px 10px 6px 24px;
  border-radius: 0 5px 5px 5px;
  display: inline-block;
}
.faq-answer::before {
  background-color: #000000;
  color: #f9d135;
  content: "A";
  font-weight: bold;
  height: 12px;
  margin-right: 2px;
  margin-left: -24px;
  width: 16px;
  overflow: auto;
  text-align: center;
  padding: 4px 4px 0 4px;
}
.faq-answer p {
  font-size: 12px;
  display: inline;
}

.faq-answer a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: bold;
}


/* About Us */

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 40px;
}

.about-columns>div {
    border-right: dashed 2px #f9d135;
    padding-right: 40px;
}
.about-columns>div:last-of-type {
    border-right: none;
    padding-right: 0;
}


/* Tablet */
@media (max-width: 1200px) {
  .primary-menu>li.menu-item-has-children a {
    padding: 0 20px 0 6px;
  }
  .primary-menu>li a {
    margin: 0;
  }
  .info-boxes {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* Mobile */
@media (max-width: 768px) {
  /* stack columns, simplify nav */
  header .container {
    width: 100%;
  }
  header .nav-container {
    width: 50%;
  }
  header .corner-container {
    width: 20%;
  }
  header .logo-container {
    width: 30%;
  }

  .main-nav {
    display: none; /* hide main nav */
  }

  .menu-toggle {
    display: block !important;
    margin-left: 5%;
  }

  .info-boxes {
    grid-template-columns: repeat(2, 1fr);
  }

  footer .container {
    display: grid;
    padding-bottom: 0;
    width: 100%;
  }
  footer .container:nth-of-type(2) {
    background-image: none;
  }
  footer .container>div {
    padding: 1rem;
  }
  footer .container>.footer-info-mobile {
    display: block;
    background: #f9d135;
  }
  footer .container>.footer-contact {
    display: block;
    background: #000000;
  }
  footer .container>.footer-info {
    display: none;
  }
  footer .footer-info-text {
    box-sizing: border-box;
    width: 100%;
    padding: 1rem;
    margin: 0;
  }
  footer .container>div {
    border-right: none;
    border-bottom: solid 1px #f9d135;
  }
  footer .footer-logo {
    display: none;
  }
  .footer-site-map {
    padding: 5%;
  }
  .footer-sitemap img {
    float: right;
    margin-top: 20px;
  }
  footer .container.gutter {
    display: block;
  }
  .mobile-show {
    display: block;
  }
  .gutter-logo1, .gutter-logo2 {
    text-align: center;
  }

  .page-template-page-faqs .content-wrapper {
    width: 100%;
  }

  .woocommerce #content div.product div.images, .woocommerce div.product div.images, .woocommerce-page #content div.product div.images, .woocommerce-page div.product div.images, .woocommerce #content div.product div.summary, .woocommerce div.product div.summary, .woocommerce-page #content div.product div.summary, .woocommerce-page div.product div.summary {
    width: 100%;
    clear: both;
  }
  .woocommerce #content div.product .woocommerce-tabs, .woocommerce div.product .woocommerce-tabs, .woocommerce-page #content div.product .woocommerce-tabs, .woocommerce-page div.product .woocommerce-tabs {
    width: 100%;
    margin-bottom: 20px;
  }
  .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    width: auto;
  }
  .woocommerce div.product form.cart {
    width: 50%;
    float: right;
  }
}
