/*========================
  CRYSTAL HERO
=========================*/

.crystal-hero {
    position: relative;
    padding: 170px 0 100px;
    background: linear-gradient(135deg, #2d114f, #5d2b88, #b15cff);
    overflow: hidden;
    color: #fff;
}

.crystal-hero .overlay {
    position: absolute;
    inset: 0;
    background: url("../images/crystal-pattern.png");
    opacity: .08;
}

.crystal-hero h1 {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
}

.crystal-hero h1 span {
    color: #FFD54F;
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, .15);
    border-radius: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.floating-img {
    max-width: 480px;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

}

/*========================
 SEARCH
=========================*/

.search-section {
    background: #fff;
    padding: 60px 0;
}

.search-box {
    max-width: 700px;
    margin: auto;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 22px;
    top: 20px;
    color: #888;
}

.search-box input {
    width: 100%;
    height: 60px;
    border-radius: 50px;
    border: none;
    padding-left: 60px;
    font-size: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .08);
    outline: none;
}

.search-box input:focus {

    box-shadow: 0 15px 40px rgba(177, 92, 255, .35);

}

/*========================
 CATEGORY
=========================*/

.category-filter {

    margin-top: 40px;

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;

}

.filter-btn {

    padding: 12px 26px;

    border: none;

    border-radius: 40px;

    background: #f3e7ff;

    color: #5d2b88;

    font-weight: 600;

    transition: .35s;

    cursor: pointer;

}

.filter-btn:hover {

    background: #b15cff;

    color: #fff;

}

.filter-btn.active {

    background: #5d2b88;

    color: #fff;

}

/*========================
 PRODUCT
=========================*/

.product-card {

    background: #fff;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 10px 35px rgba(0, 0, 0, .08);

    transition: .4s;

    height: 100%;

    position: relative;

}

.product-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 20px 50px rgba(93, 43, 136, .25);

}

.product-card img {

    width: 100%;

    height: 300px;

    object-fit: cover;

    transition: .4s;

}

.product-card:hover img {

    transform: scale(1.08);

}

.sale {

    position: absolute;

    top: 15px;

    left: 15px;

    background: #ff3d71;

    color: #fff;

    padding: 7px 15px;

    border-radius: 30px;

    font-size: 13px;

    font-weight: 600;

    z-index: 5;

}

.product-content {

    padding: 25px;
    margin-top: -35px;

    text-align: center;

}

.product-content h3 {

    font-size: 24px;

    font-weight: 700;

    color: #4b1d73;

    margin-bottom: 0px;

}

.product-content p {

    color: #666;

    min-height: 0px;

}

.rating {

    color: #ffc107;

    font-size: 18px;

    margin: 15px 0;

}

.price {

    font-size: 28px;

    font-weight: 700;

    color: #b15cff;

    margin-bottom: 10px;

}

.price del {

    font-size: 17px;

    color: #999;

    margin-left: 10px;

}

.hero-btn {

    background: linear-gradient(45deg, #5d2b88, #b15cff);

    color: #fff;

    border: none;

    border-radius: 50px;

    padding: 12px 28px;

    transition: .35s;

}

.hero-btn:hover {

    background: linear-gradient(45deg, #b15cff, #ff66cc);

    transform: translateY(-3px);

    color: #fff;

}

/*========================
 LOAD MORE
=========================*/

#loadMore {

    padding: 15px 45px;

    font-size: 18px;

}

/*========================
 NO PRODUCT
=========================*/

#noProduct {

    padding: 60px 0;

}

#noProduct h3 {

    color: #5d2b88;

    font-weight: 700;

}

/*========================
 RESPONSIVE
=========================*/

@media(max-width:991px) {

    .crystal-hero {

        text-align: center;

        padding: 140px 0 80px;

    }

    .crystal-hero h1 {

        font-size: 42px;

    }

    .floating-img {

        margin-top: 40px;

        max-width: 320px;

    }

}

@media(max-width:600px) {

    .search-box input {

        font-size: 16px;

    }

    .filter-btn {

        padding: 10px 18px;

        font-size: 14px;

    }

    .product-card img {

        height: 400px;

    }

    .crystal-hero h1 {

        font-size: 34px;

    }

}

/*==============================
CRYSTAL CTA
==============================*/

.crystal-cta {

    background: linear-gradient(135deg, #6A1B9A, #8E24AA, #EC407A);

    padding: 80px 0;

    color: #fff;

    border-radius: 25px;

    margin: 80px 0;

    position: relative;

    overflow: hidden;

}

.crystal-cta::before {

    content: "";

    position: absolute;

    width: 350px;

    height: 350px;

    background: rgba(255, 255, 255, .08);

    border-radius: 50%;

    top: -120px;

    right: -120px;

}

.crystal-cta::after {

    content: "";

    position: absolute;

    width: 250px;

    height: 250px;

    background: rgba(255, 255, 255, .05);

    border-radius: 50%;

    bottom: -80px;

    left: -80px;

}

.crystal-cta h2 {

    font-size: 42px;

    font-family: 'Cinzel', serif;

    margin: 20px 0;

}

.crystal-cta p {

    font-size: 17px;

    line-height: 1.9;

    opacity: .95;

    margin-bottom: 30px;

}

.cta-features {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

    margin-top: 20px;

}

.cta-features div {

    font-size: 16px;

}

.cta-features i {

    color: #FFD54F;

    margin-right: 10px;

}

.cta-buttons {

    background: rgba(255, 255, 255, .1);

    padding: 35px;

    border-radius: 20px;

    backdrop-filter: blur(10px);

}

.cta-buttons .btn {

    padding: 15px;

    font-weight: 600;

    border-radius: 50px;

    transition: .4s;

}

.cta-buttons .btn:hover {

    transform: translateY(-5px);

}

@media(max-width:768px) {

    .cta-features {

        grid-template-columns: 1fr;

    }

    .crystal-cta h2 {

        font-size: 30px;

        text-align: center;

    }

    .crystal-cta p {

        text-align: center;

    }

}

/*==============================
BACK TO TOP BUTTON
==============================*/

#topBtn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #8A2BE2, #F06292);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(138, 43, 226, .35);
    transition: .4s ease;
    z-index: 999999;
}

#topBtn:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 15px 35px rgba(138, 43, 226, .5);
}

#topBtn i {
    pointer-events: none;
}

#topBtn.show {
    display: flex;
}

/* =========================================
   CRYSTAL PRODUCT IMAGES
========================================= */

.crystal-card {
    overflow: hidden;
    height: 100%;
}

.crystal-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.crystal-card:hover img {
    transform: scale(1.05);
}


/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .crystal-card img {
        width: 100%;
        height: 250px;
        object-fit: contain;
        padding: 10px;
    }

}


/* SMALL MOBILE */

@media (max-width: 576px) {

    .crystal-card {
        width: 100%;
    }

    .crystal-card img {
        width: 100%;
        height: 220px;
        object-fit: contain;
        padding: 8px;
    }

}

/* =========================================
   CRYSTALS PAGE RESPONSIVE
========================================= */

/* Main Crystal Section */

.crystals-section {
    width: 100%;
    overflow: hidden;
}


/* =========================================
   SEARCH BAR
========================================= */

.crystal-search {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
}

.crystal-search input {
    width: 100%;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 0 25px;
    outline: none;
    font-size: 15px;
}

.crystal-search input:focus {
    border-color: #8A2BE2;
    box-shadow: 0 0 10px rgba(138, 43, 226, .15);
}


/* =========================================
   CATEGORY BUTTONS
========================================= */

.category-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.category-buttons button {
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    background: #f3e9f8;
    color: #5a2775;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s ease;
}

.category-buttons button:hover,
.category-buttons button.active {
    color: #fff;
    background: linear-gradient(135deg,
            #7B1FA2,
            #E91E63);
    transform: translateY(-2px);
}


/* =========================================
   PRODUCT CARD
========================================= */

.crystal-card {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: all .4s ease;
}

.crystal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(91, 39, 117, .15);
}


/* =========================================
   PRODUCT IMAGE
========================================= */

.crystal-card img {
    width: 100%;
    height: 280px;
    display: block;
    object-fit: contain;
    padding: 15px;
}


/* =========================================
   PRODUCT CONTENT
========================================= */

.crystal-card-content {
    padding: 20px;
}

.crystal-card h3 {
    color: #4B1F6F;
    font-size: 21px;
    margin-bottom: 8px;
}

.crystal-card p {
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

.crystal-card .btn {
    border-radius: 25px;
    padding: 9px 20px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .crystal-card img {
        height: 240px;
    }

    .crystal-card-content {
        padding: 17px;
    }

    .crystal-card h3 {
        font-size: 19px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .crystals-section {
        padding-left: 15px;
        padding-right: 15px;
    }


    /* Search */

    .crystal-search {
        margin-bottom: 20px;
    }

    .crystal-search input {
        height: 46px;
        font-size: 14px;
        padding: 0 18px;
    }


    /* Categories */

    .category-buttons {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 5px 2px 12px;
        margin-bottom: 25px;

        scrollbar-width: none;
    }

    .category-buttons::-webkit-scrollbar {
        display: none;
    }

    .category-buttons button {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 9px 16px;
        font-size: 13px;
    }


    /* Product Card */

    .crystal-card {
        border-radius: 16px;
    }


    /* Product Image */

    .crystal-card img {
        width: 100%;
        height: 220px;
        object-fit: contain;
        padding: 10px;
    }


    /* Content */

    .crystal-card-content {
        padding: 15px;
    }

    .crystal-card h3 {
        font-size: 18px;
    }

    .crystal-card p {
        font-size: 13px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .crystal-search input {
        height: 44px;
    }

    .category-buttons {
        margin-bottom: 20px;
    }

    .category-buttons button {
        font-size: 12px;
        padding: 8px 14px;
    }

    .crystal-card img {
        height: 200px;
    }

    .crystal-card-content {
        padding: 13px;
    }

    .crystal-card h3 {
        font-size: 17px;
    }

}