.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.review-container {
  border: 1px solid #eee;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  flex: 0 0 85%; /* pre mobilný posun – zobrazí 1 a kúsok */
  margin-right: 16px;
}

.review-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-stars-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.review-stars {
    font-size: 1.4em;
    background-color: #FBBC04;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    line-height: 1;
}

.review-date {
    color: #999;
    font-size: 0.9em;
    font-style: italic;
}

.review-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* vždy štvorcový priestor */
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 10px;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* zachová proporcie, oreže prebytok */
    object-position: center; /* vycentruje */
    display: block;
}

/* TEXT — default = max 2 lines */
.review-text-wrapper {
    position: relative;
    min-height: 3.2em; /* keeps button aligned even with short text */
}

.review-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* max 2 lines */
    -webkit-box-orient: vertical;
    transition: .25s ease-in-out;
}

/* expanded version */
.review-text.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
}

/* toggle button */
.review-toggle {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.review-toggle.hidden {
    display: none;
}

/* optional: unified height for grid alignment */
.review-container {
    display: flex;
    flex-direction: column;
}

.review-product {
    margin-top: auto;
}

.review-product-btn {
  font-size: 14px !important;
}

.review-product-btn:hover {
  color: #fff !important;
  background-color: #a30000 !important;
}

.review-product-btn {
  transition: 0.2s all ease-in-out;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: calc(var(--space-xs) * .5);
  color: var(--white);
  width: 100%;
  padding-block: 5px;
  background-color: var(--action);
  margin-top: calc(var(--space-xs) * .5);
}

/* .review-product-btn:hover {
    background: linear-gradient(135deg, #000, #333);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    color: #f9f9f9;
} */

/* Tablet: 2 vedľa seba */
@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil: 1 vedľa seba */
@media (max-width: 768px) {
  .reviews-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .review-container {
    min-width: 85%;
    flex-shrink: 0;
  }

  /* Skryj scrollbar pre krajší vzhľad */
  .reviews-grid::-webkit-scrollbar {
    display: none;
  }
  .reviews-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

.administor-review-form {
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;    
}

.review-form-field {
    margin-bottom: 15px;
}

.review-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.review-form-field input[type="text"],
.review-form-field select,
.review-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
}

.review-submit-btn {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 12px 24px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-submit-btn:hover {
    background: linear-gradient(135deg, #43a047, #1b5e20);
}

.review-form-success {
    text-align: center;
    padding: 30px;
    border-radius: 16px;
    background: #f1f8e9;
    color: #33691e;
    font-weight: 600;
}

