/* Menu Category Style */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Header Section */
.menu-header-section {
    position: relative;
    padding: 200px 0 120px;
    background-color: var(--color-one);
    overflow: hidden;
}

.menu-header-section .image-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.menu-header-section .image-layer:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(8, 8, 7, 0.5) 0%,
        rgba(8, 8, 7, 0.62) 55%,
        rgba(8, 8, 7, 0.85) 100%
    );
    z-index: 1;
}

.menu-header-section .auto-container {
    position: relative;
    z-index: 10;
}

.menu-header-section .content-box {
    position: relative;
    text-align: center;
}

.menu-header-section .title-box {
    text-align: center;
}

.menu-header-section h1 {
    position: relative;
    font-family: var(--font-family-Fraunces);
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 600;
    color: var(--main-color);
    line-height: 1.2em;
    margin-bottom: 15px;
    letter-spacing: 5px;
    font-style: normal;
    text-shadow: 2px 1px 2px black;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.menu-header-section .subtitle {
    position: relative;
    display: inline-block;
    font-family: var(--font-family-Fraunces);
    font-size: clamp(16px, 3.5vw, 24px);
    font-weight: 400;
       color: cornsilk;
    line-height: 1.4em;
    margin-bottom: 10px;
    letter-spacing: 3px;
    font-style: italic;
    text-shadow: none;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.menu-header-section .subtitle::before,
.menu-header-section .subtitle::after {
    display: none !important;
}

.menu-header-section .text {
    position: relative;
    font-size: clamp(15px, 2.4vw, 18px);
       color: cornsilk;
    line-height: 1.6em;
    margin-top: 20px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Pizza Info Note */
.pizza-info-note {
    position: relative;
    display: block;
    font-family: var(--font-family-Fraunces);
    font-size: 1.5rem;
    text-shadow: 2px 1px 2px black;
    font-weight: 500;
   color: cornsilk;
    line-height: 1.5em;
    text-align: center;
    padding: 15px 30px;
    background-image: url('../images/resource/sos.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    font-style: italic;
    letter-spacing: 2px;
    max-width: 1000px;
    
    margin: 0 auto 40px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Dark overlay за по-добра четимост на текста */
.pizza-info-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 6px;
    z-index: -1;
}

/* Breadcrumbs Section */
.breadcrumbs-section {
    padding: 20px 0;
    background-color: var(--color-two);
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 8px;
    color: var(--color-four);
}

.breadcrumb-item a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--white-color);
}

.breadcrumb-item.active {
    color: var(--color-three);
}

/* Menu Items Section - Фон на секцията */
.menu-items-section {
    position: relative;
    padding: 80px 0;
    background-color: var(--color-one);
    overflow: hidden;
}

/* Menu Items Container - Картата с фон и pattern */
.menu-items-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 60px;
    background-color: var(--color-two);
    background-image: url(../images/background/menu-bg-paper.jpg);
    background-repeat: repeat;
    background-position: top center;
    background-size: cover;
    border-radius: 0;
    overflow: hidden;
}

/* Pattern отляво като в menu-tabs */
.menu-items-container:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 70px;
    height: 100%;
    background-color: var(--color-two);
    background-image: url(../images/resource/pattern-black.png);
    background-repeat: repeat;
    background-position: top center;
    z-index: 1;
}

/* Wrapper за артикулите - 1 колона по подразбиране */
.menu-items-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    column-gap: 20px;
    padding-left: 30px; /* Отстояние от pattern-а отляво */
}

/* 2 колони за екрани над 1000px */
@media (min-width: 1000px) {
    .menu-items-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Menu Item Card - Точно като dish-block от началната страница */
.menu-item-card {
    position: relative;
    margin-bottom: 25px;
}

.menu-item-card:last-child {
    margin-bottom: 0;
}

.menu-item-card .inner-box {
    position: relative;
    padding: 15px;
    border-radius: 12px;
    transition: all 300ms ease;
    overflow: hidden;
}

.menu-item-card .inner-box:hover {
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.15);
}

.menu-item-card .dish-body {
    display: flex;
    gap: 12px;
    align-items: stretch;
    overflow: hidden;
}

.menu-item-card .dish-image {
    position: relative;
    width: 130px;
    min-width: 130px;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.menu-item-card .dish-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-transition: all 500ms ease;
    -moz-transition: all 500ms ease;
    -ms-transition: all 500ms ease;
    -o-transition: all 500ms ease;
    transition: all 500ms ease;
}

.menu-item-card .inner-box:hover .dish-image img {
    transform: rotate(25deg);
}

.menu-item-card .dish-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-item-card .dish-title {
    position: relative;
}

.menu-item-card .dish-title h6 {
    font-family: sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.menu-item-card .dish-description {
    flex: 1;
}

.menu-item-card .dish-description p {
    font-size: 13px;
    color: var(--color-three);
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.menu-item-card .dish-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px dashed var(--white-color-opacity-three);
}

.menu-item-card .dish-footer .dish-weight {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.menu-item-card .dish-footer .dish-price-eur {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

/* Избутваме цената вдясно (грамажът остава вляво).
   ЕВРО ONLY от 08.08.2026 — вече има само 2 елемента: грамаж + цена. */
.menu-item-card .dish-footer .dish-price-eur {
    margin-left: auto;
}

/* Related Categories Section */
.related-categories-section {
    padding: 80px 0;
    background-color: var(--color-one);
}

.related-categories-header {
    text-align: center;
    margin-bottom: 50px;
}

.related-categories-header h2 {
    position: relative;
    font-family: var(--font-family-Fraunces);
    font-size: 48px;
    font-weight: 600;
    color: var(--main-color);
    line-height: 1.2em;
    margin-bottom: 15px;
    letter-spacing: 5px;
    font-style: normal;
    text-shadow: 2px 1px 2px black;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.related-categories-header p {
    position: relative;
    display: inline-block;
    font-family: var(--font-family-Fraunces);
    font-size: 24px;
    font-weight: 400;
       color: cornsilk;
    line-height: 1.4em;
    margin-bottom: 10px;
    letter-spacing: 3px;
    font-style: italic;
    text-shadow: none;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.related-categories-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колони по подразбиране */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 3 колони с по-голям gap за екрани над 1000px */
@media (min-width: 1000px) {
    .related-categories-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Category Card - Точно като в menu-grid-style.css */
.related-category-card {
    position: relative;
    background: var(--color-two);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-four);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    height: 250px;
}

.related-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(230, 177, 95, 0.3);
    border-color: var(--main-color);
}

.related-category-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.related-category-card:hover .related-category-card-image {
    transform: scale(1.1);
}

/* Overlay */
.related-category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    transition: all 0.3s ease;
}

.related-category-icon {
    display: none;
}

.related-category-name {
    font-size: 22px;
    font-weight: 500;
    color: var(--white-color);
    margin-bottom: 0;
    font-family: var(--font-family-Fraunces);
    text-align: center;
    text-transform: uppercase;
    text-shadow: 2px 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    width: 100%;
    padding: 20px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0.8) 100%);
}

.related-category-card:hover .related-category-name {
    color: var(--main-color);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 25%, rgba(0, 0, 0, 0.9) 100%);
}

.related-category-count {
    display: none;
}

/* Responsive */
@media (max-width: 991px) {
    .menu-header-section {
        padding: 150px 0 80px;
    }

    .menu-header-section .text {
        padding: 0 20px;
    }

    .pizza-info-note {
        font-size: 1.5rem;
        letter-spacing: 2px;
        color: cornsilk;
        font-weight: 500;
        padding: 12px 25px;
        max-width: 90%;
        margin-bottom: 30px;
        height: 125px;
        text-shadow: 2px 1px 2px black;
    }
    }

    .menu-items-container {
        max-width: 95%;
        padding: 40px 20px;
    }

    /* Pattern отляво - по-тесен на tablet */
    .menu-items-container:before {
        width: 50px;
    }

    /* По-малко padding за по-тесния pattern */
    .menu-items-wrapper {
        padding-left: 30px;
    }

    .menu-item-card {
        margin-bottom: 20px;
    }

    .menu-item-card .dish-body {
        gap: 10px;
    }

    .menu-item-card .dish-image {
        width: 110px;
    }

    .menu-item-card .dish-title h6 {
        font-size: 0.75rem;
    }

    .menu-item-card .dish-description p {
        font-size: 12px;
    }

    .menu-item-card .dish-footer {
        gap: 10px;
    }

    .menu-item-card .dish-footer .dish-weight {
        font-size: 14px;
        font-weight: 700;
    }

    .menu-item-card .dish-footer .dish-price-eur {
        font-size: 14px;
    }

    .related-categories-section {
        padding: 60px 0;
    }

    .related-categories-header h2 {
        font-size: 42px;
        letter-spacing: 4px;
    }

    .related-categories-header p {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .related-category-card {
        height: 200px;
    }

    .related-category-card:hover {
        transform: none;
    }

    .related-category-name {
        font-size: 20px;
        padding: 15px 18px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0.8) 100%);
    }

    .related-category-card:hover .related-category-name {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 25%, rgba(0, 0, 0, 0.9) 100%);
    }


@media (max-width: 767px) {
    .menu-header-section {
        padding: 118px 0 22px;
        min-height: 290px;
        display: flex;
        align-items: flex-end;
    }

    .menu-header-section .content-box {
        padding: 0;
    }

    .menu-header-section h1 {
        margin: 8px 0;
        letter-spacing: 3.5px;
        border-top: 1px dashed;
        border-bottom: 1px dashed;
        border-radius: 7px;
        padding: 6px 0;
    }

    .menu-header-section .subtitle {
        letter-spacing: 2px;
        margin-bottom: 8px;
    }

    .menu-header-section .text {
        display: none;
    }

    .pizza-info-note {
        font-size: 14px;
        padding: 10px 20px;
        max-width: 95%;
        margin-bottom: 25px;
        letter-spacing: 0.5px;
    }

    .menu-items-section {
        padding: 50px 0;
    }

    .menu-items-container {
        max-width: 98%;
        padding: 30px 15px;
        margin: 0 auto;
    }

    /* Pattern отляво - скрит на mobile */
    .menu-items-container:before {
        display: none;
    }

    /* Без padding на mobile */
    .menu-items-wrapper {
        padding-left: 0;
    }

    .menu-item-card {
        margin-bottom: 20px;
    }

    .menu-item-card .dish-body {
        gap: 10px;
    }

    .menu-item-card .dish-image {
        width: 80px;
    }

    /* Премахваме завъртането на мобилни устройства */
    .menu-item-card .inner-box:hover .dish-image img {
        transform: none;
    }

    /* Премахваме background и shadow ефекта на мобилни устройства */
    .menu-item-card .inner-box:hover {
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .menu-item-card .dish-title h6 {
        font-size: 13px;
    }

    .menu-item-card .dish-description p {
        font-size: 12px;
    }

    .menu-item-card .dish-footer {
        gap: 8px;
    }

    .menu-item-card .dish-footer .dish-weight {
        font-size: 13px;
        font-weight: 700;
    }

    .menu-item-card .dish-footer .dish-price-eur {
        font-size: 13px;
    }

    .related-categories-section {
        padding: 50px 0;
    }

    .related-categories-header h2 {
        font-size: 36px;
        letter-spacing: 3px;
    }

    .related-categories-header p {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .related-categories-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .related-category-card {
        height: 180px;
    }

    .related-category-card:hover {
        transform: none;
    }

    .related-category-name {
        font-size: 18px;
        padding: 15px 15px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0.8) 100%);
    }

    .related-category-card:hover .related-category-name {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 25%, rgba(0, 0, 0, 0.9) 100%);
    }
}

@media (max-width: 480px) {
    .pizza-info-note {
        font-size: 1.4rem;
        padding: 10px 50px;
        max-width: 98%;
        margin-bottom: 20px;
        letter-spacing: 2px;
        color: cornsilk;
        font-weight: 500;
        text-shadow: 2px 1px 2px black;
    }

    .menu-items-section {
        padding: 40px 0;
    }

    .menu-items-container {
        max-width: 100%;
        padding: 14px 0px;
    }

    .menu-item-card {
        margin-bottom: 18px;
    }

    .menu-item-card .dish-body {
        gap: 8px;
        width: 100%;
    }

    .menu-item-card .dish-image {
        width: 100px;
        height: 100px;
    }

    /* Премахваме завъртането на много малки екрани */
    .menu-item-card .inner-box:hover .dish-image img {
        transform: none;
    }

    /* Премахваме background и shadow ефекта на много малки екрани */
    .menu-item-card .inner-box:hover {
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .menu-item-card .dish-title h6 {
        font-size: 12px;
    }

    .menu-item-card .dish-description p {
        font-size: 0.8rem;
    }

    .menu-item-card .dish-footer {
        gap: 6px;
        padding-top: 6px;
        flex-wrap: wrap;
    }

    .menu-item-card .dish-footer .dish-weight {
        font-size: 0.8rem;
        font-weight: 700;
        font-style: italic;
    }

    .menu-item-card .dish-footer .dish-price-eur {
        font-size: 0.8rem;
        font-weight: 700;
        font-style: italic;
    }

    .related-categories-section {
        padding: 40px 0;
    }

    .related-categories-header h2 {
        font-size: 1.2rem;
        letter-spacing: 2px;
        font-weight: 500;
        text-transform: uppercase;
    }

    .related-categories-header p {
         font-size: 1rem;
        letter-spacing: 2px;
        padding-left: 13%;
        padding-right: 17%;
    }

    .related-categories-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .related-category-card {
        height: 140px;
        border-radius: 8px;
    }

    .related-category-card:hover {
        transform: none;
    }

    .related-category-name {
        font-size: 14px;
        margin-bottom: 0;
        letter-spacing: 1px;
        padding: 10px 10px;
        width: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0.8) 100%);
    }

    .related-category-card:hover .related-category-name {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 25%, rgba(0, 0, 0, 0.9) 100%);
    }
}
@media (max-width: 380px) {
  /* Всички стилове вътре ще важат само при екрани с ширина ≤ 380px */

  .menu-item-card .inner-box {
        padding: 5px;
  }
      .menu-item-card .dish-body {
        gap: 0;
       
    }

    .menu-item-card .dish-image {
        width: 90px;
        height: 90px;
        margin-left: -2px;
    }
    .menu-item-card .dish-image img {
       width: 75%; 
    }
    .menu-item-card .dish-info {
     margin-left: -25px;
    }
}
