/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* === CUSTOM SMART MINI CART (Professional Redesign v2) === */

/* --- Main Icon --- */
.smart-cart-icon {
  position: relative;
}
.smart-cart-icon .count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--smart-navbar-link);
  color: var(--smart-navbar-bg);
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
  min-width: 18px;
  height: 18px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-weight: bold;
}

/* --- Overlay & Container --- */
.smart-cart-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 99998;
  visibility: hidden;
  opacity: 0;
  -webkit-transition:
    visibility 0s 0.3s,
    opacity 0.3s ease;
  -o-transition:
    visibility 0s 0.3s,
    opacity 0.3s ease;
  transition:
    visibility 0s 0.3s,
    opacity 0.3s ease;
}
.smart-cart-overlay.is-open {
  visibility: visible;
  opacity: 1;
  -webkit-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.smart-cart-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  background-color: #fff;
  -webkit-transform: translateX(100%);
      -ms-transform: translateX(100%);
          transform: translateX(100%);
  -webkit-transition: -webkit-transform 0.3s ease-in-out;
  transition: -webkit-transform 0.3s ease-in-out;
  -o-transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
  -webkit-box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
          box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
}
.smart-cart-overlay.is-open .smart-cart-container {
  -webkit-transform: translateX(0);
      -ms-transform: translateX(0);
          transform: translateX(0);
}

/* --- Header --- */
.smart-cart-header {
  background-color: var(--smart-cart-header-bg);
  color: var(--smart-cart-header-text);
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.smart-cart-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}
.close-smart-cart {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: inherit;
  padding: 0;
  line-height: 1;
}

.smart-cart-header,
.smart-cart-footer {
  -ms-flex-negative: 0;
      flex-shrink: 0; /* Prevents header/footer from shrinking */
}

/* --- Body & Items --- */
.smart-cart-body {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
.smart-cart-empty {
  text-align: center;
  color: #777;
  padding-top: 20px;
}
.smart-cart-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}
.smart-cart-item:last-child {
  border-bottom: none;
}
.smart-cart-item-image {
  width: 80px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.smart-cart-item-image img {
  width: 100%;
  height: auto;
  border: 1px solid #eee;
}
.smart-cart-item-details {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.smart-cart-item-details .product-name {
  font-weight: 600;
  text-decoration: none;
  color: #111;
  margin-bottom: 5px;
  font-size: 1em;
}
.smart-cart-item-details .product-meta {
  color: #666;
  font-size: 0.85em;
  margin: 4px 0;
}
.smart-cart-item-details .product-meta .product-price {
  display: block;
}
.smart-cart-item-subtotal {
  font-weight: 600;
  font-size: 1em;
  text-align: right;
}

/* --- Variation Styling --- */
.smart-cart-item-details .variation {
  margin: 5px 0 10px 0;
  font-size: 0.85em;
  color: #666;
}
.smart-cart-item-details .variation p {
  margin: 0;
}
.smart-cart-item-details .variation dt,
.smart-cart-item-details .variation dd {
  display: inline;
  margin: 0;
}
.smart-cart-item-details .variation dd {
  margin-left: 5px;
  font-weight: 600;
}

/* --- Actions (Quantity & Remove) --- */
.product-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 15px;
}
.quantity-changer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  border: 1px solid #ddd;
  border-radius: 3px;
}
.quantity-changer .qty-btn {
  width: 30px;
  height: 30px;
  background: #f9f9f9;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #888;
}
.quantity-changer .qty-btn:hover {
  background: #f0f0f0;
}
.quantity-changer input.qty {
  width: 40px;
  height: 30px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  -moz-appearance: textfield;
}
.quantity-changer input.qty::-webkit-outer-spin-button,
.quantity-changer input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.remove-item-link {
  font-size: 0.8em;
  color: #888;
  text-decoration: underline;
  margin-left: auto;
  padding-left: 15px;
  cursor: pointer;
}
.remove-item-link:hover {
  color: #111;
}

/* --- Footer --- */
.smart-cart-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  background: #f9f9f9;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.smart-cart-footer .subtotal {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin: 0 0 10px;
  font-size: 0.9em;
  font-weight: 600;
}
.smart-cart-footer .subtotal span {
  font-weight: normal;
}
.smart-cart-footer .footer-note {
  display: block;
  font-size: 0.8em;
  color: #777;
  margin-bottom: 15px;
}
.smart-cart-footer .buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
}
.smart-cart-footer .button {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: block;
  text-align: center;
  padding: 14px;
  text-decoration: none;
  border-radius: 3px;
  font-weight: 600;
  -webkit-transition: opacity 0.2s ease;
  -o-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
}
.smart-cart-footer .button:hover {
  opacity: 0.85;
}
.smart-cart-footer .button.view-cart-btn {
  background-color: #f0f0f0;
  color: var(--smart-cart-view-cart-bg);
  border: 1px solid var(--smart-cart-view-cart-bg);
}
.smart-cart-footer .button.checkout-btn {
  background: var(--smart-cart-checkout-bg, #c50505);
  color: var(--smart-cart-button-text, #fff);
  border: 1px solid var(--smart-cart-checkout-bg);
}

/* --- Loading Spinner & Processing State --- */
.loader-overlay {
  display: none; /* Hidden by default */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10;
}
.loader-overlay .loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--smart-navbar-icon-bg);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  -webkit-animation: spin 1s linear infinite;
          animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -20px;
  margin-left: -20px;
}
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

.smart-cart-container.processing .loader-overlay {
  display: block;
}

/* --- Stock Status Styling --- */
.stock-status {
  display: block;
  font-size: 0.8em;
  font-weight: 600;
  margin: 5px 0 8px 0;
}
.stock-status.in-stock {
  color: #28a745; /* Green */
}
.stock-status.low-stock {
  color: #fd7e14; /* Orange */
}
.stock-status.on-backorder {
  color: #17a2b8; /* Teal */
}
.stock-status.out-of-stock {
  color: #dc3545; /* Red */
}
/* 

/* --- Tab Styling --- */
.smart-cart-header {
  position: relative; /* For close button positioning */
}
.smart-cart-tabs {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}
.smart-cart-tabs .tab-link {
  background: none;
  border: none;
  padding: 0 15px 15px 15px;
  margin: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #999;
  border-bottom: 3px solid transparent;
}
.smart-cart-tabs .tab-link.active {
  color: var(--smart-cart-header-text, #333);
  border-bottom-color: var(--smart-navbar-icon-bg, #cc0000);
}
.smart-cart-header .close-smart-cart {
  position: absolute;
  top: 20px;
  right: 20px;
}

.smart-cart-content-panel {
  display: none;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  overflow: hidden;
}
.smart-cart-content-panel.active {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1; /* Allows content to fill available space */
  overflow: hidden; /* Contains the scrolling child */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.smart-cart-item-add .button {
  padding: 8px 12px;
  font-size: 0.9em;
}
.loading-spinner-inline {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--smart-navbar-icon-bg);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  -webkit-animation: spin 1s linear infinite;
          animation: spin 1s linear infinite;
  margin: 40px auto;
  display: block; /* Shown by JS */
}

/* --- Free Shipping Progress Bar --- */
.free-shipping-notice {
  margin-bottom: 20px;
  padding: 0 10px;
  text-align: center;
}
.free-shipping-notice p {
  margin: 0 0 8px 0;
  font-size: 0.9em;
  color: #333;
}
.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: #e9ecef; /* Light grey track */
  border-radius: 4px;
  overflow: hidden;
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
          box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.progress-bar {
  height: 100%;
  width: 0; /* This is updated by the inline style from PHP */
  background-color: #28a745; /* A nice green for progress */
  -webkit-transition: width 0.4s ease-in-out;
  -o-transition: width 0.4s ease-in-out;
  transition: width 0.4s ease-in-out;
  border-radius: 4px;
}

/* --- Mini Cart Tabs --- */
/* === SMART MINI CART - FINAL COMPLETE & CORRECTED STYLESHEET === */

/* --- Global: Prevent Body Scroll when Cart is Open --- */
html.menu-open,
body.menu-open {
  overflow: hidden;
}

/* --- Main Icon --- */
.smart-cart-icon {
  position: relative;
}
.smart-cart-icon .count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--smart-navbar-link);
  color: var(--smart-navbar-bg);
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
  min-width: 18px;
  height: 18px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-weight: bold;
}

/* --- Overlay & Container --- */
.smart-cart-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 99998;
  visibility: hidden;
  opacity: 0;
  -webkit-transition:
    visibility 0s 0.3s,
    opacity 0.3s ease;
  -o-transition:
    visibility 0s 0.3s,
    opacity 0.3s ease;
  transition:
    visibility 0s 0.3s,
    opacity 0.3s ease;
}
.smart-cart-overlay.is-open {
  visibility: visible;
  opacity: 1;
}
.smart-cart-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  background-color: #fff;
  -webkit-transform: translateX(100%);
      -ms-transform: translateX(100%);
          transform: translateX(100%);
  -webkit-transition: -webkit-transform 0.3s ease-in-out;
  transition: -webkit-transform 0.3s ease-in-out;
  -o-transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
  -webkit-box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
          box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  /* This creates the vertical layout on all screens */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
}
.smart-cart-overlay.is-open .smart-cart-container {
  -webkit-transform: translateX(0);
      -ms-transform: translateX(0);
          transform: translateX(0);
}

/* --- Header & Enhanced Tabs --- */
.smart-cart-header {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 20px 0 20px;
  -ms-flex-negative: 0;
      flex-shrink: 0; /* Prevents header from shrinking */
}
.smart-cart-header h3 {
  display: none;
}
.smart-cart-tabs {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
}
.smart-cart-tabs .tab-link {
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 10px 15px;
  margin: 0 5px -1px 0;
  position: relative;
  bottom: -1px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.smart-cart-tabs .tab-link.active {
  background: #ffffff;
  color: var(--smart-cart-header-text, #333);
  border-bottom: 1px solid #ffffff;
}
.close-smart-cart {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: inherit;
  padding: 0;
  line-height: 1;
  margin-left: auto;
}

/* --- CORRECTED SCROLLING CONTENT AREA --- */
.smart-cart-content-panel.active {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1; /* Allows content to fill available vertical space */
  overflow-y: auto; /* THIS is the scrolling element */
  -webkit-overflow-scrolling: touch;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.smart-cart-body {
  /* The body is now just a simple container, no special layout needed */
}

/* --- Main Cart View Styles --- */
#cart-content .smart-cart-body {
  padding: 0 20px;
}
.smart-cart-empty {
  text-align: center;
  color: #777;
  padding: 40px 20px;
}
.smart-cart-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}
.smart-cart-item:last-child {
  border-bottom: none;
}
.smart-cart-item-image {
  width: 80px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.smart-cart-item-image img {
  width: 100%;
  height: auto;
  border: 1px solid #eee;
}
.smart-cart-item-details {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.smart-cart-item-details .product-name {
  font-weight: 600;
  text-decoration: none;
  color: #111;
  margin-bottom: 5px;
  font-size: 1em;
}
.smart-cart-item-details .product-meta {
  color: #666;
  font-size: 0.85em;
  margin: 4px 0;
}
.smart-cart-item-subtotal {
  font-weight: 600;
  font-size: 1em;
  text-align: right;
}
.product-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 15px;
}
.quantity-changer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  border: 1px solid #ddd;
  border-radius: 3px;
}
.quantity-changer .qty-btn {
  width: 30px;
  height: 30px;
  background: #f9f9f9;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #888;
}
.quantity-changer input.qty {
  width: 40px;
  height: 30px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}
.remove-item-link {
  font-size: 0.8em;
  color: #888;
  text-decoration: underline;
  margin-left: auto;
  padding-left: 15px;
  cursor: pointer;
}

/* --- "You May Also Like" Section --- */
#related-content .smart-cart-body {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 20px 1fr;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 25px;
}
.smart-cart-item.related-product {
  position: relative;
  border-radius: 10px;
  background: #f0f0f0;
  aspect-ratio: 1 / 1;
}
.related-product .smart-cart-item-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.related-product .smart-cart-item-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.65);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-transition: opacity 0.1s ease-in-out;
  -o-transition: opacity 0.1s ease-in-out;
  transition: opacity 0.1s ease-in-out;
}
.related-product .product-name {
  font-size: 0.9em;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 2px 0;
  color: #fff;
  text-decoration: none;
}
.related-product .product-price {
  font-size: 1em;
  font-weight: 400;
  color: #fff;
  opacity: 0.9;
}
.related-product .smart-cart-item-add {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  z-index: 3;
  /* Hide it by default */
  opacity: 0;
  /* Make it un-clickable while hidden */
  pointer-events: none;
  /* Animate the fade-in effect */
  -webkit-transition: opacity 0.1s ease-in-out;
  -o-transition: opacity 0.1s ease-in-out;
  transition: opacity 0.1s ease-in-out;
}
/* The button's new "ghost" style */
.related-product .smart-cart-item-add .button {
  background: var(--smart-cart-checkout-bg, #cc0000);
  color: var(--smart-cart-button-text, #ffffff);
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  -webkit-box-shadow: none;
          box-shadow: none; /* No shadow needed */
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0); /* Remove the old animation */
  -webkit-transition: all 0.1s ease-in-out;
  -o-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}

/* On hover, the button fills in */
.related-product .smart-cart-item-add .button:hover {
  background: var(--smart-cart-checkout-bg, #cc0000);
  color: var(--smart-cart-button-text, #ffffff);
}

/* --- Footer & Misc --- */
.smart-cart-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  background: #f9f9f9;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.free-shipping-notice {
  margin-bottom: 20px;
  text-align: center;
}
.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  background-color: #28a745;
  -webkit-transition: width 0.4s ease-in-out;
  -o-transition: width 0.4s ease-in-out;
  transition: width 0.4s ease-in-out;
  border-radius: 4px;
}
.loader-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10;
}
.smart-cart-container.processing .loader-overlay {
  display: block;
}

/* --- NEW: Interactive Hover & Focus Effect --- */

/* On hover/focus, hide the text details */
.smart-cart-item.related-product:hover .smart-cart-item-details,
.smart-cart-item.related-product:focus-within .smart-cart-item-details {
    opacity: 0;
}

/* On hover/focus, show the button container */
.smart-cart-item.related-product:hover .smart-cart-item-add,
.smart-cart-item.related-product:focus-within .smart-cart-item-add {
    opacity: 1;
    pointer-events: auto; /* Make it clickable again */
}

/* --- MOBILE-ONLY OVERRIDES --- */
@media (max-width: 768px) {
  #related-content .smart-cart-body {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }

  .smart-cart-item.related-product {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}


/* --- Cart Toast Notification --- */
#smart-cart-toast-container:empty {
  display: none;
}

.smart-cart-toast {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    background-color: #e2401c; /* Error color */
    color: #fff;
    padding: 1em;
    border-radius: 5px;
    -webkit-box-shadow: 0 3px 8px rgba(0,0,0,0.15);
            box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.smart-cart-toast span {
    font-weight: 500;
}
.smart-cart-toast .close-toast {
    background: none;
    border: none;
    color: #fff;
    opacity: 0.7;
    font-size: 24px;
    line-height: 1;
    padding: 0 0 0 15px;
    cursor: pointer;
}
.smart-cart-toast .close-toast:hover {
    opacity: 1;
}

/* --- Kit builder meta (ASDPT) --- */
.smart-cart-item-details .kit-badge{
  display:inline-block;
  font-size:0.75em;
  font-weight:600;
  padding:2px 6px;
  border-radius:999px;
  background:#f3f4f6;
  color:#111;
  margin:0 0 6px 0;
}

.smart-cart-item-details .kit-badge .kit-dot{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:999px;
  margin-right:6px;
  vertical-align:middle;
  box-shadow:0 0 0 2px rgba(255,255,255,0.9);
}
.smart-cart-item-details .product-meta .product-price del{
  opacity:0.65;
  margin-right:6px;
}
.smart-cart-item-details .product-meta .product-price ins{
  text-decoration:none;
}
.smart-cart-item-details .product-meta .product-price .kit-savings{
  display:block;
  margin-top:2px;
  opacity:0.85;
  font-size:0.85em;
}
