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

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1e293b;
    scroll-behavior: smooth;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* theme colors */
:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --pink: #f43f5e;
    --pink-dark: #e11d48;
    --pink-light: #fce7f3;
    --orange-light: #fff3e6;
    --white: #ffffff;
    --gray-50: #faf9f6;
    --gray-100: #f1f5f9;
    --gray-800: #1e293b;
    --gray-600: #475569;
}

/* buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--orange);
    color: white;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--pink);
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--pink-dark);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--orange);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid var(--orange);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--orange);
    color: white;
}

/* header */
header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(2px);
    background-color: rgba(255,255,255,0.98);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    flex-wrap: wrap;
}

.logo h2 {
    color: var(--orange);
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--pink);
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--gray-800);
    transition: 0.2s;
}

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

.nav-links .btn-order-nav {
    background-color: var(--orange);
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
}

.nav-links .btn-order-nav:hover {
    background-color: var(--orange-dark);
    color: white;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.3)), url('https://tokokue.tm-dev.space/assets/img/Gemini_All_cookies_good01.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    padding: 120px 0;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero .badge {
    background-color: var(--pink);
    color: white;
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 span {
    color: #ffd966;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* about section */
.about {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 48px;
}

.section-title span {
    color: var(--orange);
    border-bottom: 4px solid var(--pink);
    display: inline-block;
    padding-bottom: 8px;
}

.about-grid {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--gray-600);
    line-height: 1.6;
}

.about-features {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--pink-light);
    padding: 8px 20px;
    border-radius: 60px;
}

.feature i {
    font-size: 1.3rem;
    color: var(--pink);
}

.about-img {
    flex: 1;
    background: linear-gradient(135deg, var(--orange-light) 0%, var(--pink-light) 100%);
    border-radius: 32px;
    padding: 40px 20px;
    text-align: center;
}

.about-img i {
    font-size: 70px;
    color: var(--orange);
    margin-bottom: 20px;
}

/* Features Section */
.features {
    background: white;
    padding: 60px 0;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 30px;
    background: var(--pink-light);
    border-radius: 60px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--pink) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* products section */
.products-section {
    background-color: var(--gray-50);
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -12px rgba(249,115,22,0.2);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(145deg, var(--orange-light) 0%, #fff0e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product-info {
    padding: 20px 20px 24px;
}

.product-info h4 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.price-container {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.price-btn {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--orange);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.price-btn:hover,
.price-btn.active {
    background: var(--orange);
    color: var(--white);
}

.price-btn .weight {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-btn .price {
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

.description {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 12px 0;
    line-height: 1.5;
}

.btn-order {
    display: inline-block;
    background-color: var(--pink);
    color: white;
    padding: 10px 20px;
    text-align: center;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;
    transition: 0.2s;
}

.btn-order:hover {
    background-color: var(--pink-dark);
}

/* CTA */
.cta-section {
    background: linear-gradient(110deg, var(--orange) 0%, var(--pink) 100%);
    padding: 60px 24px;
    text-align: center;
    border-radius: 48px;
    margin: 50px auto 60px;
    color: white;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 28px;
    opacity: 0.95;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--orange);
    box-shadow: none;
}

.cta-section .btn-primary:hover {
    background-color: #fff5eb;
    transform: translateY(-2px);
}

/* footer */
footer {
    background-color: #1e1e2a;
    color: #cbd5e1;
    padding: 50px 0 20px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p, .footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    line-height: 1.9;
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--orange);
}

.social-icons a {
    display: inline-block;
    margin-right: 18px;
    font-size: 1.4rem;
    color: #facc15;
    transition: 0.2s;
}

.social-icons a:hover {
    color: var(--orange);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    font-size: 0.85rem;
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

/* Admin Layout */
.admin-page {
    background-color: var(--gray-100);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-layout .sidebar {
    width: 260px;
    background: #1e293b;
    color: white;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-layout .sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--orange);
}

.admin-layout .sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-layout .sidebar nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.admin-layout .sidebar nav a:hover,
.admin-layout .sidebar nav a.active {
    background: rgba(249, 115, 22, 0.2);
    color: var(--orange);
}

.admin-layout .admin-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

.admin-layout .admin-content h3 {
    font-size: 1.8rem;
    margin-bottom: 24px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--pink) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Dashboard Content */
.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

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

.card-header h4 {
    font-size: 1.2rem;
}

/* Quick Links */
.quick-links {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.quick-links h4 {
    margin-bottom: 20px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 12px;
    text-decoration: none;
    color: var(--gray-800);
    transition: all 0.2s;
}

.quick-link:hover {
    background: var(--orange);
    color: white;
}

.quick-link i {
    font-size: 1.5rem;
    color: var(--orange);
}

.quick-link:hover i {
    color: white;
}

/* Form Card */
.form-card,
.table-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-card h4,
.table-card h4 {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-100);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Buttons */
.btn-submit {
    background: var(--orange);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: var(--orange-dark);
}

.btn-export,
.btn-link {
    background: var(--pink);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-toggle,
.btn-delete {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    margin-right: 8px;
}

.btn-toggle {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
}

.btn-delete:hover {
    background: #dc2626;
    color: white;
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert.error {
    background: #fee2e2;
    color: #dc2626;
}

.alert.success {
    background: #dcfce7;
    color: #16a34a;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--gray-50);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--gray-600);
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
}

table tbody tr:hover {
    background: var(--gray-50);
}

table .thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

table .no-img {
    color: var(--gray-600);
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.available,
.badge.status-baru {
    background: #dcfce7;
    color: #16a34a;
}

.badge.unavailable,
.badge.status-dibatalkan {
    background: #fee2e2;
    color: #dc2626;
}

.badge.status-diproses {
    background: #fef3c7;
    color: #d97706;
}

.badge.status-selesai {
    background: #dbeafe;
    color: #2563eb;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-link {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-600);
    background: white;
    transition: all 0.2s;
}

.filter-link:hover,
.filter-link.active {
    background: var(--orange);
    color: white;
}

/* Status Form */
.status-form {
    display: inline-flex;
}

.status-select {
    padding: 6px 12px;
    border: 1px solid var(--gray-100);
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, var(--orange) 0%, var(--pink) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.login-box {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.login-box .subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 30px;
}

.login-box .back-link {
    text-align: center;
    margin-top: 20px;
}

.login-box .back-link a {
    color: var(--gray-600);
    text-decoration: none;
}

/* Empty State */
.empty {
    color: var(--gray-600);
    text-align: center;
    padding: 40px;
}

/* Responsive Admin */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-layout .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    .admin-layout .admin-content {
        margin-left: 0;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Product Grid in Admin */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 16px;
    }
    .nav-links {
        justify-content: center;
        gap: 20px;
    }
    .hero {
        padding: 80px 0;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .cta-section h3 {
        font-size: 1.5rem;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
}