* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url(pic/background.jpg) center/cover no-repeat fixed;
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 300ms ease;
}

/* Dark Mode (nursery) */
body.dark-mode {
    color: #e5e7eb;
    background: #0f172a;
}

body.dark-mode .about-section,
body.dark-mode .info-card {
    background: #111827;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

body.dark-mode .section-title,
body.dark-mode .about-text,
body.dark-mode .nursery-badge.business-type,
body.dark-mode .info-content h4,
body.dark-mode .info-content p {
    color: #e5e7eb;
}

body.dark-mode .info-action {
    background: #0b1220;
    color: #9ca3af;
}

.top-nav {
    background-color: #00A651;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--app-nav-height);
}

.nav-left .back-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    filter: brightness(0) invert(1);
}

.nav-center {
    flex: 1;
    overflow: hidden;
    margin: 0 15px;
    display: flex;
    justify-content: center;
}

.nav-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    background: linear-gradient(90deg, #ffffff, #98f8ff, #ffffff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradientShift {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes scaleBounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Super Perfect Marquee Animation */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-flex;
    width: max-content;
    will-change: transform;
}

.animate-marquee {
    animation: nurseryMarquee 15s linear infinite;
}

.marquee-gap {
    padding: 0 40px;
    display: inline-block;
}

@keyframes nurseryMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

.cart-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-icon-img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.main-content {
    padding: 0 10px 100px 1px;
}

.hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 220px;
    margin: 16px 0;
    background: #ddd center/cover no-repeat;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45));
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    color: #fff;
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.hero-content h2 {
    font-size: 20px;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-text-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.hero-avatar-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, .75);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    position: relative;
    z-index: 2;
}

.hero-avatar.verified-logo {
    border: 1px solid #52ff88 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25), 0 0 15px rgba(82, 255, 136, 0.35);
}

.verified-badge-hero {
    position: absolute;
    bottom: 0px;
    right: 0px;
    background: #52ff88;
    color: #004d1a;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid #fff;
    z-index: 15;
    box-shadow: 0 2px 8px rgba(82, 255, 136, 0.5);
    animation: verifiedAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes verifiedAppear {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

body.dark-mode .verified-badge-hero {
    border-color: #0f172a;
    background: #52ff88;
    color: #000;
}

/* Futuristic Instagram-style Note Bubble */
.nursery-note-bubble {
    position: absolute;
    top: -55px;
    left: 100%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 14px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
    min-width: 60px;
    max-width: 150px;
    animation: noteFloat 3s ease-in-out infinite;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.note-text {
    display: block;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
}

.note-tail {
    position: absolute;
    bottom: -6px;
    left: 30%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.95);
}

@keyframes noteFloat {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

body.dark-mode .nursery-note-bubble {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .note-text {
    color: #f1f5f9;
}

body.dark-mode .note-tail {
    border-top-color: rgba(30, 41, 59, 0.95);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    font-size: 12px;
}

.hero-text-content {
    flex: 1;
    min-width: 0;
}

.hero-meta .rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.hero-meta .rating i {
    color: #FFC107;
    font-size: 12px;
}

.hero-meta .location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    opacity: 0.95;
}

.hero-meta .count {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 600;
}

/* Responsive adjustments for hero */
@media (min-width: 768px) {
    .verified-badge-hero {
        position: absolute;
        bottom: 78px;
        right: 78px;
        background: #52ff88;
        color: #004d1a;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        border: 2px solid #fff;
        z-index: 15;
        box-shadow: 0 2px 8px rgba(82, 255, 136, 0.5);
        animation: verifiedAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

    .hero {
        height: 280px;
        margin: 20px 10px;
    }

    .hero-content {
        padding: 30px;
        gap: 20px;
    }

    .hero-avatar-wrapper {
        width: 100px;
        height: 100px;
    }

    .hero-content h2 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .hero-meta {
        font-size: 14px;
    }

    .hero-meta .rating i {
        font-size: 14px;
    }

    .hero-meta .location {
        font-size: 13px;
    }

    .hero-meta .count {
        font-size: 13px;
    }

    .hero-meta .count {
        font-size: 13px;
    }
}

/* Stories Promo Section (After Details) */
.stories-promo-section {
    margin: 16px 0 24px 0;
}

.stories-promo-card {
    background: linear-gradient(135deg, #1f2937, #111827);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    color: white;
}

/* Background Shine Effect */
.stories-promo-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    animation: shine 4s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }

    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.live-ring-container {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-ring {
    position: absolute;
    inset: 0;
    border: 3px solid #ff7e5f;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1.5s linear infinite;
}

.live-ring-container i {
    font-size: 16px;
    color: #ff7e5f;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.promo-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    background: linear-gradient(90deg, #fff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-text p {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
}

.stories-action-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.stories-action-btn:hover {
    background: #ff7e5f;
    border-color: #ff7e5f;
    transform: translateX(-3px);
}

/* Dark Mode Adjustments */
body.dark-mode .stories-promo-card {
    background: linear-gradient(135deg, #0f172a, #000);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.about-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid #00A651;
    /* Highlight accent */
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 15px 0px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section::after {
    content: '\f10e';
    /* Quote icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 5px;
    right: 15px;
    font-size: 32px;
    color: #00A651;
    opacity: 0.05;
    transform: rotate(-10deg);
    pointer-events: none;
}

.about-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

body.dark-mode .about-section {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    position: relative;
}

.section-title i {
    color: #00A651;
    font-size: 20px;
    filter: drop-shadow(0 0 5px rgba(0, 166, 81, 0.2));
}

.about-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    letter-spacing: 0.2px;
    font-weight: 400;
    min-height: 20px;
}

body.dark-mode .about-text {
    color: #cbd5e1;
}

/* Typing Cursor - Premium Edition */
.typing-cursor {
    display: inline-block;
    width: 2.5px;
    height: 1.1em;
    background-color: #00A651;
    margin-left: 2px;
    animation: blink 0.9s step-end infinite;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(0, 166, 81, 0.5);
    border-radius: 4px;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.nursery-badge.business-type {
    background: rgba(139, 69, 19, 0.2);
    color: #D2B48C;
    font-weight: 600;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
    display: inline-block;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    /* Allow auto for status/actions */
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.info-icon i.fa-phone,
.info-icon i.fa-envelope,
.info-icon i.fa-clock,
.info-icon i.fa-directions,
.action-btn-circle i.fa-phone,
.action-btn-circle i.fa-envelope,
.action-btn-circle i.fa-clock,
.action-btn-circle i.fa-directions {
    color: #00a651 !important;
    font-size: 20px;
}

.promo-text {
    font-size: 13px;
}

.info-icon i {
    color: #00A651;
    /* Keep address icon green unless specifically changed */
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-content .label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content .value {
    font-size: 13px;
    color: #1f2937;
    font-weight: 600;
    line-height: 1.3;
}

.active-status-indicator {
    padding: 6px 12px;
    background: rgba(0, 166, 81, 0.1);
    border-radius: 20px;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00A651;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    display: inline-block;
}

body.dark-mode .info-content .label {
    color: #94a3b8;
}

body.dark-mode .info-content .value {
    color: #f1f5f9;
}

body.dark-mode .active-status-indicator {
    background: rgba(0, 166, 81, 0.2);
}

body.dark-mode .info-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card:hover {
    transform: translateY(-2px);
    transition: transform 150ms ease;
}

.products-section {
    margin-top: 6px;
}

/* ── Skeleton Loader ─────────────────────────────────────── */
.skeleton-card {
    pointer-events: none;
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: none !important;
}

body.dark-mode .skeleton-card {
    background: rgba(30, 41, 59, 0.5) !important;
}

.skel {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.08);
}

body.dark-mode .skel {
    background: rgba(255, 255, 255, 0.08);
}

.skel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    animation: skelShimmer 1.5s infinite;
}

body.dark-mode .skel::after {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
}

@keyframes skelShimmer {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

.skel-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 10px auto 12px;
}

.skel-line {
    height: 12px;
    border-radius: 6px;
}


.nursery-category-section {
    width: 100%;
    margin-bottom: 40px;
    opacity: 0;
    animation: pvFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.nursery-category-section .product-grid {
    margin-top: 15px;
    display: grid !important;
    /* Force grid display */
}

@keyframes pvFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.see-all {
    background: rgba(0, 166, 81, 0.1);
    border: 1px solid rgba(0, 166, 81, 0.2);
    color: #00A651;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.see-all:hover {
    background: #00A651;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.3);
}

.see-all:hover i {
    transform: translateX(3px);
}

.see-all i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

body.dark-mode .see-all {
    background: rgba(0, 166, 81, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}


/* --- PRODUCT GRID & CARDS (SYNCHRONIZED FROM PRODUCTS.CSS) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 15px;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 166, 81, 0.1), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 166, 81, 0.3);
}

.product-image-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 12px;
}

.product-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00A651;
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.2);
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.product-image-secondary {
    width: 75%;
    height: 75%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00A651;
    box-shadow: 0 3px 10px rgba(0, 166, 81, 0.3);
    transition: transform 0.3s ease;
    position: absolute;
    top: 23%;
    left: -37%;
    rotate: -40deg;
    transform: scale(1);
}

.product-card:hover .product-image {
    transform: scale(1.1) rotate(5deg);
}

.nursery-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0px 0 -2px 0;
    padding: 6px 0px;
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.08), rgba(0, 212, 106, 0.08));
    border-radius: 20px;
    border: 1px solid rgba(0, 166, 81, 0.15);
}

.nursery-logo-img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #00A651;
}

.nursery-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nursery-name {
    font-size: 9px;
    font-weight: 600;
    color: #00A651;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    display: block;
    animation: nurseryMarquee 5s linear infinite;
}

.nursery-name.marquee-content {
    display: inline-flex;
}

.nursery-business-type {
    font-size: 7px;
    font-weight: 600;
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(139, 69, 19, 0);
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
    margin-top: -3px;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #00A651, #00d46a);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 166, 81, 0.3);
    overflow: hidden;
}

.category-badge.marquee {
    width: 110px;
    white-space: nowrap;
    display: flex;
}

.category-badge.marquee span {
    display: inline-block;
    animation: nurseryMarquee 5s linear infinite;
}

.availability-badge {
    position: absolute;
    top: 100px;
    right: 5px;
    padding: 5px 5px;
    border-radius: 50px;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 0;
}

.availability-badge.in-stock {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}

.availability-badge.low-stock {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
    box-shadow: 0 0 15px rgba(253, 126, 20, 0.4);
}

.availability-badge.out-of-stock {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.4);
}

.product-top-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.wishlist-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.1);
}

.wishlist-btn i {
    color: #94a3b8;
    font-size: 16px;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background: white;
}

.wishlist-btn:hover i {
    color: #00A651;
}

.wishlist-btn.active i {
    color: #ef4444;
    animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.compare-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.1);
}

.compare-btn-icon i {
    color: #4ade80;
    font-size: 14px;
}

.compare-btn-icon:hover {
    background: #f34141;
    transform: scale(1.1);
}

.compare-btn-icon:hover i {
    color: white;
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
}

.product-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 5px;
    margin-bottom: -15px;
}

.product-price {
    font-size: 19px;
    font-weight: 800;
    color: #00A651;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.sold-badge {
    display: flex;
    position: absolute;
    top: 100px;
    left: 10px;
    align-items: center;
    gap: 3px;
}

.sold-badge i {
    font-size: 10px;
    color: #64748b;
}

.sold-badge span {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.view-details-btn {
    flex: 1;
    background: linear-gradient(135deg, #00A651, #00d46a);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.2);
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 166, 81, 0.3);
}

.quick-add-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00A651, #00d46a);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.2);
}

.quick-add-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Dark Mode Overrides for Product Cards */
body.dark-mode .product-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .product-name {
    color: #f1f5f9;
}

body.dark-mode .wishlist-btn,
body.dark-mode .compare-btn-icon {
    background: #334155;
}

body.dark-mode .sold-badge {
    background: #334155;
    border-color: #475569;
}

body.dark-mode .sold-badge i,
body.dark-mode .sold-badge span {
    color: #cbd5e1;
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    padding: 60px 20px;
    text-align: center;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.category-section {
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease forwards;
}

.category-header {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    padding-left: 5px;
    border-left: 4px solid #00A651;
    display: flex;
    align-items: center;
}

body.dark-mode .category-header {
    color: #f3f4f6;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Status Section (WhatsApp Style) --- */
.status-section {
    margin: 16px 0;
    padding: 0 10px;
    min-height: 120px;
    /* Reserve space for title + status circles */
}

.status-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 0px 0px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.status-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.status-item:active {
    transform: scale(0.92);
}

.status-circle {
    width: 78px;
    height: 78px;
    padding: 4px;
    border-radius: 50%;
    background: #fff;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.status-circle::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #00A651, #00ff8e, #00A651);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateRing 3s linear infinite;
}

@keyframes rotateRing {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.status-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 2px solid #fff;
}

body.dark-mode .status-circle img {
    border-color: #0f172a;
}

.status-item span {
    font-size: 11px;
    font-weight: 500;
    color: #4b5563;
    max-width: 75px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .status-item span {
    color: #9ca3af;
}

/* Status Viewed State */
.status-item.viewed .status-circle {
    background: #e5e7eb;
}

body.dark-mode .status-item.viewed .status-circle {
    background: #374151;
}

/* Status Modal Overlay */
.status-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-overlay.active {
    display: flex;
    opacity: 1;
}

.status-progress-container {
    position: absolute;
    top: env(safe-area-inset-top, 20px);
    left: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 20;
}

.status-progress-bar {
    height: 3px;
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.status-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00A651, #00ff8e);
    box-shadow: 0 0 10px rgba(0, 166, 81, 0.8);
    transition: width linear;
}

.status-header {
    position: absolute;
    top: calc(env(safe-area-inset-top, 20px) + 20px);
    left: 20px;
    right: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 20;
    color: #fff;
    padding: 8px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-header img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #00A651;
    object-fit: cover;
}

.status-header-info {
    display: flex;
    flex-direction: column;
}

.status-nursery-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-time {
    font-size: 11px;
    opacity: 0.8;
}

.status-close {
    position: absolute;
    top: calc(env(safe-area-inset-top, 20px) + 24px);
    right: 20px;
    color: #fff;
    font-size: 22px;
    z-index: 20;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.status-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.status-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

.status-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: zoomFade 0.5s ease-out;
}

@keyframes zoomFade {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.status-footer {
    position: absolute;
    bottom: env(safe-area-inset-bottom, 30px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    z-index: 20;
}

.status-caption {
    color: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 100%;
    animation: slideUpFade 0.5s ease-out;
}

@keyframes slideUpFade {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.status-action-btn {
    background: linear-gradient(135deg, #00A651, #00d66a);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.4);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.status-action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.5);
}

/* Mobile-first responsive tweaks */
@media (max-width: 480px) {
    .verified-badge-hero {
        position: absolute;
        bottom: 50px;
        right: 50px;
        background: #52ff88;
        color: #004d1a;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        border: 2px solid #fff;
        z-index: 15;
        box-shadow: 0 2px 8px rgba(82, 255, 136, 0.5);
        animation: verifiedAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

    .main-content {
        padding: 0 5px 100px 5px;
    }

    .top-nav {
        padding: 12px 16px;
        height: 56px;
    }

    .nav-title {
        font-size: 16px;
    }

    .hero {
        height: 180px;
        margin: 12px 0;
        border-radius: 14px;
    }

    .hero-content {
        left: 12px;
        bottom: 12px;
        grid-template-columns: 64px 1fr;
        gap: 10px;
    }

    .hero-content h2 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .hero-avatar {
        width: 64px;
        height: 64px;
        border-width: 2px;
    }

    .hero-meta {
        gap: 8px;
    }

    .hero-meta .location {
        font-size: 11px;
    }

    .section-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .about-section {
        padding: 12px 12px;
        border-radius: 10px;
    }

    .about-text {
        font-size: 13px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .info-card {
        grid-template-columns: 36px 1fr auto;
        padding: 10px;
    }

    .info-icon i {
        font-size: 16px;
    }

    .info-content .label {
        font-size: 10px;
    }

    .info-content .value {
        font-size: 12px;
    }



    .bottom-nav {
        height: 64px;
    }

    .nav-item span {
        font-size: 10px;
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        margin-bottom: 20px;
    }
}


@media (max-width: 360px) {
    .verified-badge-hero {
        position: absolute;
        bottom: 50px;
        right: 50px;
        background: #52ff88;
        color: #004d1a;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        border: 2px solid #fff;
        z-index: 15;
        box-shadow: 0 2px 8px rgba(82, 255, 136, 0.5);
        animation: verifiedAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        margin-bottom: 20px;
    }

    .main-content {
        padding: 0 8px 96px 8px;
    }

    .hero {
        height: 160px;
    }

    .hero-content {
        grid-template-columns: 56px 1fr;
    }

    .hero-avatar {
        width: 56px;
        height: 56px;
    }

    .hero-content h2 {
        font-size: 16px;
    }

}

#footerContainer,
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    flex-shrink: 0;
    width: 100%;
    z-index: 3000;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
}

/* --- HANGING MOON (DARK MODE ONLY) --- */
.hanging-moon-container {
    position: absolute;
    top: 100%;
    /* Attach to bottom of nav */
    right: 70px;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    align-items: center;
    z-index: 1001;
    pointer-events: none;
    transform-origin: top center;
    animation: moonSwing 4s ease-in-out infinite;
}

/* Show only in dark mode */
html.dark-mode .hanging-moon-container,
body.dark-mode .hanging-moon-container {
    display: flex;
}

.rope {
    width: 2px;
    height: 35px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.moon {
    width: 32px;
    height: 32px;
    background: radial-gradient(circle at 30% 30%, #fdfcf0, #ebe29d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(253, 252, 240, 0.4), inset -2px -2px 5px rgba(0, 0, 0, 0.2);
    margin-top: -2px;
}

.moon i {
    font-size: 14px;
    color: #2D3436;
    opacity: 0.3;
}

@keyframes moonSwing {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

#moonToggle.retracting {
    animation: moonRetract 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards !important;
}

@keyframes moonRetract {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    30% {
        transform: translateY(15px) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translateY(-150px) scale(0.5);
        opacity: 0;
    }
}

/* --- Premium Nursery Gallery Section (Infinite Marquee) --- */
.gallery-section {
    margin: 40px 0;
    padding: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    position: relative;
    contain: content;
    width: 100%;
    min-height: 300px;
    /* Reserve space even when empty */
}

.gallery-section.visible {
    width: max-content;
    left: -5px;
    opacity: 1;
    transform: translateY(0);
}

.gallery-section .section-header {
    padding: 0 20px;
}

.nursery-gallery-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 15px 0 35px 0;
    position: relative;
}

/* Premium Feathering (GPU Friendly) */
/*
.nursery-gallery-wrapper::before,
.nursery-gallery-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
}

.nursery-gallery-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}
*/
.nursery-gallery-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

body.dark-mode .nursery-gallery-wrapper::before {
    background: linear-gradient(to right, #0f172a, transparent);
}

body.dark-mode .nursery-gallery-wrapper::after {
    background: linear-gradient(to left, #0f172a, transparent);
}

.nursery-gallery {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: marqueeScroll 45s linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    /* Force GPU */
    backface-visibility: hidden;
}

@keyframes marqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.gallery-item {
    flex: 0 0 280px;
    height: 380px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
    transform: translateZ(0);
    /* Item layer induction */
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 0 0 220px;
        height: 240px;
        border-radius: 16px;
    }

    .nursery-gallery {
        gap: 12px;
        animation-duration: 35s;
    }
}

.gallery-item:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border-color: #00A651;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.92);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    opacity: 1;
    /* Keep it visible for premium feel on scroll */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    pointer-events: none;
    transition: background 0.4s ease;
}

.gallery-item:hover .item-overlay {
    background: linear-gradient(to top, rgba(0, 166, 81, 0.6) 0%, transparent 80%);
}

.gallery-caption {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

/* Featured Badge Overrides */
.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 6px 14px;
    font-size: 11px;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(255, 165, 0, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
    }
}

/* Lightbox Styling */
.photo-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-out;
}

.photo-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.photo-lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.2s;
}

.photo-lightbox.active .lightbox-caption {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Dark Mode Overrides */
body.dark-mode .gallery-item {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .gallery-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: #00A651;
}