.tsws-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
column-gap: 24px;
row-gap: 40px;
}
.tsws-card {
display: flex;
flex-direction: column;
}
.tsws-card__media {
position: relative;
aspect-ratio: 0.78;
background: #f2f2f2;
overflow: hidden;
}
.tsws-card__media-link {
display: block;
width: 100%;
height: 100%;
}
.tsws-card__media img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.tsws-wishlist {
position: absolute;
top: 16px;
right: 16px;
background: none;
border: none;
padding: 0;
cursor: pointer;
color: #1a1a1a;
line-height: 0;
z-index: 3;
}
.tsws-wishlist svg {
width: 20px;
height: 20px;
}
.tsws-wishlist.is-active svg {
fill: currentColor;
} .tsws-overlay {
position: absolute;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.92);
opacity: 0;
transform: translateY(8px);
pointer-events: none;
transition: opacity 0.2s ease, transform 0.2s ease;
z-index: 2;
}
.tsws-card__media:hover .tsws-overlay,
.tsws-card__media:focus-within .tsws-overlay {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
.tsws-overlay__button {
display: block;
width: 100%;
text-align: center;
background: #1a1a1a;
color: #ffffff;
padding: 16px;
font-size: 12px;
font-weight: 600;
letter-spacing: 0.5px;
text-transform: uppercase;
text-decoration: underline;
transition: background-color 0.15s ease;
}
.tsws-overlay__button:hover {
background: #333333;
color: #ffffff;
} .tsws-card__info {
margin-top: 14px;
}
.tsws-card__info-top {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 4px;
}
.tsws-card__category {
font-size: 11px;
letter-spacing: 1px;
text-transform: uppercase;
color: #8a8a8a;
}
.tsws-rating {
display: inline-flex;
gap: 2px;
line-height: 1;
position: relative;
}
.tsws-rating--interactive .tsws-star {
cursor: pointer;
background: none;
border: none;
padding: 0;
line-height: 1;
}
.tsws-rating--interactive.is-rated .tsws-star {
cursor: default;
}
.tsws-star {
font-size: 12px;
color: #d5d5d5;
}
.tsws-star.is-filled {
color: #1a1a1a;
}
.tsws-rating-thanks {
font-size: 10px;
color: #1a1a1a;
margin-left: 6px;
white-space: nowrap;
}
.tsws-rating-guest-form {
position: absolute;
top: 100%;
right: 0;
z-index: 5;
margin-top: 6px;
padding: 10px;
background: #ffffff;
border: 1px solid #e2e2e2;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
width: 200px;
display: flex;
flex-direction: column;
gap: 6px;
}
.tsws-rating-guest-form input {
font-size: 12px;
padding: 6px 8px;
border: 1px solid #d5d5d5;
}
.tsws-rating-guest-form button {
background: #1a1a1a;
color: #fff;
border: none;
padding: 6px 8px;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.5px;
cursor: pointer;
}
.tsws-card__title {
display: block;
font-size: 16px;
color: #1a1a1a;
text-decoration: none;
margin-bottom: 4px;
}
.tsws-card__title:hover {
text-decoration: underline;
}
.tsws-card__price {
font-size: 15px;
color: #1a1a1a;
}
.tsws-card__price del {
opacity: 0.5;
margin-right: 6px;
}
.tsws-card__price ins {
text-decoration: none;
}
.tsws-pagination {
display: flex;
justify-content: center;
gap: 8px;
margin-top: 40px;
}
.tsws-pagination .page-numbers {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 32px;
height: 32px;
padding: 0 8px;
color: #1a1a1a;
text-decoration: none;
font-size: 13px;
}
.tsws-pagination .page-numbers.current {
font-weight: 700;
text-decoration: underline;
}
@media (max-width: 1024px) {
.tsws-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
.tsws-grid { grid-template-columns: 1fr; }
}