/*
Theme Name: A H Imports Theme
Author: TechDongle Inc.
Author URI: http://techdongle.com/
Description: Custom theme for A H Imports!
Version: 1.5.0
Template: dt-the7
*/
.branding img {
  max-width: 120px !important;
  height: auto !important;
  padding: 10px;
}
.mobile-nav-item {
  text-decoration: none;
}.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.mobile-nav-item {
  text-align: center;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-item i {
  font-size: 20px;
  margin-bottom: 6px; /* Adds spacing between icon and text */
  transition: transform 0.3s ease;
}

.mobile-nav-item span {
  font-size: 12px;
  line-height: 1.2;
}

/* Optional hover effect */
.mobile-nav-item:hover {
  color: #0073e6;
}

.mobile-nav-item:hover i {
  transform: scale(1.2);
}

.mobile-branding img {
  max-width: 80px !important;
}

/* Cart Drawer Container */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Open State */
.cart-drawer.open {
  right: 0;
}

/* Header */
.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  background: #f9f9f9;
}

/* Close Button */
.close-cart {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}
.close-cart:hover {
  color: #000;
}

/* Content Area */
.cart-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Cart Items */
.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cart-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}
.cart-item img {
  width: 60px;
  height: auto;
  object-fit: contain;
}
.cart-item-details {
  flex: 1;
}
.cart-item-details a {
  display: block;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  margin-bottom: 4px;
}
.cart-item-details span {
  font-size: 14px;
  color: #666;
}

/* Footer Buttons */
.cart-drawer-footer {
  padding: 16px;
  border-top: 1px solid #ddd;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.view-cart-button,
.checkout-button {
  display: block;
  text-align: center;
  padding: 10px;
  background: #0073e6;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
}
.view-cart-button:hover,
.checkout-button:hover {
  background: #005bb5;
}

.single_add_to_cart_button.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}
.single_add_to_cart_button.loading .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid #999;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.single_add_to_cart_button.added {
  background-color: #4CAF50;
  color: #fff;
}

/* wa cart */
/* wa-card.css
.wa-card { display:flex; gap:14px; border:1px solid #e5e7eb; border-radius:12px; padding:12px; max-width:520px; background:#fff; }
.wa-card__image { width:120px; height:120px; object-fit:cover; border-radius:10px; border:1px solid #eee; }
.wa-card__body { flex:1; }
.wa-card__title { margin:0 0 6px; font-size:1.05rem; line-height:1.3; }
.wa-card__meta { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.wa-card__price { font-weight:600; color:#0f172a; }
.wa-card__qty input { width:64px; padding:6px; border:1px solid #d1d5db; border-radius:8px; }
.wa-card__btn { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border:none; border-radius:10px; background:#25D366; color:#fff; font-weight:700; cursor:pointer; }
.wa-card__btn:hover { filter:brightness(0.95); }
.wa-toast { margin-top:8px; font-size:0.9rem; color:#334155; min-height:1em; transition:opacity .3s ease; opacity:0; }*/

/* dark mode */
/* Global text + headings */
body.dark-mode,
body.dark-mode p,
body.dark-mode span,
body.dark-mode div,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #e0e0e0 !important;
}

/* Links */
body.dark-mode a {
    color: #bb86fc !important;
}
body.dark-mode a:hover {
    color: #ffb74d !important;
}

/* Common section wrappers */
body.dark-mode .site-header,
body.dark-mode .site-content,
body.dark-mode .site-footer,
body.dark-mode .vc_row,
body.dark-mode .elementor-section,
body.dark-mode .dt-section,
body.dark-mode .wpb_row,
body.dark-mode .widget,
body.dark-mode .container {
    background-color: #121212 !important;
}

/* Buttons and inputs */
body.dark-mode button,
body.dark-mode .btn,
body.dark-mode input[type=submit],
body.dark-mode input[type=button] {
    background-color: #333 !important;
    color: #fff !important;
    border-color: #555 !important;
}

/* Forms and inputs */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}