/* === RESET & BASE === */
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

body {
    font-family: "Vividly-Regular", "Single Day", Helvetica, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
@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: "Peperrito Ornaments Regular";
    src: url("./PeperritoOrnaments-Regular.otf") format("woff2"),
         url("./PeperritoOrnaments-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "Bunbun";
    src: url("./Bunbun\ DEMO.otf") format("woff2"),
         url("./Bunbun\ DEMO.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "Kinan";
    src: url("./Kinan.ttf") format("woff2"),
         url("./Kinan.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* === CUSTOM FONTS === */
@font-face { font-family: "Vividly-Regular"; src: local("Vividly-Regular"); }
@font-face { font-family: "Single Day-Regular"; src: local("Single Day-Regular"); }
@font-face { font-family: "Kinan Regular"; src: local("Kinan-Regular"); }

/* === PRODUCT PAGE WRAPPER === */
.product-page {
    max-width: 420px;
    margin: 0 auto;
    background-color: #fff2f6;
    overflow: hidden;
    position: relative;
}

/* === NAVIGATION === */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    background-color: #fff2f6;
}
.back-btn {
    font-family: "Vividly-Regular", Helvetica;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    border: 2.75px solid #ff9fba;
    border-radius: 22.66px;
    padding: 8px 20px;
    background: #ffe6ed;
    transition: 0.3s;
}
.back-btn:hover { background: #ff9fba; color: white; }
.cat-logo-small { width: 55px; height: 55px; }

/* === PRODUCT WRAPPER === */
.product-wrapper {
    padding: 0 20px 20px 20px;
}

/* === PRODUCT IMAGE SECTION === */
.product-image-box {
    position: relative;
    margin-bottom: 20px;
}
.product-img {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 22.66px;
    border: 2.75px solid #ff9fba;
    box-shadow: 0 4px 15px rgba(255, 159, 186, 0.2);
}

/* Cute Badges */
.product-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffdae4;
    color: white;
    padding: 8px 16px;
    border-radius: 22.66px;
    font-family: "Vividly-Regular";
    font-size: 14px;
    border: 2px solid #fff;
    transform: rotate(5deg);
    box-shadow: 0 2px 10px rgba(255, 159, 186, 0.4);
}
.product-badge-2 {
    position: absolute;
    top: 20px;
    left: -10px;
    background: #ffe6ed;
    color: #000;
    padding: 6px 14px;
    border-radius: 22.66px;
    font-family: "Vividly-Regular";
    font-size: 14px;
    border: 2px solid #ff9fba;
    transform: rotate(-5deg);
}
.product-badge-3 {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #fff;
    color: #ff9fba;
    padding: 6px 12px;
    border-radius: 22.66px;
    font-family: "Vividly-Regular";
    font-size: 14px;
    border: 2px solid #ff9fba;
    transform: rotate(-10deg);
}

/* === PRODUCT INFO SECTION === */
.product-info-box {
    background-color: #fff3f6;
    padding: 25px;
    border-radius: 22.66px;
    border: 2.75px solid #ff9fba;
}

/* Header & Rating */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.product-header h1 {
    font-family: "Kinan";
    font-size: 28px;
    -webkit-text-stroke: 0.5px #000;
    max-width: 60%;
    line-height: 1.2;
}
.product-rating {
    text-align: right;
}
.product-rating .stars {
    color: #ff9fba;
    font-size: 18px;
    display: block;
}
.product-rating .rating-count {
    font-family: "Single Day";
    font-size: 12px;
    color: #777;
}

/* Price Tag */
.product-price-tag {
    margin: 15px 0 20px 0;
    background: #ffe6ed;
    display: inline-block;
    padding: 8px 25px;
    border-radius: 22.66px;
    border: 2px solid #ff9fba;
}
.price-symbol {
    font-family: "Bunbun ", Helvetica;
    font-size: 20px;
}
.price-number {
    font-family: "Vividly-Regular";
    font-size: 28px;
    margin-left: 4px;
}

/* Description */
.product-description h3,
.product-features h3,
.perfect-for-section h3,
.how-made-section h3,
.reviews-section h3,
.also-like-section h3 {
    font-family: "Vividly-Regular";
    font-size: 22px;
    margin-bottom: 15px;
}
.product-description p {
    font-family: "Single Day";
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
}
.product-description .korean-desc {
    background: white;
    padding: 12px;
    border-radius: 22.66px;
    border: 2px dashed #ff9fba;
    font-size: 14px;
    color: #555;
}

/* Features Grid */
.product-features {
    margin: 25px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.feature-item {
    background: white;
    padding: 12px;
    border-radius: 22.66px;
    border: 2px solid #ff9fba;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Vividly-Regular";
    font-size: 14px;
}
.feature-item img {
    width: 25px;
    height: 25px;
}

/* Order Actions */
.product-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}
.quantity-selector {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #ff9fba;
    border-radius: 22.66px;
    padding: 5px 10px;
}
.qty-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #ff9fba;
    font-family: "Vividly-Regular";
    padding: 0 12px;
    transition: 0.2s;
}
.qty-btn:hover {
    color: #e67a94;
    transform: scale(1.1);
}
.qty-num {
    font-family: "Vividly-Regular";
    font-size: 20px;
    padding: 0 15px;
    min-width: 30px;
    text-align: center;
}
.add-to-cart-btn {
    flex-grow: 1;
    background: #ff9fba;
    color: white;
    border: none;
    border-radius: 22.66px;
    font-family: "Vividly-Regular";
    font-size: 18px;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid #ff9fba;
}
.add-to-cart-btn:hover {
    background: #ffb3c9;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 159, 186, 0.4);
}

/* Extra Info */
.product-extra-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #ff9fba;
}
.product-extra-info p {
    font-family: "Vividly-Regular";
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

/* === PERFECT FOR SECTION === */
.perfect-for-section {
    padding: 0 20px 20px 20px;
}
.perfect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.perfect-item {
    background: white;
    padding: 15px;
    border-radius: 22.66px;
    border: 2px solid #ff9fba;
    text-align: center;
    font-family: "Vividly-Regular";
    font-size: 16px;
}

/* === HOW IT'S MADE SECTION === */
.how-made-section {
    padding: 0 20px 20px 20px;
}
.how-made-box {
    background: white;
    padding: 20px;
    border-radius: 22.66px;
    border: 2px solid #ff9fba;
    text-align: center;
    position: relative;
}
.how-made-box p {
    font-family: "Vividly-Regular";
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}
.how-made-icons {
    margin-top: 15px;
    font-size: 30px;
    letter-spacing: 15px;
}

/* === REVIEWS SECTION === */
.reviews-section {
    padding: 0 20px 20px 20px;
}
.review-card {
    background: white;
    padding: 15px;
    border-radius: 22.66px;
    border: 2px solid #ff9fba;
    margin-bottom: 15px;
}
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.review-name {
    font-family: "Vividly-Regular";
    font-size: 16px;
    color: #000;
}
.review-stars {
    color: #ff9fba;
    font-size: 14px;
}
.review-text {
    font-family: "Vividly-Regular";
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}
.see-all-reviews {
    width: 100%;
    background: #ffe6ed;
    border: 2px solid #ff9fba;
    border-radius: 22.66px;
    padding: 12px;
    font-family: "Vividly-Regular";
    font-size: 16px;
    color: #000;
    cursor: pointer;
    transition: 0.3s;
}
.see-all-reviews:hover {
    background: #ff9fba;
    color: white;
}

/* === YOU MAY ALSO LIKE SECTION === */
.also-like-section {
    padding: 0 20px 20px 20px;
}
.also-like-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}
.also-like-scroll::-webkit-scrollbar {
    display: none;
}
.also-like-card {
    flex: 0 0 auto;
    width: 130px;
    background: white;
    border-radius: 22.66px;
    border: 2px solid #ff9fba;
    padding: 10px;
    text-align: center;
    scroll-snap-align: start;
    transition: 0.3s;
}
.also-like-card:hover {
    transform: translateY(-5px);
}
.also-img {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px solid #ff9fba;
}
.also-name {
    font-family: "Vividly-Regular";
    font-size: 14px;
    color: #000;
    margin-bottom: 5px;
}
.also-price {
    font-family: "Vividly-Regular";
    font-size: 14px;
    color: #ff9fba;
}

/* === EXACT FOOTER WITH STARS BEHIND ICONS === */
.footer-details {
    margin-top: 20px;
    padding: 30px 20px 40px;
    text-align: center;
    background-color: #fff2f6;
    position: relative;
}
.footer-details .footer-cat {
    width: 100px;
    margin-bottom: 15px;
}

/* Container for the social icons and stars */
.footer-socials-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 60px;
    margin-bottom: 15px;
}

/* The 3 stars positioned behind the icons */
.footer-star {
    position: absolute;
    width: 41px !important;
    height: 39px !important;
    top: 10px;
    z-index: 1; /* Behind icons */
}
.star-10 { left: 32%; }
.star-11 { left: 49%; transform: translateX(-50%); }
.star-12 { right: 32%; }

/* The social icons on top of stars */
.footer-socials {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 25px;
    z-index: 2; /* On top of stars */
}
.footer-socials img {
    width: 25px;
    height: 25px;
    transition: 0.3s;
}
.footer-socials img:hover { transform: scale(1.2); }

/* EXACT COPYRIGHT TEXT */
.footer-text {
    font-family: "Vividly-Regular", Helvetica;
    color: #000000;
    font-size: 15.1px;
    margin-top: 10px;
    position: relative;
    z-index: 3;
}

/* === RESPONSIVE === */
@media (min-width: 600px) {
    .product-page { max-width: 600px; }
    .product-wrapper {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }
    .product-image-box {
        flex: 1;
    }
    .product-info-box {
        flex: 1.2;
    }
    .product-img { height: 400px; }
}

/* ========================================
   🎀 SMOOTH SCROLL ANIMATIONS - PRODUCT PAGE
   ======================================== */

/* Base reveal class */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 1s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }

/* Different animation types */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px) rotate(-2deg);
    transition: all 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0) rotate(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px) rotate(2deg);
    transition: all 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0) rotate(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.7) rotate(-5deg);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.reveal-float {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-float.active {
    opacity: 1;
    transform: translateY(0);
    animation: float 3s ease-in-out infinite;
}

/* ========================================
   🎀 FLOATING ANIMATION
   ======================================== */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   🎀 SLIDE UP FOR CARDS
   ======================================== */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   🎀 BADGE GENTLE PULSE
   ======================================== */

@keyframes badgePulse {
    0%, 100% { transform: rotate(5deg) scale(1); }
    50% { transform: rotate(8deg) scale(1.05); }
}

.product-badge {
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse2 {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(-8deg) scale(1.05); }
}

.product-badge-2 {
    animation: badgePulse2 2.5s ease-in-out infinite 0.5s;
}

/* ========================================
   🎀 GENTLE HOVER EFFECTS
   ======================================== */

/* Back button hover */
.back-btn {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.back-btn:hover {
    transform: translateX(-5px) scale(1.05);
}

/* Product image hover */
.product-img {
    transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.product-img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 159, 186, 0.3);
}

/* Product info box hover */
.product-info-box {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.product-info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 159, 186, 0.15);
}

/* Feature items hover */
.feature-item {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.feature-item:hover {
    transform: translateY(-5px) scale(1.03);
    background: #ffe6ed;
    border-color: #ff6b8a;
    box-shadow: 0 4px 15px rgba(255, 159, 186, 0.2);
}

.feature-item img {
    transition: all 0.4s ease;
}
.feature-item:hover img {
    transform: rotate(-10deg) scale(1.1);
}

/* Price tag hover */
.product-price-tag {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.product-price-tag:hover {
    transform: scale(1.05);
    background: #ff9fba;
    border-color: #ff6b8a;
    box-shadow: 0 4px 20px rgba(255, 159, 186, 0.3);
}
.product-price-tag:hover .price-symbol,
.product-price-tag:hover .price-number {
    color: white;
}

/* Quantity buttons hover */
.qty-btn {
    transition: all 0.3s ease;
}
.qty-btn:hover {
    transform: scale(1.2);
    color: #ff6b8a;
}

/* Add to cart button - ENHANCED */
.add-to-cart-btn {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.add-to-cart-btn:hover {
    background: #ff6b8a;
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(255, 159, 186, 0.4);
}
.add-to-cart-btn:active {
    transform: scale(0.95);
}

/* Perfect items hover */
.perfect-item {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.perfect-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: #ffe6ed;
    border-color: #ff6b8a;
    box-shadow: 0 4px 15px rgba(255, 159, 186, 0.2);
}

/* How made box hover */
.how-made-box {
    transition: all 0.4s ease;
}
.how-made-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 159, 186, 0.15);
}

/* Review cards hover */
.review-card {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.review-card:hover {
    transform: translateX(5px) scale(1.01);
    box-shadow: 0 4px 15px rgba(255, 159, 186, 0.15);
    border-color: #ff6b8a;
}

/* See all reviews button hover */
.see-all-reviews {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.see-all-reviews:hover {
    background: #ff9fba;
    color: white;
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(255, 159, 186, 0.3);
}

/* Also like cards hover */
.also-like-card {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.also-like-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 159, 186, 0.25);
    border-color: #ff6b8a;
}

.also-img {
    transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.also-like-card:hover .also-img {
    transform: scale(1.05);
}

/* ========================================
   🎀 STAR RATING ANIMATION
   ======================================== */

@keyframes starPop {
    0% { transform: scale(0) rotate(-30deg); opacity: 0; }
    60% { transform: scale(1.3) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.product-rating .stars {
    display: inline-block;
}
.product-rating .stars::before {
    content: '★★★★★';
    color: #ff9fba;
    animation: starPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ========================================
   🎀 PRICE PULSE
   ======================================== */

@keyframes pricePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.price-number {
    animation: pricePulse 3s ease-in-out infinite;
}

/* ========================================
   🎀 FOOTER CAT FLOAT
   ======================================== */

.footer-cat {
    transition: all 0.6s ease;
    animation: float 3s ease-in-out infinite;
}

/* ========================================
   🎀 SOCIAL ICONS GENTLE PULSE
   ======================================== */

.footer-socials img {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.footer-socials img:hover {
    transform: scale(1.3) rotate(-5deg);
    filter: drop-shadow(0 3px 10px rgba(255, 159, 186, 0.4));
}

/* ========================================
   🎀 SMOOTH SCROLLBAR (cute pink)
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fff2f6;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff9fba, #ff6b8a);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff6b8a, #ff9fba);
}

/* ========================================
   🎀 FADE IN ON PAGE LOAD
   ======================================== */

body {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.98); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* ========================================
   🎀 SMOOTH SCROLL BEHAVIOR
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* ========================================
   🎀 CONFETTI ANIMATION
   ======================================== */

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translateY(100px) rotate(720deg) scale(0); opacity: 0; }
}

.confetti-piece {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    animation: confettiFall 1.5s ease-out forwards;
}

/* ========================================
   🎀 QUANTITY BUTTON RIPPLE EFFECT
   ======================================== */

@keyframes ripple {
    0% { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

.qty-btn:active::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 159, 186, 0.3);
    width: 30px;
    height: 30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out forwards;
}

.qty-btn {
    position: relative;
    overflow: hidden;
}