@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }
  
  .tooltip {
    position: relative;
    display: inline-block;
  }
  
  .tooltip .tooltiptext {
      visibility: hidden;
      width: 200px;
      background-color: #555;
      color: #fff;
      text-align: center;
      border-radius: 6px;
      padding: 5px;
      position: absolute;
      z-index: 1;
      bottom: 125%;
      opacity: 0;
      transition: opacity 0.3s;
  }
  
  .tooltip:hover .tooltiptext {
      visibility: visible;
      opacity: 1;
  }
  
  .popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
  }
  
  .popup-content {
    background-color: #fefefe;
    margin: calc(15% - 100px) auto 0;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    position: relative;
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Added styles from complementary-products-block.liquid */
  .loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 16px;
    border-radius: 4px;
    text-align: center;
    z-index: 1000;
    min-width: 250px;
    max-width: 90%;
  }
  
  .toast.error {
    background-color: #d9534f;
  }
  
  .toast.success {
    background-color: #5cb85c;
  }
  
  .complementary-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
  }
  
  .complementary-popup-content {
    background-color: var(--color-background);
    margin: 0;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 1000px;
    position: relative;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .cp-ts-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .cp-ts-popup {
    background-color: white;
    width: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }
  
  .cp-ts-popup-header {
    color: black;
    padding: 10px;
    font-weight: bold;
    position: relative;
  }
  
  .cp-ts-popup-header h2 {
    margin: 0;
    font-size: 18px;
    text-align: center;
  }
  
  .cp-ts-close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    color: white;
    text-decoration: none;
    font-size: 20px;
  }
  
  .cp-ts-popup-content {
    padding: 20px;
  }
  
  .cp-ts-discount {
    color: #ff6b6b;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .cp-ts-product {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
  }
  
  .cp-ts-product-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    object-fit: cover;
  }
  
  .cp-ts-product-details h3 {
    margin: 0 0 5px 0;
  }
  
  .cp-ts-price {
    font-weight: bold;
  }
  
  .cp-ts-msrp {
    color: #888;
    font-size: 14px;
  }
  
  .cp-ts-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
  }
  
  .cp-ts-quantity-btn {
    background-color: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
  }
  
  .cp-ts-add-btn {
    background-color: black;
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    width: 75%;
    margin: 5px;
  }
  
  .cp-ts-learn-more-btn {
    background-color: white;
    color: black;
    border: 1px solid black;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    width: 75%;
  }
  
  .popup-content {
    max-width: 1000px;
    padding: 30px;
    background: white;
  }
  
  .popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }
  
  .popup-left img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  .popup-right h3 {
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  .price-container {
    margin-bottom: 20px;
  }
  
  .discount-price {
    color: black;
    font-size: 18px;
    margin-right: 10px;
  }
  
  .msrp-price {
    color: #666;
  }
  
  .volume-pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #f5f5f5;
  }
  
  .volume-pricing-table th,
  .volume-pricing-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
  }
  
  .volume-pricing-table th {
    background: #f5f5f5;
  }
  
  .volume-pricing-table td {
    background: white;
  }
  
  .quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    display: inline-flex;
  }
  
  .quantity-btn {
    padding: 10px 15px;
    border: none;
    background: none;
    cursor: pointer;
  }
  
  .quantity-input {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 10px 0;
  }
  
  .quantity-limits {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
  }
  
  .add-to-cart-btn {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
  }
  
  .product-description {
    border-top: 1px solid #ddd;
    padding-top: 20px;
  }
  
  .product-description h4 {
    margin-bottom: 10px;
  }
  
  /* Media Queries */
  @media screen and (max-width: 768px) {
    .complementary-popup-content {
      width: 95%;
      max-height: 90vh;
    }
    
    .popup-grid {
      grid-template-columns: 1fr;
      gap: 20px;
      width: 100%;
      box-sizing: border-box;
    }
    
    .popup-left img {
      max-height: 300px;
      width: 100%;
      object-fit: contain;
      margin: 0 auto;
      display: block;
    }
    
    .complementary-popup {
      width: 100vw;
    }
    
    .complementary-popup .popup-content .close {
      position: absolute !important;
    }
  }
  
  @media (max-width: 575.98px) {
    .complementary-popup {
      width: 100vw;
    }
    
    .complementary-popup .popup-content .close {
      position: absolute !important;
    }
  } 