:root {
    --bg-color: #f1ede5;
    --text-main: #4a5741;
    --text-muted: #8b8f84;
    --accent-green: #596b49;
    --accent-green-hover: #455338;
    --card-bg: #e6e1d6;
    --border-light: #dcd7cd;
    --font-main: 'Jost', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Abstract Leaf Decorations (Image based) */
.decoration-leaf {
    position: absolute;
    opacity: 0.25; /* Increased opacity */
    z-index: -1;
    width: 220px; /* Increased size */
    pointer-events: none;
    object-fit: contain;
}
.leaf-tl { top: -20px; left: -20px; transform: rotate(-45deg); }
.leaf-tr { top: -20px; right: 0; transform: rotate(45deg); }
.leaf-bl { bottom: -30px; left: -50px; transform: rotate(-135deg); }
.leaf-br { bottom: -30px; right: -50px; transform: rotate(135deg); }

.container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 80px;
}

/* Top Header / Logo */
.header {
    text-align: center;
    padding: 30px 20px 10px;
}
.logo-container {
    display: inline-block;
    margin-bottom: 15px;
}
.logo-icon {
    font-size: 40px;
    color: var(--text-main);
    margin-bottom: 5px;
}
.header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}
.header p {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--accent-green);
    margin: 10px 0 0 0;
    text-transform: uppercase;
    position: relative;
}
.section-title::after {
    content: "\f028";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    opacity: 0.6;
}
.view-toggle {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 5px;
}
.view-toggle button {
    background: none;
    border: 1px solid var(--border-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}
.view-toggle button:hover {
    background: var(--card-bg);
    color: var(--text-main);
}

/* --- PIZZA SLIDER --- */
.pizza-slider-container {
    transition: opacity 0.3s ease, height 0.3s ease;
}
.pizza-slider-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 15px;
    overflow: hidden;
    padding: 25px 0;
}

.pizza-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-15px); /* Move pizzas up slightly so bottom shadow fits */
}

.pizza-track::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 1px;
    border-top: 1px dashed var(--border-light);
    z-index: 0;
    top: 50%;
    left: -25%;
    transform: translateY(-50%);
}

.pizza-slide {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px dashed #b5b0a1; /* Dashed circle border */
    padding: 2px; /* Reduced padding to make pizza larger */
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    z-index: 1;
    transform: translateX(0) scale(0.5) rotate(0deg);
}

.pizza-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Positions */
.pizza-slide.active {
    opacity: 1;
    z-index: 3;
    transform: translateX(0) scale(1) rotate(0deg);
}
.pizza-slide.active img {
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15)); /* Lighter soft shadow */
}
.pizza-slide.prev {
    opacity: 1;
    z-index: 2;
    transform: translate(-205px, 0) scale(0.65) rotate(-20deg); /* Brought closer to center */
}
.pizza-slide.next {
    opacity: 1;
    z-index: 2;
    transform: translate(205px, 0) scale(0.65) rotate(20deg); /* Brought closer to center */
}
.pizza-slide.hidden-left {
    opacity: 0;
    transform: translate(-330px, 0) scale(0.5) rotate(-35deg);
}
.pizza-slide.hidden-right {
    opacity: 0;
    transform: translate(330px, 0) scale(0.5) rotate(35deg);
}

/* Controls */
.slider-btn {
    position: absolute;
    bottom: 25px; /* Lower positioned like the screenshot */
    width: 44px;
    height: 44px;
    background: var(--accent-green);
    color: #fff;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-size: 16px;
    transition: 0.3s;
}
.slider-btn:hover { background: var(--accent-green-hover); }
.slider-btn.left { left: 50%; margin-left: -110px; }
.slider-btn.right { right: 50%; margin-right: -110px; }

/* Pizza Details */
.pizza-details {
    text-align: center;
    padding: 5px 30px;
    margin-top: 10px;
    height: 155px; /* Fixed height to prevent jumping */
}
.pizza-details-item {
    display: none;
    animation: fadeIn 0.4s ease;
}
.pizza-details-item.active {
    display: block;
}

.pizza-badge {
    background: var(--accent-green);
    color: white;
    padding: 8px 24px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.pizza-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 39px; /* 1.5 * 13px * 2 */
}
.pizza-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green);
}

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}
.dot {
    width: 8px;
    height: 8px;
    background: var(--border-light);
    border-radius: 50%;
    transition: 0.3s;
}
.dot.active {
    background: var(--accent-green);
}

/* --- CATEGORIES --- */
.categories-wrapper {
    background: var(--bg-color);
    padding: 20px 15px 10px 15px;
    margin-top: 10px;
}

.cat-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    justify-content: flex-start;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }

.cat-box {
    flex: 0 0 auto;
    width: 95px;
    height: 90px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.2);
}
.cat-box i {
    font-size: 26px;
    color: var(--text-main);
    transition: 0.3s;
}
.cat-box span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-box.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(89, 107, 73, 0.4);
}
.cat-box.active i {
    color: white;
}

.scroll-hint {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.scroll-hint i {
    font-size: 16px;
    animation: upDown 1.5s infinite;
}

@keyframes upDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* --- REGULAR MENU LIST --- */
.menu-content {
    padding: 20px 25px; /* Added more padding to match screenshot */
}
.menu-group {
    margin-bottom: 40px;
    scroll-margin-top: 180px; /* offset for larger sticky nav */
}
.group-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.product-list-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1.5px dotted var(--border-light);
    gap: 15px;
}
.product-list-item:last-child {
    border-bottom: none;
}
.prod-list-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--card-bg);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.prod-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.prod-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5px;
}
.prod-list-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}
.prod-list-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main); /* Changed to dark green like screenshot */
    white-space: nowrap;
    margin-left: 15px;
}
.prod-list-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    padding-right: 20px;
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    padding: 30px 20px 15px 20px;
    border-top: 1px solid var(--border-light);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}
.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid var(--border-light);
}
.social-btn:hover {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}
.footer-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-green);
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.product-modal.active .product-modal-content {
    transform: scale(1) translateY(0);
}

.product-modal-image {
    width: 100%;
    height: 250px;
    background: transparent;
    padding: 20px;
    box-sizing: border-box;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-modal-info {
    padding: 25px 20px;
    text-align: center;
}

.product-modal-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #1f2937;
    font-weight: 600;
}

.product-modal-price {
    font-size: 1.25rem;
    color: #e63946;
    font-weight: 700;
    margin-bottom: 15px;
}
.product-modal-price:empty {
    display: none;
}

.product-modal-desc {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
}
.product-modal-desc:empty {
    display: none;
}

.product-image-trigger {
    cursor: pointer;
    transition: opacity 0.2s;
}

.product-image-trigger:hover {
    opacity: 0.9;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(89, 107, 73, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent-green);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
