/* ========================================== */
/* RESET & BASE STYLES                         */
/* ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

@font-face {
    font-family: "KNMaiyuan-Regular";
    src: url("./KNMaiyuan-Regular.ttf") format("woff2"),
         url("./KNMaiyuan-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "Vividly-Regular";
    src: url("./Vividly-Regular.otf") format("woff2"),
         url("./Vividly-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "Dreamy Notes Script";
    src: url("./Dreamy\ Notes\ Script.otf") format("woff2"),
         url("./Dreamy\ Notes\ Script.otf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #fff5fa;
    font-family: "Vividly-Regular", sans-serif;
    color: #5b1133;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    /* Fix: Removes the vertical double scrollbar issue on Chrome */
    overflow-y: auto; 
    overflow-x: hidden; 
    width: 100%;
}

/* ========================================== */
/* CONTAINER - FULLY RESPONSIVE NOW!           */
/* ========================================== */
.collection-page {
    /* Fix: Now it takes up 100% of the screen width on desktop, 
       but stays centered and keeps its cuteness */
    width: 100%;
    max-width: 100%; 
    padding: 40px 20px 80px;
    position: relative;
    background-color: #fff5fa;
    
    /* Fix: Makes sure the layout centers nicely on big screens */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Fix: Keeps the text & content inside a pretty 450px column on Desktop,
   but stretches to full width on Mobile! */
.collection-page > * {
    width: 100%;
    max-width: 450px;
}

/* ========================================== */
/* BACKGROUND BLOBS                             */
/* ========================================== */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: -1;
    background-color: #ffffff;
    /* Fix: Stops blobs from accidentally causing scrollbars */
    pointer-events: none; 
}
.blob-1 { top: -20px; left: -80px; width: 300px; height: 300px; }
.blob-2 { top: 400px; right: -100px; width: 250px; height: 250px; background: #ffe8f3; }
.blob-3 { top: 1100px; left: -60px; width: 350px; height: 350px; }
.blob-4 { bottom: -50px; right: -80px; width: 280px; height: 280px; }

/* ========================================== */
/* HERO SECTION                                 */
/* ========================================== */
.hero-section {
    text-align: center;
    padding-top: 20px;
    margin-bottom: 40px;
}

.back-btn {
    display: inline-block;
    margin-bottom: 25px;
    color: #5b1133;
    font-size: 13px;
    text-decoration: none;
    border: 1.5px solid #ffadd6;
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.4s ease;
}
.back-btn:hover {
    background: #ffe8f3;
    transform: translateX(-5px);
}

.collection-title {
    font-family: "Dreamy Notes Script", cursive;
    font-size: 27px;
    line-height: 1;
    color: #5b1133;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero-circle {
    display: inline-block;
    padding: 12px 24px;
    border: 1.5px solid #ffadd6;
    border-radius: 40px;
    background: #ffffff;
    font-family: "Dreamy Notes Script", cursive;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 173, 214, 0.2);
}

/* ========================================== */
/* INTRO SECTION                                */
/* ========================================== */
.intro-section {
    text-align: center;
    padding: 20px 0 30px;
}
.script-heading {
    font-family: "Dreamy Notes Script", cursive;
    font-size: 27px;
    margin-bottom: 15px;
    line-height: 1.2;
}
.intro-text {
    font-size: 14px;
    line-height: 1.8;
    padding: 0 10px;
    opacity: 0.85;
    margin-bottom: 20px;
}
.divider {
    width: 40px;
    height: 2px;
    background: #ffadd6;
    margin: 0 auto;
    border-radius: 5px;
}

/* ========================================== */
/* SECTION TITLES                               */
/* ========================================== */
.section-title {
    font-family: "Dreamy Notes Script", cursive;
    font-size: 27px;
    text-align: center;
    margin: 40px 0 25px;
}

/* ========================================== */
/* PRODUCT GRID                                 */
/* ========================================== */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-link {
    text-decoration: none;
    color: inherit; 
    display: block; 
    transition: all 0.4s ease;
}

.product-link:hover .product-card {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(255, 173, 214, 0.4);
    border-color: #ff8ec4;
}

.product-card {
    background: #ffffff;
    border: 1.5px solid #ffadd6;
    border-radius: 25px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 15px rgba(255, 173, 214, 0.1);
}

.product-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid #ffe8f3;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffe8f3;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-info h3 {
    font-family: "Dreamy Notes Script", cursive;
    font-size: 14px;
    margin-bottom: 4px;
}
.product-info .desc {
    font-size: 11.5px;
    line-height: 1.5;
    opacity: 0.8;
    margin-bottom: 10px;
}
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.price {
    font-size: 16px;
    font-weight: 500;
}
.add-btn {
    background: #ffe8f3;
    border: 1px solid #ffadd6;
    border-radius: 25px;
    padding: 6px 16px;
    font-family: "Vividly-Regular", sans-serif;
    font-size: 12px;
    color: #5b1133;
    pointer-events: none; 
    cursor: default;
}

/* ========================================== */
/* ROUTINE / HOW TO USE SECTION                */
/* ========================================== */
.routine-section {
    background: rgba(255, 255, 255, 0.5);
    border: 1.5px solid #ffadd6;
    border-radius: 30px;
    padding: 30px 20px;
    margin: 50px 0 40px;
    text-align: center;
}

.routine-steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 15px;
    text-align: left;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.step-num {
    font-family: "Dreamy Notes Script", cursive;
    font-size: 22px;
    color: #ffadd6;
    width: 35px;
    flex-shrink: 0;
}
.step-text h4 {
    font-size: 15px;
    margin-bottom: 3px;
    font-weight: normal;
}
.step-text p {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.5;
}

/* ========================================== */
/* REVIEWS SECTION                             */
/* ========================================== */
.reviews-section {
    text-align: center;
    margin-bottom: 50px;
}
.review-card {
    background: #ffffff;
    border: 1.5px solid #ffe8f3;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
}
.review-text {
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 10px;
}
.reviewer {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
}
.stars {
    color: #ffadd6;
    letter-spacing: 3px;
    font-size: 14px;
}

/* ========================================== */
/* FOOTER                                      */
/* ========================================== */
.footer-section {
    text-align: center;
    padding-top: 10px;
}
.footer-circle {
    width: 90px;
    height: 90px;
    background-color: #ffffff;
    border-radius: 50%;
    border: 1.5px solid #ffadd6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.5s ease;
    cursor: pointer;
}
.footer-circle:hover {
    transform: rotate(-5deg) scale(1.05);
    background: #fff0f5;
}
.text-wrapper-56 {
    font-family: "Dreamy Notes Script", cursive;
    font-size: 18px;
    color: #5b1133;
}
.footer-text {
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.5;
    max-width: 200px;
    margin: 0 auto;
}


/* ========================================== */
/* 🌟 ANIMATIONS                               */
/* ========================================== */
.anim-sky {
    opacity: 0;
    transform: translateY(60px);
    filter: blur(2px);
    transition: all 2s cubic-bezier(0.16, 1, 0.3, 1);
}
.anim-sky.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.anim-ripple {
    opacity: 0;
    transform: translateX(-20px);
    letter-spacing: -1px;
    transition: all 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim-ripple.revealed {
    opacity: 1;
    transform: translateX(0);
    letter-spacing: normal;
}

.anim-pearl {
    opacity: 0;
    transform: scale(0.8);
    transition: all 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-pearl.revealed {
    opacity: 1;
    transform: scale(1);
}

.anim-cloud {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
    transition: all 2.4s ease;
}
.anim-cloud.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.anim-rise {
    opacity: 0;
    transform: translateY(40px) rotate(-1deg);
    transition: all 2s cubic-bezier(0.23, 1, 0.32, 1);
}
.anim-rise.revealed {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.anim-wind {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 2.6s ease-out;
}
.anim-wind.revealed {
    opacity: 1;
    transform: translateX(0);
}

.anim-blob {
    opacity: 0;
    transform: scale(0.9);
    transition: all 3s ease-out;
}
.anim-blob.revealed {
    opacity: 0.6;
    transform: scale(1);
}