@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #475569;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.4);

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

header.scrolled {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

#mainLogo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.cart-toggle {
    position: relative;
    cursor: pointer;
    background: var(--dark);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cart-toggle:hover {
    transform: translateY(-2px);
    background: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.whatsapp-btn-header {
    background: #22c55e;
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.whatsapp-btn-header:hover {
    transform: translateY(-2px);
    background: #16a34a;
    box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.3);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--white);
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 10px 0;
    background-image:
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.1) 0px, transparent 50%),
        linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
    border-bottom: 1px solid var(--gray-200);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-text {
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--gray-600);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    margin: 0;
}

.hero-qr {
    flex-shrink: 0;
}

#mainQrCode {
    width: 280px;
    height: 280px;
    object-fit: contain;
    border-radius: 28px;
    background: var(--white);
    padding: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    cursor: pointer;
}

#mainQrCode:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
}

/* Categories Filter */
.categories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 4px 30px;
    margin-bottom: 20px;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 12px 24px;
    background: var(--white);
    border-radius: 14px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.category-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
}

/* Variation Selection */
.variation-select {
    margin-bottom: 20px;
    padding: 12px;
    background: var(--gray-100);
    border-radius: 12px;
}

.variation-select label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.variation-select select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    font-family: inherit;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.variation-select select:focus {
    outline: none;
    border-color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    padding-bottom: 80px;
}

.service-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 16px;
    gap: 16px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-img-small {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.3;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.service-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.price-tag {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 600;
    text-transform: uppercase;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.btn-add {
    background: var(--gray-100);
    color: var(--dark);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

/* Cart Sidebar Refined */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 450px;
    max-width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 32px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
}

.close-cart {
    background: var(--gray-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-cart:hover {
    background: var(--gray-200);
}

.cart-items {
    padding: 24px;
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    background: var(--gray-100);
    padding: 16px;
    border-radius: 20px;
    position: relative;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 14px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    padding-right: 20px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    background: var(--white);
    width: fit-content;
    padding: 4px 8px;
    border-radius: 10px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: var(--gray-100);
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--gray-200);
}

.cart-footer {
    padding: 32px 24px;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.02);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.total-label {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 600;
}

.total-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
}

.btn-checkout {
    width: 100%;
    padding: 18px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-checkout:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

/* Modal Styling */
.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--white);
    width: 100%;
    max-width: 500px;
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.show .modal-content {
    transform: scale(1);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-whatsapp {
    width: 100%;
    padding: 18px;
    background: #22c55e;
    color: var(--white);
    border: none;
    border-radius: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #16a34a;
    transform: scale(1.02);
}

/* Footer */
.main-footer {
    padding: 80px 0 40px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--dark);
}

.footer-notes {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.footer-notes li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--gray-600);
    font-weight: 500;
}

.footer-notes i {
    color: var(--primary);
    font-size: 1.25rem;
}

.footer-policies p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-policies a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-policies a:hover {
    text-decoration: underline;
}

.payment-scanner-box {
    background: var(--gray-100);
    padding: 24px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--gray-200);
}

.scanner-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--gray-600);
    margin-bottom: 16px;
}

#footerQrCode {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--white);
    padding: 8px;
    box-shadow: var(--shadow);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--gray-100);
    text-align: center;
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-actions {
        gap: 10px;
    }

    .whatsapp-btn-header,
    .cart-toggle {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 1.2rem;
    }

    #mainLogo {
        height: 40px;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cart-sidebar {
        width: 100%;
    }

    .modal-content {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-notes li {
        justify-content: center;
    }

    .payment-scanner-box {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Loader */
.loader {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.5s ease backwards;
}