.custom-accordion .accordion-item {
    margin-bottom: 20px;
}

.custom-accordion .accordion-header {
    padding: 15px;
    background-size: cover;
    color: white;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-size: x-large
}

.custom-accordion .accordion-content {
    display: none;
    padding: 20px;
    background-color: #f9f9f9;
}

.custom-accordion .product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.custom-accordion .product-item {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.custom-accordion .product-item:hover {
    transform: translateY(-5px);
}

.custom-accordion .product-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.custom-accordion .product-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.custom-accordion .product-item .price {
    font-weight: bold;
    color: #e21833;
    margin-bottom: 10px;
}

.custom-accordion .product-item .description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.product-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.product-popup-content {
    background-color: #f8f8f8;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

#popup-image {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

#popup-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
}

#popup-description {
    margin-bottom: 15px;
    color: #666;
}

#popup-price {
    font-weight: bold;
    font-size: 20px;
    color: #e21833;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

#popup-title {
    text-align: center;
    padding: 15px 0;
    margin: 0;
    background-color: #f8f8f8;
    font-size: 24px;
}

.product-details {
    padding: 20px;
}

#popup-description {
    text-align: center;
    margin-bottom: 15px;
}

#popup-price {
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    color: #e21833;
}

.product-allergens {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.allergen-icon {
    width: 16px;
    height: 16px;
    margin: 2px;
}

.circular-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(#e21833 360deg, #ededed 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-progress::before {
    content: "";
    position: absolute;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-color: #fff;
}

.inner {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.attribute-icon {
    width: 32px;
    /* Önceki 24px'in 3 katı */
    height: 32px;
    /* Önceki 24px'in 3 katı */
    margin-right: 3px;
    /* İkonlar arası boşluk */
    margin-bottom: 3px;
    /* Alt satıra geçerse boşluk bırakır */
}

.attribute-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 5px 10px 5px;
    /* Üst, sağ, alt, sol boşluk */
}

.attribute-name {
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
}

#popup-attributes {
    display: flex;
    flex-wrap: wrap;
    /* İkonlar sığmazsa alt satıra geçer */
    justify-content: center;
    /* İkonları yatayda ortalar */
    margin-top: 15px;
    /* Üst kısımdan boşluk */
}

@media (max-width: 1024px) {
    .custom-accordion .product-item {
        flex: 0 0 calc(33.333% - 13.333px);
        max-width: calc(33.333% - 13.333px);
    }
}

@media (max-width: 768px) {
    .custom-accordion .product-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .custom-accordion .product-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}
/* KATEGORİ BARLARINI BÜYÜT */
.custom-accordion .accordion-header {
    padding: 30px 20px !important;   /* yükseklik artar */
    font-size: 28px !important;      /* yazı büyür */
    height: 120px !important;        /* sabit yükseklik */
    display: flex;
    align-items: center;             /* yazıyı ortalar */
}

/* Mobilde daha dengeli */
@media (max-width: 768px) {
    .custom-accordion .accordion-header {
        height: 90px !important;
        font-size: 20px !important;
        padding: 20px;
    }
}
/* MOBİLDE KATEGORİ BARLARI */
@media (max-width: 768px) {
    .custom-accordion .accordion-header {
        height: 110px !important;     /* daha yüksek */
        font-size: 22px !important;   /* yazı büyür */
        padding: 25px 15px !important;
        display: flex;
        align-items: center;
    }
}

/* DAHA KÜÇÜK TELEFONLAR (iPhone SE vs) */
@media (max-width: 480px) {
    .custom-accordion .accordion-header {
        height: 100px !important;
        font-size: 20px !important;
        padding: 20px 12px !important;
    }
}
/* ALT KATEGORİ BLOK */
.subcategory-block {
    margin-bottom: 30px;
}

/* BAŞLIK (BEYAZ ZEMİN - SİYAH YAZI) */
.subcategory-title {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 15px 20px !important;
    margin: 0 0 15px 0 !important;
    font-size: 26px;
    font-weight: 700;
    border-left: 4px solid #c89b6d;
    display: block;
    border-radius: 6px;
}

/* ÜRÜN ALANI BEYAZ KALSIN */
.subcategory-block .product-grid {
    background: transparent !important;
}