/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c41e3a;
    --secondary-color: #8b4513;
    --accent-color: #ff6b35;
    --text-dark: #2c2c2c;
    --text-primary: #2c2c2c;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth page transitions */
html {
    scroll-behavior: smooth;
}

/* Fade-in animation for page load */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Page container */
.page-container {
    animation: fadeIn 0.6s ease-in;
    min-height: 100vh;
    padding-top: 80px;
}

@media (max-width: 768px) {
    .page-container {
        padding-top: 80px;
    }
}

/* Header Styles */
header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
    transition: transform 0.3s ease-in-out, 
                background 0.3s ease-in-out, 
                box-shadow 0.3s ease-in-out;
    transform: translateY(0);
}

header.hidden {
    transform: translateY(-100%);
    background: transparent;
    box-shadow: none;
}

/* Ensure mobile menu is not affected by header transform */
header.hidden .mobile-nav {
    transform: translateX(-100%) translateZ(0) !important;
}

header.hidden .mobile-nav.active {
    transform: translateX(0) translateZ(0) !important;
}

/* Ensure mobile menu is always on top, above hero section */
.mobile-nav {
    z-index: 1500 !important;
}

.mobile-nav-overlay {
    z-index: 1499 !important;
}

.mobile-menu-toggle {
    z-index: 1501 !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
    line-height: 1.2;
    display: inline-block;
}

.logo br {
    display: none;
}

.domain-link {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: none;
    margin-top: 0.25rem;
    margin-left: 0;
    display: block;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 1501;
    position: relative;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    color: var(--primary-color);
    outline: none;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Mobile menu overlay (dark background) */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1499;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    backdrop-filter: blur(4px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    box-shadow: 4px 0 30px rgba(196, 30, 58, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 1500;
    overflow-y: auto;
    transform: translateX(-100%) translateZ(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    transform: translateX(0) translateZ(0) !important;
    display: flex !important;  /* Принудительно показываем меню */
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile nav header with close button */
.mobile-nav-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(196, 30, 58, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(180deg, rgba(196, 30, 58, 0.15) 0%, transparent 100%);
    flex-shrink: 0;
    position: relative;
}

.mobile-nav-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

.mobile-nav-header > div {
    flex: 1;
}

.mobile-nav-title {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(196, 30, 58, 0.5);
    letter-spacing: -0.5px;
}

.mobile-nav-title br {
    display: block;
}

.mobile-nav-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.9;
    font-weight: 400;
}

.mobile-nav-close {
    background: rgba(196, 30, 58, 0.2);
    border: 2px solid rgba(196, 30, 58, 0.4);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.mobile-nav-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.5);
}

.mobile-nav-close:active {
    transform: scale(0.95) rotate(90deg);
}

.mobile-nav ul {
    flex-direction: column;
    padding: 1.5rem 0;
    gap: 0;
    list-style: none;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    display: flex !important;  /* Принудительно показываем список */
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    display: block !important;  /* Принудительно показываем элементы списка */
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-nav li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav a {
    display: block !important;  /* Принудительно показываем ссылки */
    padding: 1.4rem 1.5rem;
    color: rgba(255, 255, 255, 0.9) !important;  /* Явный цвет текста */
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    letter-spacing: 0.3px;
    visibility: visible !important;
    opacity: 1 !important;  /* Полная непрозрачность */
}

.mobile-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.mobile-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(196, 30, 58, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav a:hover {
    background: linear-gradient(90deg, rgba(196, 30, 58, 0.15), rgba(196, 30, 58, 0.05));
    color: #ffffff;
    padding-left: 2rem;
    transform: translateX(4px);
}

.mobile-nav a:hover::before {
    opacity: 1;
}

.mobile-nav a:hover::after {
    opacity: 1;
}

.mobile-nav a:active {
    background: linear-gradient(90deg, rgba(196, 30, 58, 0.25), rgba(196, 30, 58, 0.1));
    transform: translateX(2px);
}

/* Cart in mobile menu */
.mobile-nav .cart-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding: 1.4rem 1.5rem;
}

.mobile-nav .cart-count {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Active link styling */
.mobile-nav a.active {
    background: linear-gradient(90deg, rgba(196, 30, 58, 0.2), rgba(196, 30, 58, 0.1));
    color: #ffffff;
    padding-left: 2rem;
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
}

.mobile-nav a.active::before {
    opacity: 1;
}

/* Smooth scroll behavior for mobile nav */
.mobile-nav {
    -webkit-overflow-scrolling: touch;
}

/* Mobile Menu - Force visibility styles with !important */
.mobile-menu.active {
    display: block !important;  /* Принудительно показываем меню */
    opacity: 1;
    transform: translateY(0);
    visibility: visible !important;  /* Явно указываем видимость */
}

.mobile-menu .nav {
    display: block !important;  /* Навигация видна */
    visibility: visible !important;
}

.mobile-menu .nav-list {
    display: flex !important;  /* Список виден */
    visibility: visible !important;
}

.mobile-menu .nav-list li {
    display: block !important;  /* Элементы списка видны */
    visibility: visible !important;
}

.mobile-menu .nav-list a {
    display: block !important;
    color: var(--text-primary) !important;  /* Явный цвет текста */
    visibility: visible !important;
    opacity: 1 !important;  /* Полная непрозрачность */
    font-size: 1rem;
    font-weight: 500;
}

/* Better touch targets for mobile - integrated into existing media query */

/* Hero Section */
.hero {
    position: relative;
    margin-top: 80px;
    overflow: hidden;
    height: 500px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: absolute;
    top: 50%;
    right: 4rem;
    transform: translateY(-50%);
    max-width: 500px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    color: var(--text-dark);
    text-align: left;
    box-shadow: var(--shadow);
    z-index: 10;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #a01a2e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Section Styles */
    .section {
        padding: 2rem 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    @media (max-width: 768px) {
        .section {
            padding: 1.5rem 1rem;
        }

        .section-title {
            font-size: 2rem;
        }
    }

/* Red divider lines between sections */
/* All sections that follow another section or hero get a red border-top */
.section + .section,
section + section,
section + .section,
.section + section,
.hero + section,
.hero + .section {
    border-top: 3px solid #c41e3a;
    padding-top: 2rem;
}

/* Handle nested sections within sections (like in menu.html, about.html, etc.) */
.section .section:not(:first-child),
section .section:not(:first-child) {
    border-top: 3px solid #c41e3a;
    padding-top: 2rem;
    margin-top: 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-dark);
    position: relative;
    animation: slideUp 0.6s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* Customer Favourites Gallery */
.favourites-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.favourite-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.favourite-item:nth-child(1) { animation-delay: 0.1s; }
.favourite-item:nth-child(2) { animation-delay: 0.2s; }
.favourite-item:nth-child(3) { animation-delay: 0.3s; }
.favourite-item:nth-child(4) { animation-delay: 0.4s; }
.favourite-item:nth-child(5) { animation-delay: 0.5s; }

.favourite-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.favourite-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.favourite-item:hover img {
    transform: scale(1.05);
}

.favourite-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1.5rem;
}

.favourite-item-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Customize Pizza Section */
.customize-section {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 3rem;
    margin: 2rem 0;
    animation: slideUp 0.8s ease-out;
}

.customize-form {
    display: grid;
    gap: 2rem;
}

.customize-group {
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.customize-group:nth-child(1) { animation-delay: 0.1s; }
.customize-group:nth-child(2) { animation-delay: 0.2s; }
.customize-group:nth-child(3) { animation-delay: 0.3s; }

.customize-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.customize-group select,
.customize-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.customize-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.option-item input[type="checkbox"]:checked + label,
.option-item input[type="radio"]:checked + label {
    color: var(--primary-color);
    font-weight: 600;
}

.option-item:has(input[type="checkbox"]:checked),
.option-item:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: #fff5f5;
}

/* Fallback for browsers that don't support :has() */
.option-item input[type="checkbox"]:checked,
.option-item input[type="radio"]:checked {
    accent-color: var(--primary-color);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Weekly Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.highlight-card:nth-child(1) { animation-delay: 0.1s; }
.highlight-card:nth-child(2) { animation-delay: 0.2s; }
.highlight-card:nth-child(3) { animation-delay: 0.3s; }

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.highlight-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.highlight-card-content {
    padding: 1.5rem;
}

.highlight-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.highlight-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
}

/* Menu Page Styles */
.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: slideUp 0.6s ease-out;
}

@media (max-width: 768px) {
    .menu-tabs {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .tab-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }
}

.tab-button {
    padding: 0.8rem 2rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
    display: block;
}

.pizza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pizza-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.pizza-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.pizza-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.pizza-card-content {
    padding: 1.5rem;
}

.pizza-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pizza-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
    display: block;
}

/* Ingredient Table */
.ingredient-table {
    width: 100%;
    border-collapse: collapse;
    margin: 3rem 0;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

.ingredient-table thead {
    background: var(--primary-color);
    color: white;
}

.ingredient-table th,
.ingredient-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.ingredient-table tbody tr {
    transition: background 0.3s ease;
}

.ingredient-table tbody tr:hover {
    background: var(--bg-light);
}

.ingredient-table tbody tr:last-child td {
    border-bottom: none;
}

/* New Arrivals */
.new-arrivals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
}

.new-arrival-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
    width: 100%;
}

.new-arrival-card:nth-child(1) { animation-delay: 0.1s; }
.new-arrival-card:nth-child(2) { animation-delay: 0.2s; }

.new-arrival-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.new-arrival-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.new-arrival-card-content {
    padding: 2rem;
}

/* Deals Page */
.combo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.combo-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
    width: 100%;
}

.combo-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.combo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.combo-card-content {
    padding: 1.5rem;
}

.combo-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.combo-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 1rem 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
    margin: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Accordion */
.accordion {
    margin: 2rem 0;
}

.accordion-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.accordion-item:nth-child(1) { animation-delay: 0.1s; }
.accordion-item:nth-child(2) { animation-delay: 0.2s; }
.accordion-item:nth-child(3) { animation-delay: 0.3s; }
.accordion-item:nth-child(4) { animation-delay: 0.4s; }

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

/* About Page */
.about-hero {
    position: relative;
    height: 400px;
    background: url('images/about-hero.jpg');
    background-size: cover;
    background-position: center;
    margin: 1rem 0;
    border-radius: 10px;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 1rem 0;
    animation: slideUp 0.8s ease-out;
}

.about-content img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.about-text {
    padding: 2rem;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-card-content {
    padding: 1.5rem;
    text-align: center;
}

/* Contact Page */
.contact-info-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    animation: slideUp 0.6s ease-out;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    font-weight: bold;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
    margin: 2rem 0;
    animation: slideUp 0.8s ease-out;
}

.hours-table th,
.hours-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.hours-table th {
    background: var(--primary-color);
    color: white;
}

.hours-table tbody tr:last-child td {
    border-bottom: none;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    animation: slideUp 0.8s ease-out;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    animation: slideUp 0.8s ease-out;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.success-message {
    display: none;
    background: #4caf50;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

.success-message.show {
    display: block;
}

/* Cart Page */
.cart-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.cart-items-container {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.cart-item:nth-child(1) { animation-delay: 0.1s; }
.cart-item:nth-child(2) { animation-delay: 0.2s; }
.cart-item:nth-child(3) { animation-delay: 0.3s; }

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 1.3rem;
}

.cart-item-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.item-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: auto;
}

.remove-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.remove-btn:hover {
    background: #d32f2f;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    animation: slideUp 0.8s ease-out;
}

.cart-summary h2 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 1rem;
}

.checkout-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Checkout Page Styles */
.checkout-page {
    padding-top: 100px;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    max-width: 100px;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.checkout-form-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkout-form .form-group {
    margin-bottom: 0;
}

.checkout-form select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.checkout-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkout-form select.error {
    border-color: #f44336;
}

.error-message {
    display: none;
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #f44336;
}

.submit-order-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.order-summary-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.order-summary-sidebar h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.order-items-list {
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.order-item-summary {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item-summary:last-child {
    border-bottom: none;
}

.order-item-name {
    color: var(--text-dark);
    flex: 1;
}

.order-item-price {
    color: var(--text-light);
    font-weight: 600;
}

.order-total {
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.order-total .summary-row {
    margin-bottom: 0.75rem;
}

.order-total .summary-total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 0.6s ease-in;
}

.empty-cart h2 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
    z-index: 1000;
    display: none;
    justify-content: space-between;
    align-items: center;
    animation: slideUp 0.5s ease-out;
}

.cookie-banner:not(.hidden) {
    display: flex;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-text {
    flex: 1;
    margin-right: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-btn-accept {
    background: var(--primary-color);
    color: white;
}

.cookie-btn-accept:hover {
    background: #a01a2e;
}

.cookie-btn-info {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.cookie-btn-info:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    color: #ccc;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* Legal Pages */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.6s ease-in;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.legal-page h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legal-page h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.legal-page p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.legal-page ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-nav {
        width: 300px;
        max-width: 90%;
    }

    .mobile-nav-title {
        font-size: 1.4rem;
    }

    .mobile-nav-subtitle {
        font-size: 0.8rem;
    }

    .mobile-nav a {
        font-size: 1rem;
        padding: 1.1rem 1.5rem;
        min-height: 50px;
        display: flex;
        align-items: center;
    }

    .mobile-nav-close {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .header-container {
        padding: 0.75rem 1rem;
        flex-wrap: nowrap;
        gap: 0.5rem;
        position: relative;
        align-items: center;
    }

    header {
        background: var(--bg-white);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    header.hidden {
        background: transparent;
        box-shadow: none;
    }

    nav ul {
        display: none;
    }
    
    /* Убеждаемся, что мобильное меню всегда видно */
    .mobile-nav.active ul {
        display: flex !important;
        visibility: visible !important;
    }
    
    .mobile-nav.active li {
        display: block !important;
        visibility: visible !important;
    }
    
    .mobile-nav.active a {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        z-index: 1501;
        position: relative;
        margin-left: auto;
        background: transparent;
        border: 2px solid transparent;
        border-radius: 4px;
        color: var(--text-dark);
        cursor: pointer;
        touch-action: manipulation;
        pointer-events: auto;
        -webkit-tap-highlight-color: rgba(196, 30, 58, 0.2);
    }

    .mobile-menu-toggle:active {
        background: rgba(196, 30, 58, 0.1);
        transform: scale(0.95);
    }

    .mobile-menu-toggle:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }

    .mobile-menu-toggle:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }

    .logo-wrapper {
        flex: 1;
        min-width: 0;
    }

    .logo {
        font-size: 1.3rem;
        line-height: 1.2;
        color: var(--primary-color);
    }

    .logo br {
        display: block;
    }

    .domain-link {
        font-size: 0.75rem;
        margin-top: 0.15rem;
        color: var(--text-light);
    }

    .cart-icon {
        font-size: 1rem;
        margin-right: 0.5rem;
        display: none;
    }

    .hero {
        margin-top: 70px;
        position: relative;
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .hero-image {
        width: 100%;
        height: 300px;
        object-fit: cover;
        display: block;
    }

    .hero-content {
        position: static;
        transform: none;
        top: auto;
        right: auto;
        max-width: 100%;
        margin: 0 auto;
        padding: 2rem 1.5rem;
        text-align: center;
        background: var(--bg-white);
        width: 100%;
        box-shadow: none;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        justify-content: center;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .favourites-gallery {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .pizza-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pizza-card {
        margin-bottom: 0;
    }

    .menu-tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-text {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .new-arrivals {
        grid-template-columns: 1fr;
    }

    .combo-grid {
        grid-template-columns: 1fr;
    }

    /* Accordion items with buttons - mobile responsive */
    .accordion-body li {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .accordion-body li span {
        width: 100%;
    }

    .accordion-body .add-to-cart-extra {
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Checkout responsive */
    .checkout-content {
        grid-template-columns: 1fr;
    }

    .order-summary-sidebar {
        position: static;
        margin-top: 2rem;
    }

    .checkout-progress {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .progress-line {
        max-width: 50px;
    }

    .step-label {
        font-size: 0.8rem;
    }

    /* Tables - Mobile Responsive */
    .ingredient-table,
    .hours-table {
        width: 100%;
        max-width: 100%;
        margin: 2rem auto;
        font-size: 0.6rem;
        table-layout: fixed;
        border-collapse: collapse;
        display: table;
    }

    /* More compact for 4-column ingredient table */
    .ingredient-table {
        font-size: 0.55rem;
    }

    .ingredient-table th,
    .ingredient-table td,
    .hours-table th,
    .hours-table td {
        padding: 0.35rem 0.2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: center;
        font-size: 0.55rem;
        line-height: 1.15;
        vertical-align: middle;
    }

    .ingredient-table th,
    .ingredient-table td {
        font-size: 0.5rem;
        padding: 0.3rem 0.15rem;
    }

    .hours-table th,
    .hours-table td {
        font-size: 0.6rem;
        padding: 0.4rem 0.25rem;
    }

    .ingredient-table th,
    .hours-table th {
        font-weight: 600;
    }

    .ingredient-table th {
        font-size: 0.55rem;
        padding: 0.4rem 0.15rem;
    }

    .hours-table th {
        font-size: 0.65rem;
        padding: 0.5rem 0.25rem;
    }

    /* Ensure tables are centered and fit within viewport - no horizontal scroll */
    .section table.ingredient-table,
    .section table.hours-table,
    .legal-page table.ingredient-table {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Prevent horizontal overflow */
    .section,
    .legal-page {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
    }
}

/* Checkout Page Styles */
.checkout-page {
    background: url('images/hero.png') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
}

.checkout-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
    z-index: -1;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.checkout-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.progress-step.completed .step-number {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--text-dark);
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: var(--border-color);
    max-width: 150px;
    transition: all 0.3s ease;
}

.progress-line.completed {
    background: #4caf50;
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.checkout-form-container {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    animation: slideUp 0.6s ease-out;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkout-form .form-group {
    margin-bottom: 0;
}

.checkout-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.checkout-form input[type="text"],
.checkout-form input[type="tel"],
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.checkout-form input.error,
.checkout-form select.error,
.checkout-form textarea.error {
    border-color: #f44336;
}

.error-message {
    display: none;
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.error-message:not(:empty) {
    display: block;
}

.submit-order-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.order-summary-sidebar {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
    animation: slideUp 0.6s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.order-summary-sidebar h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.order-items-list {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.order-item-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.order-item-name {
    color: var(--text-dark);
    flex: 1;
}

.order-item-price {
    color: var(--text-dark);
    font-weight: 600;
    margin-left: 1rem;
}

.order-total .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
}

.order-total .summary-total {
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Confirmation Page Styles */
.confirmation-page {
    background: url('images/hero.png') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

.confirmation-page::before {
    display: none;
}

.confirmation-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

.confirmation-content {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
}

.confirmation-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    animation: scaleIn 0.6s ease-out 0.2s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confirmation-content h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.confirmation-message {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.order-info {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.order-info strong {
    color: var(--text-dark);
    font-size: 1.2rem;
}

.confirmation-content .btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.confirmation-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .order-summary-sidebar {
        position: relative;
        top: 0;
    }
    
    .checkout-progress {
        gap: 0.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .progress-line {
        max-width: 50px;
    }
    
    .checkout-container,
    .confirmation-container {
        padding: 1rem;
    }
    
    .checkout-form-container,
    .order-summary-sidebar,
    .confirmation-content {
        padding: 1.5rem;
    }
    
    .checkout-page::before {
        background-attachment: scroll;
    }

    .confirmation-content {
        padding: 2rem 1.5rem;
    }

    .confirmation-content h1 {
        font-size: 2rem;
    }

    .confirmation-message {
        font-size: 1rem;
    }
}

