/* SFR Gifts — Main Stylesheet */
:root {
    --rose: #f43f5e;
    --blush: #ec4899;
    --cream: #fef9f5;
    --sand: #f5ede3;
    --dark: #1a0a0f;
    --glass: rgba(255, 255, 255, 0.65);
    --nav-h: 72px
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--dark);
    overflow-x: hidden
}

/* LOADER */
#loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #fce7f3, #fff1f2, #fef9f5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity .6s
}

#loader .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1.2s ease-in-out infinite
}

#loader .dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rose);
    margin: 0 4px;
    animation: bounce 1.2s ease-in-out infinite
}

#loader .dots span:nth-child(2) {
    animation-delay: .2s;
    background: var(--blush)
}

#loader .dots span:nth-child(3) {
    animation-delay: .4s
}

/* NAVBAR */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    transition: background .3s, box-shadow .3s, backdrop-filter .3s
}

#navbar.scrolled {
    background: rgba(254, 249, 245, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 2px 24px rgba(244, 63, 94, 0.09)
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    user-select: none;
    line-height: 1
}

.nav-link {
    font-size: .875rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color .25s
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    border-radius: 2px;
    transition: width .3s ease
}

.nav-link:hover {
    color: #f43f5e
}

.nav-link:hover::after {
    width: 100%
}

/* HAMBURGER */
#hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: background .2s;
    padding: 6px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent
}

#hamburger:hover {
    background: rgba(244, 63, 94, 0.08)
}

#hamburger:focus-visible {
    outline: 2px solid #f43f5e;
    outline-offset: 2px
}

#hamburger .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    border-radius: 2px;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .25s ease, width .25s ease;
    transform-origin: center
}

#hamburger.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

#hamburger.open .bar:nth-child(2) {
    opacity: 0;
    width: 0
}

#hamburger.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

/* MOBILE MENU */
#mobile-menu {
    position: absolute;
    top: calc(var(--nav-h) - 4px);
    left: 0;
    right: 0;
    background: rgba(254, 249, 245, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 16px 48px rgba(244, 63, 94, 0.12);
    z-index: 999;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .38s cubic-bezier(.4, 0, .2, 1), opacity .28s ease;
    pointer-events: none
}

#mobile-menu.open {
    max-height: 480px;
    opacity: 1;
    pointer-events: auto
}

#mobile-menu .menu-inner {
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.mob-link {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: .925rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background .2s, color .2s;
    -webkit-tap-highlight-color: transparent
}

.mob-link:hover,
.mob-link:focus {
    background: rgba(244, 63, 94, 0.07);
    color: #f43f5e
}

.mob-link:active {
    background: rgba(244, 63, 94, 0.13)
}

.mob-divider {
    height: 1px;
    background: rgba(244, 63, 94, 0.1);
    margin: 8px 0
}

/* BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    padding: 13px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(244, 63, 94, 0.32);
    transition: transform .25s, box-shadow .25s;
    white-space: nowrap
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(244, 63, 94, 0.42)
}

.btn-primary:active {
    transform: translateY(0)
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: .875rem;
    color: #f43f5e;
    padding: 8px 12px;
    border-radius: 50px;
    transition: background .2s, color .2s;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent
}

.btn-ghost:hover {
    background: rgba(244, 63, 94, 0.08)
}

.btn-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(244, 63, 94, 0.18);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: .85rem;
    font-weight: 600;
    color: #e11d48;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s
}

.btn-user:hover {
    border-color: #f43f5e;
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.14)
}

.mob-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #fff;
    font-weight: 600;
    font-size: .925rem;
    padding: 14px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.28);
    margin-top: 8px;
    transition: opacity .2s, transform .2s;
    -webkit-tap-highlight-color: transparent
}

.mob-cta:hover {
    opacity: .92;
    transform: translateY(-1px)
}

.mob-cta:active {
    opacity: 1;
    transform: translateY(0)
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #f43f5e;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    border: 2px solid #f43f5e;
    cursor: pointer;
    text-decoration: none;
    transition: background .25s, color .25s, transform .25s
}

.btn-hero-secondary:hover {
    background: #f43f5e;
    color: #fff;
    transform: translateY(-2px)
}

/* GLASS CARD */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(244, 63, 94, 0.07)
}

/* HERO */
#hero {
    min-height: 100vh;
    padding-top: var(--nav-h);
    background: linear-gradient(135deg, #fff1f2 0%, #fce7f3 40%, #fef9f5 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden
}

#hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 63, 94, .12) 0%, transparent 70%);
    border-radius: 50%
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, .1) 0%, transparent 70%);
    border-radius: 50%
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: .8rem;
    font-weight: 600;
    color: #f43f5e;
    letter-spacing: .05em;
    text-transform: uppercase
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1
}

.hero-title span {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.grad-text {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.float-emoji {
    position: absolute;
    font-size: 2.5rem;
    animation: floatAnim 4s ease-in-out infinite;
    opacity: .7
}

/* SECTION HELPERS */
.section-tag {
    display: inline-block;
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2
}

/* REVEAL ANIMATION — see bottom of file for full definition */

/* CATEGORY CARDS */
.cat-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform .35s, box-shadow .35s, border-color .35s
}

.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.3)
}

.cat-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fff1f2, #fce7f3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem
}

/* PRODUCT CARDS */
.product-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: transform .35s, box-shadow .35s;
    cursor: pointer
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(244, 63, 94, 0.18)
}

.product-card .img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #fff1f2, #fce7f3)
}

.product-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s
}

.product-card:hover .img-wrap img {
    transform: scale(1.08)
}

.product-card .img-emoji {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem
}

.custom-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(244, 63, 94, 0.9);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px
}

.price-tag {
    display: inline-block;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 700
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    transition: transform .25s
}

.wishlist-btn:hover {
    transform: scale(1.2)
}

.wishlist-btn.active {
    background: #fff1f2
}

/* REVIEW CARDS */
.review-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform .3s, box-shadow .3s
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(244, 63, 94, 0.12)
}

.stars {
    color: #fbbf24
}

.review-summary {
    border: 1px solid rgba(244, 63, 94, 0.1)
}

/* TOAST */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none
}

.toast {
    background: linear-gradient(135deg, #1a0a0f, #3d1020);
    color: #fff;
    padding: 13px 24px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    animation: toastIn .4s ease, toastOut .4s ease 2.6s forwards;
    min-width: 220px;
    text-align: center
}

/* MODAL */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 10, 15, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px
}

.modal-backdrop.open {
    display: flex
}

.modal-box {
    background: #fff;
    border-radius: 28px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    animation: modalIn .4s cubic-bezier(.34, 1.56, .64, 1)
}

/* SEARCH */
.search-wrap {
    position: relative
}

.search-wrap input {
    width: 100%;
    background: #fff;
    border: 2px solid rgba(244, 63, 94, 0.2);
    border-radius: 50px;
    padding: 14px 52px 14px 24px;
    font-size: .95rem;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    transition: border-color .3s, box-shadow .3s
}

.search-wrap input:focus {
    border-color: #f43f5e;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1)
}

.search-wrap button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    color: #fff;
    font-size: 1rem
}

/* FILTER PILLS */
.filter-pill {
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid rgba(244, 63, 94, 0.2);
    background: #fff;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    transition: background .25s, color .25s, border-color .25s
}

.filter-pill.active,
.filter-pill:hover {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #fff;
    border-color: transparent
}

/* AUTH */
.auth-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #fff1f2, #fce7f3, #fef9f5);
    display: flex;
    align-items: center;
    justify-content: center
}

.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(244, 63, 94, 0.15);
    border-radius: 16px;
    padding: 14px 20px;
    font-size: .95rem;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    transition: border-color .3s, box-shadow .3s
}

.input-field:focus {
    border-color: #f43f5e;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.08)
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    transition: border-color .3s, box-shadow .3s
}

.google-btn:hover {
    border-color: #f43f5e;
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.12)
}

label {
    font-size: .85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    display: block
}

/* ADMIN */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1a0a0f, #2d0f1e);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
    transition: width .3s ease, transform .3s ease;
    overflow: hidden
}

.admin-main {
    margin-left: 260px;
    min-height: 100vh;
    background: #fdf4f7
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: .9rem;
    font-weight: 500;
    margin: 2px 8px;
    transition: background .25s, color .25s
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(244, 63, 94, 0.2);
    color: #fff
}

.admin-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06)
}

.stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    border-left: 4px solid #f43f5e
}

@media(max-width:767px) {
    .admin-sidebar {
        width: 0;
        transform: translateX(-260px)
    }

    .admin-sidebar.open {
        width: 260px;
        transform: translateX(0)
    }

    .admin-main {
        margin-left: 0
    }
}

/* PAGE SYSTEM */
.page {
    display: none
}

.page.active {
    display: block
}

/* FOOTER */
footer {
    background: linear-gradient(135deg, #1a0a0f, #2d0f1e);
    color: #fff
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    font-size: 1.1rem;
    transition: background .3s, transform .3s
}

.social-link:hover {
    background: var(--rose);
    transform: translateY(-3px)
}

/* WHATSAPP FLOAT */
#wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 500;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    animation: waPulse 2s infinite
}

/* PWA INSTALL */
#installPopup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 14px 18px;
    width: min(340px, calc(100vw - 32px));
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 14px;
    z-index: 9999;
    font-family: 'DM Sans', sans-serif;
    border: 1.5px solid rgba(244, 63, 94, 0.12)
}

#installPopup.visible {
    display: flex
}

#installBtn {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3)
}

#installDismiss {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    line-height: 1;
    flex-shrink: 0
}

#installDismiss:hover {
    color: #6b7280
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px
}

::-webkit-scrollbar-track {
    background: var(--cream)
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#f43f5e, #ec4899);
    border-radius: 10px
}

/* SKELETON LOADERS */
.skeleton-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05)
}

.skeleton-img {
    aspect-ratio: 1;
    background: #f3f4f6
}

.skeleton-line {
    height: 14px;
    background: #f3f4f6;
    border-radius: 8px;
    margin: 12px 16px
}

.shimmer {
    position: relative;
    overflow: hidden
}

.shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.5s infinite
}

/* SCROLL PROGRESS */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #f43f5e, #ec4899);
    z-index: 1001;
    width: 0;
    transition: width .1s linear
}

/* BACK TO TOP */
#back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 500;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s, transform .3s;
    display: flex;
    align-items: center;
    justify-content: center
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0)
}

/* ANIMATIONS */
@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(.8);
        opacity: .5
    }

    40% {
        transform: scale(1.2);
        opacity: 1
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .7
    }
}

@keyframes floatAnim {

    0%,
    100% {
        transform: translateY(0) rotate(0)
    }

    50% {
        transform: translateY(-20px) rotate(5deg)
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes toastOut {
    from {
        opacity: 1
    }

    to {
        opacity: 0;
        transform: translateY(16px)
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(.88) translateY(20px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes waPulse {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4)
    }

    50% {
        box-shadow: 0 8px 36px rgba(37, 211, 102, 0.7)
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%)
    }

    100% {
        transform: translateX(100%)
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes pageIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* ── ENHANCED REVEAL ─────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .65s cubic-bezier(.25,.46,.45,.94),
                transform .65s cubic-bezier(.25,.46,.45,.94)
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

/* ── TOAST (slide-up + fade) ──────────────────────── */
.toast {
    background: linear-gradient(135deg, #1a0a0f, #2d0f1f);
    color: #fff;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: .875rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(244,63,94,.25);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(16px) scale(.97);
    transition: opacity .25s ease, transform .25s ease;
    border-left: 3px solid #f43f5e;
    max-width: 320px
}
.toast.visible {
    opacity: 1;
    transform: translateY(0) scale(1)
}

/* ── SECTION TAG POP ──────────────────────────────── */
@keyframes tagPop {
    from { opacity:0; transform:scale(.8) translateY(6px) }
    to   { opacity:1; transform:scale(1)  translateY(0)   }
}

/* ── REVIEW LIKE BUTTON ──────────────────────────── */
.review-like-btn:hover {
    background: linear-gradient(135deg,#fce7f3,#fff1f2) !important;
    border-color: #fda4af !important;
    color: #f43f5e !important;
    transform: scale(1.06)
}
.review-like-btn.liked {
    animation: heartPop .3s cubic-bezier(.34,1.56,.64,1)
}
@keyframes heartPop {
    0%  { transform: scale(1) }
    50% { transform: scale(1.25) }
    100%{ transform: scale(1) }
}

/* ── FEATURED REVIEW HIGHLIGHT ───────────────────── */
.review-card[style*="border:1.5px solid #f43f5e"] {
    background: linear-gradient(135deg, rgba(255,241,242,.6), rgba(252,231,243,.4))
}

/* ── HERO FLOAT EMOJI (will-change for GPU) ───────── */
.float-emoji {
    will-change: transform;
    contain: layout style
}

/* ── SMOOTH SCROLL FOR ANCHOR LINKS ──────────────── */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth }
}
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .float-emoji,
    .product-card,
    .cat-card { transition: none !important; animation: none !important }
}

/* ── REVIEW SKELETON ─────────────────────────────── */
.review-skeleton {
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    margin-bottom: 12px
}

/* ── IMAGE UPLOAD ZONE ──────────────────────────── */
.image-upload-zone {
    border: 2px dashed rgba(244, 63, 94, 0.25);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .3s, background .3s;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(254, 249, 245, 0.5)
}

.image-upload-zone:hover,
.image-upload-zone.dragover {
    border-color: #f43f5e;
    background: rgba(244, 63, 94, 0.04);
    border-style: solid
}

.image-upload-zone.dragover {
    box-shadow: inset 0 0 0 3px rgba(244, 63, 94, 0.1)
}

.upload-placeholder {
    pointer-events: none
}

/* ── IMAGE PREVIEW GRID ─────────────────────────── */
.image-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    width: 100%
}

.image-preview-item {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(244, 63, 94, 0.15);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08)
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.image-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(244, 63, 94, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    line-height: 1;
    padding: 0
}

.image-preview-item:hover .remove-btn {
    opacity: 1
}

/* ── UPLOAD PROGRESS ────────────────────────────── */
.upload-progress {
    width: 100%;
    margin-top: 12px;
    text-align: center
}

.progress-bar-track {
    width: 100%;
    height: 6px;
    background: #f3f4f6;
    border-radius: 99px;
    overflow: hidden
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f43f5e, #ec4899);
    border-radius: 99px;
    transition: width .3s ease
}

/* ── Z-INDEX SCALE (documented) ─────────────────── */
/*
  Layer 1: Content          z-index: 1-10
  Layer 2: Sticky headers   z-index: 50
  Layer 3: WhatsApp float   z-index: 500
  Layer 4: Back-to-top      z-index: 500
  Layer 5: Mobile menu      z-index: 999
  Layer 6: Navbar            z-index: 1000
  Layer 7: Scroll progress   z-index: 1001
  Layer 8: Modals            z-index: 2000
  Layer 9: Toast             z-index: 9000
  Layer 10: Loader           z-index: 9999
  Layer 11: PWA popup        z-index: 9999
*/
/* ── HOMEPAGE REVIEW CARDS (premium glass) ─────── */
.review-homepage-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(244,63,94,0.1);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  animation: fadeSlideUp .5s ease both;
}

.review-homepage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(244,63,94,0.13);
  border-color: rgba(244,63,94,0.25);
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* stagger children */
#home-reviews-grid .review-homepage-card:nth-child(1) { animation-delay: .05s }
#home-reviews-grid .review-homepage-card:nth-child(2) { animation-delay: .12s }
#home-reviews-grid .review-homepage-card:nth-child(3) { animation-delay: .19s }
#home-reviews-grid .review-homepage-card:nth-child(4) { animation-delay: .26s }
#home-reviews-grid .review-homepage-card:nth-child(5) { animation-delay: .33s }
#home-reviews-grid .review-homepage-card:nth-child(6) { animation-delay: .40s }
