/* =======================================
   GLOBAL RESET & VARIABLES
======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --secondary: #00cec9;
    --dark: #1e1e2f;
    --text-dark: #2d2d3a;
    --text-light: #6b6b7b;
    --bg-light: #f8f8fb;
    --white: #ffffff;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #2980b9;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =======================================
   FADE-IN ANIMATION
======================================= */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =======================================
   BUTTONS
======================================= */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(108, 92, 231, 0.45);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #c0392b;
}

/* =======================================
   STICKY HEADER
======================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--primary);
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 50px;
}

.nav-cta:hover {
    background: var(--primary-dark);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
}

/* =======================================
   HERO SECTION
======================================= */
.hero {
    background: linear-gradient(135deg, #f4f2ff 0%, #eafffb 100%);
    padding: 80px 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.badge {
    display: inline-block;
    background: rgba(108, 92, 231, 0.12);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-text h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 480px;
}

.hero-price {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.price-now {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
}

.price-old {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: 24px;
    box-shadow: var(--shadow);
}

/* =======================================
   SECTION TITLES
======================================= */
.section-title {
    font-size: 34px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 16px;
}

/* =======================================
   GALLERY
======================================= */
.gallery {
    padding: 90px 0;
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* =======================================
   FEATURES
======================================= */
.features {
    padding: 90px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 34px 26px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 14.5px;
}

/* =======================================
   WHY CHOOSE US
======================================= */
.why-us {
    padding: 90px 0;
    background: var(--bg-light);
}

.why-us-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.why-us-image img {
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.why-us-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 18px;
}

.why-us-list li span {
    background: var(--primary);
    color: var(--white);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* =======================================
   REVIEWS
======================================= */
.reviews {
    padding: 90px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.stars {
    color: var(--warning);
    font-size: 18px;
    margin-bottom: 12px;
}

.review-card p {
    color: var(--text-light);
    font-size: 14.5px;
    margin-bottom: 16px;
}

.review-card h4 {
    font-size: 15px;
    color: var(--primary);
}

/* =======================================
   FAQ
======================================= */
.faq {
    padding: 90px 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
}

.faq-question span {
    font-size: 20px;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 14.5px;
}

/* =======================================
   ORDER FORM
======================================= */
.order-section {
    padding: 90px 0;
}

.order-inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.order-info p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.order-price-box {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.order-price-box strong {
    color: var(--primary);
    font-size: 26px;
}

.order-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e2e2ea;
    border-radius: 10px;
    font-size: 14.5px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: var(--danger);
}

.error-msg {
    display: block;
    color: var(--danger);
    font-size: 12.5px;
    margin-top: 6px;
    min-height: 15px;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    border: 1px solid rgba(231, 76, 60, 0.25);
}

/* =======================================
   FOOTER
======================================= */
.site-footer {
    background: var(--dark);
    color: #cfcfe0;
    padding: 70px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 14px;
    color: #a0a0b8;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #a0a0b8;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-contact p {
    font-size: 14px;
    color: #a0a0b8;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #7f7f96;
    max-width: 1180px;
    margin: 0 auto;
}

.admin-link {
    color: #7f7f96;
    transition: var(--transition);
}

.admin-link:hover {
    color: var(--secondary);
}

/* =======================================
   SUCCESS PAGE
======================================= */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4f2ff 0%, #eafffb 100%);
    padding: 30px;
}

.success-card {
    background: var(--white);
    max-width: 480px;
    width: 100%;
    padding: 48px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: var(--success);
    color: var(--white);
    font-size: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-card h1 {
    font-size: 24px;
    margin-bottom: 12px;
}

.success-card p {
    color: var(--text-light);
    font-size: 14.5px;
    margin-bottom: 24px;
}

.success-details {
    background: var(--bg-light);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 28px;
    text-align: left;
}

.success-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #eaeaf2;
}

.success-row:last-child {
    border-bottom: none;
}

/* =======================================
   STATUS BADGES
======================================= */
.status-badge {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-block;
}

.status-pending {
    background: rgba(243, 156, 18, 0.12);
    color: var(--warning);
}

.status-confirmed {
    background: rgba(41, 128, 185, 0.12);
    color: var(--info);
}

.status-delivered {
    background: rgba(39, 174, 96, 0.12);
    color: var(--success);
}

.status-cancelled {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
}

/* =======================================
   LOGIN PAGE
======================================= */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4f2ff 0%, #eafffb 100%);
    padding: 30px;
}

.login-card {
    background: var(--white);
    max-width: 420px;
    width: 100%;
    padding: 44px 38px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.login-card h1 {
    font-size: 26px;
    margin-bottom: 6px;
    text-align: center;
}

.login-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 28px;
}

.login-form .form-group {
    margin-bottom: 18px;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 13.5px;
    color: var(--text-light);
}

.back-link:hover {
    color: var(--primary);
}

/* =======================================
   ADMIN DASHBOARD
======================================= */
.admin-wrapper {
    background: var(--bg-light);
    min-height: 100vh;
}

.admin-header {
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 34px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-header h2 {
    font-size: 19px;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    color: var(--text-light);
}

.admin-content {
    padding: 34px;
    max-width: 1400px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.stat-card.stat-pending { border-top-color: var(--warning); }
.stat-card.stat-confirmed { border-top-color: var(--info); }
.stat-card.stat-delivered { border-top-color: var(--success); }
.stat-card.stat-cancelled { border-top-color: var(--danger); }

.stat-number {
    display: block;
    font-size: 30px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
}

.table-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.table-card h3 {
    margin-bottom: 20px;
    font-size: 19px;
}

.table-scroll {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

.orders-table th,
.orders-table td {
    text-align: left;
    padding: 14px 12px;
    font-size: 13.5px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.orders-table th {
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11.5px;
    letter-spacing: 0.4px;
}

.cell-address,
.cell-notes {
    max-width: 180px;
    white-space: normal;
}

.cell-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.status-select {
    padding: 7px 10px;
    border-radius: 8px;
    border: 1.5px solid #e2e2ea;
    font-size: 12.5px;
}

.no-orders {
    color: var(--text-light);
    text-align: center;
    padding: 40px 0;
}

/* =======================================
   RESPONSIVE DESIGN
======================================= */
@media (max-width: 992px) {
    .hero-inner,
    .why-us-inner,
    .order-inner {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .features-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 18px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .menu-toggle {
        display: flex;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .features-grid,
    .reviews-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cell-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}