/* --- GLOBAL VARIABLES --- */
:root {
    --sun-beige: #FFFFFF;
    /* Page Background */
    --sun-red: #FAB000;
    --sun-card-bg: #fff;
    --sun-text: #000000;
}

/* ------------------------------------------------------------- Home pgae Cetegory Listing Css ------------------------------------------------------------- */
.sunshine-featured-hero {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.featured-grid .featured-item {
    background: #FFFFFF;
    border-radius: 16px;
    height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.featured-grid .featured-item .image-wrapper a {
    display: inline-block;
    width: 100%;
    text-align: center;
}

.featured-grid .featured-item .image-wrapper a img {
    width: 90%;
    margin: 0 auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 0 auto;
}

.view-all-container {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

a.sunshine-btn.category-list-link {
    padding: 0;
    border: 0;
}

.category-title {
    font-family: 'Gilroy Black';
    margin: 0;
    font-size: 25px;
    line-height: 40px;
}

.category-title a {
    color: #000000;
}

.category-description {
    font-size: 16px;
    font-family: 'Albert Sans';
    margin: 0;
}

.content-wrapper {
    padding: 0 25px 25px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sunshine-btn-icon-box.category-list-wrapper {
    width: 45px;
    height: 45px;
}

.sunshine-btn-icon-box.category-list-wrapper .sunshine-btn-svg {
    width: 17px;
    height: 17px;
}

@media screen and (max-width:1024px) {
    .featured-grid {
        padding: 0 5%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .category-title {
        font-size: 20px;
        line-height: 30px;
    }

    .category-description {
        font-size: 14px;
    }

    .sunshine-btn-icon-box.category-list-wrapper {
        width: 40px;
        height: 40px;
    }

    .sunshine-btn-icon-box.category-list-wrapper .sunshine-btn-svg {
        width: 15px;
        height: 15px;
    }
}

@media screen and (max-width: 768px) {
    .featured-grid {
        padding: 0 5%;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .featured-grid .featured-item {
        height: 320px;
    }

    .featured-grid .featured-item .image-wrapper a img {
        width: 65%;
        margin: 0 auto;
    }
}

/* ------------------------------------------------------------- Home pgae Cetegory Listing Css ------------------------------------------------------------- */





/* -------------------------------------------- Product Listing Page Css ----------------------------------------------------* /

/* --- WRAPPER --- */
.sunshine-archive-wrapper {
    background-color: var(--sun-beige);
    min-height: 100vh;
    padding-bottom: 80px;
    font-family: 'Helvetica Neue', sans-serif;
}

/* --- HEADER --- */
.sunshine-archive-header {
    text-align: center;
    padding: 80px 20px 40px;
    background-size: cover;
    background-position: center;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--sun-red);
    text-transform: uppercase;
    margin: 0;
}

.header-content p {
    max-width: 600px;
    margin: 10px auto 0;
    color: #666;
    line-height: 1.5;
}

/* --- CATALOG CTA STRIP --- */
.catalog-cta-strip {
    text-align: center;
    margin-bottom: 40px;
}

.btn-download {
    background: var(--sun-red);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
    background: #b01f21;
}

/* --- FILTER TABS --- */
.sunshine-filters-container {
    background: #ffeeda;
    /* Lighter beige strip */
    padding: 15px 0;
    margin-bottom: 50px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.tab-item {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 5px;
}

.tab-item.active,
.tab-item:hover {
    color: var(--sun-red);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--sun-red);
}

/* --- PRODUCT GRID --- */
.sunshine-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

/* --- SCALLOPED CARD UI --- */
.sunshine-card-item {
    position: relative;
    background: transparent;
    /* Drop shadow on the whole shape */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease;
}

.sunshine-card-item:hover {
    transform: translateY(-8px);
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.1));
}

.card-inner {
    background: #fff;
    padding: 20px 20px 40px 20px;
    /* Extra bottom padding for info */
    position: relative;
    z-index: 1;
}

/* SCALLOPED EDGE (Pure CSS) */
.card-scallop-edge {
    height: 15px;
    width: 100%;
    background: #fff;
    position: absolute;
    bottom: -15px;
    left: 0;
    /* Zigzag Pattern */
    background-image: linear-gradient(135deg, #fff 25%, transparent 25%),
        linear-gradient(225deg, #fff 25%, transparent 25%);
    background-position: 50% 0;
    background-size: 20px 20px;
    /* Size of zigzag */
    background-repeat: repeat-x;
}

/* Hover Animations */
.card-image-area {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Mask the scaling */
}

.card-image-area img {
    max-height: 180px;
    width: auto;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sunshine-card-item:hover .card-image-area img {
    transform: scale(1.15);
    /* Smooth Scale Up */
}

/* Card Text */
.card-info-area {
    text-align: left;
    margin-top: 15px;
}

.card-info-area h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.card-info-area h3 a {
    text-decoration: none;
    color: #222;
}

.variant-text {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* Action Button (Arrow) */
.card-action-row {
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.action-btn {
    width: 35px;
    height: 35px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    border-radius: 2px;
    overflow: hidden;
    transition: background 0.2s;
}

.sunshine-card-item:hover .action-btn {
    background: var(--sun-red);
}

/* Arrow Animation (Slide Out Right, In From Left) */
.arrow-icon {
    display: block;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.sunshine-card-item:hover .arrow-icon {
    animation: arrowSlide 0.4s forwards;
}

@keyframes arrowSlide {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    49% {
        transform: translateX(20px);
        opacity: 0;
    }

    50% {
        transform: translateX(-20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- POPUP MODAL --- */
.sunshine-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sunshine-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.sunshine-popup-content {
    background: #fff;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sunshine-popup-overlay.active .sunshine-popup-content {
    transform: scale(1);
    /* Grow effect */
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.popup-close:hover {
    color: var(--sun-red);
}