@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

:root {
    --green: #4AC56B;
    --green-dark: #3AA85A;
    --green-light: #6FD489;
    --green-glow: rgba(74, 197, 107, 0.25);
    --green-glow-strong: rgba(74, 197, 107, 0.4);
    --mango-gold: #F2A900;
    --yellow-brand: #F8E71C;
    --orange-brand: #F58220;
    --bg: #121814;
    --bg-card: #1E2620;
    --bg-elevated: #26332C;
    --border: #2D3A32;
    --border-glow: rgba(74, 197, 107, 0.2);
    --white: #FFFFFF;
    --text: #F4F6F4;
    --text-muted: #8A9B92;
    --grey: #5A6B62;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-hover: 0 8px 32px rgba(74, 197, 107, 0.3);
    --radius: 14px;
    --transition: 0.3s ease;
    --max-width: 1100px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: rgba(18, 24, 20, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo svg {
    display: block;
    filter: drop-shadow(0 0 8px rgba(74, 197, 107, 0.3));
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    color: var(--green);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

.hero {
    background: linear-gradient(160deg, #121814 0%, #1A2620 40%, #1A1E14 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(74, 197, 107, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(248, 231, 28, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    position: relative;
}

.brand-juicyne {
    color: #4AC56B;
}

.brand-xt {
    background: linear-gradient(180deg, #F8E71C, #F58220);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-mango {
    color: #F2A900;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 45px;
    color: var(--white);
    letter-spacing: -0.3px;
}

.page-header {
    background: var(--bg-card);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.page-header p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--green);
    color: #121814;
    box-shadow: 0 0 24px rgba(74, 197, 107, 0.25);
}

.btn-primary:hover {
    background: var(--green-light);
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(74, 197, 107, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--green);
    color: var(--green);
}

.btn-outline:hover {
    background: var(--green);
    color: #121814;
    box-shadow: 0 0 24px rgba(74, 197, 107, 0.25);
}

.btn-disabled {
    background: var(--bg-elevated);
    color: var(--grey);
    cursor: not-allowed;
    border: 1px solid var(--border);
}

.btn-small {
    padding: 10px 22px;
    font-size: 0.85rem;
}

.btn-large {
    padding: 16px 44px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-danger {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background: #e74c3c;
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius) + 1px);
    background: linear-gradient(135deg, rgba(74, 197, 107, 0.2), transparent 40%, transparent 60%, rgba(248, 231, 28, 0.15));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    background: var(--bg-elevated);
    position: relative;
    line-height: 0;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-gallery-sm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100%;
}

.product-gallery-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--bg-elevated);
}

.gallery-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
}

.product-carousel {
    width: 100%;
}

.carousel-main {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-elevated);
    line-height: 0;
}

.product-carousel .carousel-main img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(18, 24, 20, 0.8);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 2;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: var(--green);
    color: #121814;
    border-color: var(--green);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all var(--transition);
}

.carousel-dot.active {
    background: var(--green);
    box-shadow: 0 0 8px rgba(74, 197, 107, 0.4);
    width: 24px;
    border-radius: 4px;
}

.product-image-placeholder {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 0.5;
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-available {
    background: var(--green);
    color: #121814;
    box-shadow: 0 0 16px rgba(74, 197, 107, 0.35);
}

.badge-coming-soon {
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.product-info {
    padding: 22px;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
}

.product-name .highlight {
    color: #F2A900;
}

.product-size {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--green);
    margin-bottom: 15px;
    letter-spacing: -0.3px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.benefit-card {
    background: var(--bg-card);
    padding: 35px 25px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--green);
    box-shadow: var(--shadow-hover);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--green-glow);
    color: var(--green);
    border: 1px solid rgba(74, 197, 107, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(74, 197, 107, 0.1);
}

.benefit-card h3 {
    margin-bottom: 10px;
    color: var(--white);
    font-weight: 700;
}

.cta-section {
    background: linear-gradient(160deg, #121814 0%, #1A2620 40%, #1A1E14 100%);
    color: var(--white);
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cta-section p {
    margin-bottom: 28px;
    color: var(--text-muted);
}

.order-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
}

.product-summary-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius) + 1px);
    background: linear-gradient(135deg, rgba(74, 197, 107, 0.15), transparent 50%);
    z-index: -1;
}

.product-summary-card img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto 15px;
}

.product-summary-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
}

.order-form, .admin-form, .contact-form, .login-form {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text);
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 16px rgba(74, 197, 107, 0.12);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}

.flash-messages {
    margin-top: 15px;
}

.flash-message {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}

.flash-message.error {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.25);
}

.flash-message.success {
    background: var(--green-glow);
    color: var(--green);
    border-color: rgba(74, 197, 107, 0.25);
}

.about-content h2 {
    margin: 30px 0 15px;
    color: var(--green);
    font-weight: 700;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.value-item {
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: border-color var(--transition);
}

.value-item:hover {
    border-color: var(--green);
}

.value-item h3 {
    color: var(--green);
    margin-bottom: 8px;
    font-weight: 700;
}

.about-credit {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.about-credit p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-credit a {
    color: var(--green);
    font-weight: 600;
}

.about-credit a:hover {
    text-decoration: underline;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h2 {
    margin-bottom: 25px;
    color: var(--green);
    font-weight: 700;
}

.contact-detail {
    margin-bottom: 20px;
}

.contact-detail h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.contact-detail a {
    color: var(--green);
    font-weight: 600;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.footer {
    background: var(--bg-card);
    color: var(--text);
    padding: 50px 0 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-col h3 {
    color: var(--green);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--green);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--grey);
}

.badge-pending { background: rgba(248, 231, 28, 0.12); color: #F8E71C; border: 1px solid rgba(248, 231, 28, 0.25); }
.badge-confirmed { background: var(--green-glow); color: var(--green); border: 1px solid rgba(74, 197, 107, 0.25); }
.badge-delivered { background: var(--green); color: #121814; }
.badge-cancelled { background: rgba(231, 76, 60, 0.12); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.25); }

.pagination { margin-top: 20px; text-align: center; }
.pagination .btn { margin: 0 5px; }

.admin-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.login-card h1 {
    text-align: center;
    color: var(--green);
    margin-bottom: 30px;
    font-weight: 900;
}

.admin-nav {
    background: var(--bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.admin-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav .logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.admin-nav-links {
    display: flex;
    gap: 20px;
}

.admin-nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.admin-nav-links a:hover {
    color: var(--green);
}

.admin-main {
    padding: 30px 0;
    min-height: calc(100vh - 120px);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.dash-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.dash-card h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--green);
    margin-bottom: 5px;
}

.dash-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.dash-link {
    color: var(--green);
    font-weight: 600;
}

.dash-link:hover {
    text-decoration: underline;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.admin-table th, .admin-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--bg-elevated);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.admin-table .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--grey);
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero { padding: 60px 0; }
    .section { padding: 45px 0; }
    .section-title { font-size: 1.6rem; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        gap: 15px;
    }

    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; }

    .admin-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        gap: 15px;
        z-index: 100;
    }

    .admin-nav-links.active { display: flex; }
    .admin-nav-toggle { display: flex; }
    .admin-nav-toggle span { background: var(--text); }

    .admin-nav { position: relative; }
    .admin-nav .container { flex-wrap: wrap; }

    .product-grid { grid-template-columns: 1fr; }

    .order-layout { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    .benefits-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }

    .admin-table { font-size: 0.85rem; }
    .admin-table th, .admin-table td { padding: 8px 10px; }

    .product-summary-card img { max-width: 200px; }
    .carousel-main { height: 300px; }
}

@media (min-width: 769px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}