/* Главная — конструктор в стиле Zara (шрифт Decoral подключается в functions.php) */
.pearl-home-page { margin: 0; overflow: hidden; height: 100vh; }
.pearl-home-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 100;
}
.pearl-home-overlay a,
.pearl-home-overlay button { pointer-events: auto; }

/* Три тонкие длинные полоски как у Zara (без кнопки-гамбургера) */
.pearl-hamburger {
    position: fixed;
    top: 24px;
    left: 24px;
    width: 28px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 102;
    padding: 0;
}
.pearl-hamburger span {
    display: block;
    width: 100%;
    height: 1px;
    background: #000;
}
/* Логотип — текст шрифтом Decoral: десктоп — 3/4 по вертикали; мобильная — 2/3 по вертикали; по центру; 15% отступ от краёв */
.pearl-header-logo {
    position: fixed;
    top: 75%;
    left: 15%;
    right: 15%;
    transform: translateY(-50%);
    z-index: 101;
    font-family: 'Decoral', Georgia, 'Times New Roman', serif !important;
    font-size: clamp(2.5rem, 12vw, 6rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    text-align: center;
    pointer-events: auto;
    color: var(--logo-color, #fff);
    white-space: nowrap;   /* одна строка, без переноса */   
}
@media (max-width: 768px) {
    .pearl-header-logo {
        top: 75%;
        left: 50%;
        right: auto;
        width: 96%;
        max-width: 96vw;
        transform: translate(-50%, -50%);
        color: var(--logo-color, #fff) !important;
        font-size: clamp(2rem, 14vw, 3.5rem) !important;
        letter-spacing: 0.02em;
        white-space: nowrap !important;
        text-align: center;
        box-sizing: border-box;
        overflow: visible;
        display: block;
        padding: 0 2vw;
    }
    .pearl-header-logo a {
        color: inherit !important;
        white-space: nowrap !important;
    }
}
/* Правое меню — справа вверху, на 100px ниже верха экрана */
.pearl-right-menu {
    position: fixed;
    top: 124px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    z-index: 101;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pearl-right-menu a { color: #000; text-decoration: none; }

.pearl-home-root {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 1;
}
.pearl-home-directions {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.pearl-home-direction {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-align: start;
    scroll-snap-type: y mandatory;
}
.pearl-home-screen {
    min-height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
}
.pearl-screen-fullscreen {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}
.pearl-screen-two-split {
    display: flex;
    min-height: 100vh;
}
.pearl-screen-two-split .pearl-split-half {
    flex: 1;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}
.pearl-screen-three-9x16 {
    display: flex;
    min-height: 100vh;
    gap: 0;
}
.pearl-screen-three-9x16 .pearl-col-9x16 {
    flex: 1;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}
.pearl-screen-grid6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    min-height: 100vh;
    gap: 2px;
}
.pearl-screen-grid6 .pearl-grid-cell {
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}
.pearl-screen-the-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f5f5f5;
    text-align: center;
    padding: 40px;
}
.pearl-screen-the-new .pearl-the-new-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.pearl-screen-the-new .pearl-the-new-hint {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 24px;
}
.pearl-the-new-loader-wrap {
    position: relative;
    width: 2px;
    min-height: 48px;
    margin: 0 auto 24px;
}
.pearl-the-new-loader {
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
    margin: 0 auto;
    transition: height 0.3s ease;
    border-radius: 1px;
}
.pearl-the-new-loader-wrap::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 48px;
    background: repeating-linear-gradient(to bottom, #000 0, #000 3px, transparent 3px, transparent 8px);
    background-size: 2px 8px;
    animation: pearl-loader-dash 0.8s linear infinite;
    pointer-events: none;
}
@keyframes pearl-loader-dash {
    0% { background-position: 0 0; }
    100% { background-position: 0 8px; }
}
.pearl-the-new-loader.loading {
    height: 60px;
}
.pearl-the-new-loader-wrap.loading::before {
    opacity: 0;
}
.pearl-the-new-sub {
    margin-top: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pearl-the-new-sub a.pearl-the-new-sublink,
.pearl-the-new-sub .pearl-the-new-subtext {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.pearl-the-new-sub a.pearl-the-new-sublink:hover {
    opacity: 0.8;
}

.pearl-home-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.pearl-home-panel.open { transform: translateX(0); }
.pearl-panel-inner {
    padding: 0;
    padding-left: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
/* Кнопка закрытия как у Zara: большой крестик из тонких линий, без рамки */
.pearl-panel-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    font-size: 0;
    line-height: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}
.pearl-panel-close::before,
.pearl-panel-close::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 1.5px;
    background: #000;
    border-radius: 1px;
}
.pearl-panel-close::before { transform: rotate(45deg); }
.pearl-panel-close::after { transform: rotate(-45deg); }
.pearl-panel-close:hover::before,
.pearl-panel-close:hover::after { opacity: 0.7; }

/* Отступ слева от крестика — как у Zara; затем логотип и колонки */
.pearl-menu-header {
    position: relative;
    padding: 72px 24px 28px 88px; /* 88px слева = отступ от кнопки закрытия */
    text-align: left;
    border-bottom: 1px solid #eee;
    min-height: 100px;
    flex-shrink: 0;
}
.pearl-menu-logo-wrap {
    display: block;
    margin-bottom: 0;
    min-height: 0;
}
.pearl-menu-logo {
    font-family: 'decoral_c', 'Decoral', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #000;
    text-decoration: none;
    display: inline-block;
}
.pearl-menu-logo:hover { color: inherit; opacity: 0.85; }
/* Кнопки Поиск, Корзина, Начать сеанс, Помощь — в одну строку по горизонтали */
.pearl-menu-utils {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.pearl-menu-utils a {
    color: #000;
    text-decoration: none;
}
.pearl-menu-utils a:hover { text-decoration: underline; }

/* Тело меню: отступ слева, затем три колонки — типы (Женщины/Мужчины/Дети) | |1| НОВИНКИ и |2| КОЛЛЕКЦИЯ | блоки с фото */
.pearl-menu-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
    padding-left: 88px; /* такой же отступ, как у шапки */
}
.pearl-menu-categories-col {
    width: 220px;
    flex-shrink: 0;
    padding: 24px 32px 40px 0;
    border-right: 1px solid #eee;
    overflow-y: auto;
}
.pearl-menu-categories-col a {
    display: block;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.6;
    color: #000;
    text-decoration: none;
    padding: 8px 0;
}
.pearl-menu-categories-col a:hover { text-decoration: underline; }
.pearl-menu-categories-col a.active {
    font-weight: 600;
}
.pearl-menu-categories-col a.active::before {
    content: '• ';
}

.pearl-menu-content {
    flex: 1 1 calc(50% - 220px);
    overflow-y: auto;
    padding: 24px 40px 40px 36px;
    min-width: 0;
}
.pearl-menu-content .pearl-menu-block { margin-bottom: 32px; }
.pearl-menu-content .pearl-menu-block-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    color: #000;
}
.pearl-menu-content .pearl-menu-block-links a {
    display: block;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #000;
    text-decoration: none;
    padding: 4px 0;
    line-height: 1.4;
}
.pearl-menu-content .pearl-menu-block-links a:hover { text-decoration: underline; }

/* Правая колонка — 50% ширины, разделение по центру меню */
.pearl-menu-visual-col {
    flex: 0 0 50%;
    min-width: 280px;
    width: 50%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 24px 24px 40px 24px;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
}
.pearl-menu-visual-col .pearl-vb-card {
    flex: 0 0 140px;
    width: 140px;
    min-width: 140px;
}
.pearl-menu-visual-col .pearl-vb-card a {
    display: block;
    color: #000;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
/* Формат 3:4, фото по центру (квадратное обрезается по краям) */
.pearl-menu-visual-col .pearl-vb-card .pearl-vb-card-img-wrap {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 133.33%; /* 4/3 для соотношения 3:4, fallback если нет aspect-ratio */
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 8px;
}
@supports (aspect-ratio: 3/4) {
    .pearl-menu-visual-col .pearl-vb-card .pearl-vb-card-img-wrap {
        padding-bottom: 0;
    }
}
.pearl-menu-visual-col .pearl-vb-card .pearl-vb-card-img-wrap.pearl-vb-card-placeholder {
    background: #e8e8e8;
}
.pearl-menu-visual-col .pearl-vb-card .pearl-vb-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    vertical-align: middle;
}
.pearl-menu-visual-col .pearl-vb-card .pearl-vb-label {
    display: block;
    padding: 0;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .pearl-menu-header { padding: 56px 12px 20px 12px; text-align: center; }
    .pearl-menu-logo-wrap {
        width: 100%;
        text-align: center;
        overflow: visible;
        padding: 0 12px;
        box-sizing: border-box;
    }
    .pearl-menu-logo {
        font-size: 1.75rem;
        display: block;
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
    }
    .pearl-menu-body { flex-direction: column; padding-left: 0; }
    .pearl-menu-utils {
        top: 12px;
        right: 12px;
        font-size: 11px;
        gap: 12px;
        display: flex;
        flex-wrap: nowrap;
    }
    .pearl-menu-categories-col {
        order: 2;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 16px 12px 20px 48px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0 20px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .pearl-menu-categories-col::-webkit-scrollbar { display: none; }
    .pearl-menu-categories-col a {
        flex: 0 0 auto;
        font-size: 0.95rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    .pearl-menu-categories-col a.active::before { content: ''; }
    .pearl-menu-content { order: 3; padding: 24px 16px; }
    .pearl-menu-visual-col {
        order: 1;
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #eee;
        padding: 16px;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .pearl-menu-visual-col .pearl-vb-card {
        flex: 0 0 140px;
        width: 140px;
        min-width: 140px;
        max-width: none;
    }
    .pearl-menu-visual-col .pearl-vb-card .pearl-vb-card-img-wrap {
        aspect-ratio: 3 / 4;
    }
}

/* Стрелки подсказки свайпа */
.pearl-swipe-hint {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 50;
}
.pearl-swipe-hint span { font-size: 24px; opacity: 0.5; }
