/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
Description: Дочерняя тема Twenty Twenty-Five
Version: 
*/

/* === CSS переменная для border-radius — меняй здесь, влияет везде === */
:root {
    --theme-radius: 30px;
}



/* === Blur Background === */
.blur-bg {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.width-100{
  width: 100%;
}
.model-parent{
  position: relative;
}

.product-3d-viewer{
  position: absolute;
  aspect-ratio: 8 / 5;
  width: 80%;
  z-index: 0;
}
.alt-model .wp-block-columns{
  z-index: 99;
}

/* Убираем блок адреса доставки/оплаты */
#billing-fields,
#shipping-fields,
.wc-block-checkout__shipping-fields,
.wc-block-checkout__billing-fields,
.wp-block-woocommerce-checkout-billing-address-block {
  display: none !important;
}

/* === Планшеты и мобильные (до 1024px) === */
@media (min-width: 600px) and (max-width: 1023px) {
  .product-3d-viewer {
    position: relative;
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    padding-right: 0;
    z-index: auto;
  }
  .product-3d-viewer img {
    object-fit: cover !important;
  }
}

@media (max-width: 599px) {
  .product-3d-viewer {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    padding-right: 0;
    z-index: auto;
  }
  .product-3d-viewer img {
    object-fit: cover !important;
  }
}

/* === Мобильное бургер-меню === */
.wp-block-navigation__responsive-container.is-menu-open,
.wp-block-navigation__responsive-container[style] {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    border-radius: var(--theme-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
}


/* === Fixed Header (плавает над контентом, не занимает место в потоке) === */
header.wp-block-template-part {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  z-index: 1000;
}


/* === Admin Bar компенсация (залогиненные) === */
.admin-bar header.wp-block-template-part {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar header.wp-block-template-part {
    top: 46px;
  }
}

/* Убираем лишние отступы у внутреннего группового блока (мешают sticky) */
header.wp-block-template-part .is-position-sticky {
  position: relative !important;
  top: auto !important;
}


/* === Contact Form 7 — стили под тему === */
.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 input[type=tel],
.wpcf7 input[type=url],
.wpcf7 input[type=number],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--contrast);
    border: 1px solid var(--wp--preset--color--contrast);
    border-radius: var(--theme-radius);
    padding: 0.9rem 2rem;
    font-family: var(--wp--preset--font-family--manrope);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 300;
    letter-spacing: -0.1px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.wpcf7 input[type=text]:focus,
.wpcf7 input[type=email]:focus,
.wpcf7 input[type=tel]:focus,
.wpcf7 input[type=url]:focus,
.wpcf7 input[type=number]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: var(--wp--preset--color--accent-4);
    outline: 2px solid var(--wp--preset--color--accent-4);
    outline-offset: 2px;
}

.wpcf7 input[type=file] {
    font-family: var(--wp--preset--font-family--manrope);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 300;
    color: var(--wp--preset--color--contrast);
}

.wpcf7 input[type=submit] {
    background-color: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
    border: none;
    border-radius: var(--theme-radius);
    padding: 1rem 2.25rem;
    font-family: var(--wp--preset--font-family--manrope);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 300;
    letter-spacing: -0.1px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wpcf7 input[type=submit]:hover {
    background-color: color-mix(in srgb, var(--wp--preset--color--contrast) 85%, transparent);
}

.wpcf7 input[type=submit]:focus {
    outline: 2px solid var(--wp--preset--color--accent-4);
    outline-offset: 2px;
}

.wpcf7 .wpcf7-not-valid-tip {
    color: var(--wp--preset--color--vivid-red, #cc1818);
    font-size: var(--wp--preset--font-size--small);
    font-family: var(--wp--preset--font-family--manrope);
}

.wpcf7 .wpcf7-response-output {
    border: 1px solid var(--wp--preset--color--contrast);
    padding: 0.75rem 1rem;
    font-family: var(--wp--preset--font-family--manrope);
    font-size: var(--wp--preset--font-size--medium);
    margin-top: 1rem;
}
form label{
  padding-left: 2rem;
}


/* === CF7 Dropzone — поле загрузки файла === */
.wpcf7-file-dropzone {
    position: relative;
    width: 100%;
    border: 2px dashed var(--wp--preset--color--contrast);
    border-radius: var(--theme-radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
    background-color: var(--wp--preset--color--base);
}

.wpcf7-file-dropzone:hover,
.wpcf7-file-dropzone.dragover {
    border-color: var(--wp--preset--color--accent-4);
    background-color: color-mix(in srgb, var(--wp--preset--color--accent-4) 5%, var(--wp--preset--color--base));
}

.wpcf7-file-dropzone input[type=file] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.wpcf7-file-dropzone .dropzone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
    margin: 0 auto 1rem;
}

.wpcf7-file-dropzone .dropzone-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--wp--preset--color--contrast);
}

.wpcf7-file-dropzone .dropzone-title {
    font-family: var(--wp--preset--font-family--manrope);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 500;
    color: var(--wp--preset--color--contrast);
    margin: 0 0 0.375rem;
}

.wpcf7-file-dropzone .dropzone-hint {
    font-family: var(--wp--preset--font-family--manrope);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 300;
    color: color-mix(in srgb, var(--wp--preset--color--contrast) 50%, transparent);
    margin: 0;
}

.wpcf7-file-dropzone .dropzone-filename {
    margin-top: 0.75rem;
    font-family: var(--wp--preset--font-family--manrope);
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--accent-4);
    font-weight: 400;
}



/* CF7 textarea — высота и ресайз */
.wpcf7 textarea {
    height: 100px;
    resize: vertical;
}


/* === Кнопки: hover + ripple эффект === */
/* Контурная кнопка: при ховере — чёрный фон, белый текст */
:root body .wp-block-button.is-style-outline .wp-block-button__link:hover,
:root body .wp-block-button.is-style-outline .wp-element-button:hover,
:root body .wp-block-button.is-style-outline .wp-block-button__link:focus,
:root body .wp-block-button.is-style-outline .wp-element-button:focus {
    background-color: var(--wp--preset--color--contrast) !important;
    color: var(--wp--preset--color--base) !important;
    border-color: var(--wp--preset--color--contrast) !important;
}

.wp-block-button__link {
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* Перебиваем инлайн стили WP через :root + body */
:root body .wp-element-button:hover,
:root body .wp-block-button__link:hover,
:root body .wp-element-button:focus,
:root body .wp-block-button__link:focus {
    background-color: transparent !important;
    color: var(--wp--preset--color--contrast) !important;
    border-color: var(--wp--preset--color--contrast) !important;
}

.wp-block-button__link .ripple {
    position: absolute;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--wp--preset--color--contrast) 20%, transparent);
    transform: scale(0);
    animation: ripple-wave 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-wave {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Убираем outline при фокусе на кнопках */
.wp-element-button:focus,
.wp-block-button__link:focus,
.wpcf7 input[type=submit]:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Убираем outline при фокусе глобально */
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Поиск в хедере — высота 45px */
.wp-block-search__inside-wrapper {
    height: 32px !important;
}

.wp-block-search__inside-wrapper .wp-block-search__input {
    height: 32px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}

.wp-block-search__inside-wrapper .wp-block-search__button {
    height: 32px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Mini-cart в хедере — высота 32px */
.wc-block-mini-cart__button {
    height: 32px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    line-height: 32px !important;
}


/* Выравниваем кнопку поиска */
.wp-block-search__button.wp-element-button {
    padding: 0 8px !important;
    width: auto !important;
    height: 32px !important;
    line-height: 32px !important;
    vertical-align: middle !important;
}

/* Центрируем SVG иконку поиска */
.wp-block-search__button.wp-element-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wp-block-search__button .search-icon {
    display: block !important;
    margin: auto !important;
}

/* Кнопка скріншоту 3D вьювера */
.btn-set-featured-3d {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    width: auto !important;
    display: inline-block !important;
    box-sizing: border-box;
}


/* ═══════════════════════════════════════════════════════════ */
/* PARTICLE HERO                                               */
/* ═══════════════════════════════════════════════════════════ */

.particle-hero-section {
    /* alignfull breakout */
    width: calc(100% + var(--wp--style--root--padding-left, 0px) + var(--wp--style--root--padding-right, 0px)) !important;
    max-width: none !important;
    margin-left: calc(-1 * var(--wp--style--root--padding-left, 0px)) !important;
    margin-right: calc(-1 * var(--wp--style--root--padding-right, 0px)) !important;
    /* Хедер fixed — секция начинается с top:0 сама по себе */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    display: block;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-sizing: border-box;
}

/* Убираем margin-block-start у wp-block-group перед particle-hero */
.wp-block-group:has(> .particle-hero-section),
.wp-block-group.alignfull:has(> .particle-hero-section) {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Если секция — прямой потомок entry-content */
.entry-content > .particle-hero-section:first-child,
.wp-block-post-content > .particle-hero-section:first-child {
    margin-top: 0 !important;
}

.particle-hero-canvas-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.particle-hero-subtitle {
    font-size: clamp(14px, 2vw, 20px);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
    margin: 0 0 20px;
    font-weight: 300;
    color: inherit;
}

/* Scroll hint — анимированная стрелка вниз */
.particle-hero-scroll-hint {
    display: none; /* убрано по запросу */
    width: 1px;
    height: 60px;
    position: relative;
    overflow: hidden;
    opacity: 0.35;
}
.particle-hero-scroll-hint span {
    display: block;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, currentColor);
    animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}



/* Убираем gap между header и particle-hero (WP global-styles грузится позже, нужна специфичность) */
html body .wp-site-blocks > .particle-hero-section {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
}

/* На странице с particle-hero убираем margin-top у <main> который идёт после секции */
body:has(.particle-hero-section) main.wp-block-group {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* Предотвращаем горизонтальный скролл */
html, body {
    overflow-x: hidden;
}

/* ── Category Tags Cloud [category_tags] ── */
.category-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}
.category-tag {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid currentColor;
    border-radius: 20px;
    font-size: 0.85em;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.category-tag:hover {
    opacity: 1;
    text-decoration: none;
}

/* ── NSFW Model Link Block ── */
.product-nsfw-link-block {
    margin: 16px 0;
}
.product-nsfw-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.04em;
    transition: background 0.2s, border-color 0.2s;
}
.product-nsfw-link:hover {
    background: #2a2a2a;
    border-color: #c0392b;
    color: #fff;
    text-decoration: none;
}
.nsfw-badge {
    background: #c0392b;
    color: #fff;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.nsfw-label {
    flex: 1;
}
.nsfw-arrow {
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}
.product-nsfw-link:hover .nsfw-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* SFW Link — reverse lookup з NSFW-товару */
.product-sfw-link-block {
    margin: 16px 0;
}
.product-sfw-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.04em;
    transition: background 0.2s, border-color 0.2s;
}
.product-sfw-link:hover {
    background: #2a2a2a;
    border-color: #27ae60;
    color: #fff;
    text-decoration: none;
}
.sfw-badge {
    background: #27ae60;
    color: #fff;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.sfw-label {
    flex: 1;
}
.sfw-arrow {
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}
.product-sfw-link:hover .sfw-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* ── Stretched Link — будь-який блок кліком ──────────────────────────────── */
/* Додай CSS клас link-card до блоку в редакторі → Додатково → CSS-клас    */
.link-card {
    position: relative;
    cursor: pointer;
}
.link-card a:first-of-type::after {
    content: ;
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* Щоб інші елементи всередині (кнопки тощо) були поверх ссилки */
.link-card > * {
    position: relative;
    z-index: 2;
}
.link-card a:first-of-type {
    z-index: auto;
}
