/**
 * Ticket Wicket Travel - Custom Overrides
 */

/* ========== Logo sizing ========== */
.header-logo img,
.about-logo img { max-height: 70px !important; width: auto !important; height: auto !important; object-fit: contain; }
.footer-widget .about-logo img { max-height: 80px !important; background:#fff; padding:8px 12px; border-radius:10px; }
.mobile-logo img { max-height: 60px !important; width:auto !important; }

/* ========== Hide preloader ========== */
#preloader, .preloader { display:none !important; }

/* ========== Topbar polish ========== */
.header-top { padding:8px 0; }
.header-top .header-links ul { display:flex; align-items:center; flex-wrap:wrap; gap:24px; margin:0; padding:0; list-style:none; }
.header-top .header-links li { display:inline-flex; align-items:center; gap:8px; margin:0 !important; padding:0 !important; }
.header-top .header-links i { color: var(--theme-color, #f39c12); }
.header-top .header-right { display:flex; align-items:center; justify-content:flex-end; gap:18px; }

/* ========== Smooth scroll ========== */
html { scroll-behavior: smooth; }

/* ==========================================================
   ARROW — theme default SVG mask (works on live server)
   ========================================================== */
/* White-btn dark arrow fix */
.th-btn.white-btn.th-icon::after {
  background-color: var(--title-color) !important;
}
.th-btn.white-btn:hover.th-icon::after {
  background-color: var(--white-color) !important;
}

/* Hover slide */
.th-btn.th-icon:hover::after {
  transform: translateX(4px);
}

/* No arrow for form buttons */
.th-btn.btn-fw::after,
.th-btn.th-radius2::after,
.newsletter-form .th-btn::after,
.woocommerce-form-login .th-btn::after,
.woocommerce-form-coupon .th-btn::after,
.wc_payment_methods .th-btn::after,
.place-order .th-btn::after,
.contact-form .th-btn::after,
.th-cart-coupon .th-btn::after,
.wc-proceed-to-checkout .th-btn::after,
.actions .th-btn::after,
.cart_table .th-btn::after,
.th-sort-bar .th-btn::after,
.shipping-calculator-form .th-btn::after {
  display: none !important;
}

/* ========== Active menu highlight ========== */
.main-menu > ul > li > a.active {
  color: var(--theme-color) !important;
}
.th-mobile-menu > ul > li > a.active {
  color: var(--theme-color) !important;
}

/* ==========================================================
   HEADER CART ICON
   ========================================================== */
.header-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--theme-color);
  border: none;
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.header-cart-btn::after {
  display: none !important;
}
.header-cart-btn:hover {
  background: var(--title-color);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.header-cart-btn .cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
}

/* ==========================================================
   MINI CART POPUP
   ========================================================== */
.twt-cart-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.twt-cart-overlay.open {
  opacity: 1;
  visibility: visible;
}
.twt-cart-popup {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 99999;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
}
.twt-cart-popup.open {
  right: 0;
}
.twt-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}
.twt-cart-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.twt-cart-header .twt-cart-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #333;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
}
.twt-cart-header .twt-cart-close:hover {
  background: #f5f5f5;
  color: var(--theme-color);
}
.twt-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.twt-cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: 0.3s;
}
.twt-cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.twt-cart-item-info {
  flex: 1;
}
.twt-cart-item-info h6 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.twt-cart-item-info .twt-cart-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}
.twt-cart-item-info .twt-cart-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--theme-color);
}
.twt-cart-remove {
  background: none;
  border: none;
  color: #ccc;
  font-size: 16px;
  cursor: pointer;
  align-self: center;
  transition: 0.3s;
  padding: 4px;
}
.twt-cart-remove:hover {
  color: #e74c3c;
}
.twt-cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #eee;
  background: #fafafa;
}
.twt-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 700;
}
.twt-cart-total span:last-child {
  color: var(--theme-color);
  font-size: 20px;
}
.twt-cart-actions {
  display: flex;
  gap: 10px;
}
.twt-cart-actions a {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s;
}
.twt-cart-actions .btn-view-cart {
  background: #f0f0f0;
  color: var(--title-color);
}
.twt-cart-actions .btn-view-cart:hover {
  background: #e0e0e0;
}
.twt-cart-actions .btn-checkout {
  background: var(--theme-color);
  color: #fff;
}
.twt-cart-actions .btn-checkout:hover {
  background: var(--title-color);
}
