/* ============================================
   Food Delivery Website - Main Stylesheet
   Country: CA | Language: EN
   ============================================ */

:root {
    --dark-bg: #1a1a1a;
    --dark-bg-secondary: #2d2d2d;
    --accent-yellow: #FFD700;
    --accent-yellow-hover: #FFC107;
    --white: #FFFFFF;
    --text-light: #f5f5f5;
    --text-gray: #cccccc;
    --red: #FF0000;
    --orange: #FF6B35;
    --green: #4CAF50;
}

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

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: var(--dark-bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Общие стили для заголовков */
h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ============================================
   Header & Navigation
   ============================================ */

header {
    background-color: var(--dark-bg-secondary);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1001;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-yellow);
    text-decoration: none;
    line-height: 1.2;
}

.domain-name {
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-top: 0.2rem;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--dark-bg);
    background-color: var(--accent-yellow);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    color: var(--accent-yellow);
    font-size: 1.5rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent-yellow);
    margin: 5px 0;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 26, 26, 0.98);
    z-index: 1001;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-100%);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    display: block !important; /* Принудительно показываем меню */
    opacity: 1;
    transform: translateY(0);
    visibility: visible; /* Явно указываем видимость */
}

.mobile-menu .nav {
    display: block !important; /* Навигация видна */
    visibility: visible !important;
}

.mobile-menu .nav-list {
    display: flex !important; /* Список виден */
    visibility: visible !important;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu .nav-list li {
    display: block !important; /* Элементы списка видны */
    visibility: visible !important;
}

.mobile-menu .nav-list a {
    display: block !important;
    color: var(--text-light) !important; /* Явный цвет текста */
    visibility: visible !important;
    opacity: 1 !important; /* Полная непрозрачность */
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto !important;
    min-height: 44px;
    position: relative;
    z-index: 10;
}

.mobile-menu .nav-list a:hover,
.mobile-menu .nav-list a.active {
    background-color: var(--accent-yellow);
    color: var(--dark-bg) !important;
}


.cart-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    z-index: 10;
}

.cart-icon {
    font-size: 1.5rem;
    color: var(--accent-yellow);
}

.cart-total {
    color: var(--accent-yellow);
    font-weight: bold;
}

.order-btn {
    background-color: var(--accent-yellow);
    color: var(--dark-bg);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10;
}

.order-btn:hover {
    background-color: var(--accent-yellow-hover);
}

/* ============================================
   Shopping Cart Popup
   ============================================ */

.cart-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    background-color: var(--white);
    color: var(--dark-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    max-height: 500px;
    overflow-y: auto;
}

.cart-popup.active {
    display: block;
}

.cart-popup h3 {
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--dark-bg);
}

.cart-item-info p {
    font-size: 0.8rem;
    color: #666;
}

.cart-item-price {
    font-weight: bold;
    color: var(--dark-bg);
}

.cart-total-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--accent-yellow);
}

.cart-total-section .total {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

.pay-btn {
    width: 100%;
    background-color: var(--accent-yellow);
    color: var(--dark-bg);
    padding: 0.75rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10;
    text-decoration: none;
}

.pay-btn:hover {
    background-color: var(--accent-yellow-hover);
}

/* ============================================
   Cookie Banner
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-bg-secondary);
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1002;
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin-bottom: 0.5rem;
}

.cookie-text a {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10;
}

.cookie-btn.accept {
    background-color: var(--accent-yellow);
    color: var(--dark-bg);
}

.cookie-btn.decline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-btn:hover {
    opacity: 0.8;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(45, 45, 45, 0.8) 100%), url('../image/1.1.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23FFD700" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.85);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-yellow);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* ============================================
   Featured Section
   ============================================ */

.featured-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hit-label {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: var(--dark-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.featured-pizza {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.pizza-image-wrapper {
    position: relative;
}

.pizza-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, var(--accent-yellow) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    z-index: -1;
}

.pizza-image-wrapper img {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    height: 400px;
}

.featured-info h2 {
    font-size: 2rem;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.featured-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.discount-offer {
    background-color: var(--dark-bg-secondary);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    border-left: 4px solid var(--accent-yellow);
}

.discount-offer p {
    color: var(--accent-yellow);
    font-weight: bold;
    margin: 0;
}

/* ============================================
   Wavy Divider
   ============================================ */

.wavy-divider {
    position: relative;
    height: 100px;
    overflow: hidden;
    background-color: var(--dark-bg);
}

.wavy-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--accent-yellow);
    clip-path: polygon(0 60%, 100% 40%, 100% 100%, 0% 100%);
}

/* ============================================
   Products Section
   ============================================ */

.products-section {
    background-color: var(--accent-yellow);
    padding: 4rem 2rem;
    color: var(--dark-bg);
}

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

.category-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.category-tab-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    background-color: var(--dark-bg);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    z-index: 10;
}

.category-tab-wrapper .category-tab.active {
    background-color: var(--white);
    color: var(--dark-bg);
}

.category-tab.active {
    background-color: var(--white);
    color: var(--dark-bg);
}

.category-tab:hover {
    opacity: 0.8;
}

.size-options {
    display: flex;
    gap: 0.5rem;
    pointer-events: auto !important;
    position: relative;
    z-index: 1000 !important;
    padding-left: 0.5rem;
}

.size-btn {
    padding: 0.25rem 0.75rem;
    background-color: var(--accent-yellow);
    color: var(--dark-bg);
    border: none;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    pointer-events: auto !important;
    position: relative;
    z-index: 1001 !important;
    transition: all 0.3s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: manipulation;
}

.size-btn:hover {
    background-color: var(--accent-yellow-hover);
    transform: scale(1.05);
}

.size-btn.active {
    background-color: var(--dark-bg);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
    cursor: pointer;
    pointer-events: auto;
}

.product-card * {
    pointer-events: auto;
}

.product-card .add-to-cart-btn {
    pointer-events: auto !important;
    z-index: 20;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-yellow);
    color: var(--dark-bg);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 10;
}

.product-image-wrapper {
    position: relative;
    padding: 20px;
    background: radial-gradient(circle, var(--accent-yellow) 0%, transparent 70%);
}

.product-image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--dark-bg);
}

.add-to-cart-btn {
    background-color: var(--accent-yellow);
    color: var(--dark-bg);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10;
}

.add-to-cart-btn:hover {
    background-color: var(--accent-yellow-hover);
}

/* ============================================
   Footer
   ============================================ */

footer {
    background-color: var(--dark-bg-secondary);
    padding: 4rem 2rem 1rem;
    color: var(--text-light);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--accent-yellow);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: left;
}

.footer-column p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 0.5rem;
    text-align: left;
}

.footer-column a:hover {
    color: var(--accent-yellow);
}

.footer-column strong {
    color: var(--accent-yellow);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    display: inline-block;
}

.footer-contact-info {
    background-color: rgba(255, 215, 0, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--accent-yellow);
}

.footer-contact-info p {
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--dark-bg);
    color: var(--accent-yellow);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.footer-social a:hover {
    background-color: var(--accent-yellow);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #444;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: var(--accent-yellow);
}

/* ============================================
   Page Specific Styles
   ============================================ */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.page-title {
    font-size: 2.5rem;
    color: var(--accent-yellow);
    margin-bottom: 2rem;
    text-align: center;
}

/* Cart Page */
.cart-page {
    padding: 2rem;
}

.cart-items-list {
    background-color: var(--dark-bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.cart-page-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #444;
    align-items: center;
}

.cart-page-item:last-child {
    border-bottom: none;
}

.cart-page-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-page-item-info {
    flex: 1;
}

.cart-page-item-info h3 {
    margin-bottom: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background-color: var(--accent-yellow);
    color: var(--dark-bg);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10;
    min-width: 30px;
    min-height: 30px;
}

.quantity-btn:hover {
    background-color: var(--accent-yellow-hover);
}

.quantity {
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.cart-summary {
    background-color: var(--dark-bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #444;
}

.summary-row.total {
    border-bottom: 2px solid var(--accent-yellow);
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-yellow);
}

.checkout-btn {
    width: 100%;
    background-color: var(--accent-yellow);
    color: var(--dark-bg);
    padding: 1rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10;
}

.checkout-btn:hover {
    background-color: var(--accent-yellow-hover);
}

/* Order Type Selection */
.order-type-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-type-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--dark-bg);
    border: 2px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10;
}

.order-type-option:hover {
    border-color: var(--accent-yellow);
    background-color: rgba(255, 215, 0, 0.1);
}

.order-type-option input[type="radio"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-yellow);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 11;
    min-width: 18px;
    min-height: 18px;
}

.order-type-option span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.order-type-option input[type="radio"]:checked + span {
    color: var(--accent-yellow);
    font-weight: bold;
}

/* Policy Page */
.policy-content {
    background-color: var(--dark-bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    line-height: 1.8;
}

.policy-content h2 {
    color: var(--accent-yellow);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.policy-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* About Page */
.about-content {
    background-color: var(--dark-bg-secondary);
    border-radius: 15px;
    padding: 2rem;
}

.about-section {
    margin-bottom: 2rem;
}

.about-section h2 {
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.about-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contact-info {
    background-color: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-yellow);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: var(--accent-yellow);
}

.contact-info a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-info a:hover {
    opacity: 0.8;
}

.map-container {
    margin-top: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Animations
   ============================================ */

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {

    header {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    nav {
        width: 100%;
        box-sizing: border-box;
        position: relative;
    }

    .nav-links {
        display: none;
    }

    .logo-wrapper {
        display: none !important;
    }

    .menu-toggle {
        display: block;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        z-index: 1001;
    }

    .order-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
        min-width: 44px;
    }

    /* Улучшение кликабельности кнопок на мобильных */
    button,
    .order-btn,
    .add-to-cart-btn,
    .category-tab,
    .size-btn,
    .quantity-btn,
    .cookie-btn,
    .pay-btn,
    .checkout-btn,
    .checkout-submit-btn,
    .add-to-cart-modal-btn,
    .product-modal-close,
    .order-type-option,
    .payment-option {
        min-height: 44px;
        min-width: 44px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Убеждаемся, что кнопки внутри карточек продуктов кликабельны */
    .product-card {
        pointer-events: auto;
    }

    .product-card .add-to-cart-btn {
        pointer-events: auto !important;
        z-index: 20 !important;
        position: relative;
    }

    /* Улучшение кликабельности для категорий и размеров */
    .category-tab-wrapper {
        pointer-events: auto;
    }

    .size-options {
        pointer-events: auto !important;
        z-index: 1000 !important;
    }

    .size-btn {
        pointer-events: auto !important;
        z-index: 1001 !important;
        min-height: 36px;
        min-width: 44px;
    }

    /* Улучшение кликабельности для корзины */
    .cart-header {
        min-height: 44px;
        min-width: 44px;
    }

    .menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }

    /* Улучшение кликабельности для радио-кнопок */
    .order-type-option input[type="radio"],
    .payment-option input[type="radio"] {
        min-width: 24px;
        min-height: 24px;
    }

    /* Заголовки для мобильных */
    h1, .hero h1, .page-title {
        font-size: 1.8rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
        padding: 0 0.5rem;
    }

    h2, .featured-info h2, .about-section h2, .policy-content h2 {
        font-size: 1.5rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        padding: 0 0.5rem;
    }

    h3, .footer-column h3, .product-info h3 {
        font-size: 1.2rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
    }

    h4 {
        font-size: 1.1rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero h1 {
        font-size: 1.8rem !important;
    }

    .featured-pizza {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .cart-popup {
        width: 90%;
        right: 5%;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cart-page-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-page > .page-container > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }

    .map-container iframe {
        height: 300px !important;
    }

    /* Таблицы для мобильных - горизонтальная прокрутка */
    table {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        max-width: 100vw;
        margin: 1rem 0;
    }

    .policy-content table,
    table {
        font-size: 0.85rem !important;
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-collapse: collapse;
    }

    .policy-content table thead,
    table thead {
        display: table-header-group;
    }

    .policy-content table tbody,
    table tbody {
        display: table-row-group;
    }

    .policy-content table tr,
    table tr {
        display: table-row;
    }

    .policy-content table th,
    .policy-content table td,
    table th,
    table td {
        padding: 0.5rem !important;
        min-width: 100px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Контейнер для таблиц с прокруткой */
    .table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 1rem 0;
    }

    .footer-main {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .footer-column {
        text-align: center !important;
    }

    .footer-column h3,
    .footer-column p,
    .footer-column ul,
    .footer-column a {
        text-align: center !important;
    }

    .footer-contact-info {
        text-align: center;
    }

    /* Дополнительные стили для мобильных */
    body {
        font-size: 16px;
    }

    .page-container {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        box-sizing: border-box;
    }

    .about-content,
    .policy-content {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        box-sizing: border-box;
    }

    /* Улучшение прокрутки для таблиц */
    .table-container {
        position: relative;
        width: 100%;
        max-width: 100vw;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .table-container::-webkit-scrollbar {
        height: 8px;
    }

    .table-container::-webkit-scrollbar-track {
        background: var(--dark-bg-secondary);
        border-radius: 4px;
    }

    .table-container::-webkit-scrollbar-thumb {
        background: var(--accent-yellow);
        border-radius: 4px;
    }
}

/* ============================================
   Product Modal
   ============================================ */

.product-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-modal-content {
    background-color: var(--dark-bg-secondary);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    position: relative;
    margin: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    min-width: 40px;
    min-height: 40px;
}

.product-modal-close:hover {
    background-color: var(--accent-yellow);
    color: var(--dark-bg);
    transform: rotate(90deg);
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.product-modal-image {
    position: relative;
}

.product-modal-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.product-modal-info {
    color: var(--white);
}

.product-modal-info h2 {
    color: var(--accent-yellow);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-modal-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-yellow);
    margin-bottom: 1.5rem;
}

.product-modal-description,
.product-modal-ingredients {
    margin-bottom: 2rem;
}

.product-modal-description h3,
.product-modal-ingredients h3 {
    color: var(--accent-yellow);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.product-modal-description p {
    color: var(--text-light);
    line-height: 1.8;
}

.product-modal-ingredients ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-modal-ingredients li {
    color: var(--text-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.product-modal-ingredients li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-yellow);
    font-weight: bold;
}

.add-to-cart-modal-btn {
    width: 100%;
    background-color: var(--accent-yellow);
    color: var(--dark-bg);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10;
}

.add-to-cart-modal-btn:hover {
    background-color: var(--accent-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

@media (max-width: 768px) {
    .product-modal-body {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .product-modal-content {
        margin: 1rem;
    }

    .product-modal-info h2 {
        font-size: 1.5rem;
    }

    .product-modal-price {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    /* Заголовки для маленьких экранов */
    h1, .hero h1, .page-title {
        font-size: 1.5rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
        padding: 0 0.5rem;
    }

    h2, .featured-info h2, .about-section h2, .policy-content h2 {
        font-size: 1.3rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
        padding: 0 0.5rem;
    }

    h3, .footer-column h3, .product-info h3 {
        font-size: 1.1rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    h4 {
        font-size: 1rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero-content {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }

    .products-section {
        padding: 2rem 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    /* Таблицы для маленьких экранов */
    table {
        font-size: 0.75rem !important;
        min-width: 100%;
    }

    .policy-content table,
    table {
        font-size: 0.75rem !important;
    }

    .policy-content table th,
    .policy-content table td,
    table th,
    table td {
        padding: 0.4rem !important;
        min-width: 80px;
        font-size: 0.75rem !important;
    }

    .product-modal {
        padding: 1rem;
    }

    .product-modal-content {
        margin: 0.5rem;
    }

    .product-modal-body {
        padding: 1rem;
    }

    .page-container {
        padding: 1rem !important;
    }

    .about-content,
    .policy-content {
        padding: 1rem !important;
    }
}

/* ============================================
   Checkout Page Styles
   ============================================ */

.checkout-form {
    width: 100%;
}

.checkout-section {
    background-color: var(--dark-bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: var(--dark-bg);
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--dark-bg);
    border: 2px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10;
}

.payment-option:hover {
    border-color: var(--accent-yellow);
    background-color: rgba(255, 215, 0, 0.1);
}

.payment-option input[type="radio"] {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-yellow);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 11;
    min-width: 20px;
    min-height: 20px;
}

.payment-option span {
    color: var(--text-light);
    font-size: 1rem;
}

.payment-option input[type="radio"]:checked + span {
    color: var(--accent-yellow);
    font-weight: bold;
}

.checkout-submit-btn {
    width: 100%;
    background-color: var(--accent-yellow);
    color: var(--dark-bg);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10;
}

.checkout-submit-btn:hover {
    background-color: var(--accent-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.checkout-order-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.checkout-order-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #444;
}

.checkout-order-item:last-child {
    border-bottom: none;
}

.checkout-order-item-info {
    flex: 1;
}

.checkout-order-item-info h4 {
    color: var(--white);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.checkout-order-item-info p {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.checkout-order-item-price {
    color: var(--accent-yellow);
    font-weight: bold;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .page-container > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }

    .checkout-section {
        padding: 1.5rem;
    }
}

