/* ============================
   La Floria — Category Page
   Reference: Kasaptan Burger style
   ============================ */

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

:root {
    /* Renk değişkenleri — category.php'den tenant ayarlarıyla override edilir */
    --color-primary:      #D52B2B;
    --color-primary-dark: #b71c1c;
    --color-primary-text: #b71c1c;
    --color-on-primary:   #fff;
    --shadow-primary: 0 4px 14px rgba(213, 43, 43, 0.45), 0 2px 6px rgba(0, 0, 0, 0.18);

    --color-text: #1F1F1F;
    --color-text-light: #8A8A8A;
    --color-bg: #FFFFFF;
    --color-card-bg: #FFFFFF;
    --color-cream: #fde8e8;
    --color-border: #f5d0d0;
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 4px 20px rgba(0, 0, 0, 0.1);
    --radius-card: 14px;
    --radius-pill: 999px;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.category-page {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ============================
   HERO BANNER (Background görsel + Dark Overlay)
   ============================ */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 320px;
    background-color: #1a1a1a;
    overflow: hidden;
    padding: 28px 24px 40px;
    color: #fff;
    animation: bannerFadeIn 0.7s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.back-btn:active {
    transform: scale(0.95);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding-top: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 110px;
    height: auto;
    margin-bottom: 18px;
    filter:
        drop-shadow(0 0 12px rgba(0, 0, 0, 0.85)) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.7)) drop-shadow(0 8px 28px rgba(0, 0, 0, 0.5));
    animation: heroFadeIn 0.6s 0.1s ease backwards;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-title span {
    display: block;
    animation: heroFadeIn 0.6s ease backwards;
}

.hero-title span:nth-child(1) {
    animation-delay: 0.15s;
}

.hero-title span:nth-child(2) {
    animation-delay: 0.25s;
}

.hero-title span:nth-child(3) {
    animation-delay: 0.35s;
}

.hero-title .accent {
    color: var(--color-primary);
    text-shadow:
        0 0 18px rgba(255, 230, 0, 0.55),
        0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Tagline ve maskot kaldırıldı — banner artık ortalanmış basit yapıda */

@keyframes bannerFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   KAMPANYALAR
   ============================ */
.campaigns-section {
    padding: 24px 20px 8px;
    max-width: 520px;
    margin: 0 auto;
}

.campaigns-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-primary-text);
}

/* Dil Switcher */
.lang-switcher {
    display: flex;
    background: #F5F1EA;
    border-radius: var(--radius-pill);
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.lang-btn.active {
    background: var(--color-primary);
    color: var(--color-on-primary);
    box-shadow: 0 2px 8px var(--accent-light, rgba(213,43,43,0.45)), 0 1px 3px rgba(0, 0, 0, 0.18);
}

/* Kampanya Kartları */
.campaigns-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.campaigns-scroll::-webkit-scrollbar {
    display: none;
}

.campaign-card {
    flex-shrink: 0;
    min-width: 220px;
    background: var(--color-cream);
    border: 1.5px solid #F4DC8E;
    border-radius: var(--radius-card);
    padding: 14px 16px;
    position: relative;
    scroll-snap-align: start;
    transition: transform 0.2s ease;
}

.campaign-card:active {
    transform: scale(0.98);
}

.campaign-content {
    padding-right: 50px;
}

.campaign-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.campaign-desc {
    font-size: 0.78rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

.campaign-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 230, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ============================
   KATEGORİ KART TABLAR
   ============================ */
.subcategory-tabs-wrapper {
    background: #fff;
    padding: 16px 0 18px;
    width: 100%;
}

.subcategory-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.subcategory-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    position: relative;
    width: 150px;
    height: 168px;
    border-radius: 16px;
    overflow: hidden;
    border: 2.5px solid transparent;
    background: #595959;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 18px 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.tab-btn.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary), 0 8px 22px rgba(0, 0, 0, 0.3);
}

.tab-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(18%) saturate(85%);
    transform: scale(1.02);
}

.tab-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34) 8%, rgba(0, 0, 0, 0.58) 100%);
}

.tab-kicker {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.86);
    z-index: 2;
}

.tab-btn:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tab-btn.active .tab-card-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 6%, rgba(0, 0, 0, 0.52) 100%);
}

.tab-text {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.5px;
    color: #fff;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
    text-transform: capitalize;
    max-width: 95%;
    overflow-wrap: anywhere;
}

/* ============================
   ÜRÜN LİSTESİ
   ============================ */
.products-wrapper {
    max-width: 520px;
    margin: 0 auto;
    padding: 4px 20px 80px;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 12px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(20px);
    animation: productFadeIn 0.45s ease forwards;
}

.product-card:nth-child(1) {
    animation-delay: 0.05s;
}

.product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3) {
    animation-delay: 0.15s;
}

.product-card:nth-child(4) {
    animation-delay: 0.2s;
}

.product-card:nth-child(5) {
    animation-delay: 0.25s;
}

.product-card:nth-child(6) {
    animation-delay: 0.3s;
}

.product-card:nth-child(7) {
    animation-delay: 0.35s;
}

.product-card:nth-child(8) {
    animation-delay: 0.4s;
}

.product-card:nth-child(9) {
    animation-delay: 0.45s;
}

.product-card:nth-child(10) {
    animation-delay: 0.5s;
}

.product-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: #F4DC8E;
    transform: translateY(-2px);
}

.product-card:active {
    transform: scale(0.985);
}

.product-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-cream);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 3px;
    line-height: 1.2;
}

.product-desc {
    font-size: 0.78rem;
    color: var(--color-text-light);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-primary-text);
    letter-spacing: -0.3px;
}

.product-options-badge {
    font-size: 0.68rem;
    color: var(--color-text-light);
    font-weight: 500;
}

@keyframes productFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   ÜRÜN POPUP
   ============================ */
.product-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.product-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.product-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px 24px 0 0;
    z-index: 999;
    max-height: 92vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    -webkit-overflow-scrolling: touch;
}

.product-popup.active {
    transform: translateY(0);
}

.popup-handle {
    width: 40px;
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    margin: 8px auto 0;
}

.popup-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    padding: 8px 16px 0;
}

.popup-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--color-primary);
    background: #fff;
    color: var(--color-primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.popup-close-btn:hover {
    background: var(--color-primary);
    color: var(--color-on-primary);
}

.popup-close-btn:active {
    transform: scale(0.92);
}

.popup-image {
    width: 100%;
    height: 280px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
    margin-top: -38px;
}

.popup-body {
    padding: 12px 22px 28px;
}

.popup-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.popup-product-name {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.popup-product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary-text);
    white-space: nowrap;
    margin-top: 6px;
}

/* Options */
.popup-options {
    margin-bottom: 22px;
}

.popup-options-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-text-light);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.popup-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-chip {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1.5px solid #E8E8E8;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.option-chip.selected {
    background: var(--color-primary);
    color: var(--color-on-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(255, 230, 0, 0.45), 0 1px 4px rgba(0, 0, 0, 0.15);
}

.option-chip:hover:not(.selected) {
    border-color: var(--color-primary);
    color: var(--color-primary-text);
}

.option-chip .opt-price {
    font-weight: 700;
}

/* Sections */
.popup-section {
    margin-bottom: 18px;
}

.popup-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-text-light);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.popup-content-text {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.55;
}

/* Allergens */
.popup-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.allergen-tag {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1.5px solid #F4DC8E;
    font-size: 0.78rem;
    font-weight: 600;
    color: #8B6508;
    background: #FFF8DC;
}

/* Nutrition */
.popup-nutrition-section {
    background: #FFFAE5;
    border: 1.5px solid #F4DC8E;
    border-radius: var(--radius-card);
    padding: 16px 18px;
    margin-bottom: 22px;
}

.nutrition-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.nutrition-title {
    color: var(--color-primary-text) !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    margin-bottom: 0 !important;
    letter-spacing: 1.2px !important;
}

.nutrition-per {
    font-weight: 500;
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-left: 4px;
    letter-spacing: 0;
}

.nutrition-toggle-icon {
    transition: transform 0.3s ease;
    color: var(--color-primary-text);
}

.nutrition-toggle-icon.open {
    transform: rotate(180deg);
}

.nutrition-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding-top 0.3s;
    padding-top: 0;
}

.nutrition-body.open {
    max-height: 500px;
    padding-top: 16px;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
    margin-bottom: 14px;
}

.nutrition-item {
    display: flex;
    flex-direction: column;
}

.nutrition-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-text-light);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.nutrition-value-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.nutrition-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--color-primary-text);
    line-height: 1;
    letter-spacing: -0.5px;
}

.nutrition-unit {
    font-size: 0.78rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.nutrition-disclaimer {
    font-size: 0.7rem;
    color: var(--color-text-light);
    line-height: 1.55;
    background: rgba(255, 255, 255, 0.8);
    padding: 12px 14px;
    border-radius: 10px;
    margin-top: 4px;
}

/* Close Button */
.popup-close-full-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--color-primary);
    color: var(--color-on-primary);
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 3px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(255, 230, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.15);
    text-shadow: var(--text-shadow-gold);
}

.popup-close-full-btn:hover {
    background: var(--color-primary-dark);
}

.popup-close-full-btn:active {
    transform: scale(0.98);
}

body.popup-open {
    overflow: hidden;
}

/* ============================
   Responsive — Tablet (768px+)
   ============================ */
@media (min-width: 768px) {
    body.category-page {
        background: #F2EDE6;
    }

    /* Banner tam genişlik, daha yüksek */
    .hero-banner {
        min-height: 420px;
        max-width: 100%;
        padding: 40px 48px 56px;
    }

    .hero-logo {
        width: 130px;
        margin-bottom: 22px;
    }

    .hero-title {
        font-size: 3.6rem;
    }

    .back-btn {
        top: 28px;
        left: 28px;
        width: 46px;
        height: 46px;
    }

    .cat-lang-switcher {
        top: 28px;
        right: 28px;
    }

    /* Kampanyalar */
    .campaigns-section {
        max-width: 900px;
        padding: 28px 40px 10px;
    }

    .campaign-card {
        min-width: 260px;
    }

    /* Kategori tabları — yatay kaydırmalı kalır */
    .subcategory-tabs-wrapper {
        padding: 20px 0 22px;
    }

    .subcategory-tabs {
        padding: 0 40px;
        gap: 14px;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #E0D6C8 transparent;
    }

    .subcategory-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .subcategory-tabs::-webkit-scrollbar-track {
        background: transparent;
    }

    .subcategory-tabs::-webkit-scrollbar-thumb {
        background: #E0D6C8;
        border-radius: 2px;
    }

    .tab-btn {
        width: 160px;
        height: 180px;
    }

    /* Ürün listesi — 2 sütun grid */
    .products-wrapper {
        max-width: 900px;
        padding: 8px 40px 80px;
    }

    .products-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .product-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 0 14px;
        overflow: hidden;
    }

    .product-thumb {
        width: 100%;
        height: 180px;
        border-radius: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .product-info {
        padding: 12px 14px 4px;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price-col {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 14px;
        margin-top: 4px;
    }

    .product-price {
        font-size: 1.15rem;
    }

    /* Popup — ortalanmış kart görünümü */
    .product-popup {
        bottom: auto;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -40%) scale(0.95);
        border-radius: 24px;
        max-width: 560px;
        width: 90%;
        max-height: 88vh;
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.35s ease;
        opacity: 0;
        pointer-events: none;
    }

    .product-popup.active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        pointer-events: all;
    }
}

/* ============================
   Responsive — Desktop (1024px+)
   ============================ */
@media (min-width: 1024px) {

    /* Banner */
    .hero-banner {
        min-height: 480px;
    }

    .hero-title {
        font-size: 4.2rem;
    }

    .hero-logo {
        width: 150px;
    }

    /* Kategori tabları — kaydırmalı, geniş padding */
    .subcategory-tabs {
        padding: 0 60px;
    }

    .tab-btn {
        width: 170px;
        height: 190px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .tab-btn:hover:not(.active) {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    }

    /* Kampanyalar */
    .campaigns-section {
        max-width: 1200px;
        padding: 32px 60px 12px;
    }

    /* Ürün listesi — 3 sütun */
    .products-wrapper {
        max-width: 1200px;
        padding: 12px 60px 100px;
    }

    .products-list {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
    }

    .product-thumb {
        height: 200px;
    }

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    }

    /* Popup daha geniş */
    .product-popup {
        max-width: 620px;
    }
}

/* ============================
   Responsive — Geniş Ekran (1440px+)
   ============================ */
@media (min-width: 1440px) {
    .hero-banner {
        min-height: 520px;
    }

    .hero-title {
        font-size: 5rem;
    }

    .products-wrapper,
    .campaigns-section {
        max-width: 1400px;
    }

    .products-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-banner {
        padding: 24px 18px 32px;
        min-height: 340px;
    }

    .product-name {
        font-size: 0.92rem;
    }

    .product-desc {
        font-size: 0.74rem;
    }
}

/* ============================
   Kategori Sayfası Dil Seçici
   ============================ */
.cat-lang-switcher {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.cat-lang-switcher .lang-btn {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.25);
    transition: all 0.2s;
}

.cat-lang-switcher .lang-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.cat-lang-switcher .lang-btn.active {
    background: var(--accent, #D52B2B);
    color: #fff;
    border-color: var(--accent, #D52B2B);
}

[dir="rtl"] .cat-lang-switcher {
    right: auto;
    left: 14px;
}

/* ============================
   RTL (Arapça) Desteği
   ============================ */
[dir="rtl"] .back-btn {
    left: auto;
    right: 16px;
}

[dir="rtl"] .back-btn svg {
    transform: scaleX(-1);
}

[dir="rtl"] .product-card {
    flex-direction: row-reverse;
}

[dir="rtl"] .product-price-col {
    align-items: flex-start;
}

[dir="rtl"] .product-name,
[dir="rtl"] .product-desc,
[dir="rtl"] .popup-product-name,
[dir="rtl"] .popup-content-text,
[dir="rtl"] .tab-text {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    text-align: right;
}

[dir="rtl"] .popup-title-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .allergen-tag {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}