@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #16a34a;
    --primary-dark: #0f766e;
    --primary-light: #dcfce7;
    --accent: #f59e0b;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f0fdf4;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 8px 30px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 18px 50px rgba(22, 163, 74, 0.12);
    --shadow-lg: 0 28px 80px rgba(15, 118, 110, 0.18);
    --radius: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --transition: 0.3s ease;
    --font: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background:
        radial-gradient(circle at top right, rgba(22, 163, 74, 0.12), transparent 30%),
        radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.08), transparent 25%),
        var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.text-muted {
    color: var(--text-muted) !important;
}

.section-space {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-copy {
    color: var(--text-muted);
    max-width: 38rem;
}

.section-link {
    color: var(--primary-dark);
    font-weight: 700;
}

.section-link:hover {
    color: var(--primary);
}

.btn-brand,
.btn-brand-outline {
    border-radius: 999px;
    padding: 0.85rem 1.45rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-brand {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #fff;
    box-shadow: 0 16px 35px rgba(22, 163, 74, 0.22);
}

.btn-brand:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.28);
}

.btn-brand-outline {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--primary-dark);
}

.btn-brand-outline:hover {
    color: var(--primary-dark);
    background: #fff;
    transform: translateY(-2px);
}

.btn-soft {
    background: #fff;
    color: var(--primary-dark);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    font-weight: 700;
}

.btn-soft:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.875rem;
}

/* Navbar */
.site-navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}

.site-navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-sm);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(22, 163, 74, 0.28);
}

.brand-name {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.02em;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.site-navbar .nav-link {
    font-weight: 600;
    color: var(--text) !important;
    margin: 0 0.2rem;
    position: relative;
}

.site-navbar .nav-link.active,
.site-navbar .nav-link:hover {
    color: var(--primary-dark) !important;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hero */
.hero-shell {
    padding-top: 7.5rem;
    padding-bottom: 3rem;
}

.hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.88), transparent 34%),
        radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.5), transparent 24%),
        linear-gradient(135deg, #c8f4d1 0%, #b7f0dc 45%, #eefcf3 100%);
    padding: 4.5rem 0 3rem;
    box-shadow: var(--shadow-lg);
}

.hero-banner::before,
.hero-banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    filter: blur(4px);
}

.hero-banner::before {
    width: 320px;
    height: 320px;
    top: -90px;
    right: -110px;
}

.hero-banner::after {
    width: 240px;
    height: 240px;
    bottom: -70px;
    left: -40px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.3rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.hero-subtext {
    max-width: 34rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-visual {
    position: relative;
    min-height: 420px;
    z-index: 2;
}

.hero-product-card {
    position: absolute;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 45px rgba(15, 118, 110, 0.14);
    overflow: hidden;
}

.hero-product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-product-main {
    width: 250px;
    height: 320px;
    right: 18%;
    top: 10%;
    transform: rotate(-2deg);
}

.hero-product-left {
    width: 160px;
    height: 220px;
    left: 10%;
    top: 20%;
    transform: rotate(-10deg);
}

.hero-product-right {
    width: 148px;
    height: 210px;
    right: 0;
    bottom: 5%;
    transform: rotate(8deg);
}

.hero-product-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff, #dcfce7);
    color: var(--primary-dark);
    font-weight: 800;
}

.float-pill {
    position: absolute;
    width: 42px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    opacity: 0.85;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.float-pill.one { top: 10%; right: 12%; transform: rotate(28deg); }
.float-pill.two { bottom: 18%; left: 0; transform: rotate(-30deg); }
.float-pill.three { top: 45%; right: 34%; transform: rotate(16deg); }

.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: 0.8s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Features */
.feature-grid {
    margin-top: -2rem;
    position: relative;
    z-index: 3;
}

.feature-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    padding: 1.4rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), #fff7ed);
    color: var(--primary-dark);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.feature-card h5 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Product cards */
.product-card {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.product-image-wrap {
    position: relative;
    height: 220px;
    background: linear-gradient(180deg, #f0fdf4, #ecfeff);
    overflow: hidden;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.08);
}

.wishlist-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #94a3b8;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.wishlist-btn:hover {
    color: #ef4444;
}

.product-body {
    padding: 1.2rem;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-dark);
    letter-spacing: 0.04em;
}

.product-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0.35rem 0;
    color: var(--text);
}

.rating-stars {
    color: #fbbf24;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

.rating-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.product-card .btn {
    border-radius: 999px;
    font-weight: 700;
}

/* Categories */
.category-card {
    display: block;
    text-align: center;
    padding: 1.15rem 0.8rem;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    color: var(--text);
    transition: var(--transition);
    height: 100%;
}

.category-card:hover {
    color: var(--primary-dark);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #ecfdf5, #ffffff);
    border: 1px solid #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    box-shadow: inset 0 0 0 10px rgba(220, 252, 231, 0.55);
}

.category-card h6 {
    margin: 0;
    font-weight: 700;
}

/* Testimonial */
.testimonial-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(22, 163, 74, 0.14), rgba(15, 118, 110, 0.18)),
        #ffffff;
    box-shadow: var(--shadow-md);
}

.testimonial-card .carousel-item {
    padding: 2rem;
}

.testimonial-photo {
    width: 100%;
    max-width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 28px;
}

.customer-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.customer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.quote-text {
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    line-height: 1.45;
    font-weight: 500;
    color: #0f172a;
}

/* CTA */
.cta-banner {
    border-radius: 32px;
    overflow: hidden;
    padding: 3rem 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 24%),
        linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 38rem;
}

/* Footer */
.site-footer {
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.55), #ffffff 28%);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.footer-copy,
.footer-links a,
.footer-links li {
    color: var(--text-muted);
    font-size: 0.94rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li + li {
    margin-top: 0.7rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-list {
    display: flex;
    gap: 0.75rem;
}

.social-list a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface-soft);
    border: 1px solid #dcfce7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}

.social-list a:hover {
    transform: translateY(-2px);
    background: var(--primary);
    color: #fff;
}

/* Auth pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.auth-card {
    max-width: 540px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
}

.auth-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.input-group-icon,
.password-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 2;
}

.input-group-icon .form-control {
    padding-left: 2.6rem;
}

.form-control {
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(248, 250, 252, 0.88);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.14);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    border: 0;
    border-radius: 999px;
    min-height: 50px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 16px 35px rgba(22, 163, 74, 0.22);
}

.btn-submit:hover {
    transform: translateY(-2px);
}

.auth-footer-link {
    text-align: center;
    color: var(--text-muted);
    margin-top: 1.2rem;
}

.auth-footer-link a {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Utility */
.surface-card {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.page-hero {
    padding: 8.5rem 0 3rem;
}

.page-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 2.4rem;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.28), transparent 22%),
        linear-gradient(135deg, rgba(22,163,74,0.96), rgba(15,118,110,0.92));
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.page-hero-card p {
    color: rgba(255, 255, 255, 0.84);
    max-width: 38rem;
    margin-bottom: 0;
}

.filter-card,
.detail-card,
.summary-card,
.cart-card,
.checkout-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 26px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.filter-card {
    padding: 1.2rem;
}

.detail-card {
    padding: 1.4rem;
}

.detail-media {
    border-radius: 26px;
    min-height: 420px;
    overflow: hidden;
    background: linear-gradient(180deg, #f0fdf4, #ecfeff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
}

.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: var(--primary-dark);
    font-weight: 700;
}

.qty-input {
    max-width: 120px;
    border-radius: 999px;
    text-align: center;
}

.cart-card {
    padding: 1.4rem;
}

.cart-row {
    display: grid;
    grid-template-columns: 2.1fr 1fr 0.9fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-row:last-child {
    border-bottom: 0;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-thumb {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    background: linear-gradient(180deg, #f0fdf4, #ecfeff);
}

.summary-card,
.checkout-card {
    padding: 1.5rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--border);
}

.summary-line:last-child {
    border-bottom: 0;
}

.summary-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.checkout-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkout-list li + li {
    margin-top: 0.85rem;
}

.success-panel {
    padding: 2rem;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(22,163,74,0.12), rgba(15,118,110,0.12));
    border: 1px solid #bbf7d0;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 991.98px) {
    .hero-shell {
        padding-top: 6.5rem;
    }

    .hero-banner {
        padding-top: 3.5rem;
    }

    .hero-visual {
        min-height: 360px;
        margin-top: 2rem;
    }

    .hero-product-main {
        width: 220px;
        height: 280px;
        right: 12%;
    }

    .hero-product-left,
    .hero-product-right {
        width: 140px;
        height: 190px;
    }

    .cart-row {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
}

@media (max-width: 767.98px) {
    .brand-name {
        max-width: 145px;
        font-size: 0.86rem;
    }

    .section-space {
        padding: 3.5rem 0;
    }

    .hero-shell {
        padding-top: 5.7rem;
    }

    .hero-banner {
        border-radius: 26px;
        padding: 2.5rem 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-visual {
        min-height: 300px;
    }

    .hero-product-main {
        width: 180px;
        height: 230px;
        right: 18%;
    }

    .hero-product-left {
        width: 115px;
        height: 155px;
        left: 2%;
    }

    .hero-product-right {
        width: 110px;
        height: 150px;
        right: 0;
    }

    .feature-grid {
        margin-top: 1.5rem;
    }

    .testimonial-card .carousel-item {
        padding: 1.5rem;
    }

    .testimonial-photo {
        max-width: 100%;
        height: 220px;
        margin-bottom: 1rem;
    }
}

/* -------------------------------------------------------------------------
   App bottom navigation
   ------------------------------------------------------------------------- */

/* Hide by default; show only on small screens (or when using mobile-app-layout). */
.app-bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: env(safe-area-inset-bottom, 0px);
    z-index: 1040;
    pointer-events: none;
}

body.mobile-app-layout {
    padding-bottom: 0;
}

@media (max-width: 768px) {
    body.mobile-app-layout .site-navbar a.icon-btn[href="cart.php"] {
        display: none !important;
    }

    body.mobile-app-layout {
        padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }

    .app-bottom-nav {
        display: block;
        padding: 0 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
        animation: app-nav-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .app-bottom-nav__inner {
        pointer-events: auto;
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        gap: 0.15rem;
        max-width: 520px;
        margin: 0 auto;
        padding: 0.4rem 0.35rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 1.35rem 1.35rem 0 0;
        box-shadow:
            0 -8px 32px rgba(15, 23, 42, 0.12),
            0 -1px 0 rgba(255, 255, 255, 0.8) inset;
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-bottom: none;
    }

    .app-bottom-nav__link {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        min-width: 0;
        padding: 0.35rem 0.15rem;
        border-radius: 0.85rem;
        color: var(--text-muted);
        font-size: 0.63rem;
        font-weight: 650;
        letter-spacing: 0.02em;
        text-decoration: none;
        transition:
            color 0.22s ease,
            background 0.22s ease,
            transform 0.18s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .app-bottom-nav__link:active {
        transform: scale(0.94);
    }

    .app-bottom-nav__link.is-active {
        color: var(--primary);
        background: rgba(22, 163, 74, 0.1);
        box-shadow: 0 10px 30px rgba(22, 163, 74, 0.10);
    }

    .app-bottom-nav__link.is-active .app-bottom-nav__icon-wrap {
        color: var(--primary);
    }

    .app-bottom-nav__icon-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.15rem;
        height: 2.15rem;
        border-radius: 0.75rem;
        font-size: 1.05rem;
        color: #64748b;
        transition: color 0.22s ease, transform 0.22s ease, background 0.22s ease;
    }

    .app-bottom-nav__link.is-active .app-bottom-nav__icon-wrap {
        transform: translateY(-1px);
    }

    .app-bottom-nav__label {
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .app-bottom-nav__badge {
        position: absolute;
        top: -2px;
        right: -6px;
        min-width: 1.1rem;
        height: 1.1rem;
        padding: 0 4px;
        border-radius: 999px;
        background: #ef4444;
        color: #fff;
        font-size: 0.58rem;
        font-weight: 800;
        line-height: 1.1rem;
        text-align: center;
        box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
    }

    .app-bottom-nav__fav-badge {
        position: absolute;
        top: -2px;
        right: -6px;
        min-width: 1.1rem;
        height: 1.1rem;
        padding: 0 4px;
        border-radius: 999px;
        background: #ef4444;
        color: #fff;
        font-size: 0.58rem;
        font-weight: 800;
        line-height: 1.1rem;
        text-align: center;
        box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
    }

    .app-bottom-nav__link--pulse .app-bottom-nav__icon-wrap {
        animation: app-nav-haptic 0.32s ease;
    }

    /* Profile Dropdown */
    .app-bottom-nav__profile-dropdown,
    .app-top-profile-wrapper {
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .app-bottom-nav__profile-btn,
    .app-top-profile-toggle {
        position: relative;
        z-index: 1041;
        border: none;
        background: transparent;
        padding: 0.35rem 0.15rem;
        cursor: pointer;
        font-family: inherit;
        -webkit-tap-highlight-color: transparent;
    }

    .app-bottom-nav__profile-btn:focus,
    .app-top-profile-toggle:focus {
        outline: 2px solid var(--primary);
        outline-offset: -2px;
    }

    .app-bottom-nav__profile-menu,
    .app-top-profile-menu {
        position: absolute;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 1.1rem;
        box-shadow: 0 10px 32px rgba(15, 23, 42, 0.15);
        border: 1px solid rgba(226, 232, 240, 0.9);
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
        pointer-events: none;
        z-index: 1050;
    }

    .app-bottom-nav__profile-menu {
        bottom: 100%;
        left: 0;
        right: 0;
        margin-bottom: 0.5rem;
    }

    .app-top-profile-menu {
        top: calc(100% + 0.35rem);
        right: 0;
        min-width: 12rem;
    }

    .app-bottom-nav__profile-menu.is-open,
    .app-top-profile-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .app-bottom-nav__profile-item,
    .app-top-profile-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1.1rem;
        color: var(--text);
        text-decoration: none;
        transition: background 0.22s ease, color 0.22s ease;
        border: none;
        background: none;
        width: 100%;
        text-align: left;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
    }

    .app-bottom-nav__profile-item:hover,
    .app-top-profile-item:hover {
        background: rgba(22, 163, 74, 0.08);
        color: var(--primary);
    }

    .app-bottom-nav__profile-item--logout,
    .app-top-profile-item--logout {
        color: #ef4444;
    }

    .app-bottom-nav__profile-item--logout:hover,
    .app-top-profile-item--logout:hover {
        background: rgba(239, 68, 68, 0.1);
        color: #dc2626;
    }

    .app-bottom-nav__profile-item i,
    .app-top-profile-item i {
        font-size: 1rem;
        width: 1.2rem;
        text-align: center;
    }

    .app-bottom-nav__profile-divider {
        margin: 0.35rem 0;
        border: none;
        border-top: 1px solid rgba(226, 232, 240, 0.8);
    }

    @keyframes app-nav-rise {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes app-nav-haptic {
        0% {
            transform: scale(1);
        }
        40% {
            transform: scale(0.88);
        }
        100% {
            transform: scale(1);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .app-bottom-nav {
            animation: none;
        }

        .app-bottom-nav__link,
        .app-bottom-nav__icon-wrap {
            transition: none;
        }

        .app-bottom-nav__link--pulse .app-bottom-nav__icon-wrap {
            animation: none;
        }
    }

    .product-card {
        position: relative;
    }

    .product-image-wrap {
        position: relative;
    }

    .product-fav-btn {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        z-index: 3;
        width: 2.35rem;
        height: 2.35rem;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        color: #94a3b8;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s ease, transform 0.15s ease, background 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .product-fav-btn:active {
        transform: scale(0.9);
    }

    .product-fav-btn.is-favorited,
    .product-fav-btn.is-favorited:hover {
        color: #ef4444;
    }

    .product-fav-btn:hover {
        color: #f87171;
    }

    .product-detail-fav {
        position: static;
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 769px) {
    .app-bottom-nav {
        display: none !important;
    }

    body.mobile-app-layout {
        padding-bottom: 0 !important;
    }

    .product-fav-btn {
        display: none;
    }

    .product-detail-fav-wrap .product-fav-btn {
        display: flex;
    }
}

@media print {
    .app-bottom-nav {
        display: none !important;
    }
}

