#wc_compare_box {
    font-weight: 600;
    font-size: 14px;
    background-color: #222;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.wc-compare-container {
    max-width: 100%;
    overflow-x: auto;
    padding: 15px;
}

.wc-compare-products {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.wc-compare-product {
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wc-compare-product h3 {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}

.wc-compare-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.wc-compare-price {
    font-weight: bold;
    margin-bottom: 10px;
}

.wc-compare-attributes {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.wc-compare-attributes th, .wc-compare-attributes td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: left;
    font-size: 13px;
}

.wc-compare-add-to-cart {
    margin-top: auto;
    text-align: center;
    display: inline-block;
    background: #0071a1;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 3px;
}

.wc-compare-add-to-cart:hover {
    background: #005a7a;
}

.wc-compare-btn.added {
    background-color: #2ecc71;
    color: white;
    cursor: default;
}

/* Mobilon egymás alatti termékek */
@media (max-width: 768px) {
    .wc-compare-products {
        flex-direction: column;
        gap: 20px;
    }
    .wc-compare-product {
        width: 100%;
    }
}

.wc-compare-container {
    width: 100%;
    overflow-x: auto; /* vízszintes scroll mobilon */
    -webkit-overflow-scrolling: touch; /* simább scroll iOS-en */
    margin-bottom: 1rem;
  }
  
  .wc-compare-attributes {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px; /* legalább ennyi szélesség, hogy ne törjön össze */
    table-layout: fixed; /* fix oszlopszélesség, hogy ne ugráljon */
  }
  
  .wc-compare-attributes th,
  .wc-compare-attributes td {
    border: 1px solid #ddd;
    padding: 0.6rem 0.8rem;
    text-align: left;
    vertical-align: middle;
    word-wrap: break-word;
    white-space: normal;
  }
  
  .wc-compare-attributes thead th {
    background-color: #f8f8f8;
    font-weight: 700;
    text-align: center;
  }
  
.wc-compare-attributes tbody tr:nth-child(even) {
    background-color: #fafafa;
  }
  
.wc-compare-attributes img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

a.button.wc-compare-view-product, 
a.button.wc-compare-add-to-cart, 
button.wc-compare-remove.button {
    box-shadow: unset;
    border: unset;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    padding: 1em 0.5em;
    background-color: #111;
    color: white;
    width: 100%;
}

button.wc-compare-btn {
    box-shadow: unset;
    border: unset;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    padding: 1em 2.5em;
    background-color: #111;
    color: white;
    margin: 10px 0px;
}

table.wc-compare-attributes th {
    font-size: 1em;
    line-height: 1.2em;
}


  
  /* Kis képernyőn kisebb betűméret és padding */
  @media (max-width: 480px) {
    .wc-compare-attributes th,
    .wc-compare-attributes td {
      padding: 0.4rem 0.5rem;
      font-size: 0.9rem;
    }
    .wc-compare-container {
        position: relative;
      }
    
      .wc-compare-container::after {
        content: "További termékek jobbra! → ";
        position: absolute;
        bottom: 1px;
        left: 5%;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 0.9rem;
        white-space: nowrap;
        pointer-events: none;
        z-index: 10;
        width: 90%;
        text-align: center;
    }
    .wc-compare-attributes {
        margin-bottom: 20px;
    }
    table.wc-compare-attributes tr > *:first-child {
        width: 110px;
    }

  }
  