/* ============================================
   SINGLE PRODUCT PAGE
   ============================================ */

.single-product-section {
    background-color: var(--white, #ffffff);
    width: 100%;
    display: block;
    clear: both;
    padding: 0 0 5rem !important;
    position: relative;
    margin-top: 180px;
    z-index: 1;
}

.single-product-section .content-box {
    position: relative;
    z-index: 10 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ── Deco ── */
.product-page-deco {
    position: absolute;
    top: -180px;
    right: 0;
    width: 500px;
    height: 180px;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

.product-page-deco__circle--1 {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 80px;
    right: -200px;
    background: rgba(255, 255, 255, 1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-overlay-mask {
    width: 85%;
    height: 85%;
    background-color: var(--pink-light, #FCEEF4);
    opacity: 0.5;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    z-index: 2;
}

.product-page-deco__circle--2 {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 100px;
    right: 200px;
    background: rgba(255, 255, 255, 1);
    border-radius: 50%;
}

.product-page-deco__cat {
    position: absolute;
    top: 30px;
    right: 80px;
    height: 250px !important;
    width: auto;
    z-index: -3;
}

/* ── Breadcrumb ── */
body.woocommerce .woocommerce-breadcrumb,
body.woocommerce-page .woocommerce-breadcrumb,
.product-breadcrumb {
    padding-top: 20px;
}

/* ── Vissza gomb ── */
.product-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--coral);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.product-back-link:hover {
    opacity: 0.7;
    color: var(--coral);
}

.product-back-link svg {
    width: 16px;
    height: 16px;
    transform: scaleX(-1);
    stroke: var(--coral);
    fill: var(--coral);
}

/* ── Layout ── */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
    margin-top: 1rem;
}

.product-images {
    width: 100%;
    position: sticky;
    top: 100px;
}

.product-images .woocommerce-product-gallery {
    margin-bottom: 0 !important;
}

.product-images .flex-control-thumbs {
    display: none !important;
}

.product-images .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    max-height: 650px !important;
    object-fit: contain;
    object-position: top;
}

/* ── Condition selector ── */
.condition-selector {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 1rem;
    width: 100%;
    margin-top: 0;
    padding: 0;
}

.condition-selector__label-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transform: translateX(-12rem);
    align-self: center;
    position: relative;
    z-index: 100;
}

.condition-selector__label {
    transform: none !important;
    background: none;
    padding: 0;
    font-family: var(--font-display);
    font-style: italic !important;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--navy) !important;
    opacity: 1 !important;
    white-space: nowrap;
    align-self: center;
    margin: 0;
}

.condition-selector__bookmarks {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
    transform: translateX(-12rem);
    position: relative;
    z-index: 1;
}
.bookmark-option.is-unavailable {
    opacity: 0.4;
}
/* ── Tooltip ── */
.condition-tooltip-wrap {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.condition-tooltip-wrap svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    transition: opacity 0.2s ease;
}

.condition-tooltip-wrap > svg path,
.condition-tooltip-wrap > svg circle {
    fill: var(--red, #F73C4F) !important;
    stroke: none !important;
}

.condition-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--accent, #F7C0D7);
    border-radius: var(--radius-sm, 0.5rem);
    padding: 0.75rem 1rem;
    width: 190px;
    box-shadow: 0 4px 16px rgba(2, 15, 89, 0.1);
    z-index: 9999;
}

.condition-tooltip-wrap:hover .condition-tooltip {
    display: block;
}

.condition-tooltip__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--navy) !important;
}

.condition-tooltip__item:first-child span {
    color: #F73C4F !important;
}

/* ── Könyvjelzők ── */
.bookmark-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

svg.bookmark-svg {
    display: block !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    flex-shrink: 0;
}

svg.bookmark-svg path {
    fill: var(--accent, #F7C0D7);
    stroke: none;
    transition: fill 0.2s ease;
}

.bookmark-option.is-active svg.bookmark-svg path {
    fill: var(--red, #F73C4F);
}

.bookmark-option.is-unavailable {
    cursor: default;
    pointer-events: none;
}

.bookmark-option.is-unavailable svg.bookmark-svg path {
    fill: none;
    stroke: var(--accent, #F7C0D7);
    stroke-width: 2;
}

.bookmark-option.is-empty {
    cursor: default;
    pointer-events: none;
    opacity: 0.35;
}

.bookmark-option.is-empty svg.bookmark-svg path {
    fill: none;
    stroke: var(--accent, #F7C0D7);
    stroke-width: 2;
}

.bookmark-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    white-space: nowrap;
}

.bookmark-option:not(.is-unavailable):not(.is-empty):hover svg.bookmark-svg {
    transform: translateY(3px);
}

/* ── Jobb oszlop ── */
.product-summary {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: var(--navy);
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.product-author {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

/* ── Badge ── */
.condition-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--coral);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 2rem 0.4rem 0.9rem;
    margin-bottom: 1.25rem;
    width: max-content;
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 15px) 50%, 100% 100%, 0% 100%);
}

#badge-format:empty ~ .badge-dot,
#badge-format:empty {
    display: none;
}

/* ── Format gombok ── */
.format-selector {
    margin-bottom: 1.5rem;
}

.format-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.format-btn {
    padding: 0.45rem 1.25rem;
    border: none !important;
    border-radius: var(--radius-pill, 30px);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--pink-light, #FCEEF4) !important;
    color: rgba(2, 15, 89, 0.4) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.format-btn.is-active {
    background: var(--pink-light, #FCEEF4) !important;
    color: var(--red, #F73C4F) !important;
}

.format-btn:not(.is-active):hover {
    color: var(--navy) !important;
    opacity: 0.8;
}

/* ── Qty + Add to cart ── */
.product-cart-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: var(--pink-light, #FCEEF4);
    border: none !important;
    border-radius: var(--radius-pill, 30px);
    padding: 0.25rem 0.75rem;
    gap: 0.75rem;
    height: 44px;
    box-sizing: border-box;
}

.qty-plus  { order: -1; }
.qty-minus { order:  1; }

.qty-minus,
.qty-plus {
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--navy);
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-input {
    order: 0;
    width: 36px !important;
    height: 100% !important;
    text-align: center;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--navy);
    margin: 0 !important;
    padding: 0 !important;
    -moz-appearance: textfield;
    outline: none !important;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Stock üzenet ── */
.stock-message {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--red, #F73C4F);
    margin-top: 0;
    margin-bottom: 1.25rem;
    display: none;
}

/* ── Add to bag ── */
.add-to-cart-btn {
    flex: 1;
    max-width: 280px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 0 !important;
    height: 44px;
    padding: 0 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: var(--navy);
}

/* ── Leírás ── */
.product-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--navy);
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* ── Accordion ── */
.accordion-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--coral);
    font-weight: 600;
    text-decoration: none;
}

.accordion-link svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    fill: var(--coral) !important;
    display: inline-block !important;
}

.product-details-accordion {
    border-top: 1px solid var(--accent, #F7C0D7);
}

.accordion-item {
    border-bottom: 1px solid var(--accent, #F7C0D7);
}

.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.accordion-trigger svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    stroke: var(--navy);
    width: 18px !important;
    height: 18px !important;
}

.accordion-item.is-open .accordion-trigger svg {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--navy);
    opacity: 0.8;
    line-height: 1.7;
}

.accordion-item.is-open .accordion-content {
    display: block;
}

/* ── Details tábla ── */
.product-details-table {
    width: 100%;
    border-collapse: collapse;
}

.product-details-table td {
    padding: 0.4rem 0;
    font-size: 0.875rem;
}

.product-details-table td:first-child {
    font-weight: 600;
    min-width: 120px;
    color: rgba(2, 15, 89, 0.6);
    width: 35%;
}

.product-details-table tr.is-hidden {
    display: none;
}

/* ── About the Author ── */
.author-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    margin: 4rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid var(--accent, #F7C0D7);
    max-width: 1400px;
}

.author-left {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.author-photo {
    width: 140px;
    min-width: 140px;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.author-section__label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    opacity: 0.5;
    margin-bottom: 0.2rem;
}

.author-section__name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.author-section__bio {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--navy);
    opacity: 0.8;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-section__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--coral);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.author-section__link:hover {
    opacity: 0.7;
    color: var(--coral);
}

.author-section__link svg {
    width: 16px !important;
    height: 16px !important;
    fill: var(--coral) !important;
    stroke: none !important;
}

.author-books {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: start;
}

.author-book {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--navy);
    transition: opacity 0.2s ease;
}

.author-book:hover { opacity: 0.8; }

.author-book__cover {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    display: block;
}

.author-book__title {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
    margin: 0;
    line-height: 1.3;
}

.author-book__price {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
}

/* ── Readers Also Loved ── */
.readers-loved {
    padding: 60px 0;
    text-align: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.readers-loved__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    margin: 0 0 8px;
}

.readers-loved__subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--navy);
    opacity: 0.6;
    margin: 0 0 40px;
    font-style: italic;
}

.readers-loved__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
    text-align: left;
    max-width: 860px;
    margin: 0 auto;
}

.readers-loved__card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.readers-loved__card:hover .readers-loved__cover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.readers-loved__cover-wrap {
    width: 100%;
    max-width: 150px;
    margin-bottom: 14px;
}

.readers-loved__cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.readers-loved__book-title {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.readers-loved__author {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--navy);
    opacity: 0.6;
    margin: 0 0 6px;
    font-style: italic;
}

.readers-loved__price {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 600;
    margin: 0;
}

/* ── Notify me gomb ── */
/* ── Notify me gomb és űrlap ── */
#wc_bis_product_form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

#wc_bis_product_form .wc_bis_form_title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--navy);
    opacity: 0.8;
    margin-bottom: 0; 
}

/* Az e-mail mező szépítése */
#wc_bis_product_form input[type="email"] {
    padding: 12px 16px !important;
    border: 1.5px solid var(--accent, #F7C0D7) !important;
    border-radius: 4px !important;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--navy);
    background-color: #fff !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    width: 100%;
    max-width: 300px;
}

/* Fókusz állapot (amikor belekattint a vásárló) */
#wc_bis_product_form input[type="email"]:focus {
    border-color: var(--coral) !important;
    box-shadow: 0 0 0 2px var(--pink-light, #FCEEF4) !important;
}

/* A gomb stílusa (a kategória oldalak alapján) */
#wc_bis_product_form .button {
    background: transparent !important; 
    color: var(--navy) !important;
    border: 1.5px solid var(--navy) !important; /* Sötétkék keret */
    border-radius: 0 !important; /* Vagy 4px, ha kicsit kerekíteni akarod */
    padding: 12px 24px !important;
    font-family: var(--font-body) !important; 
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    max-width: max-content;
}

/* Harang ikon színe (alapból sötétkék) */
#wc_bis_product_form .button::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: var(--navy) !important; 
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    flex-shrink: 0;
    transition: background-color 0.2s ease !important;
}

/* Hover állapot (amikor ráviszi az egeret) */
#wc_bis_product_form .button:hover {
    background: var(--navy) !important;
    color: var(--white) !important;
}

/* Hover állapotban a harang ikon fehér lesz */
#wc_bis_product_form .button:hover::before {
    background-color: var(--white) !important;
}

#wc_bis_product_form .button:active {
    transform: scale(0.98) !important;
}

/* ── Reszponzív ── */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .author-section {
        grid-template-columns: 1fr;
    }

    .readers-loved__grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-images {
        position: static;
    }

    .product-title {
        font-size: 1.85rem;
    }

    .author-left {
        flex-direction: column;
    }

    .author-photo {
        width: 100px;
        height: 130px;
    }

    .author-books {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    .readers-loved__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
.product-title-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 24px;
    margin-bottom: 0.25rem;
}

.product-title-row .product-title {
    margin: 0;
}

.product-title-wishlist {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 6px;
}

/* ============================================
   PRODUCT TITLE + MY SHELF BUTTON
   ============================================ */

.product-title-row {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 20;
}

.product-title-row .product-title {
    margin: 0;
}

.product-title-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
    flex-shrink: 0;
    transform: translateY(2px);
}

.product-title-wishlist .hm-product-wishlist {
    display: inline-flex;
    height: auto;
}

.hm-wishlist-toggle {
    width: 46px;
    height: 58px;
    padding: 0 !important;
    border: none !important;
    background-color: transparent !important;
    background-image: url('/wp-content/themes/honnomushi/img/icons/icon-wishlist.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hm-wishlist-toggle:hover {
    transform: translateY(3px);
    opacity: 0.9;
}

.hm-wishlist-toggle.is-active {
    background-image: url('/wp-content/themes/honnomushi/img/icons/icon-wishlist-tapped.svg') !important;
}

.hm-wishlist-toggle.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

/* ============================================
   SINGLE PRODUCT — AUTHOR LINK ARROW ANIMATION
   ============================================ */

.author-section__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.author-section__link svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;

  fill: currentColor !important;
  stroke: none !important;

  transform: translateX(0);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.author-section__link:hover svg {
  transform: translateX(5px);
  opacity: 0.85;
}

/* ============================================
   SINGLE PRODUCT — BACK LINK ARROW MOTION ONLY
   ============================================ */

.product-back-link svg {
  transform: scaleX(-1);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.product-back-link:hover svg {
  transform: scaleX(-1) translateX(5px);
  opacity: 0.85;
}

/* ============================================
   SINGLE PRODUCT — LAST COPY IN BAG
   ============================================ */

.last-copy-in-bag-box {
  margin-bottom: 0.75rem;
}

.last-copy-in-bag-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 440px;
  height: 44px;

  background: var(--navy);
  color: var(--white);
  text-decoration: none;

  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;

  transition: background 0.2s ease, transform 0.2s ease;
}

.last-copy-in-bag-btn:hover {
  background: var(--coral);
  transform: translateY(-1px);
}

/* ── Back In Stock inline message ───────────────────────────── */

.hm-bis-message {
    margin-top: 12px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--navy);
    border-left: 3px solid var(--coral);
    background: var(--pink-light, #FCEEF4);
}

.hm-bis-message--loading {
    opacity: 0.8;
}

.hm-bis-message--success {
    background: var(--pink-light, #FCEEF4);
}

#wc_bis_product_form .wc-bis-btn.is-loading,
#wc_bis_product_form .wc-bis-btn:disabled {
    opacity: 0.65;
    cursor: default !important;
    pointer-events: none;
}

/* ============================================
   SINGLE PRODUCT — RESPONSIVE REPAIR
   tablet landscape / tablet portrait / mobile
   tedd a fájl legvégére
   ============================================ */


/* ────────────────────────────────────────────
   SHARED TABLET FIXES
   ──────────────────────────────────────────── */

@media (max-width: 1180px) {

    .single-product-section {
        margin-top: 140px;
        padding-bottom: 4rem !important;
        overflow: hidden;
    }

    .product-page-deco {
        top: -150px;
        width: 420px;
        height: 160px;
    }

    .product-page-deco__circle--1 {
        width: 420px;
        height: 420px;
        top: 70px;
        right: -180px;
    }

    .product-page-deco__circle--2 {
        width: 240px;
        height: 240px;
        top: 105px;
        right: 150px;
    }

    .product-page-deco__cat {
        height: 210px !important;
        top: 40px;
        right: 50px;
    }

    .condition-selector__label-wrap,
    .condition-selector__bookmarks {
        transform: none !important;
    }

    .condition-selector {
        justify-content: center;
        gap: 0.85rem;
        margin-top: 0.75rem;
    }

    svg.bookmark-svg {
        width: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
    }

    .bookmark-label {
        font-size: 0.55rem;
    }
}


/* ────────────────────────────────────────────
   TABLET FEKVŐ
   kb. iPad / nagyobb tablet landscape
   maradhat két oszlop, csak szelídebben
   ──────────────────────────────────────────── */

@media (min-width: 900px) and (max-width: 1180px) and (orientation: landscape) {

    .product-layout {
        grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr) !important;
        gap: 2rem !important;
        align-items: start;
    }

    .product-images {
        position: sticky;
        top: 90px;
    }

    .product-images .woocommerce-product-gallery__image img {
        max-height: 500px !important;
    }

    .product-title {
        font-size: clamp(1.55rem, 2.2vw, 2.05rem);
    }

    .product-title-row {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        width: 100%;
    }

    .hm-wishlist-toggle {
        width: 42px;
        height: 54px;
    }

    .product-price {
        font-size: 1.55rem;
        margin-bottom: 1.1rem;
    }

    .product-cart-row {
        width: 100%;
        max-width: 440px;
    }

    .add-to-cart-btn,
    .last-copy-in-bag-btn {
        max-width: 100%;
    }

    .author-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .readers-loved__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 820px;
    }
}


/* ────────────────────────────────────────────
   TABLET ÁLLÓ
   itt inkább egy oszlop, prémiumabb és nem zsúfolt
   ──────────────────────────────────────────── */

@media (min-width: 700px) and (max-width: 1024px) and (orientation: portrait) {

    .single-product-section {
        margin-top: 130px;
    }

    .product-layout {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        max-width: 680px;
        margin: 1rem auto 0;
    }

    .product-images {
        position: static;
        max-width: 460px;
        margin: 0 auto;
    }

    .product-images .woocommerce-product-gallery__image img {
        max-height: 520px !important;
    }

    .condition-selector {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
    }

    .condition-selector__label-wrap {
        align-self: center;
        justify-content: center;
    }

    .condition-selector__bookmarks {
        justify-content: center;
    }

    .product-summary {
        width: 100%;
    }

    .product-title-row {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 16px;
        width: 100%;
    }

    .product-title {
        font-size: 2rem;
    }

    .add-to-cart-btn,
    .last-copy-in-bag-btn {
        max-width: 100%;
    }

    .author-section {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .readers-loved__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: 520px;
    }
}


/* ────────────────────────────────────────────
   MOBILE
   699px alatt teljes mobil logika
   ──────────────────────────────────────────── */

@media (max-width: 699px) {

    .single-product-section {
        margin-top: 95px;
        padding: 0 0 3.5rem !important;
        overflow: hidden;
    }

    .single-product-section .content-box {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .product-page-deco {
        top: -115px;
        right: -30px;
        width: 300px;
        height: 130px;
    }

    .product-page-deco__circle--1 {
        width: 300px;
        height: 300px;
        top: 65px;
        right: -135px;
    }

    .product-page-deco__circle--2 {
        width: 170px;
        height: 170px;
        top: 100px;
        right: 105px;
    }

    .product-page-deco__cat {
        height: 145px !important;
        top: 48px;
        right: 34px;
    }

    body.woocommerce .woocommerce-breadcrumb,
    body.woocommerce-page .woocommerce-breadcrumb,
    .product-breadcrumb {
        padding-top: 12px;
        font-size: 0.7rem;
    }

    .product-back-link {
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }

    .product-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-top: 0.5rem;
    }

    .product-images {
        position: static;
        max-width: 100%;
        margin: 0 auto;
    }

    .product-images .woocommerce-product-gallery__image img {
        max-height: 390px !important;
        width: 100% !important;
        object-fit: contain;
    }

    .condition-selector {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        margin-top: 0.5rem;
    }

    .condition-selector__label-wrap,
    .condition-selector__bookmarks {
        transform: none !important;
        width: 100%;
        justify-content: center;
    }

    .condition-selector__bookmarks {
        gap: 0.35rem;
    }

    svg.bookmark-svg {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
    }

    .bookmark-label {
        font-size: 0.5rem;
        letter-spacing: 0;
    }

    .condition-tooltip {
        left: 50%;
        transform: translateX(-50%);
        width: min(240px, calc(100vw - 48px));
    }

    .product-title-row {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 12px;
        width: 100%;
    }

    .product-title {
        font-size: 1.55rem;
        line-height: 1.15;
    }

    .hm-wishlist-toggle {
        width: 38px;
        height: 48px;
    }

    .product-author {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .product-price {
        font-size: 1.45rem;
        margin-bottom: 1rem;
    }

    .condition-badge {
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }

    .product-cart-row {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.75rem;
        width: 100%;
    }

    .qty-selector {
        height: 42px;
        padding: 0.2rem 0.55rem;
        gap: 0.5rem;
    }

    .add-to-cart-btn {
        width: 100%;
        max-width: none;
        height: 42px;
        padding: 0 1rem;
    }

    .last-copy-in-bag-btn {
        width: 100%;
        max-width: none;
        height: 42px;
    }

    #wc_bis_product_form input[type="email"] {
        width: 100%;
        max-width: none;
    }

    #wc_bis_product_form .button {
        width: 100%;
        max-width: none;
    }

    .product-description {
        font-size: 0.875rem;
        line-height: 1.65;
        margin-bottom: 1.5rem;
    }

    .product-details-table td:first-child {
        min-width: 95px;
    }

    .author-section {
        grid-template-columns: 1fr;
        margin-top: 3rem;
        padding-top: 2rem;
        gap: 1.5rem;
    }

    .author-left {
        flex-direction: row;
        gap: 1rem;
    }

    .author-photo {
        width: 90px;
        min-width: 90px;
        height: 118px;
    }

    .author-books {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .author-book__cover {
        max-height: 125px;
    }

    .readers-loved {
        padding: 40px 0;
    }

    .readers-loved__subtitle {
        margin-bottom: 28px;
    }

    .readers-loved__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px 16px;
    }

    .readers-loved__cover-wrap {
        max-width: 120px;
    }

    .readers-loved__book-title {
        font-size: 0.72rem;
    }
}


/* ────────────────────────────────────────────
   EXTRA KICSI MOBIL
   amikor már tényleg szardíniásdoboz van
   ──────────────────────────────────────────── */

@media (max-width: 420px) {

    .product-cart-row {
        grid-template-columns: 1fr;
    }

    .qty-selector {
        width: max-content;
    }

    .author-left {
        flex-direction: column;
    }

    .author-books {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .readers-loved__cover-wrap {
        max-width: 110px;
    }
}

/* ============================================
   SINGLE PRODUCT — TABLET/MOBILE FINOMÍTÁS
   rózsaszín körök le, Readers Also Loved középre
   ============================================ */


/* Tabletől lefelé: rózsaszín dekor körök OFF */
@media (max-width: 1180px) {

    .product-page-deco__circle--1,
    .product-page-deco__circle--2,
    .circle-overlay-mask {
        display: none !important;
    }
}


/* Álló tablet + mobil: Readers Also Loved középre */
@media (max-width: 1024px) and (orientation: portrait),
       (max-width: 699px) {

    .readers-loved {
        text-align: center;
    }

    .readers-loved__grid {
        justify-items: center;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .readers-loved__card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .readers-loved__cover-wrap {
        margin-left: auto;
        margin-right: auto;
    }

    .readers-loved__book-title,
    .readers-loved__author,
    .readers-loved__price {
        text-align: center;
    }
}
/* ============================================
   SINGLE PRODUCT — WISHLIST ICON ALWAYS AFTER TITLE
   ============================================ */

.product-title-row {
    display: inline-flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: fit-content !important;
    max-width: 100% !important;
    grid-template-columns: none !important;
}

.product-title-row .product-title {
    margin: 0 !important;
    flex: 0 1 auto;
}

.product-title-wishlist {
    flex: 0 0 auto;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding-top: 0 !important;
    transform: translateY(2px);
}


/* Mobilon picit kisebb ikon, de továbbra is cím után */
@media (max-width: 699px) {

    .product-title-row {
        gap: 10px !important;
        width: fit-content !important;
        max-width: 100% !important;
    }

    .hm-wishlist-toggle {
        width: 36px !important;
        height: 46px !important;
    }
}
/* ============================================
   SINGLE PRODUCT — TABLET/MOBILE DECO OFF
   körök + macska kikapcsolása
   ============================================ */

@media (max-width: 1180px) {

    .product-page-deco__circle--1,
    .product-page-deco__circle--2,
    .circle-overlay-mask,
    .product-page-deco__cat {
        display: none !important;
    }

    .product-page-deco {
        display: none !important;
    }
}

/* ============================================
   SINGLE PRODUCT — ALSÓ FEHÉR RÉSZ KISEBB
   ============================================ */

.readers-loved {
    padding-top: 40px !important;
    padding-bottom: 35px !important;
}

.single-product-section {
    padding-bottom: 3.5rem !important;
}


/* Tablet + mobil: még kompaktabb alsó rész */
@media (max-width: 1024px) {

    .readers-loved {
        padding-top: 32px !important;
        padding-bottom: 28px !important;
    }

    .single-product-section {
        padding-bottom: 2.75rem !important;
    }
}


/* Mobilon ne legyen akkora fehér kifutó */
@media (max-width: 699px) {

    .readers-loved {
        padding-top: 28px !important;
        padding-bottom: 24px !important;
    }

    .single-product-section {
        padding-bottom: 2.25rem !important;
    }
}

/* ============================================
   SINGLE PRODUCT — EXPANDABLE DESCRIPTION
   ============================================ */

.product-description-wrap {
    margin-bottom: 2rem;
}

.product-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--navy);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

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

.product-description p:last-child {
    margin-bottom: 0;
}

/* alapból 3 sor */
.product-description-wrap.has-toggle:not(.is-open) .product-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* nyitott állapot */
.product-description-wrap.is-open .product-description {
    display: block;
    overflow: visible;
}

.product-description-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin-top: 0.35rem;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;

    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--coral);
    cursor: pointer;
}

.product-description-toggle:hover {
    color: var(--navy);
}

/* ============================================
   SINGLE PRODUCT — EXPANDABLE DESCRIPTION FIX
   ============================================ */

.product-description-wrap {
    margin-bottom: 2rem;
}

.product-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--navy);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

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

.product-description p:last-child {
    margin-bottom: 0;
}

.product-description-wrap.has-toggle:not(.is-open) .product-description {
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
}

.product-description-wrap.is-open .product-description {
    display: block !important;
    overflow: visible !important;
}

.product-description-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    padding: 0 !important;
    margin-top: 0.35rem !important;

    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;

    font-family: var(--font-body) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: var(--coral) !important;

    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.product-description-toggle:hover {
    color: var(--navy) !important;
}