﻿.litter-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 4rem;

}

.litter-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 200;
    text-align: center;
    color: var(--text-rich);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.litter-parents {
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 200;
    color: var(--text-soft);
}

.parents-line {
    display: inline-block;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 1rem;
}

.parent-link {
    color: var(--text-rich);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

    .parent-link:hover {
        border-color: var(--text-rich);
    }

.parent-separator {
    margin: 0 1rem;
    color: var(--text-light);
}

/* Контейнер для кнопки */
.litter-pedigree {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    width: 100%;
}

/* Кнопка происхождение */
.button-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 2rem 0;
}
.action-button {
    background: none;
    border: none;
    padding: 0.5rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 200;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

    .action-button::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1px;
        background-color: var(--text-rich);
        transition: width 0.3s ease;
    }

    .action-button:hover {
        color: var(--text-rich);
    }

        .action-button:hover::after {
            width: 100%;
        }

        .action-button:hover .button-icon {
            transform: translateX(3px);
        }

.button-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.action-button:hover .button-icon {
    opacity: 1;
}

.litter-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.litter-photo {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

    .litter-photo img {
        width: 100%;
        height: auto;
        display: block;
    }

.no-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
}

.litter-info {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    color: var(--text-soft);
    line-height: 1.8;
}

.info-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.info-label {
    font-weight: 300;
    color: var(--text-light);
    margin-right: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.info-value {
    color: var(--text-rich);
}

.info-description {
    white-space: pre-line;
}

.litter-gallery {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.gallery-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 200;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-rich);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}

    .gallery-item:hover {
        transform: scale(1.02);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.video-thumb {
    position: relative;
    width: 100%;
    height: 100%;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-image,
.modal-video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -10px;
    color: white;
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-prev {
    position: absolute;
    left: -70px; /* отрицательное значение */
    top: 50%;
    transform: translateY(-50%);
}

.modal-next {
    position: absolute;
    right: -70px; /* отрицательное значение */
    top: 50%;
    transform: translateY(-50%);
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.loading {
    text-align: center;
    padding: 4rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .litter-page {
        padding: 0 1.5rem;
    }

    .litter-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .litter-title {
        font-size: 2.5rem;
    }
}

/* ===== Карточки щенков помёта =====
   Единая стилистика сайта Diamond Gemini:
   Cormorant Garamond + Montserrat, золотые акценты, мягкие тени. */
.litter-puppies {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e5e5e5;
}

.litter-puppies-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 200;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-rich);
    letter-spacing: 0.05em;
}

.litter-puppies-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 200;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.litter-puppies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.8rem;
}

/* ===== Карточка щенка: объёмная, многослойные "bootstrap"-тени =====
   В стиле Diamond Gemini: белая "жемчужная" плашка, тёплые золотые
   многослойные тени (shadow-lg/xl), золотая грань сверху. */
.litter-puppy-card {
    position: relative;
    background: var(--pure-white);
    border: 1px solid #ece5da;
    border-radius: 1.1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Многослойная объёмная тень в стиле Bootstrap 5 (shadow-lg/xl) с тёплым золотым подтоном */
    box-shadow:
        0 0.125rem 0.25rem rgba(31, 30, 28, 0.06),
        0 0.5rem 1.25rem rgba(31, 30, 28, 0.09),
        0 1.5rem 3.5rem rgba(163, 145, 130, 0.16),
        0 0.25rem 0.9rem rgba(181, 146, 107, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

/* Золотая верхняя грань карточки — фирменный акцент Diamond Gemini */
.litter-puppy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 5;
    background: linear-gradient(90deg, #A98A5C 0%, #D8C29A 45%, #E7D7B8 55%, #A98A5C 100%);
    border-radius: 1.1rem 1.1rem 0 0;
    pointer-events: none;
}

    .litter-puppy-card:hover {
        /* При наведении карточка "приподнимается" — ещё более объёмная тень */
        box-shadow:
            0 0.25rem 0.5rem rgba(31, 30, 28, 0.08),
            0 1.25rem 2rem rgba(31, 30, 28, 0.14),
            0 2.5rem 5rem rgba(181, 146, 107, 0.28),
            0 0.5rem 1.5rem rgba(181, 146, 107, 0.12);
        transform: translateY(-8px);
        border-color: #c9b184;
    }

.litter-puppy-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f4f0;
}

    .litter-puppy-photo.is-clickable {
        cursor: pointer;
    }

    .litter-puppy-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease, filter 0.3s ease;
    }

    .litter-puppy-photo.is-clickable:hover img {
        transform: scale(1.06);
    }

    .litter-puppy-photo.is-clickable:hover::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(20, 15, 10, 0.25) 0%, transparent 45%, rgba(20, 15, 10, 0.05) 100%);
        z-index: 1;
        pointer-events: none;
    }

    .litter-puppy-photo .no-photo {
        aspect-ratio: 1 / 1;
        height: 100%;
        font-size: 0.8rem;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

/* Номер щенка в помёте — золотистая плашка поверх фото */
.litter-puppy-order {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(181, 146, 107, 0.92);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    backdrop-filter: blur(2px);
}

/* Счётчик фото в галерее щенка — правый верхний угол фото */
.litter-puppy-photo-count {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #fff;
    background: rgba(26, 26, 26, 0.55);
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    backdrop-filter: blur(2px);
}

/* Иконка лупы — появляется по центру фото при наведении */
.litter-puppy-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.75);
    z-index: 3;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(181, 146, 107, 0.85);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.litter-puppy-photo.is-clickable:hover .litter-puppy-zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


.litter-puppy-body {
    padding: 1.1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, #FFFDFC 0%, #FAF8F4 100%);
    flex: 1;
    justify-content: center;
}

.litter-puppy-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-rich);
    line-height: 1.2;
}

.litter-puppy-name-eng {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* Золотая линия-разделитель в стиле акцентов сайта */
.litter-puppy-rule {
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, #B5926B, #D8C29A);
    margin: 0.35rem auto;
    opacity: 0.7;
}

.litter-puppy-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.litter-puppy-dot {
    color: #B5926B;
    opacity: 0.8;
}

.litter-puppy-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem 0.6rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-top: 0.1rem;
}

/* Бейдж статуса щенка — в стиле бейджей админки */
.puppy-status-badge {
    display: inline-block;
    margin-top: 0.45rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.32rem 0.85rem;
    border-radius: 20px;
    border: 1px solid;
    white-space: nowrap;
}

.puppy-status-free {
    color: #2c6b2c;
    border-color: #b5d6b5;
    background: #f2f8f2;
}

.puppy-status-reserved {
    color: #7a5a2e;
    border-color: #d8c29a;
    background: #faf6ef;
}

.puppy-status-sold {
    color: #8a8a8a;
    border-color: #d0d0d0;
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .litter-puppies-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

/* ===== Модальное окно увеличенного фото щенка ===== */
.puppy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 9, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: puppy-modal-fade 0.2s ease;
}

@keyframes puppy-modal-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.puppy-modal-content {
    position: relative;
    max-width: min(92vw, 1000px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 0.5rem 1rem rgba(0, 0, 0, 0.3),
        0 2rem 5rem rgba(0, 0, 0, 0.5);
    animation: puppy-modal-zoom 0.25s ease;
}

@keyframes puppy-modal-zoom {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.puppy-modal-image,
.puppy-modal-video {
    max-width: 100%;
    max-height: calc(90vh - 48px);
    object-fit: contain;
    display: block;
    background: #111;
}

.puppy-modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.puppy-modal-close:hover {
    background: rgba(181, 146, 107, 0.9);
    transform: rotate(90deg);
}

.puppy-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    font-size: 2.6rem;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

.puppy-modal-prev {
    left: 0.8rem;
}

.puppy-modal-next {
    right: 0.8rem;
}

.puppy-modal-nav:hover {
    background: rgba(181, 146, 107, 0.9);
    transform: translateY(-50%) scale(1.08);
}

.puppy-modal-caption {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 1.2rem;
    background: linear-gradient(180deg, #FFFDFC 0%, #FAF8F4 100%);
    border-top: 1px solid #eee9e3;
    font-family: 'Montserrat', sans-serif;
}

.puppy-modal-caption-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-rich);
}

.puppy-modal-caption-count {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .puppy-modal-content {
        max-width: 96vw;
    }

    .puppy-modal-prev {
        left: 0.4rem;
    }

    .puppy-modal-next {
        right: 0.4rem;
    }

    .puppy-modal-nav {
        width: 44px;
        height: 44px;
        font-size: 2rem;
    }
}

/* Разрешаем тексту быть жирным внутри инфо-блока помета */
.info-description strong, .info-description b {
    font-weight: 700 !important;
}



