/* Shop Page Layout with Sidebar */
.shop-page-with-sidebar .shop-content-wrapper {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 40px;
  margin-top: 30px;
}

.shop-products {
  min-width: 0;
  order: 2;
}

.shop-sidebar {
  order: 1;
}

/* Sidebar Styles */
.widget-area {
  background: #fff;
}

.widget-area .widget {
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.widget-area .widget:last-child {
  margin-bottom: 0;
}

.widget-area .widget-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #2271b1;
  color: #333;
}

/* Widget Lists */
.widget-area ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-area a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget-area a:hover {
  color: #2271b1;
}

/* Widget Search Form */
.widget-area .search-form {
  display: flex;
  gap: 10px;
}

.widget-area .search-form input[type="search"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.widget-area .search-form button {
  padding: 10px 20px;
  background: #2271b1;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.widget-area .search-form button:hover {
  background: #1a5a8a;
}

/* WooCommerce Widgets */
.widget-area .product_list_widget {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-area .product_list_widget li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.widget-area .product_list_widget img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.widget-area .product-title {
  font-weight: 600;
  font-size: 14px;
}

.widget-area .amount {
  color: #2271b1;
  font-weight: 600;
}

/* Price Filter Widget */
.widget-area .price_slider_wrapper {
  margin-top: 15px;
}

.widget-area .price_slider {
  margin-bottom: 20px;
}

.widget-area .price_slider_amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.widget-area .price_label {
  font-weight: 600;
}

.widget-area .button {
  padding: 8px 16px;
  background: #2271b1;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}

.widget-area .button:hover {
  background: #1a5a8a;
}

/* Remove sidebar from product pages */
body.woocommerce.single-product .sidebar,
body.woocommerce.single-product #sidebar,
body.woocommerce.single-product aside,
body.woocommerce.single-product .widget-area {
  display: none !important;
}

body.woocommerce.single-product .site-content,
body.woocommerce.single-product #content {
  width: 100% !important;
  max-width: 100% !important;
}

/* Override WooCommerce default 4 columns to 6 columns for flex-control-thumbs */
.woocommerce div.product div.images .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.woocommerce div.product div.images .flex-control-thumbs li {
  width: calc(16.666666% - 8.5px) !important; /* Adjust for gap */
  margin: 0 !important;
}

/* Add 6 columns support for WooCommerce gallery */
.woocommerce-product-gallery--columns-6 .flex-control-thumbs li {
  width: 16.666666% !important;
}

.woocommerce-product-gallery--columns-6
  .flex-control-thumbs
  li:nth-child(6n + 1) {
  clear: left;
}

.woocommerce-product-gallery__wrapper {
  position: relative;
}

.woocommerce-product-gallery__image {
  position: relative;
}

.woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.woocommerce-cf-price,
.product-list-price .woocommerce-Price-amount {
  color: #ff6010;
}

.woocommerce.single-product .summary .price del {
  font-size: 20px;
  color: #999;
  margin-right: 10px;
}

.woocommerce.single-product
  .summary
  .woocommerce-product-details__short-description {
  font-size: 13px;
  line-height: 1.6;
  height: 25px;
}

/* Shipping Price Calculator */
.mori-shipping-calculator {
  margin-top: 10px;
  margin-bottom: 22px;
  padding: 15px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
}

.mori-shipping-calculator p {
  margin: 0 0 15px 0;
  color: #333;
}

.mori-form-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0;
  border-radius: 0;
  overflow: hidden;
}

.mori-form-label {
  width: 120px;
  color: white;
  height: 35px;
  text-align: left;
  background: #4169e0;
  line-height: 35px;
  padding-left: 10px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  font-weight: 600;
  flex-shrink: 0;
  font-size: 14px;
}

.mori-form-select {
  width: 100%;
  border: 1px solid #ddd;
  border-left: 0;
  padding: 0 10px;
  font-size: 14px;
  background: #fff;
  color: #333;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L2 5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  transition: border-color 0.3s ease;
  height: 35px;
}

.mori-form-select:focus {
  outline: none;
  border-color: #4169e0;
}

.mori-calculate-btn {
  margin-top: 10px;
  color: white;
  background: #fd7e00;
  border: 1px solid #fd7e00;
  font-size: 16px;
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.mori-calculate-btn:hover {
  background: #e66d00;
  border-color: #e66d00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 126, 0, 0.3);
}

.mori-calculate-btn:active {
  transform: translateY(0);
}

.mori-calculator-result {
  margin-top: 15px;
  padding: 15px;
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
  color: #333;
}

.mori-calculator-result .mori-calc-label {
  font-weight: 500;
  color: #666;
}

.mori-calculator-result .mori-calc-price {
  font-weight: 700;
  color: #d32f2f; /* Red/Alert color for price or match price style */
  font-size: 20px;
  margin-left: 5px;
}

.mori-total-price {
  margin-top: 30px;
  font-weight: 700;
  font-size: 28px;
  color: #333;
}

.mori-total-price span {
  color: #e74c3c;
}

/* Chat Button Styles */
.ht-ctc-sc {
  width: 100%;
}

.ht-ctc-style-8 {
  display: block !important;
}

.woocommerce.single-product .summary .cart {
  display: none !important;
}

.woocommerce.single-product .summary .single_add_to_cart_button {
  display: none !important;
}

.woocommerce.single-product .summary .quantity {
  display: none !important;
}

/* Remove Add to Cart from related products */
.woocommerce.single-product .related .add_to_cart_button,
.woocommerce.single-product
  .related
  .button.product_type_simple.add_to_cart_button,
.woocommerce.single-product .related .woocommerce_loop_add_to_cart_link,
.woocommerce.single-product .related .button,
.woocommerce.single-product .related a.add_to_cart_button {
  display: none !important;
}

/* Product Meta */
.woocommerce.single-product .product_meta {
  font-size: 10px;
}

.woocommerce.single-product .product_meta span.sku {
  margin-bottom: 15px;
}

/* SKU and Category on separate lines */
.woocommerce.single-product .product_meta .sku_wrapper,
.woocommerce.single-product .product_meta .posted_in {
  display: block !important;
}

/* Product Tabs */
.woocommerce-tabs {
  margin-top: 40px;
  clear: both;
}

.woocommerce-tabs ul.tabs li {
  margin-right: 20px;
}

.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: #666;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.woocommerce-tabs .panel {
  padding: 20px 0;
}

/* Custom Swiper Gallery */
.mori-product-thumbnails-slider {
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  padding: 0 30px; /* Space for navigation arrows */
}

/* Prevent FOUC: Enforce flex layout before Swiper init */
.mori-product-thumbnails-slider .swiper-wrapper {
  display: flex;
  gap: 4px; /* Match JS spaceBetween */
}

.mori-product-thumbnails-slider .swiper-slide {
  flex-shrink: 0;
  width: calc((100% - 20px) / 6); /* Approx width for 6 slides */
}

.mori-product-thumbnails-slider .swiper-slide {
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  border-radius: 4px;
  overflow: hidden;
  height: auto;
  opacity: 0.6;
}

.mori-product-thumbnails-slider .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.mori-product-thumbnails-slider .swiper-slide:hover {
  opacity: 1;
  border-color: #2271b1;
}

.mori-product-thumbnails-slider .swiper-slide.swiper-slide-active-custom {
  border-color: #ff6010; /* Use the orange accent color */
  border-width: 3px;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Scrollbar Styles */
.mori-product-thumbnails-slider .swiper-scrollbar {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px; /* Increased height */
  background: rgba(0, 0, 0, 0.15); /* Slightly darker track */
  border-radius: 3px;
}

.mori-product-thumbnails-slider .swiper-scrollbar-drag {
  background: rgba(0, 0, 0, 0.6); /* Darker thumb */
  border-radius: 3px;
}

.mori-product-thumbnails-slider {
  padding-bottom: 12px; /* Space for scrollbar */
}

.product-short-description {
  padding-top: 12px;
  font-size: 13px;
}

/* Desktop Grid Layout */
@media (min-width: 1024px) {
  .mori-product-thumbnails-slider {
    overflow: visible;
    padding: 0;
  }

  .mori-product-thumbnails-slider .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    transform: none !important; /* Reset Swiper transform */
  }

  .mori-product-thumbnails-slider .swiper-slide {
    width: calc(11.11% - 4.5px) !important; /* 9 columns with gap */
    margin-right: 0 !important;
    margin-bottom: 5px;
  }

  .mori-product-thumbnails-slider .swiper-button-next,
  .mori-product-thumbnails-slider .swiper-button-prev,
  .mori-product-thumbnails-slider .swiper-scrollbar {
    display: none;
  }
}

/* Main Image Navigation Arrows */
.woocommerce-product-gallery__image {
  position: relative;
}

.mori-main-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  opacity: 1; /* Always visible */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.mori-main-image-nav:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.mori-main-image-nav.prev {
  left: 10px;
}

.mori-main-image-nav.next {
  right: 10px;
}

.mori-main-image-nav svg {
  width: 20px;
  height: 20px;
  color: #333;
}

/* Hide default thumbnails if they appear */
.flex-control-thumbs {
  display: none !important;
}
/* Video thumbnail button specific styles */
.mori-video-thumbnail-btn {
  padding: 0;
  overflow: hidden;
  position: relative;
  width: 92px;
  height: 52px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.mori-video-thumbnail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mori-video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mori-video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.3);
  pointer-events: none;
  transition: transform 0.3s ease;
}

.mori-video-thumbnail-btn:hover .mori-video-play-icon {
  transform: translate(-50%, -50%) scale(1.5);
}

/* Override SVG fill for visibility */
.mori-video-play-icon circle {
  fill: #ff0000 !important; /* Red */
  fill-opacity: 0.8 !important;
}

.mori-thumbnail-row {
  display: flex;
  gap: 6px;
  position: relative;
  top: auto;
  right: auto;
  z-index: 10;
  margin-top: 10px;
  margin-bottom: 10px;
  justify-content: flex-start;
}

/* Smaller button size for thumbnails */
.mori-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  color: #333;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  height: 45px;
  box-sizing: border-box;
}

.mori-pdf-btn span {
  font-size: 12px;
}

.mori-video-thumbnail-btn svg {
  width: 14px;
  height: 14px;
}

/* Hide WooCommerce zoom icon (magnifying glass) to avoid overlap with condition sheet button */
.woocommerce-product-gallery__image a::after,
.woocommerce-product-gallery__trigger,
.woocommerce-product-gallery__image .woocommerce-product-gallery__trigger {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Custom product title - visible on desktop as full width */
.mori-custom-product-title {
  display: block;
  width: 100%;
  flex: 0 0 100%;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px; /* Reduced margin to accommodate meta below */
}

/* Mobile meta (Year, Mileage) - Hidden on desktop */
.mori-mobile-meta {
  display: none;
}

/* Hide default title inside summary on desktop */
.woocommerce.single-product .summary .product_title {
  display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .woocommerce.single-product .product {
    flex-direction: column;
  }

  .woocommerce.single-product .product .images,
  .woocommerce.single-product .product .summary {
    flex: 1 1 100%;
  }

  /* Show mobile meta on smaller screens */
  .mori-mobile-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 10px;
    color: #333;
    font-weight: 500;
  }

  .mori-mobile-meta span {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
  }
  .mori-custom-product-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  /* Mobile sidebar - stack layout */
  .shop-page-with-sidebar .shop-content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .shop-sidebar {
    order: 1;
  }

  .shop-products {
    order: 2;
  }

  .woocommerce.single-product .summary h1.product_title {
    font-size: 24px;
  }

  .woocommerce-tabs ul.tabs {
    flex-wrap: wrap;
  }

  .woocommerce-tabs ul.tabs li {
    margin-bottom: 10px;
  }

  /* Mobile button positioning */
  .woocommerce-product-gallery__image .mori-thumbnail-row {
    top: 10px;
    right: 10px;
    gap: 5px;
  }

  /* Hide default header title on mobile */
  body.single-product .product-header,
  body.single-product h1.product_title {
    display: none !important;
  }

  /* Show mobile title above gallery */
  .mori-mobile-title {
    display: block;
    position: static;
    color: #222;
    background: transparent;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
  }

  .mori-form-row {
    flex-direction: column;
  }

  .mori-form-label {
    width: 100%;
  }

  .mori-form-select {
    width: 100%;
    border-left: 1px solid #ddd;
  }

  .mori-total-price {
    font-size: 24px;
  }

  .woocommerce-product-gallery-thumbnails,
  .woocommerce-product-gallery-thumbnails-expanded {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  /* Show all thumbnails in expanded section on mobile */
  .woocommerce-product-gallery-thumbnails-expanded.active
    .woocommerce-product-gallery__image {
    display: block;
  }

  /* Also apply to default WooCommerce flex-control-thumbs */
  .woocommerce div.product div.images .flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }

  /* Adjust width for mobile 3 columns */
  .woocommerce div.product div.images .flex-control-thumbs li {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }
}

/* WooCommerce Product Attributes Table */
.woocommerce table.shop_attributes td {
  padding-left: 5px !important;
}

/* ===================================
   Product List View (Catalog Pages)
   =================================== */

/* Reset default WooCommerce grid */
.woocommerce ul.products {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

/* Product List Item */
.product-list-item {
  background: #fff;
  border-top: solid 2px #dedcd7;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-list-content {
  display: grid;
  grid-template-columns: 2fr 4fr 1fr;
  gap: 20px;
  padding: 16px;
  align-items: start;
}
.product-list-content:hover {
  background-color: #fff2e6;
}

.product-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.product-list-image a {
  display: block;
  height: 100%;
}

.product-list-image .onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  z-index: 10;
}

/* Product Details */
.product-list-details {
  flex: 1;
  min-width: 0;
}

.product-list-details .woocommerce-loop-product__title {
  font-size: 20px !important;
  margin: 0 0 15px 0;
  padding-top: 0 !important;
}

.product-list-details .woocommerce-loop-product__title a {
  color: #003a6b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-list-details .woocommerce-loop-product__title a:hover {
  text-decoration: underline !important;
}

.price {
  font-weight: bold !important;
  color: #333 !important;
}

.price .woocommerce-cf-price {
  font-size: 26px;
}

.product-list-price .woocommerce-Price-amount {
  font-size: 24px;
}

.mori-text-after-price-container {
  font-size: 13px;
  margin-bottom: 29px;
}

#inspection-dest-port {
  cursor: pointer;
  color: #2271b1;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

#inspection-dest-port:hover {
  color: #135e96;
}

/* Product Meta Grid */
.product-meta-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.meta-value {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* Product Features */
.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 12px;
  color: #555;
  line-height: 1.2;
}

.feature-key {
  color: #666;
  font-size: 10px;
}

.feature-value {
  color: #333;
  font-weight: 500;
}

/* Product Price Section */
.product-list-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.single-product .price-cf-label {
  font-size: 23px;
}

.price-fob-label {
  margin-left: 5px;
}

.price-fob-label-container {
  font-weight: 400;
  font-size: 15px;
}

.product-list-price .price-label {
  font-size: 13px;
}

.product-inquiry-button {
  display: inline-block;
  padding: 12px 30px;
  background: #ff6b35;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
}

.product-inquiry-button:hover {
  background: #e55a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .product-list-content {
    grid-template-columns: 0.7fr 1fr;
    display: grid;
    row-gap: 0px;
    column-gap: 10px;
    align-items: start;
    grid-auto-flow: dense; /* Ensure image stays in column 1 */
  }

  /* Image Column (Left) */
  .product-list-image {
    grid-column: 1;
    grid-row: 1 / span 6; /* Span enough rows to cover content */
    width: 100%;
    align-self: start; /* Align to top, don't stretch */
  }

  .product-list-image a,
  .product-list-image img {
    height: auto; /* Maintain aspect ratio */
    display: block;
    width: 100%;
  }

  /* Content Column (Right) - Flatten wrappers */
  .product-list-details,
  .product-list-meta {
    display: contents;
  }

  /* Reorder Items in Column 2 */

  /* 1. Title */
  .product-list-details .woocommerce-loop-product__title {
    order: 1;
    margin-bottom: 0px;
    font-size: 14px !important; /* Adjust size for mobile if needed */
    word-break: break-word;
  }

  /* 2. Price */
  .product-list-price {
    order: 2;
    width: 100%;
    align-items: flex-start;
  }

  .product-list-price .price-label {
    font-size: 11px;
    font-weight: 400;
  }

  .price .woocommerce-cf-price {
    font-size: 26px;
  }

  .product-list-price .woocommerce-Price-amount {
    font-size: 18px;
  }

  /* 3. Attributes (Mileage & Year) */
  .product-features {
    order: 3;
  }

  /* 4. Short Description */
  .product-short-description {
    order: 4;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-all;
    padding-top: 14px;
  }

  /* Hide original grid areas */
  .product-meta-grid {
    display: none;
  }

  /* Limit attributes on mobile (Show only Mileage and Year) */
  .feature-tag {
    display: none;
  }

  .feature-tag-mileage,
  .feature-tag-pa_registration-year {
    display: inline-flex;
  }

  /* Hide Chat Button on Mobile in Product List */
  .mori-product-list-chat {
    display: none;
  }
}

/* Mobile Breadcrumb - Show only on mobile at bottom of page */
/* Desktop: hide mobile breadcrumb, show default breadcrumb */
.mori-mobile-breadcrumb {
  display: none;
}

/* Product Inquiry Form Styling */
.mori-calc-inquiry-wrapper {
  max-width: 600px;
  margin: 84px auto;
  text-align: center;
}

.mori-product-inquiry-container {
  padding: 0px 15px;
}

.mori-product-inquiry-container form {
  display: inline-block;
  width: 100%;
}

.mori-product-inquiry-container input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0px auto 0;
  padding: 12px 30px;
  background: #ff6b35;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mori-product-inquiry-container input[type="submit"]:hover {
  background: #e55a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.wpcf7-form p {
  margin: 12px 0px;
}

/* CF7 Labels and Fields */
.mori-calc-inquiry-wrapper label {
  text-align: left;
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.mori-calc-inquiry-wrapper input:not([type="submit"]),
.mori-calc-inquiry-wrapper textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #ccc;
  cursor: text; /* Explicit text cursor */
}

/* Highlight border on hover/focus to indicate interactivity */
.mori-calc-inquiry-wrapper input:not([type="submit"]):hover,
.mori-calc-inquiry-wrapper textarea:hover,
.mori-calc-inquiry-wrapper input:not([type="submit"]):focus,
.mori-calc-inquiry-wrapper textarea:focus {
  border-color: #ff6b35;
  outline: none;
}

/* Action Buttons (WhatsApp + Email) */
.mori-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  align-items: stretch; /* Full width or consistent stacking */
}

/* Ensure spacing for the shortcode button if needed */
.mori-action-buttons .ht-ctc-chat {
  margin: 0 !important;
}

.mori-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #f0f0f1; /* Neutral background or match brand secondary */
  color: #333;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid #ccc;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  height: 54px; /* Try to match height */
  line-height: 1;
}

.mori-email-btn:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}

.mori-email-btn span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Add icon via before pseudo-element */
.mori-email-btn span::before {
  content: "\2709"; /* Envelope unicode */
  font-size: 28px;
  margin-right: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Hide default top breadcrumb on mobile */
  .woocommerce-breadcrumb {
    display: none;
  }

  /* Show mobile breadcrumb at bottom */
  .mori-mobile-breadcrumb {
    display: block;
    margin-top: 30px;
  }

  .mori-mobile-breadcrumb .woocommerce-breadcrumb {
    display: block !important;
    font-size: 12px;
    color: #666;
    margin: 0;
  }

  .mori-mobile-breadcrumb .woocommerce-breadcrumb a {
    color: #2271b1;
    text-decoration: none;
  }

  .mori-mobile-breadcrumb .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
  }
}
@media (min-width: 769px) {
  .woocommerce #content div.product div.images,
  .woocommerce div.product div.images,
  .woocommerce-page #content div.product div.images,
  .woocommerce-page div.product div.images {
    float: left;
    width: 56% !important;
  }
  .woocommerce #content div.product div.summary,
  .woocommerce div.product div.summary,
  .woocommerce-page #content div.product div.summary,
  .woocommerce-page div.product div.summary {
    float: right;
    width: 40% !important;
  }
}
