/*
======================
    CATALOGUE HERO
======================
*/
.catalogue-hero {
    position: relative;
    padding: 120px 20px 90px;
    text-align: center;
    color: #FFF;
    overflow: hidden;
}

.catalogue-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/img/GiftHero.png') center/cover no-repeat;
    z-index: 0;
}

.catalogue-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(52, 36, 154, 0.65), rgba(34, 20, 120, 0.85));
    z-index: 1;
}

.catalogue-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.catalogue-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.catalogue-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/*
=========================
    CATALOGUE FILTERS
=========================
*/
.catalogue-filters {
    margin: 50px auto 30px;
    padding: 0 20px;
}

.filter-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.gift-cat {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gift-cat button {
    padding: 10px 18px;
    background: #F1EEFF;
    border: 1px solid #D8D2FF;
    color: #4B3FCF;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gift-cat button:hover,
.gift-cat button.active {
    background: #7A5AF8;
    color: #FFF;
    border-color: #7A5AF8;
    transform: translateY(-2px);
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-sort label {
    font-weight: 600;
    color: #4A3F7A;
}

.filter-sort select {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #D8D2FF;
    background: #F9F7FF;
    color: #4B3FCF;
    font-weight: 500;
    cursor: pointer;
    transition: border 0.25s ease;
}

.filter-sort select:hover {
    border-color: #7A5AF8;
}

/*
======================
    CATALOGUE GRID
======================
*/
.catalogue-grid-section {
    padding: 40px 20px 60px;
}

.catalogue-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.catalogue-empty {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: #555;
    opacity: 0.85;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    margin-top: 20px;
    animation: fadeIn 0.35s ease-out;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    border: 1px solid #E8E4FF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 12px;
}

.product-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4A3F7A;
    margin-bottom: 6px;
}

.product-card p {
    font-size: 0.9rem;
    color: #6B6785;
    margin-bottom: 10px;
    min-height: 40px;
}

.product-card .product-desc {
    font-size: 0.9rem;
    color: #6B6785;
    margin-bottom: 10px;
}

.product-card .price {
    display: inline-block;
    margin-top: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #4B3FCF;
}

/*
=======================
    WATERMARKS
=======================
*/
.egg-watermark {
    position: absolute;
    bottom: 10px;
    right: 20px;
    width: 100px;
    opacity: 0.18;
    pointer-events: none;
    user-select: none;
    display: inline-block;
    margin: 0;
    padding: 0;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    text-align: right;
    object-position: right bottom;
}

.anzac-watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 120px;
    max-height: 120px;
    opacity: 0.18;
    pointer-events: none;
    user-select: none;
    display: inline-block;
    margin: 0;
    padding: 0;
    height: auto;
    object-fit: contain;
    object-position: right bottom;
}

.afl-watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 100px;
    opacity: 0.18;
    pointer-events: none;
    user-select: none;
    display: block;
    margin: 0;
    padding: 0;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    object-position: right bottom;
}

.xmas-watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 110px;
    max-height: 110px;
    opacity: 0.18;
    pointer-events: none;
    user-select: none;
    display: inline-block;
    margin: 0;
    padding: 0;
    height: auto;
    object-fit: contain;
    object-position: right bottom;
}

/*
=======================
    CAROUSEL
=======================
*/
.carousel {
    position: relative;
}

.carousel img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
}

.carousel-prev {
    left: 5px;
}

.carousel-next {
    right: 5px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.9);
}

/*
============================
    CATALOGUE PAGINATION
============================
*/
.catalogue-pagination {
    padding: 40px 20px 60px;
    text-align: center;
}

.pagination-wrapper {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 16px;
    background: #F1EEFF;
    border: 1px solid #D8D2FF;
    color: #4B3FCF;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 45px;
}

.page-btn:hover {
    background: #7A5AF8;
    color: #FFF;
    border-color: #7A5AF8;
    transform: translateY(-2px);
}

.page-btn.active {
    background: #7A5AF8;
    color: #FFF;
    border-color: #7A5AF8;
    font-weight: 600;
}

.page-btn.prev,
.page-btn.next {
    padding: 10px 20px;
}

/*
=================
    ANIMATION
=================
*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
======================================
    RESPONSIVE CODE (SMALL MOBILE)
======================================
*/
@media (max-width: 480px) {

    .catalogue-hero {
        padding: 80px 16px 60px;
    }

    .catalogue-hero h1 {
        font-size: 1.8rem;
    }

    .catalogue-hero p {
        font-size: 0.95rem;
    }

    .catalogue-filters {
        margin: 30px auto 20px;
    }

    .filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .gift-cat {
        gap: 8px;
    }

    .gift-cat button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .filter-sort {
        width: 100%;
    }

    .filter-sort select {
        flex: 1;
    }

    .catalogue-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-card {
        padding: 12px;
    }

    .product-card img,
    .carousel img {
        height: 120px;
    }

    .product-card h3 {
        font-size: 0.9rem;
    }

    .product-card p,
    .product-card .product-desc {
        font-size: 0.78rem;
        min-height: auto;
    }

    .product-card .price {
        font-size: 0.95rem;
    }

    .egg-watermark,
    .anzac-watermark,
    .afl-watermark,
    .xmas-watermark {
        width: 60px;
        max-height: 60px;
    }

    .catalogue-pagination {
        padding: 20px 16px 40px;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 36px;
    }

    .page-btn.prev,
    .page-btn.next {
        padding: 8px 14px;
    }
}

/*
================================
    RESPONSIVE CODE (MOBILE)
================================
*/
@media (max-width: 768px) {

    .catalogue-hero {
        padding: 90px 20px 70px;
    }

    .catalogue-hero h1 {
        font-size: 2.2rem;
    }

    .catalogue-hero p {
        font-size: 1rem;
    }

    .filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .gift-cat button {
        padding: 9px 14px;
        font-size: 0.85rem;
    }

    .catalogue-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .product-card img,
    .carousel img {
        height: 150px;
    }

    .product-card h3 {
        font-size: 1rem;
    }

    .egg-watermark,
    .anzac-watermark,
    .afl-watermark,
    .xmas-watermark {
        width: 75px;
        max-height: 75px;
    }
}

/*
================================
    RESPONSIVE CODE (TABLET)
================================
*/
@media (min-width: 769px) and (max-width: 1024px) {

    .catalogue-hero {
        padding: 100px 20px 80px;
    }

    .catalogue-hero h1 {
        font-size: 2.6rem;
    }

    .catalogue-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .product-card img,
    .carousel img {
        height: 160px;
    }

    .gift-cat button {
        padding: 9px 16px;
        font-size: 0.88rem;
    }

    .egg-watermark,
    .anzac-watermark,
    .afl-watermark,
    .xmas-watermark {
        width: 90px;
        max-height: 90px;
    }
}