/* ZTire Custom Single Product Page Styles */

.ztire-product-layout-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  background: #fff;
}

.ztire-product-main-container {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 40px;
  margin-bottom: 40px;
}

/* Left Column - Images & Specifications */
.ztire-left-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Product Images */
.ztire-left-column .woocommerce-product-gallery {
  position: relative;
  margin-bottom: 0;
}

.ztire-left-column .woocommerce-product-gallery__image {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  position: relative;
  min-height: 400px; /* Prevent layout shift */
}

/* Optimize image loading */
.ztire-left-column .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Lazy loading placeholder */
.ztire-left-column .woocommerce-product-gallery__image img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ztire-left-column
  .woocommerce-product-gallery__image
  img[loading="lazy"].loaded,
.ztire-left-column
  .woocommerce-product-gallery__image
  img[loading="lazy"]:not([loading]) {
  opacity: 1;
}

/* Optimize gallery thumbnails */
.woocommerce-product-gallery__wrapper {
  transition: none; /* Disable unnecessary transitions */
}

.woocommerce-product-gallery ol.flex-control-thumbs {
  margin-top: 15px;
}

.woocommerce-product-gallery ol.flex-control-thumbs li {
  width: 80px !important;
  height: 80px !important;
  margin-right: 10px;
}

.woocommerce-product-gallery ol.flex-control-thumbs li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1 !important; /* Override WooCommerce default */
}

/* Sale badge */
.ztire-left-column .onsale {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #ef233c;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(239, 35, 60, 0.3);
}

/* Specifications Table */
.ztire-product-specifications {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 25px;
}

.spec-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #ef233c;
}

.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.spec-table tr {
  border-bottom: 1px solid #e0e0e0;
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table tr:first-child td:first-child {
  border-top-left-radius: 6px;
}

.spec-table tr:first-child td:last-child {
  border-top-right-radius: 6px;
}

.spec-table tr:last-child td:first-child {
  border-bottom-left-radius: 6px;
}

.spec-table tr:last-child td:last-child {
  border-bottom-right-radius: 6px;
}

.spec-table td {
  padding: 12px 15px;
  font-size: 14px;
  line-height: 1.6;
  border-right: 1px solid #e0e0e0;
  background: #fff;
}

.spec-table td:last-child {
  border-right: none;
}

.spec-label {
  color: #000;
  font-weight: 700;
  width: 50%;
}

.spec-value {
  color: #1a1a1a;
  font-weight: 400;
  text-align: right;
}

/* Spec Link Styles (for tire line, wheel size, tire size) */
.spec-value .spec-link,
.spec-value .spec-link-style {
  color: #ef233c;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.spec-value .spec-link:hover {
  color: #d90429;
  text-decoration: underline;
}

/* Brand Link Styles */
.spec-value .brand-link,
.meta-brand .brand-link {
  color: #000;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
}

.spec-value .brand-link:hover,
.meta-brand .brand-link:hover {
  color: #ef233c;
  text-decoration: underline;
}

/* Right Column - Product Info */
.ztire-right-column {
  padding: 20px 0;
}

.ztire-summary-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ztire-left-column div.images,
.ztire-summary-inner div.summary {
  width: 100% !important;
}

.ztire-product-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

/* Stock Badge */
.ztire-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
}

.ztire-stock-badge.in-stock {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.ztire-stock-badge.out-of-stock {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.ztire-stock-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ztire-price-from-label {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

.ztire-price-from-label .price-amount {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 17px;
}

/* Product Features List */
.ztire-product-features {
  list-style: none;
  padding: 0;
}

.ztire-product-features li {
  font-size: 14px;
  color: #333;
  padding: 5px 0 5px 20px;
  position: relative;
}

.ztire-product-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #666;
  font-weight: bold;
  font-size: 16px;
}

/* Purchase Type Selector */
.ztire-purchase-type-wrapper {
  margin: 20px 0;
}

.purchase-type-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.ztire-purchase-type-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ztire-purchase-type-buttons {
  display: flex;
  gap: 12px;
  flex: 1;
}

.purchase-type-btn {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.purchase-type-btn:hover {
  border-color: #999;
  background: #f9f9f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.purchase-type-btn.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ztire-clear-selection {
  font-size: 13px;
  color: #999;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s;
  display: none;
}

.ztire-clear-selection.show {
  display: inline-block;
}

.ztire-clear-selection:hover {
  color: #ef233c;
}

.ztire-promotion-text {
  font-size: 14px;
  color: #333;
  font-weight: 400;
  margin-bottom: 20px;
}

/* Price Display */
.ztire-price-display {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 10px 0 15px 0;
}

.regular-price-strike {
  font-size: 20px;
  color: #bbb;
  text-decoration: line-through;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.sale-price-large {
  font-size: 24px;
  font-weight: 600;
  color: #ef233c;
  letter-spacing: 0.5px;
  line-height: 1;
  position: relative;
}

/* Quantity and Cart */
.ztire-quantity-cart-wrapper {
  display: flex;
  gap: 15px;
  align-items: stretch;
}

.ztire-quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  width: 140px;
  flex-shrink: 0;
  background: #fff;
}

.qty-btn {
  width: 42px;
  height: 52px;
  border: none;
  background: #f8f8f8;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  color: #ef233c;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover:not(:disabled) {
  background: #ffe5e5;
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qty-input {
  flex: 1;
  height: 52px;
  border: none;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  background: #fff;
  color: #1a1a1a;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input:focus {
  outline: none;
  background: #fafafa;
}

.qty-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ztire-cart-buttons {
  display: flex;
  gap: 15px;
  flex: 1;
}

.ztire-add-to-cart-btn,
.ztire-buy-now-btn {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: none;
}

.ztire-add-to-cart-btn {
  background: #28a745;
  color: #fff;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.ztire-add-to-cart-btn:hover:not(:disabled) {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.ztire-add-to-cart-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ztire-buy-now-btn {
  background: #6c757d;
  color: #fff;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.ztire-buy-now-btn:hover:not(:disabled) {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.ztire-buy-now-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Consultation Section */
.ztire-consultation-section {
  padding: 20px 0;
}

.consultation-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
}

.consultation-buttons {
  display: flex;
  gap: 15px;
}

.consult-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zalo-btn {
  background: #0068ff;
  color: #fff;
}

.zalo-btn:hover {
  background: #0052cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.4);
  color: #fff;
}

.zalo-oa-btn {
  background: #0091ff;
  color: #fff;
}

.zalo-oa-btn:hover {
  background: #0077d9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 145, 255, 0.4);
  color: #fff;
}

.phone-btn {
  background: #25d366;
  color: #fff;
}

.phone-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  color: #fff;
}

/* Key Benefits */
.ztire-key-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 25px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.benefit-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  transition: all 0.3s;
}

.benefit-box:hover {
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.benefit-box:hover .benefit-icon {
  color: #ef233c;
}

.benefit-text {
  flex: 1;
}

.benefit-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.benefit-subtitle {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}

/* Product Meta */
.ztire-product-meta {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
}

.ztire-product-meta .meta-item {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.ztire-product-meta strong {
  color: #1a1a1a;
  font-weight: 600;
  margin-right: 8px;
}

/* Categories */
.meta-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

/* Tags */
.meta-tags {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.meta-tags strong {
  flex-shrink: 0;
  padding-top: 6px;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 13px;
  color: #555;
  font-weight: 400;
  white-space: nowrap;
  transition: all 0.3s;
  text-decoration: none;
  cursor: pointer;
}

.tag-badge:hover {
  background: #e8e8e8;
  border-color: #d0d0d0;
  color: #333;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.tag-badge:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Brand */
.meta-brand {
  display: flex;
  align-items: center;
}

/* Social Share */
.ztire-social-share {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.facebook-share {
  background: #1877f2;
  color: #fff;
}

.facebook-share:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.zalo-share {
  background: #0068ff;
  color: #fff;
}

.zalo-share:hover {
  background: #0052cc;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.4);
}

/* Recently Viewed Section */
.ztire-recently-viewed-section {
  margin: 50px auto;
  max-width: 1400px;
  padding: 0 20px;
}

.ztire-section-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 30px 0;
  padding-bottom: 15px;
  border-bottom: 3px solid #ef233c;
}

.ztire-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .ztire-product-main-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ztire-key-benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .ztire-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ztire-product-layout-wrapper {
    padding: 15px;
  }

  .ztire-product-title {
    font-size: 20px;
  }

  .ztire-price-display {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .regular-price-strike {
    font-size: 16px;
  }

  .sale-price-large {
    font-size: 32px;
  }

  .purchase-type-btn {
    width: 100%;
  }

  .ztire-quantity-cart-wrapper {
    flex-direction: column;
  }

  .ztire-quantity-selector {
    width: 100%;
  }

  .ztire-key-benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .benefit-icon {
    width: 60px;
    height: 60px;
  }

  .benefit-item span {
    font-size: 12px;
  }

  .meta-tags {
    flex-direction: column;
    align-items: flex-start;
  }

  .meta-tags strong {
    padding-top: 0;
  }

  .consultation-buttons {
    flex-wrap: wrap;
  }

  .consult-btn {
    font-size: 14px;
    padding: 12px 14px;
  }

  .ztire-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .consultation-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .consult-btn {
    width: 100%;
  }

  .ztire-products-grid {
    grid-template-columns: 1fr;
  }
}

/* Success message animation */
@keyframes successPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.ztire-add-to-cart-btn.success {
  animation: successPulse 0.5s ease;
}

/* ===================================
   Product Tabs Styling
   =================================== */

.woocommerce-tabs {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Tabs Navigation */
.woocommerce-tabs ul.wc-tabs {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0 !important;
  border-bottom: 1px solid #e0e0e0;
}

.woocommerce-tabs ul.wc-tabs li {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-bottom: none;
  border-radius: 0;
  margin-right: 1.875rem !important;
}

.woocommerce-tabs ul.wc-tabs li a {
  color: #b8bdc1 !important;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.woocommerce-tabs ul.wc-tabs li.active {
  background: #fff;
  position: relative;
  z-index: 2;
}

.woocommerce-tabs ul.wc-tabs li.active a {
  color: #000 !important;
}

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

/* Tab Content */
.woocommerce-tabs .woocommerce-Tabs-panel {
  padding: 30px;
  background: #fff;
}

.woocommerce-tabs .woocommerce-Tabs-panel h2 {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 0 0 15px 0;
}

.woocommerce-tabs .woocommerce-Tabs-panel p {
  line-height: 1.7;
  color: #000;
  font-size: 14px;
  margin-bottom: 15px;
}

.woocommerce-tabs .woocommerce-Tabs-panel img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

/* Additional Information Table */
.woocommerce-product-attributes {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
}

.woocommerce-product-attributes tr {
  border-bottom: 1px solid #e0e0e0;
}

.woocommerce-product-attributes tr:last-child {
  border-bottom: none;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
  padding: 12px 15px;
  text-align: left;
  border-right: 1px solid #e0e0e0;
}

.woocommerce-product-attributes td:last-child {
  border-right: none;
}

.woocommerce-product-attributes th {
  font-weight: 700;
  color: #000;
  background: #fff;
  width: 50%;
}

.woocommerce-product-attributes td {
  font-weight: 400;
  color: #000;
  background: #fff;
}

.woocommerce-product-attributes td p {
  margin: 0;
}

/* Additional Information links (spec-link for red highlight) */
.woocommerce-product-attributes td .spec-link {
  color: #ef233c;
  text-decoration: none;
  transition: all 0.3s ease;
}

.woocommerce-product-attributes td .spec-link:hover {
  color: #d90429;
  text-decoration: underline;
}

/* Remove default WooCommerce heading for description tab */
.woocommerce-Tabs-panel--description > h2:first-child {
  display: none;
}

/* ===================================
   Reviews Section (Below Tabs)
   =================================== */

#reviews {
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 0;
  background: transparent;
  border: none;
}

#reviews .woocommerce-Reviews-title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 0 0 20px 0;
}

/* Review List */
#reviews .commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

#reviews .commentlist .comment {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

#reviews .commentlist .comment:last-child {
  border-bottom: none;
}

#reviews .comment_container {
  display: flex;
  gap: 15px;
}

#reviews .comment-text {
  flex: 1;
}

#reviews .meta {
  margin-bottom: 10px;
}

#reviews .meta strong {
  font-weight: 600;
  color: #000;
}

#reviews .meta .woocommerce-review__dash {
  margin: 0 5px;
}

#reviews .meta time {
  color: #555;
  font-size: 14px;
}

#reviews .description p {
  line-height: 1.7;
  color: #000;
  margin: 0;
}

/* Star Rating */
#reviews .star-rating {
  color: #ffb800;
  margin-bottom: 5px;
}

/* Review Form */
#reviews .comment-reply-title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin: 30px 0 20px 0;
}

#reviews .comment-form {
  margin-top: 20px;
}

#reviews .comment-form p {
  margin-bottom: 15px;
}

#reviews .comment-form label {
  display: block;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
  font-size: 14px;
}

#reviews .comment-form input[type="text"],
#reviews .comment-form input[type="email"],
#reviews .comment-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

#reviews .comment-form input[type="text"]:focus,
#reviews .comment-form input[type="email"]:focus,
#reviews .comment-form textarea:focus {
  outline: none;
  border-color: #999;
}

/* Ensure star rating field */
#reviews .comment-form-rating {
  margin-bottom: 20px;
}

#reviews .comment-form-rating label {
  margin-bottom: 10px;
}

#reviews .stars {
  display: inline-block;
}

#reviews .stars a {
  color: #ddd;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s ease;
}

#reviews .stars a:hover,
#reviews .stars a.active {
  color: #ffb800;
}

#reviews .comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

#reviews .comment-form .form-submit {
  margin-top: 20px;
}

#reviews .comment-form .submit {
  background: #e8e8e8;
  color: #333;
  padding: 12px 30px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
}

#reviews .comment-form .submit:hover {
  background: #d8d8d8;
  border-color: #b0b0b0;
}

/* No reviews yet message */
#reviews .woocommerce-noreviews {
  text-align: left;
  padding: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 15px;
}

#reviews .comment-form-comment,
#reviews .comment-form-author,
#reviews .comment-form-email {
  color: #000;
  margin-bottom: 20px;
}

#reviews .comment-form-author,
#reviews .comment-form-email {
  width: 100%;
}

#reviews .required {
  color: #ef233c;
  font-weight: 700;
}

#reviews .comment-form-cookies-consent {
  margin-top: 15px;
  margin-bottom: 20px;
}

#reviews .comment-form-cookies-consent input[type="checkbox"] {
  margin-right: 8px;
}

#reviews .comment-form-cookies-consent label {
  display: inline;
  font-weight: 400;
  margin-bottom: 0;
}

/* ===================================
   Breadcrumbs Navigation (Override WooCommerce)
   =================================== */

.woocommerce-breadcrumb,
nav.woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb {
  font-size: 14px !important;
  font-weight: 400 !important;
  margin: 20px 0 !important;
  padding: 0 !important;
  line-height: 1.8 !important;
  color: #333 !important;
}

/* Links (parent pages) - lighter gray */
.woocommerce-breadcrumb a,
nav.woocommerce-breadcrumb a,
.woocommerce .woocommerce-breadcrumb a {
  color: #aaa !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
  font-weight: 400 !important;
}

.woocommerce-breadcrumb a:hover,
nav.woocommerce-breadcrumb a:hover,
.woocommerce .woocommerce-breadcrumb a:hover {
  color: #ef233c !important;
}

/* Separators */
.woocommerce-breadcrumb .delimiter,
nav.woocommerce-breadcrumb .delimiter {
  color: #aaa !important;
  margin: 0 5px !important;
}

/* ===================================
   Custom Related Products (gia sieu tot style)
   =================================== */

.ztire-related-products {
  margin: 60px 0 40px 0;
  padding: 0;
}

.ztire-related-products .section-title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin-bottom: 30px;
}

.ztire-related-products .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Product Card */
.ztire-related-products .product-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: visible !important;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

.ztire-related-products .product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Ensure badges are always visible - priority rules */
.ztire-related-products .product-card > .discount-badge,
.ztire-related-products .product-card > .sale-badge {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
  pointer-events: auto !important;
}

/* Product Link */
.ztire-related-products .product-link {
  text-decoration: none;
  color: inherit;
  display: block;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Product Image with Hover Effect */
.ztire-related-products .product-image {
  position: relative;
  padding-top: 100%;
  overflow: hidden !important;
  background: #f5f5f5;
}

.ztire-related-products .product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Main image */
.ztire-related-products .product-image .product-img-main {
  opacity: 1;
  z-index: 1;
}

/* Hover image - hidden by default */
.ztire-related-products .product-image .product-img-hover {
  opacity: 0;
  z-index: 2;
}

/* Show hover image on card hover */
.ztire-related-products .product-card:hover .product-img-main {
  opacity: 0;
}

.ztire-related-products .product-card:hover .product-img-hover {
  opacity: 1;
}

/* Discount Badge - Force Visible */
.ztire-related-products .discount-badge {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  background: #ef233c !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  z-index: 999 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
}

/* SALE Badge - Force Visible */
.ztire-related-products .sale-badge {
  position: absolute !important;
  top: 45px !important;
  left: 10px !important;
  background: #ffa500 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  z-index: 999 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
}

/* Quick View Icon */
.ztire-related-products .quick-view-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #666;
}

.ztire-related-products .quick-view-icon:hover {
  background: #fff;
  color: #ef233c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Product Info */
.ztire-related-products .product-info {
  padding: 15px;
}

.ztire-related-products .product-title {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  margin: 0 0 10px 0;
  line-height: 1.4;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price */
.ztire-related-products .product-price {
  margin-bottom: 10px;
}

.ztire-related-products .product-price::before {
  content: "Giá từ: ";
  font-size: 14px;
  color: #666;
  font-weight: 400;
}

.ztire-related-products .old-price {
  display: inline-block;
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-right: 8px;
}

.ztire-related-products .current-price {
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

/* Stock Status */
.ztire-related-products .stock-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #28a745;
  margin-bottom: 10px;
}

.ztire-related-products .stock-status svg {
  width: 16px;
  height: 16px;
}

/* Product Features */
.ztire-related-products .product-features {
  list-style: none;
  margin: 0;
  padding: 15px 0 0 0;
  border-top: 1px solid #ef233c;
}

.ztire-related-products .product-features li {
  font-size: 13px;
  color: #333;
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.ztire-related-products .product-features li::before {
  content: "•";
  color: #ef233c;
  font-size: 18px;
  font-weight: 700;
  position: absolute;
  left: 0;
  top: -2px;
}

.ztire-related-products .product-features li:last-child {
  margin-bottom: 0;
}

/* Add to Cart Button */
.ztire-related-products .add-to-cart-btn {
  width: calc(100% - 30px);
  margin: 0 15px 15px 15px;
  padding: 12px 20px;
  background: #ef233c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.ztire-related-products .add-to-cart-btn:hover {
  background: #d90429;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 35, 60, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
  .ztire-related-products .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ztire-related-products .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* ===================================
   Quick View Modal (gia sieu tot style)
   =================================== */

.ztire-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
}

.ztire-modal-container.active {
  display: flex !important;
}

.ztire-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.3s ease;
}

.ztire-modal-wrapper {
  position: relative;
  z-index: 10;
  animation: slideUp 0.3s ease;
}

/* Loader */
.gia-sieu-tot-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999998;
  backdrop-filter: blur(2px);
}

.gia-sieu-tot-loader .loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ef233c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 15px;
}

.gia-sieu-tot-loader p {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.5px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.ztire-quickview-wrapper {
  background: #fff;
  border-radius: 12px;
  max-width: 1100px;
  width: 95%;
  max-height: 95vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.ztire-qv-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ztire-qv-close:hover {
  background: #ef233c;
  color: #fff;
  border-color: #ef233c;
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(239, 35, 60, 0.3);
}

.ztire-qv-close:active {
  transform: rotate(90deg) scale(0.95);
}

.ztire-quickview-container {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(95vh - 40px);
}

.ztire-quickview-container::-webkit-scrollbar {
  width: 8px;
}

.ztire-quickview-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.ztire-quickview-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.ztire-quickview-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Left Column - Images */
.ztire-qv-images {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

.ztire-qv-main-image {
  width: 100%;
  border: 1px solid #f8f8f8;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 400px;
}

.ztire-qv-main-image img {
  max-width: 100%;
  max-height: 360px;
  height: auto;
  object-fit: contain;
}

.ztire-qv-thumbnails {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.ztire-qv-thumb {
  width: 80px;
  height: 80px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  padding: 5px;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}

.ztire-qv-thumb:hover {
  border-color: #ef233c;
}

.ztire-qv-thumb.active {
  border-color: #ef233c;
}

.ztire-qv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Right Column - Info */
.ztire-qv-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 20px;
}

.ztire-qv-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.4;
}

.ztire-qv-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
}

.ztire-qv-stock.in-stock {
  background: #28a745;
  color: #fff;
}

.ztire-qv-stock.out-of-stock {
  background: #dc3545;
  color: #fff;
}

.ztire-qv-stock svg {
  flex-shrink: 0;
}

.ztire-qv-price-from {
  font-size: 15px;
  color: #1a1a1a;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.ztire-qv-price-from .label {
  font-weight: 400;
}

.ztire-qv-price-from .amount {
  font-weight: 700;
}

.ztire-qv-price-from .currency {
  font-weight: 400;
}

.ztire-qv-price-main {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ztire-qv-price-main .regular-price {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
}

.ztire-qv-price-main .sale-price {
  font-size: 26px;
  font-weight: 700;
  color: #ef233c;
}

.ztire-qv-features {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ztire-qv-features li {
  font-size: 14px;
  color: #333;
  padding-left: 20px;
  position: relative;
}

.ztire-qv-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ef233c;
  font-weight: bold;
  font-size: 18px;
}

.ztire-qv-purchase-type {
  position: relative;
}

.ztire-qv-purchase-type label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.ztire-qv-type-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.ztire-qv-clear-selection {
  display: inline-block;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.ztire-qv-clear-selection:hover {
  color: #ef233c;
}

.type-btn {
  flex: 1;
  padding: 10px 20px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.type-btn:hover {
  border-color: #999;
  background: #f9f9f9;
}

.type-btn.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.ztire-qv-promotion {
  font-size: 14px;
  color: #ef233c;
  font-weight: 500;
}

.ztire-qv-purchase-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
}

.ztire-qv-quantity {
  display: flex;
  align-items: center;
  gap: 0;
  width: 140px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.ztire-qv-quantity .qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #f8f8f8;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #ef233c;
  transition: all 0.3s;
  flex-shrink: 0;
}

.ztire-qv-quantity .qty-btn:hover {
  background: #ffe5e5;
}

.ztire-qv-quantity .qty-btn.minus {
  border-radius: 7px 0 0 7px;
}

.ztire-qv-quantity .qty-btn.plus {
  border-radius: 0 7px 7px 0;
}

.ztire-qv-quantity .qty-input {
  flex: 1;
  height: 40px;
  border: none;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  background: #fff;
  color: #1a1a1a;
}

.ztire-qv-quantity .qty-input::-webkit-outer-spin-button,
.ztire-qv-quantity .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ztire-qv-quantity .qty-input:focus {
  outline: none;
}

.ztire-qv-actions {
  display: flex;
  gap: 15px;
  flex: 1;
}

.ztire-qv-add-to-cart,
.ztire-qv-buy-now {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.ztire-qv-add-to-cart {
  background: #28a745;
  color: #fff;
  flex: 1.2;
}

.ztire-qv-add-to-cart svg {
  flex-shrink: 0;
}

.ztire-qv-add-to-cart:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.ztire-qv-buy-now {
  background: #e0e0e0;
  color: #333;
  display: flex !important;
  visibility: visible !important;
  flex: 0.8;
}

.ztire-qv-buy-now:hover {
  background: #d0d0d0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ztire-qv-consultation {
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.ztire-qv-consultation .consult-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
}

.ztire-qv-consultation .consult-buttons {
  display: flex;
  gap: 12px;
}

.ztire-qv-consultation .consult-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.ztire-qv-consultation .zalo-btn {
  background: #0068ff;
  color: #fff;
}

.ztire-qv-consultation .zalo-btn:hover {
  background: #0052cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.4);
}

.ztire-qv-consultation .phone-btn {
  background: #25d366;
  color: #fff;
}

.ztire-qv-consultation .phone-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.ztire-qv-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
  font-size: 14px;
}

.ztire-qv-meta .meta-item {
  line-height: 1.6;
}

.ztire-qv-meta strong {
  color: #333;
}

.ztire-qv-meta .tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ztire-qv-meta .tag-badge {
  display: inline-block;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 12px;
  color: #666;
  font-weight: 500;
  text-decoration: none;
}

.ztire-qv-social {
  padding-top: 12px;
}

.ztire-qv-social .social-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
}

.ztire-qv-social .social-share:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .ztire-quickview-wrapper {
    width: 95%;
    max-height: 95vh;
  }

  .ztire-quickview-container {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 20px;
    max-height: calc(95vh - 40px);
  }

  .ztire-qv-images {
    position: relative;
  }

  .ztire-qv-purchase-actions {
    flex-direction: column;
    gap: 12px;
  }

  .ztire-qv-quantity {
    width: 100%;
  }
}
