/* Product Unpack Block Styles */
.product-unpack-container {
    position: relative;
    overflow-x: hidden;
    margin: 0;
    background: #FFF8F0;
    color: #1E1E1E;
    padding-top: 50px;
}

/* Decorative paw elements */
.paw-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.paw-decoration {
    position: absolute;
    opacity: 1;
    pointer-events: none;
}

.paw-1 {
    top: 15%;
    left: 8%;
    width: 80px;
    height: 80px;
    animation: float-1 6s ease-in-out infinite;
}

.paw-2 {
    top: 25%;
    right: 12%;
    width: 120px;
    height: 120px;
    animation: float-2 8s ease-in-out infinite reverse;
}

.paw-3 {
    bottom: 30%;
    left: 5%;
    width: 60px;
    height: 60px;
    animation: float-3 7s ease-in-out infinite;
}

.paw-4 {
    bottom: 20%;
    right: 8%;
    width: 100px;
    height: 100px;
    animation: float-4 9s ease-in-out infinite reverse;
}

.paw-5 {
    top: 40%;
    left: 3%;
    width: 70px;
    height: 70px;
    animation: float-5 5s ease-in-out infinite;
}

.paw-6 {
    top: 60%;
    right: 15%;
    width: 90px;
    height: 90px;
    animation: float-6 10s ease-in-out infinite reverse;
}

@keyframes float-1 {

    0%,
    100% {
        transform: translateY(0px) rotate(-25deg);
    }

    50% {
        transform: translateY(-10px) rotate(-25deg);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translateY(0px) rotate(45deg);
    }

    50% {
        transform: translateY(-10px) rotate(45deg);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translateY(0px) rotate(15deg);
    }

    50% {
        transform: translateY(-10px) rotate(15deg);
    }
}

@keyframes float-4 {

    0%,
    100% {
        transform: translateY(0px) rotate(-60deg);
    }

    50% {
        transform: translateY(-10px) rotate(-60deg);
    }
}

@keyframes float-5 {

    0%,
    100% {
        transform: translateY(0px) rotate(75deg);
    }

    50% {
        transform: translateY(-10px) rotate(75deg);
    }
}

@keyframes float-6 {

    0%,
    100% {
        transform: translateY(0px) rotate(-15deg);
    }

    50% {
        transform: translateY(-10px) rotate(-15deg);
    }
}

/* Decorative blob elements */
.blob-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.blob-decoration {
    position: absolute;
    opacity: 1;
    pointer-events: none;
    filter: blur(1px);
}

.blob-center {
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    animation: blob-float-center 20s ease-in-out infinite;
}

@keyframes blob-float-center {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(-50%, -50%) rotate(1deg) scale(1.02);
    }

    50% {
        transform: translate(-50%, -50%) rotate(-1deg) scale(0.98);
    }

    75% {
        transform: translate(-50%, -50%) rotate(0.5deg) scale(1.01);
    }
}

.hero-section .container {
    position: relative;
    display: grid;
    justify-content: center;
    place-items: center;
    gap: 1.5rem;
    padding: 2rem;
    height: 100vh;
}

.titles-container {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-main-title,
.hero-subtitle {
    text-align: center;
    margin: 0;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    min-width: 100%;
    white-space: nowrap;
    color: #1E1E1E;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-main-title {
    font-size: 3.5rem;
    opacity: 1;
    z-index: 2;
}

.hero-subtitle {
    font-size: 2.2rem;
    line-height: 1.2;
    opacity: 0;
    z-index: 1;
    max-width: 1280px;
    white-space: normal;
}

/* Cards Styles */
.cards {
    position: relative;
    height: 250px;
    display: flex;
    justify-content: center;
    --card-width: 220px;
    --card-height: 330px;
    --spacing: calc(var(--card-width) / 2);
    opacity: 0;
}

.card {
    width: var(--card-width);
    height: var(--card-height);
    position: absolute;
    top: 0;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    transform-origin: center center;
    background-size: cover;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.cards.spread .card {
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card background images */
.cards .card:nth-child(1) {
    background-image: url("/wp-content/themes/gopet-child/product-unpack-block/images/pr-1.png?ver=1.2");
}

.cards .card:nth-child(2) {
    background-image: url("/wp-content/themes/gopet-child/product-unpack-block/images/pr-2.png?ver=1.1");
}

.cards .card:nth-child(3) {
    background-image: url("/wp-content/themes/gopet-child/product-unpack-block/images/pr-3.png");
}

.cards .card:nth-child(4) {
    background-image: url("/wp-content/themes/gopet-child/product-unpack-block/images/pr-4.png");
}

.cards .card:nth-child(5) {
    background-image: url("/wp-content/themes/gopet-child/product-unpack-block/images/pr-5.png");
}

.cards .card:nth-child(6) {
    background-image: url("/wp-content/themes/gopet-child/product-unpack-block/images/pr-6.png");
}

.cards .card:nth-child(7) {
    background-image: url("/wp-content/themes/gopet-child/product-unpack-block/images/pr-7.png");
    object-fit: cover;
}

/* Stacked state transforms */
.cards.stacked .card:nth-child(1),
.cards.stacked .card:nth-child(2),
.cards.stacked .card:nth-child(3),
.cards.stacked .card:nth-child(4),
.cards.stacked .card:nth-child(5),
.cards.stacked .card:nth-child(6),
.cards.stacked .card:nth-child(7) {
    transform: translateX(-50%) rotate(-10deg);
}

/* Spread state transforms */
.cards.spread .card:nth-child(1) {
    transform: translate(calc(-50% - var(--spacing) * 3.6), 40px) rotate(-12deg);
}

.cards.spread .card:nth-child(2) {
    transform: translate(calc(-50% - var(--spacing) * 2.4), 10px) rotate(-6deg);
}

.cards.spread .card:nth-child(3) {
    transform: translate(calc(-50% - var(--spacing) * 1.3), 10px) rotate(-4deg);
}

.cards.spread .card:nth-child(4) {
    transform: translate(calc(-50% + 0px), 10px) rotate(0deg);
}

.cards.spread .card:nth-child(5) {
    transform: translate(calc(-50% + var(--spacing) * 1.3), 10px) rotate(4deg);
}

.cards.spread .card:nth-child(6) {
    transform: translate(calc(-50% + var(--spacing) * 2.4), 20px) rotate(8deg);
}

.cards.spread .card:nth-child(7) {
    transform: translate(calc(-50% + var(--spacing) * 3.6), 10px) rotate(12deg);
}

/* Popup styles */
.popup,
.popup-showcase {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: #1E1E1E;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    font-family: "DM Sans", Sans-serif;
    white-space: nowrap;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}

.popup::after,
.popup-showcase::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 70%;
    transform: translateX(-50%);
    border: 6px solid transparent;
}

.popup.one {
    background-color: #FE891D;
}

.popup.one::after {
    border-top-color: #FE891D;
}

.popup.two {
    background-color: #A104CA;
}

.popup.two::after {
    border-top-color: #A104CA;
}

.popup.three {
    background-color: #1DD3B0;
    color: white;
}

.popup.three::after {
    border-top-color: #1DD3B0;
}

.popup-showcase.one {
    background-color: #FD871A;
}

.popup-showcase.one::after {
    border-top-color: #FD871A;
}

.popup-showcase.two {
    background-color: #A31A9C;
}

.popup-showcase.two::after {
    border-top-color: #A31A9C;
}

.popup.show {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Text and content styles */


.scroll-indicator {
    text-align: center;
    margin: 2rem 0;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Arrow scroll indicator */
.scroll-arrow-indicator {
    text-align: center;
    margin: 3rem 0 2rem 0;
    opacity: 1;
}

.arrow-down {
    font-size: 2rem;
    color: #1E1E1E;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arrow-down:hover {
    transform: translateY(-2px);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Shop buttons styles */
.shop-buttons {
    position: absolute;
    top: calc(50% + 350px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 25px;
    opacity: 0;
    z-index: 1001;
}

.shop-button {
    padding: 20px 40px;
    background: #FFCF31;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 207, 49, 0.3);
    white-space: nowrap;
    border: 2px solid transparent;
}

.shop-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 207, 49, 0.4);
    text-decoration: none;
    color: white;
    background: #E6BA2C;
    border-color: rgba(255, 207, 49, 0.2);
}

.shop-button-2 {
    background: #FFCF31;
    box-shadow: 0 8px 25px rgba(255, 207, 49, 0.3);
}

.shop-button-2:hover {
    box-shadow: 0 12px 35px rgba(255, 207, 49, 0.4);
    background: #E6BA2C;
}

/* Food animation styles */
.food-animation {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 600px;
    height: auto;
    opacity: 0;
    scale: 0;
    pointer-events: none;
    will-change: transform, opacity, scale;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Bowl animation styles */
.bowl-animation {
    position: absolute;
    transform: translate(0%, 0%);
    z-index: 999;
    width: 600px;
    height: auto;
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Bowl half animation styles */
.bowl-half-animation {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 600px;
    height: auto;
    opacity: 0;
    scale: 0;
    pointer-events: none;
    will-change: opacity, scale, clip-path;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    clip-path: inset(0 0 100% 0);
}

/* Keyframe animation for bowl-half reveal */
@keyframes bowlHalfReveal {
    0% {
        opacity: 0;
        scale: 0;
        clip-path: inset(0 0 100% 0);
    }

    40% {
        opacity: 1;
        scale: 1;
        clip-path: inset(0 0 100% 0);
    }

    100% {
        opacity: 1;
        scale: 1;
        clip-path: inset(0 0 0% 0);
    }
}

/* Information columns styles */
.info-column {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.left-column {
    left: -7%;
    /* Выносим за пределы контейнера */
}

.right-column {
    right: -7%;
    /* Выносим за пределы контейнера */
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    /* Увеличиваем отступ между элементами */
    opacity: 0;
    transform: translateX(-10px);
}

.right-column .info-item {
    transform: translateX(30px);
}

.info-icon {
    width: 120px;
    /* Увеличиваем размер иконки */
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 12px 35px rgba(30, 30, 30, 0.15);
    /* Увеличиваем тень */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    /* Увеличиваем отступ */
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(30, 30, 30, 0.05);
}

.right-column .info-icon {
    margin-right: 1.5rem;
    margin-left: 0;
}

.left-column .info-icon {
    margin-right: 1.5rem;
    margin-left: 0;
}

.info-icon img {
    width: 120px;
    /* Увеличиваем размер изображения */
    height: 120px;
    object-fit: cover;
    /* Меняем на cover для заполнения */
    border-radius: 50%;
    /* Делаем изображение круглым */
    position: relative;
    z-index: 1;
}

.info-text {
    font-size: 28px;
    /* Увеличиваем размер текста */
    font-weight: 600;
    color: #1E1E1E;
    text-shadow: 0 2px 4px rgba(30, 30, 30, 0.1);
    max-width: 270px;
    /* Увеличиваем максимальную ширину */
    line-height: 34px;
}

/* Spacing section */
.spacing-section {
    height: 80px;
}

@media (max-width: 768px) {
    .spacing-section {
        height: 50px;
    }
}




/* Responsive styles */
@media (max-width: 768px) {
    .product-unpack-container {
        padding-top: 0px;
    }

    .card:nth-child(1),
    .card:nth-child(2),
    .card:nth-child(6),
    .card:nth-child(7) {
        display: none;
    }

    /* Показываем еду и миску на мобайле */
    .food-animation,
    .bowl-animation,
    .bowl-half-animation {
        display: block !important;
        position: absolute;
        top: calc(50% + 100px);
        left: 50%;
        width: 245px;
        height: auto;
        z-index: 997;
    }

    .food-animation {
        z-index: 999;
    }

    .bowl-animation {
        z-index: 998;
    }

    .bowl-half-animation {
        z-index: 1000;
    }

    .hero-section .container {
        height: 100vh;
        align-content: center;
        gap: 2.5rem;
    }

    .titles-container {
        height: 220px;
        margin-top: -60px;
    }

    .cards {
        position: relative;
        width: auto;
        height: 300px;
        display: flex;
        justify-content: center;
        --card-width: 220px;
        --spacing: calc(var(--card-width) / 2);
        opacity: 0;
    }
    .popup.one, .popup.two, .popup.three{
        display: none;
    }

    .hero-main-title {
        font-size: 1.7rem;
        white-space: normal;
        width: 90vw;
        min-width: unset;
        max-width: 90vw;
        transform: translate(-50%, -100%) !important;


    }

    .hero-subtitle {
        font-size: 1.3rem;
        white-space: normal;
        width: 90vw;
        min-width: unset;
        max-width: 90vw;
        transform: translate(-50%, -100%) !important;

    }

    .desktop-only {
        display: none;
    }

    /* Mobile styles for information columns - две колонки */
    .info-column {
        position: absolute;
        top: 30px;
        width: 45%;
        z-index: 998;
        opacity: 0;
    }

    .left-column {
        left: 2.5%;
        transform: none;
    }

    .right-column {
        right: 2.5%;
        left: auto;
        top: 30px;
        transform: none;
    }

    .shop-buttons {
        position: absolute;
        top: calc(50% + 265px);
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 25px;
        opacity: 0;
        z-index: 1001;
    }

    .info-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 0.5rem;
        opacity: 0;
        transform: translateY(20px);
    }

    .info-icon {
        width: 65px;
        height: 65px;
        margin-right: 0;
        margin-left: 0;
        margin-bottom: 0.5rem;
        flex-shrink: 0;
    }

    .info-icon img {
        width: 65px;
        height: 65px;
    }

    .info-text {
        font-size: 16px;
        line-height: 18px;
        max-width: none;
        text-align: center;
    }

    .left-column .info-icon,
    .right-column .info-icon {
        margin-right: 0px;
    }

    /* Mobile paw decorations adjustments */
    .paw-1,
    .paw-3,
    .paw-5 {
        width: 50px;
        height: 50px;
    }

    .paw-2,
    .paw-4,
    .paw-6 {
        width: 70px;
        height: 70px;
    }

    .paw-decoration {
        opacity: 1 !important;
    }

    .paw-decorations {
        opacity: 1 !important;
    }

    /* Mobile blob decorations adjustments */
    .blob-center {
        width: 500px;
        height: 500px;
    }

    .blob-decoration {
        opacity: 0.8 !important;
    }

    .blob-decorations {
        opacity: 1 !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}

/* Addi
tional styles for new color scheme */
.product-unpack-container h1,
.product-unpack-container h2,
.product-unpack-container h3,
.product-unpack-container h4,
.product-unpack-container h5,
.product-unpack-container h6 {
    color: #1E1E1E;
}

.product-unpack-container p,
.product-unpack-container span,
.product-unpack-container div {
    color: #1E1E1E;
}

/* Enhanced contrast for better readability */
.scroll-indicator span {
    color: #1E1E1E;
    opacity: 0.8;
}

/* Subtle decorative elements for the new background */
.product-unpack-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(30, 30, 30, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(30, 30, 30, 0.015) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Ensure content stays above the background overlay */
.hero-section .container {
    position: relative;
    z-index: 1;
}

/*
 Enhanced button styles for new color scheme */
.shop-button:focus,
.shop-button:active {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(224, 122, 95, 0.35);
}

.shop-button-2:focus,
.shop-button-2:active {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(224, 122, 95, 0.35);
}

/* Alternative button style for better contrast */
.shop-button.alt-style {
    background: transparent;
    color: #E07A5F;
    border: 2px solid #E07A5F;
    box-shadow: none;
}

.shop-button.alt-style:hover {
    background: #E07A5F;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(224, 122, 95, 0.3);
}

/* Subtle animation for better user experience */
@keyframes button-pulse {
    0% {
        box-shadow: 0 8px 25px rgba(224, 122, 95, 0.3);
    }

    50% {
        box-shadow: 0 8px 25px rgba(224, 122, 95, 0.4);
    }

    100% {
        box-shadow: 0 8px 25px rgba(224, 122, 95, 0.3);
    }
}

.shop-button.animate {
    animation: button-pulse 2s ease-in-out infinite;
}

/* MacBook Air breakpoint (769px - 1470px) */
@media (min-width: 769px) and (max-width: 1470px) {
    .info-text {
        font-size: 24px;
        line-height: 28px;
    }

    .info-icon {
        width: 100px;
        height: 100px;
    }

    .info-icon img {
        width: 100px;
        height: 100px;
    }

    .left-column {
        left: -3%;
    }
}

/* Mobile button adjustments for new color scheme */
@media (max-width: 768px) {
    .shop-buttons {
        flex-direction: column;
        gap: 15px;
        width: 90%;
        max-width: 400px;
    }

    .shop-button,
    .shop-button-2 {
        padding: 15px 30px;
        font-size: 16px;
        box-shadow: 0 6px 20px rgba(255, 207, 49, 0.25);
        width: 100%;
        text-align: center;
    }

    .shop-button:hover,
    .shop-button-2:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 207, 49, 0.3);
    }
}