/* === 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: "Kinan";
    src: url("./Kinan.ttf") format("woff2"),
         url("./Kinan.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;
}
/* === 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"); }

/* === VIEWALL PAGE WRAPPER === */
.viewall-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: 18px;
    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; }

/* === PAGE HEADER === */
.page-header {
    text-align: center;
    padding: 30px 20px;
    background-color: #ffffff;
    margin: 0 20px 20px 20px;
    border-radius: 22.66px;
    border: 2.75px solid #ff9fba;
}
.page-header h1 {
    font-family: "Kinan";
    font-size: 37.1px;
    -webkit-text-stroke: 0.69px #000;
    margin-bottom: 10px;
}
.page-header p {
    font-family: "Vividly-Regular";
    font-size: 18px;
    color: #555;
}
.header-deco {
    font-family: "Vividly-Regular";
    color: #ff9fba;
    font-size: 20px;
    margin-top: 10px;
    letter-spacing: 5px;
}

/* === FULL CATALOG GRID === */
.catalog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 20px 20px 20px;
}

/* === MENU CARD === */
.menu-card {
    background-color: #fff3f6;
    border: 2.75px solid #ff9fba;
    border-radius: 22.66px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(255, 159, 186, 0.3);
}
.menu-img {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-bottom: 2.75px solid #ff9fba;
}
.menu-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}
.menu-info h3 {
    font-family: "Vividly-Regular";
    font-size: 20px;
    margin-bottom: 5px;
    color: #000;
}
.menu-info .menu-desc {
    font-family: "Vividly-Regular";
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.4;
}
.menu-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}
.menu-price {
    font-family: "Vividly-Regular";
    font-size: 20px;
    color: #000;
}
.order-btn {
    font-family: "Vividly-Regular";
    background: #ffe6ed;
    border: 2px solid #ff9fba;
    border-radius: 22.66px;
    padding: 8px 15px;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    transition: 0.3s;
}
.order-btn:hover {
    background: #ff9fba;
    color: white;
}

/* === 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) {
    .viewall-page { max-width: 600px; }
    .catalog-grid { grid-template-columns: repeat(3, 1fr); }
    .menu-img { height: 160px; }
}

/* ========================================
   🎀 SMOOTH SCROLL ANIMATIONS - VIEWALL 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);
}

/* ========================================
   🎀 SLIDE UP FOR MENU CARDS
   ======================================== */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.menu-card {
    animation: slideUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.menu-card:nth-child(1) { animation-delay: 0.05s; }
.menu-card:nth-child(2) { animation-delay: 0.1s; }
.menu-card:nth-child(3) { animation-delay: 0.15s; }
.menu-card:nth-child(4) { animation-delay: 0.2s; }
.menu-card:nth-child(5) { animation-delay: 0.25s; }
.menu-card:nth-child(6) { animation-delay: 0.3s; }
.menu-card:nth-child(7) { animation-delay: 0.35s; }
.menu-card:nth-child(8) { animation-delay: 0.4s; }
.menu-card:nth-child(9) { animation-delay: 0.45s; }
.menu-card:nth-child(10) { animation-delay: 0.5s; }
.menu-card:nth-child(11) { animation-delay: 0.55s; }
.menu-card:nth-child(12) { animation-delay: 0.6s; }

/* ========================================
   🎀 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);
}

/* Menu card hover - ENHANCED */
.menu-card {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.menu-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(255, 159, 186, 0.3);
    border-color: #ff6b8a;
}

/* Menu image zoom on hover */
.menu-img {
    transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow: hidden;
}
.menu-card:hover .menu-img {
    transform: scale(1.05);
}

/* Order button hover - ENHANCED */
.order-btn {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.order-btn:hover {
    background: #ff9fba;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 159, 186, 0.4);
}

/* Order button click effect */
.order-btn:active {
    transform: scale(0.95);
}

/* ========================================
   🎀 HEADER DECORATION PULSE
   ======================================== */

@keyframes pulseDeco {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.header-deco {
    animation: pulseDeco 2s ease-in-out infinite;
}

/* ========================================
   🎀 PAGE HEADER FLOAT
   ======================================== */

.page-header {
    transition: all 0.6s ease;
}
.page-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 159, 186, 0.15);
}

/* ========================================
   🎀 PRICE GENTLE PULSE
   ======================================== */

.menu-price {
    transition: all 0.3s ease;
}
.menu-card:hover .menu-price {
    color: #ff6b8a;
    transform: scale(1.05);
}

/* ========================================
   🎀 SOCIAL ICONS GENTLE PULSE
   ======================================== */

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.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));
}

/* ========================================
   🎀 FOOTER CAT FLOAT
   ======================================== */

.footer-cat {
    transition: all 0.6s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========================================
   🎀 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 (for order buttons)
   ======================================== */

@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;
}