/**
 * Flatlanders product detail page
 */

body.flatlanders-product-info-page,
body#productinfoBody.flatlanders-product-info-page {
  background: #fff;
}

body.flatlanders-product-info-page #mainWrapper {
  background: #fff;
  overflow-x: hidden;
}

body.flatlanders-product-info-page #contentMainWrapper.flatlanders-shop-layout {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  box-sizing: border-box;
  background: #fff;
}

body.flatlanders-product-info-page #navCatTabsWrapper,
body.flatlanders-product-info-page #navEZPagesTop {
  display: none;
}

body.flatlanders-product-info-page #navBreadCrumb.flatlanders-breadcrumb {
  display: block !important;
  margin: 0 0 18px;
  padding: 0;
  font-size: 0.9rem;
  color: #000;
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

body.flatlanders-product-info-page #navBreadCrumb.flatlanders-breadcrumb a {
  color: #000;
  text-decoration: none;
  font-weight: 400;
}

body.flatlanders-product-info-page #navBreadCrumb.flatlanders-breadcrumb a:hover {
  color: #333;
  text-decoration: none;
}

body.flatlanders-product-info-page #navBreadCrumb.flatlanders-breadcrumb a,
body.flatlanders-shop-page #navBreadCrumb.flatlanders-breadcrumb a {
  text-decoration: none !important;
}

body.flatlanders-product-info-page #navBreadCrumb.flatlanders-breadcrumb .flatlanders-breadcrumb-current {
  font-weight: 700;
  color: #000;
}

body.flatlanders-product-info-page #productGeneral {
  padding: 0;
  margin: 0;
  width: 100%;
}

/* ----- Prev / next navigation ----- */
body.flatlanders-product-info-page .flatlanders-prod-nav {
  float: none;
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
}

body.flatlanders-product-info-page .flatlanders-prod-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

body.flatlanders-product-info-page .flatlanders-nav-btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff !important;
  text-decoration: none !important;
  border: none;
  line-height: 1.2;
  white-space: nowrap;
}

body.flatlanders-product-info-page .flatlanders-nav-prev,
body.flatlanders-product-info-page .flatlanders-nav-next {
  background: #888;
}

body.flatlanders-product-info-page .flatlanders-nav-prev:hover,
body.flatlanders-product-info-page .flatlanders-nav-next:hover {
  background: #777;
  color: #fff !important;
}

body.flatlanders-product-info-page .flatlanders-nav-return {
  background: #000;
}

body.flatlanders-product-info-page .flatlanders-nav-return:hover {
  background: #222;
  color: #fff !important;
}

body.flatlanders-product-info-page .navNextPrevCounter {
  display: none !important;
}

/* ----- Product image ----- */
body.flatlanders-product-info-page #productName {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 20px;
  padding: 0;
  text-align: left;
  line-height: 1.25;
  font-family: Arial, Helvetica, sans-serif;
}

body.flatlanders-product-info-page #flatlanders-product-image-wrap {
  float: none;
  width: 100%;
  margin: 0 0 28px;
}

body.flatlanders-product-info-page #productMainImage {
  float: none;
  margin: 0;
  width: 100%;
}

body.flatlanders-product-info-page #productMainImage a {
  display: block;
  text-decoration: none;
}

body.flatlanders-product-info-page .flatlanders-main-image,
body.flatlanders-product-info-page #productMainImage img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  display: block;
  margin: 0;
}

body.flatlanders-product-info-page #productAdditionalImages {
  margin-top: 12px;
}

/* ----- Info row ----- */
body.flatlanders-product-info-page #flatlanders-product-info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px 32px;
  margin: 0 0 36px;
}

body.flatlanders-product-info-page #flatlanders-product-info-left {
  flex: 1 1 55%;
  min-width: 240px;
  padding: 0;
}

body.flatlanders-product-info-page #flatlanders-product-info-right {
  flex: 0 1 320px;
  min-width: 260px;
  max-width: 360px;
  margin-left: auto;
  padding: 0;
}

body.flatlanders-product-info-page #productPrices {
  font-size: 1.35rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 14px;
  padding: 0;
  text-align: left;
  line-height: 1.3;
}

body.flatlanders-product-info-page #productPrices .productSpecialPrice,
body.flatlanders-product-info-page #productPrices .productSalePrice,
body.flatlanders-product-info-page #productPrices .productBasePrice {
  font-weight: 700;
  color: #000;
}

body.flatlanders-product-info-page #productPrices .normalprice {
  font-size: 0.85rem;
  font-weight: 400;
  color: #aaa;
  text-decoration: line-through;
  margin-left: 8px;
}

body.flatlanders-product-info-page .flatlanders-product-short-desc {
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #666;
  clear: none;
}

body.flatlanders-product-info-page #productDetailsList {
  display: none;
}

body.flatlanders-product-info-page #productQuestions,
body.flatlanders-product-info-page #freeShippingIcon,
body.flatlanders-product-info-page #productReviewLink,
body.flatlanders-product-info-page .reviewCount,
body.flatlanders-product-info-page #productDateAvailable,
body.flatlanders-product-info-page #productDateAdded,
body.flatlanders-product-info-page #productInfoLink {
  display: none !important;
}

/* ----- Cart controls ----- */
body.flatlanders-product-info-page #cartAdd {
  text-align: left;
  margin: 0;
}

body.flatlanders-product-info-page #cartAdd .max-qty {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 10px;
}

body.flatlanders-product-info-page #productGeneral > .flatlanders-prod-nav:not(:first-of-type) {
  display: none !important;
}

body.flatlanders-product-info-page .flatlanders-in-cart-qty {
  display: none;
}

body.flatlanders-product-info-page .flatlanders-qty-box {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 120px;
  margin: 0 0 12px;
  background: #eee;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

body.flatlanders-product-info-page .flatlanders-qty-btn {
  flex: 0 0 36px;
  width: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: #333;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

body.flatlanders-product-info-page .flatlanders-qty-btn:hover {
  background: #e0e0e0;
}

body.flatlanders-product-info-page .flatlanders-qty-input {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-left: 1px solid #ddd !important;
  border-right: 1px solid #ddd !important;
  background: #eee !important;
  text-align: center;
  font-size: 0.95rem;
  box-sizing: border-box;
}

body.flatlanders-product-info-page .flatlanders-add-to-cart-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 14px 20px;
  border: none;
  background: #8b1a1a !important;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  box-sizing: border-box;
}

body.flatlanders-product-info-page .flatlanders-add-to-cart-btn:hover {
  background: #6d1414 !important;
}

body.flatlanders-product-info-page #cartAdd input[type="image"],
body.flatlanders-product-info-page #cartAdd input[type="submit"]:not(.flatlanders-add-to-cart-btn) {
  display: none !important;
}

body.flatlanders-product-info-page #cart-box {
  background: transparent;
  padding: 0;
  float: none;
  width: auto;
}

/* ----- Also purchased ----- */
body.flatlanders-product-info-page .flatlanders-also-purchased-section {
  margin: 48px 0 0;
  padding: 0;
  width: 100%;
  clear: both;
}

body.flatlanders-product-info-page .flatlanders-also-purchased-heading {
  width: 100%;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  margin: 0;
  box-sizing: border-box;
}

body.flatlanders-product-info-page .flatlanders-also-purchased-title,
body.flatlanders-product-info-page .flatlanders-also-purchased-heading h2 {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff !important;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
}

body.flatlanders-product-info-page .flatlanders-also-purchased-layout {
  display: flex;
  align-items: flex-start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 40px;
  box-sizing: border-box;
}

body.flatlanders-product-info-page .flatlanders-also-purchased-spacer {
  flex: 0 0 auto;
}

body.flatlanders-product-info-page .flatlanders-also-purchased-main {
  flex: 1 1 auto;
  min-width: 0;
}

body.flatlanders-product-info-page .flatlanders-also-purchased-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 24px;
  padding: 32px 0 8px;
  width: 100%;
  box-sizing: border-box;
}

body.flatlanders-product-info-page .flatlanders-also-purchased-grid .flatlanders-product-item,
body.flatlanders-product-info-page .flatlanders-also-purchased-grid .centerBoxContentsAlsoPurch {
  flex: 0 0 calc(25% - 18px) !important;
  max-width: calc(25% - 18px) !important;
  width: calc(25% - 18px) !important;
  box-sizing: border-box;
  padding: 0 !important;
  margin: 0 !important;
}

body.flatlanders-product-info-page .flatlanders-also-purchased-grid .flatlanders-product-card {
  padding: 0 4px 8px;
  height: 100%;
}

body.flatlanders-product-info-page .flatlanders-also-purchased-grid .flatlanders-product-image {
  margin-bottom: 12px;
}

body.flatlanders-product-info-page .flatlanders-also-purchased-grid .flatlanders-product-title {
  margin-bottom: 6px;
  min-height: 2.7em;
}

body.flatlanders-product-info-page .flatlanders-also-purchased-grid .flatlanders-product-desc {
  margin-bottom: 12px;
}

body.flatlanders-product-info-page .flatlanders-also-purchased-grid .flatlanders-product-footer {
  padding-top: 2px;
}

@media (max-width: 991px) {
  body.flatlanders-product-info-page #contentMainWrapper.flatlanders-shop-layout {
    flex-direction: column;
    flex-wrap: wrap;
    padding: 24px 20px 36px;
  }

  body.flatlanders-product-info-page .flatlanders-prod-nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  body.flatlanders-product-info-page .flatlanders-nav-btn {
    text-align: center;
    white-space: normal;
  }

  body.flatlanders-product-info-page #flatlanders-product-info-row {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
  }

  body.flatlanders-product-info-page #flatlanders-product-info-left,
  body.flatlanders-product-info-page #flatlanders-product-info-right {
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
    width: 100%;
    margin-left: 0;
  }

  body.flatlanders-product-info-page .flatlanders-also-purchased-grid .flatlanders-product-item,
  body.flatlanders-product-info-page .flatlanders-also-purchased-grid .centerBoxContentsAlsoPurch {
    flex: 0 0 calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
    width: calc(50% - 12px) !important;
  }
}

@media (max-width: 767px) {
  body.flatlanders-product-info-page #contentMainWrapper.flatlanders-shop-layout {
    padding: 20px 15px 30px;
  }

  body.flatlanders-product-info-page #productName,
  body.flatlanders-product-info-page #productPrices {
    text-align: left !important;
  }

  body.flatlanders-product-info-page #productName {
    font-size: 1.6rem;
  }

  body.flatlanders-product-info-page .flatlanders-add-to-cart-btn {
    max-width: none;
    width: 100%;
  }

  body.flatlanders-product-info-page .flatlanders-also-purchased-spacer {
    display: none;
  }

  body.flatlanders-product-info-page .flatlanders-also-purchased-layout {
    padding: 0 15px 30px;
  }

  body.flatlanders-product-info-page .flatlanders-also-purchased-grid {
    padding-top: 24px;
    gap: 28px 16px;
  }

  body.flatlanders-product-info-page .flatlanders-also-purchased-grid .flatlanders-product-item,
  body.flatlanders-product-info-page .flatlanders-also-purchased-grid .centerBoxContentsAlsoPurch {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}
