/* ============================================================
   Webshopsubitem2 — termék részletes oldal (package-alapú)
   ============================================================ */

/* ---- FEJLÉC ---- */

.fw-termek2-breadcrumb {
    color: #0a141e;
    font-family: "Poppins", sans-serif;
}

.fw-termek2-breadcrumb-link {
    color: inherit;
    text-decoration: none;
}

.fw-termek2-breadcrumb-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.fw-termek2-breadcrumb-sep {
    margin: 0 4px;
}

.fw-termek2-title {
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: #000;
    text-transform: uppercase;
}

.fw-termek2-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #000;
    padding: 8px 24px;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.fw-termek2-back-btn:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

/* ---- KÉPGALÉRIA ---- */

.fw-termek2-main-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.fw-termek2-zoom-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1;
}

.fw-termek2-main-wrap:hover .fw-termek2-zoom-icon {
    opacity: 1;
}

.fw-termek2-main-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.fw-termek2-thumbs {
    overflow-x: auto;
}

.fw-termek2-thumb {
    flex: 1 0 0;
    min-width: 70px;
    max-width: 25%;
    height: 130px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.fw-termek2-thumb:hover,
.fw-termek2-thumb.active {
    opacity: 1;
}

.fw-termek2-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- LEÍRÁS ---- */

.fw-termek2-section-title {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 1.575rem;
    line-height: 1;
    color: #000;
    text-transform: uppercase;
}

/* ---- KISZERELÉSEK TÁBLA ---- */

.fw-termek2-pkg-table {
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.fw-termek2-pkg-row {
    padding: 16px;
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
}

.fw-termek2-pkg-header {
    background: #f2f2f2;
    color: #0a141e;
}

.fw-termek2-pkg-data {
    background: #fff;
    color: #0a141e;
}

.fw-termek2-pkg-data:nth-child(odd) {
    background: #f2f2f2;
}

/* ---- CSOMAG VÁLASZTÓ (Livewire) ---- */

.fw-termek2-input-label {
    color: #0a141e;
    font-family: "Poppins", sans-serif;
}

.fw-termek2-select {
    border: 1px solid #c2c2c2;
    padding: 16px;
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    color: #0a141e;
    background: #fff url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M0 0l6 8 6-8z' fill='%23333'/></svg>") no-repeat right 16px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    display: block;
}

.fw-termek2-select:focus {
    outline: none;
    border-color: #888;
}

.fw-termek2-input {
    border: 1px solid #c2c2c2;
    padding: 16px;
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    color: #0a141e;
    background: #fff;
    display: block;
}

.fw-termek2-input:focus {
    outline: none;
    border-color: #888;
}

/* ---- ÖSSZESEN ---- */

.fw-termek2-summary-line {
    color: #0a141e;
    font-family: "Poppins", sans-serif;
}

.fw-termek2-total-label {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    line-height: 1;
}

.fw-termek2-total-price {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    color: #000;
    line-height: 1;
}

/* ---- KOSÁRBA GOMB ---- */

.fw-termek2-cart-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 24px;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.fw-termek2-cart-btn:hover:not(:disabled) {
    opacity: 0.88;
}

.fw-termek2-cart-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---- TULAJDONSÁGOK TÁBLA ---- */

.fw-termek2-props {
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.fw-termek2-prop-row {
    display: flex;
    gap: 24px;
    padding: 16px;
    align-items: center;
    font-family: "Poppins", sans-serif;
}

.fw-termek2-prop-row > span:first-child {
    flex: 1 0 0;
    color: #0a141e;
}

.fw-termek2-prop-row > span:last-child {
    flex: 1 0 0;
    color: #000;
}

.fw-termek2-prop-even {
    background: #f2f2f2;
}

.fw-termek2-prop-odd {
    background: #fff;
}

/* ---- AKCIÓ ---- */

.fw-termek2-akcio-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #FF0000;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    padding: 8px 24px;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}

.fw-termek2-sale-price-cell {
    color: var(--primary);
}

.fw-termek2-original-price {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    color: #9d9d9d;
    text-decoration: line-through;
    text-align: right;
    line-height: 1;
}

.fw-termek2-total-label--sale {
    color: var(--primary);
}

.fw-termek2-total-price--sale {
    color: var(--primary);
}

/* ---- ELFOGYOTT állapot ---- */

.fw-termek2-out-of-stock-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #000;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    padding: 15px 24px;
    z-index: 2;
    text-transform: uppercase;
    line-height: normal;
    pointer-events: none;
}

.fw-termek2-out-of-stock-label {
    display: block;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 2.625rem;
    color: #9d9d9d;
    text-transform: uppercase;
    line-height: 1;
    text-align: right;
}

.fw-termek2-imgs--grayscale .fw-termek2-main-img,
.fw-termek2-imgs--grayscale img {
    filter: grayscale(100%);
}

/* ---- CSAK ÜZLETBEN ---- */

.fw-termek2-only-in-store {
    color: red;
    text-align: right;
    font-size: 1.18rem;
    font-weight: 400;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 0;
}

/* ---- RESZPONZÍV ---- */

@media (max-width: 991px) {

    .fw-termek2-back-btn {
        padding: 6px 14px;
    }

    .fw-termek2-main-img {
        height: 320px;
    }

    .fw-termek2-total-label,
    .fw-termek2-total-price {
        font-size: 1.875rem;
    }
}

@media (max-width: 576px) {
    .fw-termek2-header {
        flex-direction: column;
    }

    .fw-termek2-header .fw-termek2-back-btn {
        order: -1;
        align-self: flex-start;
    }

    .fw-termek2-pkg-row {
        gap: 12px;
        padding: 10px;
        font-size: 0.9rem;
    }

    .fw-termek2-prop-row {
        gap: 4px;
        padding: 10px;
    }

    .fw-termek2-pkg-inputs {
        flex-direction: column;
    }

    .fw-termek2-select,
    .fw-termek2-input {
        padding: 12px;
    }

    .fw-termek2-total-label,
    .fw-termek2-total-price {
        font-size: 1.5rem;
    }
}

/* ---- Termék badge ikonok ---- */
.fw-product-badges {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    z-index: 2;
    pointer-events: none;
}

.fw-product-badge {
    width: 50px;
    height: 50px;
    display: block;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .fw-product-badge {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 575.98px) {
    .fw-product-badge {
        width: 28px;
        height: 28px;
    }
}

/* Elrendezés: mobilon kép → kiszerelések/kosár → leírás; desktopon bal: kép + leírás, jobb: infó */
.fw-termek2-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "gallery" "info" "desc";
    gap: 1.5rem;
}
.fw-termek2-area-gallery { grid-area: gallery; min-width: 0; }
.fw-termek2-area-info    { grid-area: info;    min-width: 0; }
.fw-termek2-area-desc    { grid-area: desc;    min-width: 0; }

@media (min-width: 992px) {
    .fw-termek2-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "gallery info" "desc info";
        grid-template-rows: auto 1fr;
        column-gap: 3rem;
        row-gap: 0;
    }
}
