/* ============================================
   METRY CATALOG CARDS STYLES FOR LK
   Копия стилей карточек из каталога
   ============================================ */

/* ===== КАРТОЧКИ КАТАЛОГА ===== */
.metry-cards-grid,
#viewHistoryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.metry-card {
    background: #E7E3DA;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.34);
    padding: 1px;
    font-family: "Unbounded", Arial, sans-serif;
}

.metry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(38, 28, 21, 0.2);
}

.metry-card-image {
    border-radius: 18px 18px 0 0;
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    cursor: pointer;
}

.metry-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.metry-card:hover .metry-card-image img {
    transform: scale(1.05);
}

/* Кнопка удаления из избранного */
.metry-favorite-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(156, 65, 36, 0.9);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.metry-favorite-remove:hover {
    background: rgba(156, 65, 36, 1);
    transform: scale(1.1);
}

.metry-favorite-remove svg {
    width: 20px;
    height: 20px;
}

.metry-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 122px;
    background: linear-gradient(180.1deg, rgba(0,0,0,0) 0%, rgba(65,48,36,0.38) 27%, rgba(38,28,21,0.77) 59%);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metry-card-title {
    color: #E7E3DA;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    font-family: "Unbounded", Arial, sans-serif;
}

.metry-card-arrow {
    width: 57px;
    height: 57px;
    background: #E7E3DA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.metry-card-arrow:hover {
    background: #d4cfc4;
}

.metry-card-arrow svg {
    width: 24px;
    height: 24px;
}

.metry-card-info {
    display: flex;
    gap: 20px;
    padding: 20px 24px;
    border-radius: 0 0 18px 18px;
}

.metry-card-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.metry-feature-row {
    display: flex;
    gap: 29px;
    align-items: center;
    flex-wrap: wrap;
}

.metry-feature-item {
    display: flex;
    gap: 17px;
    align-items: center;
}

.metry-feature-item svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

.metry-feature-text {
    color: #261C15;
    font-size: 20px;
    font-weight: 600;
    font-family: "Unbounded", Arial, sans-serif;
}

.metry-metro-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 8px;
}

.metry-metro-row svg {
    width: 31px;
    height: 20px;
    flex-shrink: 0;
}

.metry-metro-name {
    color: #261C15;
    font-size: 20px;
    font-weight: 600;
    font-family: "Unbounded", Arial, sans-serif;
}

.metry-book-btn {
    background: #9C4124;
    border-radius: 12px;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
    width: fit-content;
    border: none;
    text-decoration: none;
}

.metry-book-btn:hover {
    background: #7a3319;
}

.metry-book-btn span {
    color: #E7E3DA;
    font-size: 20px;
    font-weight: 700;
    font-family: "Unbounded", Arial, sans-serif;
}

.metry-card-prices {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
    min-width: 140px;
}

.metry-price-block {
    text-align: right;
}

.metry-price-value {
    color: #9C4124;
    font-size: 20px;
    font-weight: 700;
    display: block;
    letter-spacing: 0.042em;
    font-family: "Unbounded", Arial, sans-serif;
}

.metry-price-label {
    color: #261C15;
    font-size: 13px;
    font-weight: 500;
    font-family: "Unbounded", Arial, sans-serif;
}

/* ===== EMPTY STATE ===== */
.metry-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #E7E3DA;
    border-radius: 18px;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
}

.metry-empty-icon {
    margin: 0 auto 20px;
    width: fit-content;
}

.metry-empty-icon svg {
    width: 64px;
    height: 64px;
}

.metry-empty-title {
    color: #261C15;
    font-size: 24px;
    font-weight: 600;
    font-family: "Unbounded", Arial, sans-serif;
    margin-bottom: 12px;
}

.metry-empty-text {
    color: #666;
    font-size: 16px;
    font-family: "NT Somic", sans-serif;
    line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .metry-cards-grid,
    #viewHistoryGrid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGINATION ===== */
.metry-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    grid-column: 1 / -1;
    font-family: "Unbounded", Arial, sans-serif;
}

.metry-pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid #261C15;
    border-radius: 10px;
    background: transparent;
    color: #261C15;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metry-pagination-btn:hover:not(:disabled):not(.active) {
    background: rgba(156, 65, 36, 0.1);
    border-color: #9C4124;
    color: #9C4124;
}

.metry-pagination-btn.active {
    background: #9C4124;
    border-color: #9C4124;
    color: #E7E3DA;
    font-weight: 600;
    cursor: default;
}

.metry-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.metry-pagination-btn svg {
    width: 20px;
    height: 20px;
}

.metry-pagination-prev,
.metry-pagination-next {
    font-weight: 600;
}

.metry-pagination-dots {
    color: #261C15;
    font-size: 14px;
    padding: 0 4px;
    user-select: none;
}

@media (max-width: 768px) {
    .metry-pagination {
        gap: 4px;
        margin-top: 30px;
    }
    
    .metry-pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 8px;
    }
    
    .metry-pagination-dots {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .metry-card-prices {
        align-items: flex-start;
        flex-direction: row;
        gap: 20px;
    }

    .metry-card-image {
        height: 250px;
    }

    .metry-feature-text,
    .metry-metro-name {
        font-size: 16px;
    }

    .metry-card-title {
        font-size: 16px;
    }

    .metry-book-btn span {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .metry-card-image { height: 200px; }
    .metry-card-title { font-size: 14px; }
    .metry-feature-text, .metry-metro-name { font-size: 14px; }
    .metry-card-prices { gap: 12px; }
    .metry-pagination { margin-top: 20px; }
    .metry-pagination-btn { min-width: 32px; height: 32px; font-size: 12px; }
}
