/* =========================================
   Sunshine Frontend Styles - Premium Theme
   ========================================= */

:root {
    --sun-red: #d63638;
    --sun-beige: #FCF7ED;
    --sun-cream: #FCF7ED;
    --sun-text: #333;
    --sun-scallop-size: 12px;
    --sun-h1-colour: #292725;
}

body {
    background-color: var(--sun-beige);
    /* Global Background Match */
}

/* --- 1. Hero Banner --- */
.sunshine-hero-banner {
    width: 100%;
    margin-bottom: 0;
    background: var(--sun-beige);
    margin-top: -1.5%;
    position: relative;
    z-index: -1;
}

.sunshine-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 2. Intro Section --- */
.sunshine-intro-section {
    text-align: center;
    padding: 80px 20px 80px;
    background: var(--sun-beige);
}

.sunshine-title-wrapper {
    text-align: center;
    margin-bottom: 0%;
    display: inline-block;
}

.sunshine-page-title {
    font-family: 'Gilroy Black';
    font-size: 48px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    text-decoration: none !important;
    margin: 0;
    display: inline-block;
}

.sunshine-page-desc {
    color: #525252;
    max-width: 750px;
    margin: 15px auto 35px;
    line-height: 150%;
    font-family: 'Albert Sans';
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 0;
}

.sunshine-btn-download {
    background: var(--sun-red);
    color: #fff;
    border: none;
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
    /* Slight round, mostly rect */
    transition: transform 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
}

.sunshine-btn-download:hover {
    background: #b92b2d;
    /* transform: translateY(-2px); */
}

/* --- 3. Filter Strip (Scalloped) --- */
.sunshine-filter-strip {
    /* Slightly darker/richer beige for contrast */
    padding: 50px 0;
    position: relative;
    margin-bottom: 0;
}

/* Scallop Decorators */
.sunshine-scallop-top,
.sunshine-scallop-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 10px;
    background-size: 20px 20px;
    background-repeat: repeat-x;
}

.sunshine-scallop-top {
    top: -10px;
    background-image: radial-gradient(circle at 10px 0, transparent 10px, #fdf0d5 10.5px);
}

.sunshine-scallop-bottom {
    bottom: -10px;
    background-image: radial-gradient(circle at 10px 10px, #fdf0d5 10px, transparent 10.5px);
}

.sunshine-cat-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

.sunshine-filter-link {
    text-decoration: none;
    text-wrap-mode: nowrap;
    color: var(--sun-h1-colour) !important;
    text-transform: capitalize !important;
    font-weight: 500;
    font-size: 24px;
    padding-bottom: 0;
    border-bottom: 0;
    font-family: 'Gilroy Black';
    transition: all 0.2s;
}

.sunshine-filter-link:hover,
.sunshine-filter-link.active {
    color: var(--sun-red) !important;
}

.sunshine-filter-link.active {
    font-family: 'Tiempos Fine';
    color: #EE344D;
}

/* --- 4. Product Grid --- */
.sunshine-main-content {
    padding-bottom: 40px;
    background-color: #FCF7ED;
    padding-top: 80px;
}

.sunshine-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(342px, 1fr));
    gap: 24px;
    width: 100%;
}

.sunshine-card {
    background: #fff;
    /* White cards on beige bg */
    border-radius: 4px;
    /* Sharp-ish corners */
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgb(82 82 82 / 12%);
    border-radius: 16px;
}

.sunshine-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.sunshine-card-image {
    background: #fff;
    /* Inner image bg cream */
    height: 290px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
}

.sunshine-card-image img {
    height: 100%;
    object-fit: contain;
    width: 100%;
    transition: transform 0.4s ease;
    /*filter: drop-shadow(5px 9px 23px #0000001A) drop-shadow(18px 37px 41px #00000017) drop-shadow(41px 83px 56px #0000000D) drop-shadow(73px 148px 66px #00000003) drop-shadow(114px 231px 72px #00000000);*/
}

.sunshine-card:hover .sunshine-card-image img {
    /*transform: translate3d(0, 45px, 0) scale(1.1) rotate(-14.19deg);*/
    transform: scale(1.15);
    /* Subtle zoom */
}

.sunshine-card-content {
    padding: 7px 20px 20px;
    display: flex;
    justify-content: space-between;
    z-index: 9;
    position: relative;
    background: white;
    position: relative;
    align-items: center;
}

.sunshine-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: #222;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sunshine-card-meta {
    font-size: 14px;
    color: #777;
    margin: 0;
    font-weight: 400;
    font-family: 'Open Sauce Sans';
}

.sunshine-card-action {
    display: flex;
    justify-content: flex-end;
    /* Arrow to right */
    padding-right: 0;
    margin: 0;
}

.sunshine-card:hover .sunshine-arrow-box {
    background: var(--sun-red);
}

/* --- 5. Pagination --- */
.sunshine-pagination {
    margin: 60px 0 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sunshine-pagination .page-numbers {
    display: flex;
    width: 35px;
    height: 35px;
    line-height: 35px;
    margin: 0 5px;
    color: #404040;
    text-decoration: none;
    font-weight: 600;
    font-size: 25px;
    border-radius: 0;
    font-family: 'Gilroy Black';
    border-radius: 0px;
    align-items: center;
    justify-content: center;
}

.sunshine-pagination .page-numbers.current,
.sunshine-pagination .page-numbers:hover {
    color: var(--sun-red);
    border-radius: 0px;
    /*background: #fff;*/
}

.sunshine-pagination .page-numbers svg {
    width: 22px;
    height: 22px;
    padding-top: 5px;
}



/* --- 6. Popup Modal --- */
.sunshine-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(2px);
}

.sunshine-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sunshine-modal {
    background: #fff;
    padding: 40px;
    width: 90%;
    max-width: 480px;
    border-radius: 8px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
    text-align: center;
}

.sunshine-modal-overlay.active .sunshine-modal {
    transform: translateY(0);
}

.sunshine-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.sunshine-close-modal:hover {
    color: var(--sun-red);
}

/* --- 7. Single Product Variant Switcher (Keep Existing) --- */
.sunshine-variant-switcher {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.sunshine-variant-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
}

.sunshine-variant-btn.active {
    border-color: var(--sun-red);
    background: var(--sun-red);
    color: #fff;
}

.sunshine-info-grid-item.hidden {
    display: none;
}

button.sunshine-btn-download.sunshine-trigger-popup p {
    margin: 0;
}

.sunshine-narrow-container {
    margin: 0 auto;
    max-width: 1440px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

button.sunshine-btn-download.sunshine-trigger-popup {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    gap: 15px;
}


section.sunshine-filter-strip {}

.sunshine-card-info-wrapper {
    text-align: left;
    min-width: 0;
}

.sunshine-card-info-wrapper h3.sunshine-card-title {
    margin: 0;
    font-size: 20px;
    font-family: 'Gilroy Black';
    text-transform: capitalize;
    line-height: 150%;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}



/* --- SUNSHINE CARD HOVER ANIMATION --- */

/* 1. Base State */
.sunshine-arrow-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FAB000;
    transition: background-color 0.3s ease;
    box-shadow: 0px 7px 3px rgba(84, 84, 84, 0.01), 0px 4px 2px rgba(84, 84, 84, 0.05), 0px 2px 2px rgba(84, 84, 84, 0.09), 0px 0px 1px rgba(84, 84, 84, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
}

.sunshine-arrow-box svg {
    display: block;
    position: relative;
    transition: transform 0.3s ease;
    /* Smooth movement */
    z-index: 2;
}

/* 2. Hover Background Change */
.sunshine-card:hover .sunshine-arrow-box {
    background-color: var(--sun-red);
    /* Brand Red on Hover */
}

/* 3. The Left-to-Right Animation */
.sunshine-card:hover .sunshine-arrow-box svg {
    animation: slideRight 0.4s forwards;
}

@keyframes slideRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    49% {
        transform: translateX(30px);
        /* Move OUT to the right */
        opacity: 0;
    }

    50% {
        transform: translateX(-30px);
        /* Instantly jump to LEFT (invisible) */
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        /* Slide IN to center */
        opacity: 1;
    }
}

/* Optional: Slight Lift on Card Hover for premium feel */
.sunshine-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.sunshine-absoulute-card-image {
    position: absolute;
    width: 100%;
    top: -5px;
    z-index: 1;
    left: 0;
    right: 0;
}


section.background-element-section.badge.top {
    background-image: url(https://ahura.xyz/sunshine/wp-content/uploads/2026/01/Group-3469224-scaled.png);
    background-position: top;
    height: 2vh;
    margin-top: -1%;
    position: relative;
    background-repeat: no-repeat;
}


section.background-element-section.white.top {
    background-image: url(https://ahura.xyz/sunshine/wp-content/uploads/2026/01/Group-3469224-scaled.png);
    margin-top: -1%;
    height: 2vh;
}

section.background-element-section.white.bottom {
    background-image: url(https://ahura.xyz/sunshine/wp-content/uploads/2026/01/Group-3469224-scaled.png);
    background-position: bottom;
    height: 2vh;
    margin-top: 0%;
    position: relative;
    background-repeat: no-repeat;
}

p.sunshine-card-desc{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    font-family: 'Albert Sans';
    margin: 0;
    padding-top: 3px;
}

@media screen and (min-width: 768px) and (max-width: 1440px) {
    .sunshine-archive-grid {
        padding: 0 5%;
    }
}

@media screen and (max-width: 1440px) {
    section.background-element-section.badge.top{
        margin-top: -2%;
        height: 3vh;
    }
    .sunshine-banner-img{
        height: 400px;
        object-fit: cover;
    }
}
@media screen and (max-width: 1024px) {
    .sunshine-hero-banner{
        margin-top: -3%;
    }
    section.background-element-section.badge.top{
        margin-top: -2%;
        height: 3vh;
    }
    .sunshine-filter-strip{
        padding: 30px 0;
    }
}

@media screen and (max-width: 768px) {
    .sunshine-banner-img {
        width: 100%;
        height: 400px;
        display: block;
        object-fit: cover;
        object-position: left;
    }

    .sunshine-page-desc {
        font-size: 14px;
    }

    .sunshine-page-title {
        font-size: 28px !important;
    }

    .sunshine-intro-section {
        text-align: center;
        padding: 50px 20px 60px;
    }

    .sunshine-btn-download {
        padding: 10px 20px !important;
        text-transform: uppercase;
        font-weight: 400 !important;
        font-size: 18px !important;
    }

    button.sunshine-btn-download.sunshine-trigger-popup svg {
        width: 18px;
        height: 18px;
    }

    .sunshine-archive-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 0 5%;
    }

    .sunshine-card-info-wrapper h3.sunshine-card-title {
        font-size: 20px;
    }

    .sunshine-filter-link {
        font-size: 20px;
    }

    .sunshine-cat-filter {
        display: flex;
        flex-wrap: unset;
        gap: 50px;
        overflow-x: scroll;
        flex-direction: row;
        width: 100%;
        padding: 0 0 0 5%;
        justify-content: flex-start;
    }

    section.sunshine-filter-strip {
        background-size: 1500px 100% !important;
    }
    
    .sunshine-main-content{
        padding-bottom: 20px;
        background-color: #FCF7ED;
        padding-top: 60px;
    }
}

@media screen and (max-width: 580px) {
    
    .sunshine-hero-banner{
        margin-top: -4%;
    }
    img.sunshine-absoulute-card-image {
        display: none;
    }

    .sunshine-link-wrapper {
        display: grid;
        grid-template-columns: 35% 65%;
    }

    .sunshine-card-content {
        padding: 20px 15px 20px 0;
        display: flex;
        flex-direction: unset;
        z-index: 9;
        position: relative;
        background: white;
        align-items: center;
        gap: 1rem;
        justify-content: space-between;
    }

    .sunshine-card-image img {
        height: 100%;
        object-fit: cover;
        width: 100%;
        transition: transform 0.4s ease;
    }

    .sunshine-card-image {
        background: #fff;
        height: 140px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .sunshine-card-meta {
        font-size: 12px;
    }

    .sunshine-card-info-wrapper h3.sunshine-card-title {
        font-size: 18px;
    }

    .sunshine-card-action {
        display: none;
        opacity: 0;
        pointer-events: none;
    }

    .sunshine-card:hover .sunshine-card-image img {
        /*transform: translate3d(0, 19px, 0) scale(1.1) rotate(-14.19deg);*/
        transform: scale(1.15);
    }

    .sunshine-filter-link {
        font-size: 20px;
    }

    .sunshine-cat-filter {
        gap: 30px;
        padding: 0 0 0 5%;
        justify-content: flex-start;
    }
    
    section.background-element-section.badge.top{
        height: 3vh;
        margin-top: -4%;
    }
    
    .sunshine-main-content{
        padding-top: 50px;
    }
}