/* ==========================================
   BREADCRUMB
   ========================================== */
.mogyi-breadcrumb {
    font-size: 12px !important;
    color: #5D5D5D !important;
    font-weight: 400 !important;
    margin-bottom: 20px !important;
}

.mogyi-breadcrumb a {
    font-size: 12px !important;
    color: #5D5D5D !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.mogyi-breadcrumb a:hover {
    color: #C42D1A !important;
}

.mogyi-breadcrumb-arrow {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 8px !important;
}

/* Teljes oldal háttér (kivéve header) */
.single-product #primary {
    background-color: #D6BFA21A;
    border-radius: 50px;
    padding: 40px 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/*@media (min-width: 1650px) {*/
/*    .single-product #primary .site-main {*/
/*        max-width: 1600px;*/
/*    }*/
/*}*/
/* ==========================================
   PRODUCT MAIN LAYOUT (2 COLUMNS)
   ========================================== */

.mogyi-product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 10px;
    font-family: Poppins, sans-serif !important;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 30px;
}

/* Left Column: Content */
.mogyi-product-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Right Column: Images */
.mogyi-product-images {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

/* Image Navigation Buttons */
.mogyi-image-navigation {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.mogyi-nav-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background-color: transparent !important;
    border: 1px solid #C42D1A !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    min-width: 40px !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.mogyi-nav-btn:hover {
    transform: scale(1.1) !important;
}

/* Előző gomb: chevron balra fordítás */
.mogyi-nav-prev img {
    transform: rotate(180deg) !important;
}

/* ==========================================
   PRODUCT TITLE & DESCRIPTION
   ========================================== */
.mogyi-product-title {
    font-size: 45px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 50px;
    color: #668542 !important;
    text-transform: uppercase !important;
}

.mogyi-product-description {
    font-size: 22px;
    line-height: 1.6;
    color: #5D5D5D;
    text-transform: uppercase;
}

.mogyi-product-description p {
    margin-top: 0;
}

/* ==========================================
   TAXONOMY TAGS
   ========================================== */
.mogyi-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.mogyi-tag {
    display: inline-block;
    padding: 2px 12px;
    background: #ffffff;
    border: 1px solid #B0B0B0;
    border-radius: 20px;
    font-size: 12px;
    color: #B0B0B0;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0;
}

.mogyi-tag:hover {
    background: #B0B0B020;
    border: 1px solid #B0B0B0;
    color: #B0B0B0;
}

/* ==========================================
   MAIN IMAGE
   ========================================== */
.mogyi-image-main {
    position: relative;
    overflow: hidden;
    max-height: 505px;
}

.mogyi-main-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.mogyi-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 14px;
}

/* ==========================================
   PACKAGING SELECTOR
   ========================================== */
.mogyi-packaging-selector {
    width: 100%;
}

.mogyi-packaging-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}

.mogyi-packaging-item {
    margin: 0;
}

.mogyi-packaging-button {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 4px 16px !important;
    background: #E7E7E7 !important;
    border: 1px solid #B0B0B0 !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #6D6D6D !important;
    text-align: center !important;
}

.mogyi-packaging-button:hover {
    border-color: #C42D1A !important;
    background: #C42D1A !important;
    color: #ffffff !important;
    font-weight: bolder !important;
}

.mogyi-packaging-item.active .mogyi-packaging-button {
    border-color: #C42D1A !important;
    background: #C42D1A !important;
    color: #ffffff !important;
    font-weight: bolder !important;
}

/* ==========================================
   SECOND BLOCK: NUTRITION & COMPOSITION (2 COLUMNS)
   ========================================== */
.mogyi-product-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Toggle button for collapsing */
.mogyi-secondary-toggle {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #AA7747 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    z-index: 10;
}

.mogyi-secondary-toggle img {
    width: 16px !important;
    height: 16px !important;
}

/* Collapsed state */
.mogyi-product-secondary.collapsed {
    max-height: 100px !important;
    min-height: 100px !important;
}

.mogyi-product-secondary.collapsed .mogyi-secondary-toggle img {
    transform: rotate(180deg) !important;
}

.mogyi-product-secondary.collapsed .mogyi-nutrition-column,
.mogyi-product-secondary.collapsed .mogyi-composition-column {
    display: none !important;
}

.mogyi-product-secondary.collapsed .mogyi-secondary-collapsed-text {
    display: block !important;
}

/* Collapsed text */
.mogyi-secondary-collapsed-text {
    display: none;
    font-size: 26px;
    font-weight: 800;
    color: #AA7747;
    text-align: left;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 60px;
}

.mogyi-nutrition-column,
.mogyi-composition-column {
    display: flex;
    flex-direction: column;
}

.mogyi-section-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    color: #C42D1A;
}

.mogyi-section-subtitle {
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 20px 0;
    color: #C42D1A;
}

/* Nutrition Table */
.mogyi-nutrition-table {
    width: 100%;
}

.mogyi-nutrition-table tr:last-child {
    border-bottom: none;
}

.mogyi-nutrition-table td {
    padding: 6px 12px;
    font-size: 16px;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 2px dotted #D1D1D1 !important;
}

.mogyi-nutrition-name {
    font-weight: 700;
    color: #4F4F4F;
    text-transform: uppercase;
}

.mogyi-nutrition-value {
    text-align: right;
    color: #4F4F4F;
}

.mogyi-nutrition-row-indent .mogyi-nutrition-name {
    padding-left: 24px;
    color: #888888;
    font-weight: 400;
    text-transform: lowercase;
}

.mogyi-nutrition-row-indent .mogyi-nutrition-value {
    color: #888888;
}

.mogyi-nutrition-nrv {
    font-size: 12px;
    font-style: italic;
    font-weight: 400;
    color: #4f4f4f;
}

/* ÖSSZETEVŐK */
.mogyi-composition-content {
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    margin-top: 20px;
}

.mogyi-benefits-block {
    margin-top: 32px;
}

.mogyi-benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.mogyi-benefit-tag {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #AA7747;
    text-decoration: none;
    gap: 8px;
    text-align: center;
}

.mogyi-benefit-icon {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain;
}

/* ==========================================
   RELATED PRODUCTS
   ========================================== */
.mogyi-related-products {
    margin-top: 60px;
    font-family: Poppins, sans-serif !important;
}

.mogyi-related-title {
    font-size: 41px !important;
    font-weight: 800 !important;
    color: #AA7747 !important;
    text-transform: uppercase !important;
    text-align: left !important;
    margin: 0 0 30px 0 !important;
    line-height: 1.2 !important;
}

.mogyi-related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/* Ensure related product cards match list dimensions exactly */
.mogyi-related-products .mogyi-product-card {
    width: 100%;
    max-width: 320px;
    flex: 0 0 auto;
}

.mogyi-related-products .mogyi-product-image {
    width: 260px;
    height: 260px;
}

/* Use existing product card styles from product-list.css */
/* No need to redefine other .mogyi-product-card styles */

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */
@media (max-width: 768px) {
    .single-product #primary {
        padding: 20px 10px;
        margin-top: 10px;
        margin-bottom: 10px;
        border-radius: 25px;
    }

    .mogyi-product-main {
        display: flex;
        flex-direction: column-reverse;
        gap: 32px;
        border-radius: 25px;
        padding: 20px;
    }

    .mogyi-product-secondary {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 40px;
        margin-bottom: 40px;
        border-radius: 30px;
        padding: 20px;
    }

    .mogyi-product-title {
        margin: 30px 0 0 0;
        font-size: 36px;
    }

    .mogyi-product-description p {
        margin: 0;
    }

    .mogyi-section-title {
        font-size: 26px;
        width: 80%;
    }

    .mogyi-image-main {
        max-height: 279px;
        margin-top: 40px;
    }

    /* Navigation gombok mobilon */
    .mogyi-image-navigation {
        flex-direction: row;
        gap: 5px;
    }

    .mogyi-nav-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }

    .mogyi-nav-btn img {
        width: 20px !important;
        height: 20px !important;
    }

    .mogyi-benefits-list {
        justify-content: center;
    }

    /* Collapsed text on mobile */
    .mogyi-secondary-collapsed-text {
        font-size: 17px;
        padding: 0 20px;
    }

    /* Related products on mobile */
    .mogyi-related-products {
        margin-top: 40px;
    }

    .mogyi-related-title {
        font-size: 32px !important;
        margin-bottom: 20px !important;
    }

    .mogyi-related-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .mogyi-related-products .mogyi-product-card {
        max-width: 100%;
    }
}
