/**
 * Toronto Vape 360 — WooCommerce single product page
 * Mobile-first redesign for breadcrumb, product summary, tabs, and related products.
 */

body.single-product.woocommerce-page {
  background: var(--wc-page-bg, #f7f5f0);
  padding-top: 20px;
  padding-bottom: clamp(42px, 8vw, 88px);
}

body.single-product .wc-shop-layout {
  max-width: 1440px;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding-inline: clamp(14px, 4vw, 34px);
  display: block !important;
}

body.single-product #secondary.widget-area,
body.single-product .shop-sidebar {
  display: none !important;
}

body.single-product #primary.content-area {
  width: 100%;
  max-width: 100%;
  margin: 0;
  float: none !important;
}

body.single-product .wc-shop-layout.wc-single-layout #primary.content-area {
  grid-column: auto;
}

body.single-product .woocommerce main#main,
body.single-product .woocommerce #main {
  width: 100%;
}

body.single-product .woocommerce div.product div.images,
body.single-product .woocommerce div.product div.summary {
  float: none !important;
  width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.single-product .woocommerce-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font: var(--body-s);
  margin: 0 0 14px;
  padding: 0;
  color: rgba(13, 13, 13, 0.58);
}

body.single-product .woocommerce-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(13, 13, 13, 0.68);
  text-decoration: none;
  transition: color 0.2s ease;
}

body.single-product .woocommerce-breadcrumb a:first-of-type::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  opacity: 0.88;
  /* Home icon */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23051039' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3Cpath d='M10 21v-6h4v6'/%3E%3C/svg%3E");
}

body.single-product .woocommerce-breadcrumb a:hover {
  color: var(--blue);
}

body.single-product .woocommerce-breadcrumb .breadcrumb-separator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: transparent;
  font-size: 0;
}

body.single-product .woocommerce-breadcrumb .breadcrumb-separator::before {
  content: "";
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  opacity: 0.58;
  /* Chevron right icon */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23051039' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}

body.single-product div.product {
  background: transparent;
  box-shadow: none;
  padding: 0px 15px;
  margin-bottom: clamp(22px, 4vw, 36px);
}

body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product div.summary {
  margin-bottom: 0;
}

body.single-product div.product .woocommerce-product-gallery__wrapper {
  border-radius: 14px;
  overflow: hidden;
}

body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
  border-radius: 10px;
  border: 1px solid rgba(5, 16, 57, 0.1);
}

body.single-product .product_title {
  font: var(--h2);
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin-bottom: 12px;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
  color: var(--brown);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  margin-bottom: 16px;
}

body.single-product div.product .woocommerce-product-details__short-description {
  font: var(--body-m);
  color: rgba(13, 13, 13, 0.82);
  line-height: 1.62;
  margin-bottom: 20px;
  max-width: 62ch;
}

body.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  margin-bottom: 4px;
}

body.single-product div.product form.cart .quantity {
  margin: 0;
}

body.single-product .quantity .qty {
  min-height: 46px;
  border: 1px solid rgba(5, 16, 57, 0.1);
  border-radius: 999px;
  padding: 0 14px;
  min-width: 92px;
}

body.single-product div.product form.cart .single_add_to_cart_button {
  min-height: 50px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--light-blue) 100%);
  color: var(--white);
  font: var(--body-btn);
  text-transform: none;
  letter-spacing: 0.015em;
  padding: 13px 28px;
  box-shadow: 0 6px 16px rgba(4, 157, 191, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.single-product div.product form.cart .single_add_to_cart_button:hover {
  background: linear-gradient(135deg, #0389a6 0%, var(--blue) 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(4, 157, 191, 0.24);
}

body.single-product div.product .product_meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(5, 16, 57, 0.1);
  font: var(--body-s);
  color: rgba(13, 13, 13, 0.7);
}

body.single-product div.product .product_meta .posted_in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--grey);
  font: var(--body-s);
}

body.single-product div.product .product_meta .posted_in::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  opacity: 0.9;
  /* Tag icon using brand color token */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23051039' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41 11 23l-9-9V3h11l9.59 9.59a2 2 0 0 1 0 2.82Z'/%3E%3Cpath d='M7 7h.01'/%3E%3C/svg%3E");
}

body.single-product div.product .product_meta .posted_in > span {
  font: var(--body-text);
  color: var(--grey);
  opacity: 0.88;
}

body.single-product div.product .product_meta .posted_in a {
  color: var(--blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

body.single-product .woocommerce-tabs.wc-tabs-wrapper {
  margin-top: clamp(20px, 3.5vw, 34px);
  border: 1px solid rgba(5, 16, 57, 0.08);
  border-radius: 18px;
  padding: clamp(12px, 2.2vw, 20px);
  background: transparent;
}

body.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  margin: 0 0 16px;
  padding: 6px;
  border: 0;
  border-radius: 50px;
  background: transparent;
  border: 1px solid rgba(5, 16, 57, 0.08);
}

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

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border-color: transparent;
  box-shadow: none;
  padding: 10px 40px;
  background: transparent;
  box-shadow: none;
  border-radius: 50px;
  margin: 0;
  border: none;
}

.woocommerce div.product .woocommerce-tabs .panel {
  margin: 0;
  padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  box-shadow: none;
  border-color: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before{
  display:none;
}

body.single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
  height: 4px;
}

body.single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar-thumb {
  background: rgba(4, 157, 191, 0.45);
  border-radius: 999px;
}

body.single-product .woocommerce-tabs ul.tabs li {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  box-shadow: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
  display: none;
}

body.single-product .woocommerce-tabs ul.tabs li a {
  padding: 9px 16px;
  color: var(--grey);
  font: var(--body-text);
  text-decoration: none;
}

body.single-product .woocommerce-tabs ul.tabs li.active {
  background: var(--white);
  border-color: rgba(5, 16, 57, 0.1);
  box-shadow: 0 6px 16px rgba(5, 16, 57, 0.14);
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
  color: var(--grey);
}

body.single-product .woocommerce-tabs ul.tabs li:not(.active):hover {
  border-color: rgba(4, 157, 191, 0.26);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.55);
}

body.single-product .woocommerce-tabs ul.tabs li:not(.active):hover a {
  color: var(--blue);
}

body.single-product .woocommerce-tabs .panel {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(5, 16, 57, 0.09);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 24px);
  margin-bottom: 0;
}

body.single-product .woocommerce-tabs .panel h2 {
  font: var(--h5);
  color: var(--black);
  margin-bottom: 12px;
  padding: 30px;
}

body.single-product .woocommerce-tabs .panel p,
body.single-product .woocommerce-tabs .panel li {
  font: var(--body-m);
  color: rgba(13, 13, 13, 0.86);
  line-height: 1.7;
}

body.single-product .woocommerce-tabs .panel ul,
body.single-product .woocommerce-tabs .panel ol {
  padding-left: 1.1em;
}

body.single-product .woocommerce-tabs .panel li + li {
  margin-top: 6px;
}

body.single-product .related.products {
  margin-top: clamp(22px, 4.5vw, 42px);
}

body.single-product .related.products > h2 {
  font: var(--h3);
  text-transform: uppercase;
  margin-bottom: 16px;
}

body.single-product .related.products ul.products {
  margin-top: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.6vw, 22px);
  padding: 0 !important;
}

body.single-product .related.products ul.products li.product {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  float: none !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

body.single-product .related.products ul.products li.product .woocommerce-loop-product__link,
body.single-product .related.products ul.products li.product a.woocommerce-LoopProduct-link {
  padding: clamp(10px, 2.2vw, 16px);
}

body.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
  font-size: clamp(12px, 2.9vw, 16px);
  line-height: 1.25;
}

body.single-product .related.products ul.products li.product .price {
  font-size: clamp(14px, 3.4vw, 18px);
  margin-bottom: 10px !important;
}

body.single-product .related.products ul.products li.product .button,
body.single-product .related.products ul.products li.product .add_to_cart_button {
  min-height: 40px;
  padding: 10px 14px !important;
  font-size: 13px !important;
}

body.single-product .related.products,
.woocommerce .related.products > h2, .woocommerce .upsells.products > h2, .woocommerce .cross-sells > h2 {
  margin-top: 0;
}

 

@media (max-width: 991px) {
  body.single-product.woocommerce-page {
    padding-top: 122px;
  }

  body.single-product div.product {
    padding: 14px;
  }

  body.single-product .woocommerce-tabs .panel ul, body.single-product .woocommerce-tabs .panel ol {
    margin: 20px 15px;
  }

  body.single-product .woocommerce-product-gallery {
    margin-bottom: 16px;
  }

  body.single-product .woocommerce div.product .woocommerce-product-gallery__image {
    text-align: center;
  }

  body.single-product .woocommerce div.product .woocommerce-product-gallery__image img {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  body.single-product div.product form.cart .single_add_to_cart_button {
    width: 100%;
    justify-content: center;
  }

  body.single-product form.cart .quantity {
    width: 100%;
  }

  body.single-product .quantity .qty {
    width: 100%;
  }

  body.single-product .woocommerce-tabs.wc-tabs-wrapper {
    padding: 12px;
    border-radius: 14px;
  }

  body.single-product .woocommerce-tabs ul.tabs li a {
    padding: 9px 14px;
    font: var(--body-s);
  }

  body.single-product .related.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {

  body.woocommerce-page #primary.content-area {
    padding-top: 20px;
  }

  body.single-product div.product div.summary {
    margin-top: 20px;
}

}

@media (min-width: 992px) {
  body.single-product div.type-product {
    display: grid;
    grid-template-columns: minmax(0, 50%) minmax(0, 50%);
    gap: clamp(24px, 3vw, 42px);
    align-items: start;
    margin-top: 215px;
  }

  .woocommerce-page div.product div.images {
    width: 70%;
  }

  .woocommerce-page div.product div.summary {
    width: 100%;
  }

  body.single-product div.product > .woocommerce-product-gallery,
  body.single-product div.product > .summary {
    grid-column: auto;
  }

  body.single-product div.product > .woocommerce-tabs,
  body.single-product div.product > .wc-tabs-wrapper,
  body.single-product div.product > .related.products,
  body.single-product div.product > .upsells.products {
    grid-column: 1 / -1;
  }

  /* Gallery / summary column widths: 70% / 30% via grid above; children fill cells */
  body.single-product.woocommerce-page .woocommerce div.product div.images,
  body.single-product.woocommerce-page .woocommerce div.product div.image,
  body.single-product.woocommerce-page .woocommerce div.product div.summary {
    width: 100% !important;
    max-width: 100%;
  }

  body.single-product div.product div.summary {
    padding-top: 6px;
  }

  body.single-product .related.products ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

