/* css.css — для всех карточек товаров (бургеры, пиццы, блинчики и т.д.) */

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

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-image: url(../img/hed.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
}

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

/* ========== ШАПКА ========== */
.header-line {
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    gap: 20px;
}

.header-logo {
    flex-shrink: 0;
}

.btn {
    flex-shrink: 0;
}

.header-logo img {
    height: 60px;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.header-logo img:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: color 0.5s linear;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF7400;
    transition: width 0.3s ease;
}

.nav-item:hover {
    color: #FF7400;
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item.active {
    color: #FF7400;
}

.nav-item.active::after {
    width: 100%;
}

/* ========== ТЕЛЕФОН ========== */
.phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.phone-holder {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-holder img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.num {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: color 0.5s linear;
}

.num:hover {
    color: #FF7400;
}

.phone-text {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 5px;
}

/* ========== КНОПКИ ========== */
.button {
    background-color: #FF7400;
    color: #fff;
    text-decoration: none;
    padding: 14px 18px;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s linear;
    box-shadow: 0 4px 15px rgba(255, 116, 0, 0.3);
}

.button:hover {
    background-color: #c1671d;
    box-shadow: 0 6px 20px rgba(255, 116, 0, 0.5);
    transform: translateY(-2px);
}

/* ========== ХЛЕБНЫЕ КРОШКИ ========== */
.breadcrumbs {
    margin: 20px 0 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #FF7400;
}

.breadcrumbs span {
    color: #FF7400;
}

/* ========== КАРТОЧКА ТОВАРА ========== */
.product-card {
    display: flex;
    align-items: flex-start; /* ponytail: prevent children (images & text columns) from vertical stretching */
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-top: 30px;
    padding: 40px;
    gap: 50px;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Левая колонка — изображение */
.product-images {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.main-image-container {
    position: relative;
    display: inline-block;
}

.main-image {
    width: 100%;
    height: auto; /* ponytail: override HTML height attribute to preserve correct aspect ratio */
    max-width: 450px;
    border-radius: 20px;
    border: 3px solid #FF7400;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 116, 0, 0.5);
}

.image-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FF7400;
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Правая колонка — информация */
.product-info {
    flex: 1;
    min-width: 300px;
}

.product-title {
    font-family: 'Tinos', serif;
    font-size: 44px;
    color: #D67E35;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-title span {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-top: 8px;
    font-family: 'Open Sans', sans-serif;
}

/* Мета-информация (вес, калории, время) */
.product-meta {
    display: flex;
    gap: 25px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.meta-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Цена */
.product-price {
    font-size: 38px;
    font-weight: 800;
    color: #FF7400;
    margin: 20px 0;
}

.product-price small {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

/* Описание */
.product-description {
    font-size: 16px;
    line-height: 1.7;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.9);
    border-left: 3px solid #FF7400;
    padding-left: 20px;
}

/* Ингредиенты */
.ingredients {
    margin: 25px 0;
}

.ingredients h3 {
    font-size: 22px;
    color: #D67E35;
    margin-bottom: 15px;
    font-family: 'Tinos', serif;
}

.ingredients ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ingredients li {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.ingredients li:hover {
    background: #FF7400;
    border-color: #FF7400;
    transform: translateY(-2px);
}

/* Кнопки действий */
.order-actions {
    display: flex;
    gap: 20px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.btn-order {
    background: #FF7400;
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 116, 0, 0.3);
}

.btn-order:hover {
    background: #c1671d;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 116, 0, 0.5);
}

.btn-back {
    background: transparent;
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50px;
    border: 2px solid #FF7400;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: #FF7400;
    color: #fff;
    transform: translateY(-3px);
}

/* ========== БЛОК ПОВАРА (опционально) ========== */
.chef-block {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 116, 0, 0.1);
    border-radius: 15px;
    border-left: 5px solid #FF7400;
}

.chef-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.chef-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #FF7400;
    object-fit: cover;
}

.chef-details h4 {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.chef-name {
    font-size: 20px;
    font-weight: 700;
    color: #D67E35;
    margin-bottom: 3px;
}

.chef-quote {
    font-size: 14px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    border-left: 3px solid #FF7400;
    padding-left: 12px;
    margin-top: 8px;
}

/* ========== ПОХОЖИЕ ТОВАРЫ ========== */
.related-products {
    margin-top: 60px;
}

.related-title {
    font-family: 'Tinos', serif;
    font-size: 32px;
    text-align: center;
    color: #D67E35;
    margin-bottom: 30px;
}

.related-title span {
    color: #D67E35;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.related-item {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.related-item:hover {
    transform: translateY(-5px);
    border-color: #FF7400;
    box-shadow: 0 10px 25px rgba(255, 116, 0, 0.3);
}

.related-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-info {
    padding: 15px;
    text-align: center;
}

.related-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.related-price {
    color: #FF7400;
    font-weight: 700;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 992px) {
    .product-title {
        font-size: 36px;
    }
    
    .product-price {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header-line {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav {
        justify-content: center;
    }
    
    .nav-item {
        margin: 0 10px;
    }
    
    .product-card {
        flex-direction: column;
        padding: 25px;
        gap: 25px;
    }
    
    .product-title {
        font-size: 32px;
        text-align: center;
    }
    
    .product-title span {
        font-size: 16px;
    }
    
    .product-meta {
        justify-content: center;
    }
    
    .product-price {
        text-align: center;
    }
    
    .product-description {
        text-align: justify;
    }
    
    .order-actions {
        justify-content: center;
    }
    
    .btn-order, .btn-back {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .ingredients ul {
        justify-content: center;
    }
    
    .breadcrumbs {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .product-price {
        font-size: 28px;
    }
    
    .meta-item {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .ingredients li {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .btn-order, .btn-back {
        width: 100%;
        justify-content: center;
    }
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.6s ease-out;
}

/* ponytail: responsive background — serve smaller images on smaller screens */
@media (max-width: 600px) {
    body { background-image: url(../img/hed_400w.webp); }
}
@media (min-width: 601px) and (max-width: 1200px) {
    body { background-image: url(../img/hed_800w.webp); }
}
