/* Homepage Specific Styles */

@font-face {
    font-family: 'Alte Haas Grotesk';
    src: url('../fonts/alte-haas-grotesk-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alte Haas Grotesk';
    src: url('../fonts/alte-haas-grotesk-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Custom Font for "Advanced" */
@font-face {
    font-family: 'CustomAdvanced';
    src: url('../fonts/custom-font(m).ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
}

@media (min-width: 768px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
}

/* Hero layout is defined in the isolated breakout hero block near the end of this file. */

#main.homepage-content {
    width: 100%;
    position: relative;
    z-index: 2;
}

/* --- New Products Section --- */
.new-products-section {
    position: relative;
    z-index: 2;
    padding-top: clamp(4.75rem, 8svh, 7rem);
    padding-bottom: clamp(4rem, 7svh, 5.75rem);
    scroll-margin-top: 140px;
    overflow: hidden;
}

.new-products-section .section-title {
    margin: 0;
    text-align: left;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0;
    color: var(--text-color, #333);
}

/* Product Carousel Container (Glassmorphism) */
.product-carousel-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 40px;
    padding-left: 70px;
    padding-right: 70px;
    position: relative;
    margin-bottom: 2rem;
}

html.dark-mode .product-carousel-container {
    background: rgba(20, 20, 20, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

/* Hide header nav - arrows are now positioned on sides */
.carousel-nav {
    display: none;
}

/* Swiper Styles */
.swiper.product-swiper {
    width: 100%;
    padding-top: 5px;
    padding-bottom: 50px;
    overflow: hidden;
    position: relative;
}

/* The previous overlay was clipping the visible edge card and making images look cut off. */
.swiper.product-swiper::after {
    display: none;
}

html:not(.homepage-swiper-ready) .product-swiper .swiper-wrapper {
    display: flex;
    gap: 20px;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html:not(.homepage-swiper-ready) .product-swiper .swiper-wrapper::-webkit-scrollbar {
    display: none;
}

html:not(.homepage-swiper-ready) .product-swiper .swiper-slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
}

@media (min-width: 640px) {
    html:not(.homepage-swiper-ready) .product-swiper .swiper-slide {
        flex: 0 0 calc((100% - 20px) / 2);
        width: calc((100% - 20px) / 2);
    }
}

@media (min-width: 1025px) {
    html:not(.homepage-swiper-ready) .product-swiper .swiper-slide {
        flex: 0 0 calc((100% - 40px) / 3);
        width: calc((100% - 40px) / 3);
    }
}

@media (min-width: 1440px) {
    html:not(.homepage-swiper-ready) .product-swiper .swiper-slide {
        flex: 0 0 calc((100% - 60px) / 4);
        width: calc((100% - 60px) / 4);
    }
}

/* Swiper Pagination Dots */
.swiper.product-swiper .swiper-pagination {
    bottom: 10px !important;
    position: absolute !important;
}

.swiper.product-swiper .swiper-pagination-bullet {
    background: var(--color-tan-medium, #a89785) !important;
    opacity: 0.4 !important;
    width: 10px !important;
    height: 10px !important;
    display: inline-block !important;
    border-radius: 999px !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
}

.swiper.product-swiper .swiper-pagination-bullet-active {
    background: var(--color-brown, #584943) !important;
    opacity: 1 !important;
    transform: scale(1.2) !important;
}

html.dark-mode .swiper.product-swiper .swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.38 !important;
}

html.dark-mode .swiper.product-swiper .swiper-pagination-bullet-active {
    background: #fff !important;
    opacity: 1 !important;
}

.swiper-slide {
    height: auto;
}

/* Product Card Styles - Match Finds Page */
.swiper-slide .product {
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Match Finds page - subtle animation */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease;
}

html.dark-mode .swiper-slide .product {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.swiper-slide .product:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 5;
}

html.dark-mode .swiper-slide .product:hover {
    background: rgba(30, 30, 30, 0.85);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
}

.carousel-view-all-card {
    width: 100%;
    min-height: 420px;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background:
        linear-gradient(160deg, rgba(254, 197, 229, 0.42) 0%, rgba(255, 255, 255, 0.88) 48%, rgba(254, 197, 229, 0.96) 100%);
    border: 1px solid rgba(214, 150, 186, 0.34);
    box-shadow: 0 14px 34px rgba(214, 150, 186, 0.14);
    color: var(--color-brown, #584943);
    text-decoration: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.carousel-view-all-card,
.carousel-view-all-card:hover,
.carousel-view-all-card:focus-visible,
.carousel-view-all-card:visited {
    color: var(--color-brown, #584943);
    text-decoration: none;
}

html.dark-mode .carousel-view-all-card {
    background:
        linear-gradient(165deg, rgba(95, 54, 221, 0.26) 0%, rgba(26, 22, 41, 0.96) 58%, rgba(10, 9, 16, 0.98) 100%);
    border-color: rgba(140, 112, 255, 0.28);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

html.dark-mode .carousel-view-all-card,
html.dark-mode .carousel-view-all-card:hover,
html.dark-mode .carousel-view-all-card:focus-visible,
html.dark-mode .carousel-view-all-card:visited {
    color: #ffffff;
}

.carousel-view-all-card:hover,
.carousel-view-all-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(214, 150, 186, 0.52);
    box-shadow: 0 20px 40px rgba(214, 150, 186, 0.2);
}

html.dark-mode .carousel-view-all-card:hover,
html.dark-mode .carousel-view-all-card:focus-visible {
    border-color: rgba(161, 136, 255, 0.44);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

.carousel-view-all-title {
    margin: 0;
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 2.2vw, 2.6rem);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.05em;
    text-align: center;
}

.carousel-view-all-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    line-height: 1;
}

.carousel-view-all-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    fill: currentColor;
}

.swiper-slide .product .woocommerce-LoopProduct-link,
.swiper-slide .product .woocommerce-loop-product__link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 100%;
}

/* Product Image */
.swiper-slide .product img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border-radius: 12px;
    margin: 0 auto 12px;
    flex: 0 0 auto;
}

/* Product Title - fixed 3-line height for uniform cards */
.swiper-slide .product .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 5px 0 2px !important;
    color: var(--text-color, #333);
    /* 2-line clamp with ellipsis (User Request) */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* Fixed height: 15px * 1.3 * 2 lines = ~39px */
    height: 40px !important;
}

/* Product Price */
.swiper-slide .product .price {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 2px 0 5px !important;
    color: var(--color-brown, #584943) !important;
}

html.dark-mode .swiper-slide .product .price {
    color: #ffffff !important;
}

/* Short Description - fixed 2-line height for uniform cards */
.swiper-slide .product .woocommerce-product-details__short-description,
.swiper-slide .product p {
    font-size: 12px !important;
    line-height: 1.3 !important;
    color: #777 !important;
    margin: 0 0 10px !important;
    /* 2-line clamp with ellipsis */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* Fixed height: 12px * 1.3 * 2 lines = ~31px */
    height: 31px !important;
}

/* Collapse description when empty */
.swiper-slide .product .woocommerce-product-details__short-description:empty,
.swiper-slide .product p:empty {
    height: 0 !important;
    margin: 0 !important;
}

/* Buy Button - Match Finds Page Style */
.swiper-slide .product .button,
.swiper-slide .product a.button {
    margin-top: auto !important;
    background-color: var(--color-brown, #584943) !important;
    padding: 15px 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #ffffff !important;
    text-decoration: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    border-radius: 30px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    transform: scale(1) !important;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.6s ease, background-color 0.3s ease !important;
}

.swiper-slide .product .button:hover,
.swiper-slide .product a.button:hover {
    background-color: var(--color-teal, #ff2840) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 10px 25px rgba(255, 40, 64, 0.4) !important;
}

/* Homepage KakoBuy buttons - use a white light-mode base */
.swiper-slide .product .button.jei-finds-kakobuy-button,
.swiper-slide .product a.button.jei-finds-kakobuy-button {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

/* Navigation Buttons - Positioned at middle sides */
.product-carousel-container .swiper-button-next,
.product-carousel-container .swiper-button-prev {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    color: var(--color-brown, #584943) !important;
    background: rgba(79, 64, 95, 0.14) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 24px rgba(79, 64, 95, 0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 20 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.product-carousel-container .swiper-button-prev {
    left: 15px !important;
}

.product-carousel-container .swiper-button-next {
    right: 15px !important;
}

.product-carousel-container .swiper-button-next:hover,
.product-carousel-container .swiper-button-prev:hover {
    background: rgba(79, 64, 95, 0.22) !important;
    box-shadow: 0 14px 28px rgba(79, 64, 95, 0.18) !important;
    transform: translateY(-50%) scale(1.04) !important;
}

html.dark-mode .product-carousel-container .swiper-button-next,
html.dark-mode .product-carousel-container .swiper-button-prev {
    color: #fff !important;
    background: rgba(54, 54, 54, 0.96) !important;
}

html.dark-mode .product-carousel-container .swiper-button-next:hover,
html.dark-mode .product-carousel-container .swiper-button-prev:hover {
    background: rgba(54, 54, 54, 0.96) !important;
}

.product-carousel-container .swiper-button-next:after,
.product-carousel-container .swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}


/* --- FAQ Section --- */
.faq-section {
    color: var(--text-color, #333);
    padding-bottom: 6rem;
}

.faq-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 40px;
}

html.dark-mode .faq-container {
    background: rgba(20, 20, 20, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faq-container .section-title {
    margin-bottom: 30px;
    text-align: center;
}

.faq-video-wrapper {
    position: relative;
    width: min(100%, 800px);
    aspect-ratio: 16 / 9;
    max-width: 800px;
    height: auto;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.04);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
    margin: 0 auto 30px;
}

html.dark-mode .faq-video-wrapper {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.faq-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 1025px) {
    .faq-container {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: clamp(24px, 3vw, 42px);
        align-items: start;
    }

    .faq-container .section-title {
        grid-column: 1 / -1;
    }

    .faq-video-wrapper,
    .faq-accordion {
        width: 100%;
        max-width: none;
        margin: 0;
    }
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

html.dark-mode .faq-item {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: normal;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 2rem;
}



.faq-answer>*:last-child {
    margin-bottom: 2rem !important;
}

.kakobuy-signup-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 40, 64, 0.92);
    background: rgba(255, 255, 255, 0.16);
    color: #ff2840 !important;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(84, 60, 30, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.36);
    transform: scale(1);
    will-change: transform, box-shadow, background-color, color;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    transition:
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.6s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.kakobuy-signup-button:hover,
.kakobuy-signup-button:focus-visible,
.kakobuy-signup-button:active {
    background: #ff2840;
    border-color: rgba(255, 40, 64, 0.92);
    color: #ffffff !important;
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 40, 64, 0.4);
}

html.dark-mode .kakobuy-signup-button {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 40, 64, 0.92);
    color: #ff2840 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

html.dark-mode .kakobuy-signup-button:hover,
html.dark-mode .kakobuy-signup-button:focus-visible,
html.dark-mode .kakobuy-signup-button:active {
    background: #ff2840;
    color: #ffffff !important;
}

.faq-answer ul {
    margin: 0.5rem 0 1rem;
    padding-left: 2rem;
    list-style: none;
}

.faq-answer .faq-steps {
    margin: 0.65rem 0 1rem;
    padding-left: 0;
    list-style: none;
    counter-reset: faq-step;
}

.faq-answer .faq-steps li {
    position: relative;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    column-gap: 0.9rem;
    align-items: start;
    margin: 0.9rem 0;
    padding-left: 0;
    color: var(--text-color);
    opacity: 0.88;
    line-height: 1.55;
    counter-increment: faq-step;
}

.faq-answer .faq-steps li::before {
    content: counter(faq-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    padding: 0;
    background: transparent;
}

.faq-answer .faq-steps .faq-step-title {
    display: block;
    grid-column: 2;
    color: var(--text-color);
    opacity: 1;
    font-weight: 700;
    line-height: 1.35;
}

.faq-answer .faq-steps .faq-step-description {
    display: block;
    grid-column: 2;
    margin-top: 0.28rem;
    color: var(--text-color);
    opacity: 0.82;
}

.faq-answer li::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 2px;
    background: currentColor;
    margin-right: 0.75em;
    vertical-align: middle;
    margin-left: -1em;
    padding-right: 0.5em;
}




.faq-answer li {
    margin: 0.5rem 0;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
}

.faq-answer .faq-button-row {
    margin: 1rem 0;
    opacity: 1;
}

/* Hero Footer / Social Links */
.hero-footer {
    position: relative;
    z-index: 4;
    margin-top: auto;
    padding-top: clamp(1.25rem, 2.6svh, 2rem);
    opacity: var(--hero-footer-opacity, 1);
    transform: translate3d(0, var(--hero-footer-shift, 0px), 0);
    transition: opacity 160ms linear, transform 160ms linear;
}

.hero-footer-inner {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.social-links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(18px, 2.6vw, 34px);
    max-width: min(100%, 620px);
    margin: 0 auto;
}

@media (min-width: 700px) {
    .social-links-grid {
        max-width: none;
        flex-wrap: nowrap;
    }
}

.social-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.social-link-box {
    width: clamp(72px, 5.9vw, 86px);
    height: clamp(72px, 5.9vw, 86px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: clamp(18px, 1.6vw, 22px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.social-link-box::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.social-link-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.social-link-box:hover::before {
    opacity: 0.8;
}

html:not(.dark-mode) .social-link-box {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

html:not(.dark-mode) .social-link-box:hover {
    background: rgba(255, 255, 255, 0.15);
}

html.dark-mode .social-link-box {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .social-link-box:hover {
    background: rgba(255, 255, 255, 0.1);
}

.social-link-box svg {
    width: clamp(34px, 2.8vw, 42px);
    height: clamp(34px, 2.8vw, 42px);
    color: var(--color-brown);
    fill: var(--color-brown) !important;
    transition: fill 0.3s ease, color 0.3s ease;
}

html:not(.dark-mode) .social-link-box svg {
    color: var(--color-brown);
    fill: var(--color-brown) !important;
}

html.dark-mode .social-link-box svg {
    color: #ffffff;
    fill: #ffffff !important;
}

.kakobuy-icon-large {
    width: clamp(34px, 2.8vw, 42px);
    height: clamp(34px, 2.8vw, 42px);
    fill: var(--color-brown);
    transition: fill 0.3s ease;
}

.social-link-label {
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 700;
    color: var(--text-color);
    font-family: var(--font-main);
    text-align: center;
    line-height: 1;
}

html:not(.dark-mode) .social-link-label {
    color: var(--color-brown);
}

html:not(.dark-mode) .kakobuy-icon-large {
    fill: var(--color-brown);
}

html.dark-mode .kakobuy-icon-large {
    fill: #ffffff;
}

/* ============================================================================= 
   RESPONSIVE BREAKPOINTS
   Mobile: < 768px | iPad: 768-1024px | 1080p: 1025-1919px | 1440p+: > 1920px
   ============================================================================= */

/* --- 1080p Displays (1025px - 1919px) --- */
@media (min-width: 1025px) and (max-width: 1919px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }

    .new-products-section {
        padding-top: clamp(4.15rem, 6.4svh, 5.8rem);
        padding-bottom: clamp(3.75rem, 5.2svh, 5rem);
    }

    .product-carousel-container {
        padding: 35px;
        padding-left: 60px;
        padding-right: 60px;
    }

    .faq-video-wrapper {
        aspect-ratio: 16 / 9;
    }

    .hero-footer-inner {
        width: min(100%, 900px);
    }
}

/* --- iPad Landscape / Small Laptops (769px - 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 25px;
    }

    .section-padding {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .new-products-section {
        padding-top: clamp(3.75rem, 5.4svh, 4.75rem);
        padding-bottom: clamp(3.35rem, 4.8svh, 4.25rem);
    }

    .product-carousel-container {
        padding: 30px 44px 26px;
    }

    .swiper-slide .product {
        min-height: 396px;
    }

    .carousel-header {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 2.15rem;
    }

    .faq-container {
        padding: 34px;
    }

    .faq-video-wrapper {
        width: 100%;
        max-width: none;
        margin-bottom: 1.5rem;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

}

/* --- Mobile (< 768px) --- */
@media (max-width: 767px) {
    .section-padding {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .new-products-section {
        padding-top: clamp(3rem, 4.5svh, 4rem);
        padding-bottom: clamp(3rem, 4.5svh, 4rem);
        scroll-margin-top: 110px;
    }

    .product-carousel-container {
        padding: 22px 18px 20px;
        border-radius: 18px;
        margin-bottom: 1.5rem;
    }

    .carousel-header {
        margin-bottom: 18px;
    }

    .new-products-section .section-title {
        width: 100%;
        text-align: left;
        font-size: clamp(1.9rem, 7.2vw, 2.25rem);
    }

    .product-carousel-container .swiper-button-next,
    .product-carousel-container .swiper-button-prev {
        width: 36px !important;
        height: 36px !important;
    }

    .product-carousel-container .swiper-button-prev {
        left: 5px !important;
    }

    .product-carousel-container .swiper-button-next {
        right: 5px !important;
    }

    .product-carousel-container .swiper-button-next:after,
    .product-carousel-container .swiper-button-prev:after {
        font-size: 14px !important;
    }

    .swiper.product-swiper::after {
        display: none;
    }

    .swiper-slide .product {
        min-height: 390px;
        padding: 16px;
    }

    .carousel-view-all-card {
        min-height: 390px;
        padding: 20px;
        gap: 14px;
    }

    /* FAQ Mobile Overrides to fix padding/overrun */
    .faq-container {
        padding: 24px 18px !important;
        border-radius: 18px;
    }

    .faq-container .section-title {
        margin-bottom: 1.2rem;
        text-align: left;
        font-size: clamp(1.85rem, 7.6vw, 2.2rem);
    }

    .faq-video-wrapper {
        width: 100%;
        max-width: none;
        margin: 0 0 1.25rem;
        border-radius: 18px;
    }

    .faq-question {
        display: block !important;
        position: relative !important;
        box-sizing: border-box !important;
        width: 100% !important;
        text-align: left !important;

        /* Padding reserves space for the absolute icon on the right */
        padding: 1.5rem 3.75rem 1.5rem 1.25rem !important;

        /* Ensure proper text wrapping */
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;

        min-height: 75px;
        font-size: 1rem;
        line-height: 1.3;
    }

    /* Icon pinned absolutely to the right */
    .faq-question::after {
        content: '+' !important;
        position: absolute !important;
        right: 1.25rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
    }

    .faq-answer {
        padding: 0 1.15rem !important;
    }

    .faq-answer .faq-steps {
        padding-left: 0;
    }

    .faq-answer .faq-steps li {
        grid-template-columns: 1.8rem minmax(0, 1fr);
        column-gap: 0.75rem;
        margin: 0.75rem 0;
        line-height: 1.5;
    }

    .faq-answer .faq-steps li::before {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.82rem;
    }

    .faq-answer>*:last-child {
        margin-bottom: 1.35rem !important;
    }
}

/* YouTube Preview Styles */
.youtube-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: inherit;
}

.youtube-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.02);
}

.youtube-play-button {
    position: relative;
    z-index: 2;
    width: 68px;
    height: 48px;
    transition: all 0.3s ease;
}

/* --- FAQ Hover Effects --- */

/* Darken the whole box on hover */
/* Darken the whole box on hover */
.faq-item:hover {
    background-color: transparent !important;
}

html.dark-mode .faq-item:hover {
    background-color: transparent !important;
}

/* Fix: Simple override to kill theme pink button background and white text hover */
button.faq-question,
button.faq-question:hover,
button.faq-question:focus,
button.faq-question:active {
    background-color: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
}

.youtube-preview:hover .youtube-play-button {
    transform: scale(1.1);
}

.youtube-play-button svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}



/* YouTube video wrapper - match FAQ accordion width at all sizes */
@media (max-width: 768px) {
    .faq-video-wrapper {
        width: 100%;
    }

    .faq-accordion {
        max-width: 100%;
    }
}

/* ==========================================================================
   Isolated Breakout Hero
   ========================================================================== */

body.home {
    background-color: transparent !important;
}

#hero.hero-section {
    --hero-accent: #5227ff;
    --hero-accent-soft: #8b73ff;
    --hero-ink: #f3eef8;
    --hero-muted: #d2cadc;
    --hero-card: rgba(255, 255, 255, 0.04);
    --hero-card-border: rgba(255, 255, 255, 0.12);
    --hero-glow-strong: rgba(82, 39, 255, 0.5);
    --hero-glow-soft: rgba(34, 17, 106, 0.3);
    --hero-accent-shadow: rgba(139, 115, 255, 0.26);
    --hero-cta-border: rgba(133, 106, 255, 0.4);
    --hero-cta-bg: #5227ff;
    --hero-cta-hover: #6843ff;
    --hero-cta-shadow: rgba(28, 14, 97, 0.38);
    --hero-image-shadow: rgba(82, 39, 255, 0.42);
    --hero-scroll-progress: 0;
    --hero-shell-opacity: 1;
    --hero-shell-shift: 0px;
    --hero-footer-opacity: 1;
    --hero-footer-shift: 0px;
    --hero-backdrop-opacity: 1;
    --hero-noise-opacity: 0.08;
    position: relative;
    width: 100%;
    min-height: 100svh;
    margin-top: -140px;
    padding: clamp(108px, 12svh, 148px) 0 clamp(32px, 5svh, 56px);
    overflow: clip;
    isolation: isolate;
    background: transparent;
}

html:not(.dark-mode) #hero.hero-section {
    --hero-accent: #ee95c6;
    --hero-accent-soft: #f9dce9;
    --hero-accent-detail: #ee95c6;
    --hero-ink: #433543;
    --hero-muted: #74606f;
    --hero-card: rgba(251, 247, 249, 0.92);
    --hero-card-border: rgba(167, 142, 155, 0.18);
    --hero-glow-strong: rgba(249, 220, 233, 0.46);
    --hero-glow-soft: rgba(238, 149, 198, 0.14);
    --hero-accent-shadow: rgba(238, 149, 198, 0.12);
    --hero-cta-border: rgba(222, 133, 184, 0.3);
    --hero-cta-bg: #f0b3d4;
    --hero-cta-hover: #e99fc9;
    --hero-cta-shadow: rgba(225, 176, 203, 0.24);
    --hero-image-shadow: rgba(238, 149, 198, 0.16);
}

#hero.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: var(--hero-backdrop-opacity);
    background:
        radial-gradient(circle at 82% 18%, var(--hero-glow-strong), transparent 34%),
        radial-gradient(circle at 62% 14%, var(--hero-glow-soft), transparent 38%),
        linear-gradient(180deg, rgba(8, 8, 13, 0.98) 0%, rgba(5, 5, 7, 0.96) 70%, rgba(5, 5, 7, 0.74) 86%, rgba(5, 5, 7, 0) 100%);
}

html:not(.dark-mode) #hero.hero-section::before {
    background:
        radial-gradient(circle at 84% 18%, var(--hero-glow-strong), transparent 31%),
        radial-gradient(circle at 62% 14%, var(--hero-glow-soft), transparent 34%),
        linear-gradient(180deg, rgba(252, 249, 251, 0.98) 0%, rgba(247, 243, 246, 0.96) 70%, rgba(243, 238, 242, 0.72) 86%, rgba(243, 238, 242, 0) 100%);
}

#hero.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: var(--hero-noise-opacity);
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: auto;
    mix-blend-mode: normal;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 68%, rgba(0, 0, 0, 0.72) 84%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 68%, rgba(0, 0, 0, 0.72) 84%, rgba(0, 0, 0, 0) 100%);
}

html:not(.dark-mode) #hero.hero-section::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
}

#hero .hero-shell {
    position: relative;
    z-index: 3;
    width: min(calc(100% - 64px), 1440px);
    min-height: calc(100svh - clamp(140px, 17svh, 204px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /*margin-top: 128px;*/
}

#hero .hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: clamp(28px, 3vw, 52px);
    align-items: center;
    flex: 1 1 auto;
    padding-bottom: clamp(14px, 2.5svh, 30px);
    opacity: var(--hero-shell-opacity);
    transform: translate3d(0, var(--hero-shell-shift), 0);
    transition: opacity 160ms linear, transform 160ms linear;
}

#hero .hero-copy {
    display: flex;
    align-items: center;
    padding-top: 0;
}

#hero .hero-copy-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    width: min(100%, 900px);
}

#hero .hero-title {
    margin: 0;
    color: var(--hero-ink);
    font-family: 'Alte Haas Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(5.75rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 0.84;
    letter-spacing: -0.065em;
    max-width: 10ch;
    text-align: left;
    text-wrap: balance;
    overflow: visible;
}

#hero .hero-title .hero-line {
    display: block;
    line-height: inherit;
}

#hero .hero-line-advanced {
    position: relative;
    z-index: 1;
    display: block;
    width: max-content;
    max-width: none;
    overflow: visible;
    color: #e64d82 !important;
    font-family: 'CustomAdvanced', serif;
    font-size: 1.08em;
    font-style: italic;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding-inline-end: 0.08em;
    text-shadow: 0.022em 0.042em 0 var(--hero-accent-shadow);
    text-transform: lowercase;
    white-space: nowrap;
}

#hero .hero-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 0 32px;
    border-radius: 999px;
    border: 1px solid var(--hero-cta-border);
    background: var(--hero-cta-bg);
    box-shadow: 0 18px 36px var(--hero-cta-shadow);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

#hero .hero-cta:hover,
#hero .hero-cta:focus-visible {
    transform: translateY(-2px);
    background: var(--hero-cta-hover);
    box-shadow: 0 22px 40px color-mix(in srgb, var(--hero-cta-shadow) 84%, black 16%);
}

html:not(.dark-mode) #hero .hero-cta {
    color: #fff9fc;
    box-shadow: 0 16px 30px rgba(225, 176, 203, 0.2);
}

html:not(.dark-mode) #hero .hero-feature-item {
    box-shadow: 0 12px 28px rgba(204, 183, 194, 0.12);
}

#hero .hero-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 980px);
}

#hero .hero-feature-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    margin: 0;
    min-height: 94px;
    padding: 15px 16px;
    gap: 10px;
    border-radius: 18px;
    background: var(--hero-card);
    border: 1px solid var(--hero-card-border);
    color: var(--hero-muted);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#hero .hero-feature-item span {
    display: flex;
    align-items: center;
    min-height: 100%;
    max-width: none;
}

#hero .hero-feature-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 0;
    color: var(--hero-accent-soft);
}

html:not(.dark-mode) #hero .hero-feature-icon {
    color: var(--hero-accent-detail);
}

#hero .hero-updated-text {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: color-mix(in srgb, var(--hero-accent-soft) 78%, white 22%);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-transform: none;
    opacity: 0.82;
}

html:not(.dark-mode) #hero .hero-updated-text {
    color: var(--hero-accent-detail);
}

#hero .hero-updated-text::before {
    content: none;
}

#hero .hero-media {
    position: relative;
    min-height: clamp(520px, 65svh, 680px);
    align-self: stretch;
    overflow: visible;
}

#hero .hero-media-stage,
#hero #floating-images-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

#hero .hero-mobile-layout {
    display: none;
}

#hero .hero-mobile-top {
    position: relative;
    width: 100%;
}

#hero .hero-mobile-stage {
    position: relative;
    width: 100%;
    min-height: 0;
    overflow: visible;
}

#hero .hero-mobile-image {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    filter: drop-shadow(0 10px 28px var(--hero-image-shadow));
    pointer-events: none;
}

#hero .hero-mobile-image img {
    display: block;
    width: clamp(120px, 31vw, 178px);
    max-width: none;
    height: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    user-select: none;
}

#hero .floating-image {
    --hero-hover-x: 0px;
    --hero-hover-y: 0px;
    --hero-hover-rotate: 0deg;
    --hero-hover-scale: 0;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    opacity: 0;
    transition:
        opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.18s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.05s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    pointer-events: none;
    filter: drop-shadow(0 8px 24px var(--hero-image-shadow));
}

html:not(.dark-mode) #hero .floating-image {
    filter: drop-shadow(0 8px 24px var(--hero-image-shadow));
}

#hero .floating-image img {
    display: block;
    width: clamp(200px, 14vw, 320px);
    max-width: none;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    user-select: none;
}

@media (hover: hover) and (pointer: fine) {
    #hero .floating-image {
        pointer-events: auto;
        cursor: pointer;
    }

    #hero .floating-image:hover {
        filter: drop-shadow(0 24px 54px var(--hero-image-shadow)) brightness(1.075) saturate(1.07);
    }
}

@media (max-width: 767px) {
    #hero.hero-section {
        min-height: auto;
        margin-top: calc(-1 * var(--jei-mobile-content-offset));
        padding: calc(var(--jei-mobile-content-offset) - 8px) 0 calc(10px + var(--jei-safe-area-bottom));
        overflow: visible;
    }

    #hero .hero-shell {
        width: min(calc(100% - 18px), 860px);
        min-height: auto;
        justify-content: flex-start;
        gap: 10px;
    }

    #hero .hero-mobile-layout {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        position: relative;
        z-index: 4;
    }

    #hero .hero-main {
        display: none;
    }

    #hero .hero-mobile-top {
        min-height: clamp(252px, 35svh, 308px);
    }

    #hero .hero-mobile-stage {
        position: absolute;
        inset: 0;
        min-height: 100%;
        margin-bottom: 0;
        pointer-events: none;
    }

    #hero .hero-mobile-copy {
        position: relative;
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        width: min(48%, 214px);
        padding-top: clamp(98px, 14svh, 124px);
        overflow: visible;
    }

    #hero .hero-mobile-copy .hero-title {
        font-size: clamp(3.16rem, 12vw, 4.18rem);
        line-height: 0.88;
        max-width: 5.55ch;
        overflow: visible;
    }

    #hero .hero-mobile-copy .hero-cta {
        width: min(100%, 308px);
        min-height: 54px;
        padding: 0 24px;
        font-size: 1rem;
        margin-top: 2px;
    }

    #hero .hero-mobile-badges {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        margin-top: 12px;
    }

    #hero .hero-mobile-badges .hero-feature-item,
    #hero .hero-mobile-badges .hero-feature-item:last-child {
        min-height: 62px;
        padding: 12px 14px;
        gap: 10px;
        border-radius: 16px;
        font-size: 0.94rem;
        line-height: 1.26;
        align-items: center;
    }

    #hero .hero-mobile-badges .hero-feature-item:last-child {
        grid-column: 1 / -1;
    }

    #hero .hero-mobile-updated {
        display: block;
        width: 100%;
        font-size: 0.82rem;
        line-height: 1.1;
        opacity: 0.82;
        margin-top: -2px;
    }

    #hero .hero-mobile-image-1,
    #hero .hero-mobile-image-2,
    #hero .hero-mobile-image-3 {
        left: auto;
    }

    #hero .hero-mobile-image-1 {
        right: 34%;
        top: 15%;
        transform: rotate(-7deg);
    }

    #hero .hero-mobile-image-2 {
        right: 11%;
        top: 12%;
        transform: rotate(3deg);
    }

    #hero .hero-mobile-image-3 {
        right: 3%;
        top: 46%;
        transform: rotate(11deg);
    }

    #hero .hero-main {
        grid-template-columns: 1fr;
        gap: 0;
        align-items: start;
        flex: 0 0 auto;
        padding-bottom: 0;
    }

    #hero .hero-copy {
        align-items: flex-start;
        margin-top: -94px;
        position: relative;
        z-index: 4;
    }

    #hero .hero-media {
        order: -1;
        min-height: clamp(112px, 14svh, 146px);
    }

    #hero .hero-copy-inner {
        gap: 12px;
        width: 100%;
        margin-top: 0;
    }

    #hero .hero-title {
        font-size: clamp(2.76rem, 11.4vw, 4rem);
        line-height: 0.9;
        max-width: 6.7ch;
    }

    #hero .hero-cta {
        width: min(100%, 300px);
        min-height: 54px;
        padding: 0 24px;
        font-size: 1rem;
    }

    #hero .hero-badges {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    #hero .hero-feature-item,
    #hero .hero-feature-item:last-child {
        min-height: 64px;
        max-width: none;
        padding: 12px 14px;
        gap: 10px;
        border: 1px solid var(--hero-card-border);
        border-radius: 16px;
        background: color-mix(in srgb, var(--hero-card) 88%, transparent 12%);
        box-shadow: 0 10px 22px color-mix(in srgb, var(--hero-image-shadow) 28%, transparent 72%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        font-size: 0.94rem;
        line-height: 1.28;
        align-items: center;
    }

    #hero .hero-feature-item span {
        display: flex;
        align-items: center;
        max-width: none;
        min-height: 100%;
    }

    #hero .hero-feature-icon {
        width: 16px;
        height: 16px;
        margin-top: 2px;
    }

    #hero .hero-updated-text {
        display: block;
        width: 100%;
        font-size: 0.82rem;
        line-height: 1.1;
        opacity: 0.82;
    }

    #hero .floating-image img {
        width: clamp(112px, 30vw, 162px);
    }

    #hero .hero-footer {
        margin-top: 0;
        padding-top: 10px;
    }

    .hero-footer-inner {
        width: 100%;
    }

    .social-links-grid {
        max-width: min(100%, 308px);
        gap: 10px;
    }

    .social-link-item {
        gap: 0;
    }

    .social-link-box {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .social-link-box::before {
        border-radius: 16px;
    }

    .social-link-box svg,
    .kakobuy-icon-large {
        width: 20px;
        height: 20px;
    }

    .social-link-label {
        display: none;
    }
}

@media (min-width: 400px) and (max-width: 767px) {
    #hero.hero-section {
        min-height: auto;
        padding: calc(var(--jei-mobile-content-offset) - 4px) 0 calc(8px + var(--jei-safe-area-bottom));
    }

    #hero .hero-shell {
        width: min(calc(100% - 20px), 560px);
        min-height: auto;
        gap: 12px;
    }

    #hero .hero-mobile-top {
        min-height: clamp(228px, 28svh, 272px);
    }

    #hero .hero-mobile-stage {
        position: absolute;
        inset: 0;
        min-height: 100%;
        margin-bottom: 0;
    }

    #hero .hero-mobile-copy {
        width: min(44%, 182px);
        gap: 16px;
        padding-top: clamp(74px, 10svh, 96px);
    }

    #hero .hero-mobile-copy .hero-title {
        font-size: clamp(3.24rem, 10.8vw, 4.18rem);
        max-width: 4.3ch;
    }

    #hero .hero-mobile-copy .hero-cta {
        width: min(100%, 286px);
        min-height: 56px;
        margin-top: 4px;
    }

    #hero .hero-mobile-badges {
        gap: 12px;
        margin-top: 14px;
    }

    #hero .hero-mobile-image img {
        width: clamp(80px, 18vw, 108px);
    }

    #hero .hero-mobile-image-1 {
        left: auto;
        right: 33%;
        top: 15%;
        transform: rotate(-8deg);
    }

    #hero .hero-mobile-image-2 {
        left: auto;
        right: 11%;
        top: 11%;
        transform: rotate(3.5deg);
    }

    #hero .hero-mobile-image-3 {
        right: 2%;
        left: auto;
        top: 46%;
        transform: rotate(10deg);
    }

    #hero .hero-media {
        min-height: clamp(120px, 14svh, 156px);
    }

    #hero .hero-title {
        font-size: clamp(3rem, 10.8vw, 4.4rem);
        max-width: 6.8ch;
    }

    #hero .hero-copy-inner {
        margin-top: 0;
    }

    #hero .hero-copy {
        margin-top: -116px;
    }

    #hero .hero-cta {
        width: min(100%, 310px);
        min-height: 56px;
    }

    #hero .hero-feature-item,
    #hero .hero-feature-item:last-child {
        min-height: 66px;
        font-size: 0.96rem;
    }

    #hero .floating-image img {
        width: clamp(126px, 31vw, 178px);
    }

    .social-links-grid {
        max-width: min(100%, 328px);
        gap: 12px;
    }

    .social-link-box {
        width: 50px;
        height: 50px;
    }

}

@media (max-width: 399px) {
    .social-link-item a img{
        width: 16px !important;
        height: 16px !important;
    }
    #hero .hero-shell {
        margin-top: 30px;
    }
    #hero.hero-section {
        padding: calc(var(--jei-mobile-content-offset) - 4px) 0 calc(8px + var(--jei-safe-area-bottom));
    }

    #hero .hero-shell {
        width: min(calc(100% - 16px), 470px);
        gap: 10px;
    }

    #hero .hero-mobile-top {
        min-height: clamp(214px, 28svh, 252px);
    }

    #hero .hero-mobile-stage {
        position: absolute;
        inset: 0;
        min-height: 100%;
        margin-bottom: 0;
    }

    #hero .hero-mobile-copy {
        width: min(47%, 156px);
        gap: 14px;
        padding-top: clamp(70px, 11svh, 90px);
    }

    #hero .hero-mobile-copy .hero-title {
        font-size: clamp(2.92rem, 12.2vw, 3.72rem);
        max-width: 4.15ch;
    }

    #hero .hero-mobile-copy .hero-cta {
        width: min(100%, 258px);
        margin-top: 4px;
        padding: 0 16px;
        font-size: 0.9rem;
        letter-spacing: 0;
        white-space: nowrap;
    }

    #hero .hero-line-advanced {
        text-shadow: 0.014em 0.024em 0 var(--hero-accent-shadow);
    }

    #hero .hero-mobile-badges {
        gap: 8px;
        margin-top: 12px;
    }

    #hero .hero-mobile-badges .hero-feature-item,
    #hero .hero-mobile-badges .hero-feature-item:last-child {
        min-height: 56px;
        gap: 8px;
        padding: 10px 12px;
        font-size: 0.9rem;
        line-height: 1.24;
    }

    #hero .hero-mobile-image img {
        /*width: clamp(72px, 18vw, 96px);*/
    }

    #hero .hero-mobile-image-1 {
        left: auto;
        right: 34%;
        top: 16%;
        transform: rotate(-8deg);
    }

    #hero .hero-mobile-image-2 {
        left: auto;
        right: 11%;
        top: 12%;
        transform: rotate(3.5deg);
    }

    #hero .hero-mobile-image-3 {
        right: 2%;
        left: auto;
        top: 47%;
        transform: rotate(10deg);
    }

    #hero .hero-main {
        gap: 9px;
    }

    #hero .hero-media {
        min-height: clamp(116px, 14svh, 148px);
    }

    #hero .hero-copy-inner {
        gap: 10px;
        margin-top: 0;
    }

    #hero .hero-copy {
        margin-top: -100px;
    }

    #hero .hero-title {
        font-size: clamp(2.86rem, 12.4vw, 3.82rem);
        max-width: 7ch;
    }

    #hero .hero-cta {
        width: min(100%, 294px);
        min-height: 54px;
    }

    #hero .hero-badges {
        gap: 8px;
    }

    #hero .hero-feature-item,
    #hero .hero-feature-item:last-child {
        min-height: 56px;
        gap: 8px;
        padding: 10px 12px;
        font-size: 0.9rem;
        line-height: 1.24;
    }

    #hero .floating-image img {
        width: clamp(118px, 31vw, 156px);
    }

    #hero .hero-updated-text {
        font-size: 0.82rem;
        max-width: none;
    }

    #hero .hero-footer {
        padding-top: 10px;
    }

    .hero-footer-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 10px;
    }

    .social-links-grid {
        max-width: min(100%, 304px);
        margin: 0 auto;
        gap: 10px;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .social-link-box {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .social-link-box::before {
        border-radius: 16px;
    }

    .social-link-box svg,
    .kakobuy-icon-large {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 389px) {
    #hero.hero-section {
        padding: calc(var(--jei-mobile-content-offset) - 4px) 0 calc(6px + var(--jei-safe-area-bottom));
    }

    #hero .hero-shell {
        gap: 5px;
    }

    #hero .hero-main {
        gap: 5px;
    }

    #hero .hero-media {
        min-height: clamp(144px, 19svh, 170px);
    }

    #hero .hero-copy-inner {
        gap: 5px;
    }

    #hero .hero-title {
        font-size: clamp(2.5rem, 12.2vw, 3.08rem);
        max-width: 8.2ch;
    }

    #hero .hero-cta {
        width: min(100%, 248px);
        min-height: 48px;
        padding: 0 20px;
        font-size: 0.94rem;
    }

    #hero .hero-badges {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    #hero .hero-feature-item,
    #hero .hero-feature-item:last-child {
        min-height: 46px;
        padding: 9px 11px;
        font-size: 0.82rem;
        line-height: 1.18;
    }

    #hero .hero-feature-item:last-child {
        grid-column: 1 / -1;
    }

    #hero .hero-updated-text {
        font-size: 0.74rem;
        opacity: 0.78;
        max-width: 104px;
    }

    #hero .floating-image img {
        width: clamp(100px, 28vw, 128px);
    }

    #hero .hero-footer {
        padding-top: 2px;
    }

    .hero-footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .social-links-grid {
        max-width: min(100%, 222px);
        margin: 0 !important;
        gap: 6px;
        justify-content: flex-end;
    }

    .social-link-box {
        width: 36px;
        height: 36px;
    }

    .social-link-box svg,
    .kakobuy-icon-large {
        width: 16px;
        height: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #hero .hero-cta,
    #hero .floating-image,
    #hero .hero-feature-item,
    .social-link-box {
        transition: none !important;
    }
}
