/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
#js-hide-all-icon-e {
  display: none !important;
}

/* ==============================================
   Tire Size Tabs Shortcode Styles
   ============================================== */
.tire-tab-buttons {
  justify-content: center;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.tire-tab-contents {
  padding: 30px 0;
}

.tire-tab-contents .tire-tab-content {
  display: none;
}

.tire-tab-contents .tire-tab-content.active {
  display: block;
}

.tire-tab-contents .tire-tab-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
  row-gap: 10px;
}

.tire-tab-contents .tire-tab-content ul li {
  width: 25%;
  text-align: center;
}

.tire-tab-btn {
  border-color: transparent;
  border-radius: 12px;
  color: #000;
  background-color: #e9ecef;
}

.tire-tab-btn:hover {
  background: #000;
  color: #fff;
}

.tire-tab-btn.active,
.tire-tab-btn.active:hover {
  background: #000 !important;
  color: #fff !important;
}

.tire-tab-btn.active:hover {
  opacity: 0.7;
}

.tire-tab-contents a {
  color: #ef233c;
}

.tire-tab-contents a:hover {
  text-decoration: underline;
}

.tire-tab-contents .bottom-btn {
  text-align: center;
  margin-top: 60px;
}

.tire-tab-contents .bottom-btn a {
  display: block;
  border: 1px solid #b7b5b5;
  padding: 10px 20px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: bold;
  color: #000;
  transition: 0.3s all ease-in-out;
}

.tire-tab-contents .bottom-btn a:hover {
  color: #fff;
  background: #ef233c;
  border-color: #ef233c;
}

@media only screen and (max-width: 767px) {
  .tire-tab-contents .tire-tab-content ul li {
    width: 50%;
  }
}

/* ==============================================
   Ztire Map Shortcode Styles
   ============================================== */
.ztire-map-top-filter {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 30px;
  justify-content: space-between;
}

.ztire-map-top-filter > div {
  width: 48%;
}

.ztire-map-top-filter select {
  min-width: 220px;
}

.ztire-map-results {
  border-top: 5px solid #f1f1f1;
  padding-top: 30px;
  margin-top: 30px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 30px;
}

.ztire-map-item {
  width: calc((100% - 60px) / 3);
  padding: 20px;
  border: 1px solid #f1f1f1;
  margin: 0;
  box-sizing: border-box;
  border-radius: 5px;
  box-shadow: 1px 2px 8px rgba(55, 55, 55, 0.1);
}

.ztire-map-item img {
  display: none;
}

.ztire-map-item:hover {
  background: #f1f1f1;
  transition: 0.3s all ease-in-out;
}

.ztire-map-item h3 {
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 767px) {
  .ztire-map-item {
    width: 100%;
  }

  .ztire-map-top-filter {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .ztire-map-top-filter > div {
    width: 46%;
  }

  .ztire-map-top-filter select {
    min-width: 100%;
    font-size: 14px;
  }
}

@media only screen and (max-width: 960px) {
  .ztire-map-top-filter > div {
    width: 100%;
  }
}

/* ==============================================
   Quick View Product Styles
   ============================================== */
.gia-sieu-tot-modal-body {
  background: #fff !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.gia-sieu-tot-modal-body > * {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.gia-sieu-tot-modal-body .quickview-product-wrapper {
  position: relative;
  background: #fff;
  padding: 40px;
}

.gia-sieu-tot-modal-body .product-quickview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.gia-sieu-tot-modal-body .qv-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gia-sieu-tot-modal-body .qv-close:hover {
  background: #fff;
  color: #ef233c;
  transform: rotate(90deg);
}

/* Product Images Section */
.gia-sieu-tot-modal-body .product-images {
  width: 100%;
}

.gia-sieu-tot-modal-body .product-main-image {
  width: 100%;
  background: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gia-sieu-tot-modal-body .product-main-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.gia-sieu-tot-modal-body .product-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gia-sieu-tot-modal-body .product-thumbnails .thumbnail {
  cursor: pointer;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #f8f8f8;
  padding: 15px;
}

.gia-sieu-tot-modal-body .product-thumbnails .thumbnail:hover,
.gia-sieu-tot-modal-body .product-thumbnails .thumbnail.active {
  border-color: #ef233c;
  transform: translateY(-2px);
}

.gia-sieu-tot-modal-body .product-thumbnails .thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Product Summary Section */
.gia-sieu-tot-modal-body .product-summary {
  width: 100%;
}

.gia-sieu-tot-modal-body .product-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.4;
  color: #1a1a1a;
}

.gia-sieu-tot-modal-body .product-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
}

.gia-sieu-tot-modal-body .product-stock.in-stock::before {
  content: "✓";
  font-weight: bold;
  margin-right: 3px;
}

.gia-sieu-tot-modal-body .product-stock.out-of-stock {
  background: #ffebee;
  color: #c62828;
}

/* Product Rating */
.gia-sieu-tot-modal-body .product-rating {
  margin-bottom: 15px;
}

.gia-sieu-tot-modal-body .product-rating .star-rating {
  color: #ffa500;
}

/* Product Price */
.gia-sieu-tot-modal-body .product-price {
  margin-bottom: 20px;
}

.gia-sieu-tot-modal-body .product-price .price {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gia-sieu-tot-modal-body .product-price .price del,
.gia-sieu-tot-modal-body .product-price del {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
}

.gia-sieu-tot-modal-body .product-price .price ins,
.gia-sieu-tot-modal-body .product-price ins {
  font-size: 28px;
  font-weight: 700;
  color: #ef233c;
  text-decoration: none;
}

.gia-sieu-tot-modal-body .product-price .woocommerce-Price-amount {
  font-size: 28px;
  font-weight: 700;
  color: #ef233c;
}

/* Short Description */
.gia-sieu-tot-modal-body .product-short-description {
  margin-bottom: 25px;
  line-height: 1.6;
  color: #555;
  font-size: 14px;
}

.gia-sieu-tot-modal-body .product-short-description ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gia-sieu-tot-modal-body .product-short-description ul li {
  padding: 8px 0 8px 25px;
  position: relative;
  font-size: 14px;
}

.gia-sieu-tot-modal-body .product-short-description ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ef233c;
  font-weight: bold;
  font-size: 18px;
}

/* Add to Cart Form */
.gia-sieu-tot-modal-body .cart {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.gia-sieu-tot-modal-body .cart .quantity {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.gia-sieu-tot-modal-body .cart .quantity input[type="number"] {
  width: 60px;
  height: 45px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  padding: 0;
  -moz-appearance: textfield;
}

.gia-sieu-tot-modal-body
  .cart
  .quantity
  input[type="number"]::-webkit-outer-spin-button,
.gia-sieu-tot-modal-body
  .cart
  .quantity
  input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.gia-sieu-tot-modal-body .cart button.single_add_to_cart_button,
.gia-sieu-tot-modal-body .cart button[type="submit"] {
  background: #ef233c;
  color: #fff;
  border: none;
  padding: 12px 35px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 45px;
}

.gia-sieu-tot-modal-body .cart button.single_add_to_cart_button:hover,
.gia-sieu-tot-modal-body .cart button[type="submit"]:hover {
  background: #c71d2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 35, 60, 0.3);
}

/* Product Meta */
.gia-sieu-tot-modal-body .product-meta {
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  font-size: 13px;
  color: #666;
  line-height: 2;
}

.gia-sieu-tot-modal-body .product-meta > span {
  display: block;
  margin-bottom: 8px;
}

.gia-sieu-tot-modal-body .product-meta .posted-in,
.gia-sieu-tot-modal-body .product-meta .tagged-as {
  display: block;
}

.gia-sieu-tot-modal-body .product-meta a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.gia-sieu-tot-modal-body .product-meta a:hover {
  color: #ef233c;
}

/* Added to cart button styling */
.woocommerce a.added_to_cart,
a.added_to_cart.wc-forward {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 20px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  background: #6c757d !important;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  margin-left: 15px !important;
}

.woocommerce a.added_to_cart:hover,
a.added_to_cart.wc-forward:hover {
  background: #5a6268 !important;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4) !important;
}

/* For quick view modal */
.ztire-qv-actions a.added_to_cart,
.ztire-qv-actions a.added_to_cart.wc-forward {
  flex: 0.8 !important;
  margin-left: 0 !important;
}

/* For single product page */
.ztire-cart-buttons a.added_to_cart {
  margin-left: 15px !important;
}

.ztire-cart-buttons a.added_to_cart.wc-forward {
  margin-left: 0px !important;
  background-color: #ef233c !important;
}

/* Responsive */
@media (max-width: 992px) {
  .gia-sieu-tot-modal-body .product-quickview {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gia-sieu-tot-modal-body .quickview-product-wrapper {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .gia-sieu-tot-modal-body .quickview-product-wrapper {
    padding: 20px;
  }

  .gia-sieu-tot-modal-body .product-title {
    font-size: 18px;
  }

  .gia-sieu-tot-modal-body .product-price .price ins,
  .gia-sieu-tot-modal-body .product-price ins {
    font-size: 24px;
  }

  .gia-sieu-tot-modal-body .product-thumbnails {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hide cross-sells in cart page */
.woocommerce .cross-sells,
.cart .cross-sells {
  display: none !important;
}

@media (min-width: 1200px) {
  .page-header .entry-title,
  .site-footer .footer-inner,
  .site-footer:not(.dynamic-footer),
  .site-header .header-inner,
  .site-header:not(.dynamic-header),
  body:not([class*="elementor-page-"]) .site-main {
    max-width: 1240px;
  }
}
