/* ===========================
   Pagina Meniu
   =========================== */

/* Hero */
.eg-meniu-hero {
    background-color: #1a1a1a;
    background-image: linear-gradient(135deg, #1a1a1a 60%, #2a2008 100%);
    padding: 56px 24px 44px;
    text-align: center;
    border-bottom: 3px solid #c8a141;
}

.eg-meniu-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.eg-meniu-hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.eg-meniu-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 20px;
    line-height: 1.6;
}

.eg-meniu-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 28px;
}

.eg-meniu-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}

.eg-meniu-hero-meta span svg {
    fill: #c8a141;
    flex-shrink: 0;
}

.eg-meniu-hero-meta span strong {
    color: #c8a141;
}

/* Main section */
.egm-section {
    background-color: #f8f7f5;
    padding-bottom: 60px;
}

/* Sticky tabs */
.egm-tabs {
    position: sticky;
    top: 120px; /* fallback – suprascris de JS */
    z-index: 90;
    background-color: #1a1a1a;
    border-bottom: 2px solid #c8a141;
}

.egm-tabs-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.egm-tab-link {
    display: block;
    padding: 16px 14px 11px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -2px;
}

.egm-tab-link:hover,
.egm-tab-link.is-active {
    color: #c8a141;
    border-bottom-color: #c8a141;
}

/* Select dropdown – ascuns pe desktop, vizibil pe mobil */
.egm-tabs-select-wrap {
    display: none;
}

/* Content */
.egm-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 40px;
}

/* Category section */
.egm-cat-section {
    padding-top: 20px;
    padding-bottom: 16px;
    scroll-margin-top: 200px;
}

.egm-cat-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 10px;
    border-bottom: 3px solid #c8a141;
    margin-bottom: 28px;
    display: inline-block;
}

/* Product grid */
.egm-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

/* Product card */
.egm-product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.egm-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

.egm-product-img-link {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: #eee;
}

.egm-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.egm-product-card:hover .egm-product-img {
    transform: scale(1.05);
}

.egm-product-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.egm-product-name {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
    flex: 1;
}

.egm-product-name a {
    color: #1a1a1a;
}

.egm-product-name a:hover {
    color: #c8a141;
}

.egm-product-desc {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 8px;
}

.egm-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.egm-product-price {
    font-size: 1rem;
    font-weight: 800;
    color: #c8a141;
}

.egm-product-price .woocommerce-Price-amount,
.egm-product-price bdi {
    color: #c8a141;
}

.egm-add-to-cart {
    display: inline-flex;
    align-items: center;
    background-color: #1a1a1a;
    color: #fff !important;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    border-radius: 5px;
    transition: background-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.egm-add-to-cart:hover {
    background-color: #c8a141;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 1280px) {
    .egm-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .egm-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .egm-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .egm-cat-section {
        scroll-margin-top: 160px;
    }
    .egm-content {
        padding: 0 16px 32px;
    }
    .eg-meniu-hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .egm-tabs-inner {
        display: none;
    }
    .egm-tabs-select-wrap {
        display: block;
        padding: 10px 16px;
    }
    #egm-cat-select {
        width: 100%;
        padding: 10px 40px 10px 14px;
        background-color: #1a1a1a;
        color: #fff;
        border: 1px solid #c8a141;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 600;
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c8a141' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
    }
    .egm-product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .egm-add-to-cart {
        justify-content: center;
        width: 100%;
        font-size: 0.65rem;
        padding: 7px 8px;
    }
}

@media (max-width: 480px) {
    .egm-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .eg-meniu-hero-meta {
        flex-direction: column;
        gap: 6px;
    }
}
