/* =====================================================
   HairCoach – Fejléc kosár + fiók ikonok
   ===================================================== */

.hc-header-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hc-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #404040 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.hc-icon-link:hover {
    color: #8D9887 !important;
}

.hc-icon-link svg {
    display: block;
}

.hc-cart-count {
    position: absolute;
    top: -7px;
    right: -8px;
    background: #8D9887;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* =====================================================
   HairCoach – WooCommerce egyedi stílus
   Dizájn tokenek: #8D9887 (zsálya zöld gomb), Poppins (szöveg),
   Playfair Display (cím), #8D9887 (link/ár/csillag)
   ===================================================== */

/* --- Általános WooCommerce felületek --- */
.woocommerce,
.woocommerce-page {
    font-family: 'Poppins', sans-serif;
    color: #404040;
}

.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3 {
    font-family: 'Playfair Display', serif;
    color: #404040;
}

/* --- Gombok --- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button {
    background-color: #8D9887 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.03em !important;
    padding: 10px 22px !important;
    transition: background-color 0.2s ease !important;
    cursor: pointer !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover {
    background-color: #7a8674 !important;
    color: #fff !important;
}

/* --- Árak és linkek --- */
.woocommerce .price,
.woocommerce .woocommerce-Price-amount,
.woocommerce-page .woocommerce-Price-amount {
    color: #8D9887 !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.woocommerce a,
.woocommerce-page a {
    color: #8D9887;
}

.woocommerce a:hover,
.woocommerce-page a:hover {
    color: #6b7a66;
}

/* --- Terméklista (shop archive) --- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #404040;
}

.woocommerce ul.products li.product {
    text-align: center;
}

.woocommerce ul.products li.product img {
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.03);
}

.woocommerce ul.products li.product .price {
    margin: 8px 0;
}

.woocommerce ul.products li.product .button {
    margin-top: 8px;
    width: 100%;
    text-align: center;
}

/* Reszponzív: 1 oszlop mobilon, 2 tableten, 3 desktopon */
@media (max-width: 600px) {
    .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .woocommerce ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
    }
    .woocommerce ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }
}

/* --- Termék részletes oldal --- */
.woocommerce div.product .product_title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #404040;
    margin-bottom: 12px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 1.4rem;
    color: #8D9887 !important;
    font-weight: 700;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #555;
}

/* Léptető + kosár gomb egy sorban */
.woocommerce div.product form.cart {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.woocommerce div.product form.cart .quantity {
    margin: 0 !important;
}

.woocommerce div.product form.cart .quantity input {
    border: 1px solid #8D9887;
    border-radius: 4px;
    padding: 8px 10px;
    font-family: 'Poppins', sans-serif;
}

.woocommerce div.product .woocommerce-tabs .tabs li a {
    font-family: 'Poppins', sans-serif;
    color: #404040;
}

.woocommerce div.product .woocommerce-tabs .tabs li.active a {
    color: #8D9887;
    border-bottom: 2px solid #8D9887;
}

/* Reszponzív termék részletes */
@media (max-width: 768px) {
    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        float: none !important;
        width: 100% !important;
    }
    .woocommerce div.product .product_title {
        font-size: 1.5rem;
    }
}

/* --- Kosár oldal --- */
.woocommerce table.shop_table {
    border-collapse: collapse;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.woocommerce table.shop_table th {
    background-color: #f7f5f0;
    color: #404040;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 2px solid #e8e0d5;
}

.woocommerce table.shop_table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0ebe3;
    vertical-align: middle;
}

/* Kosár oldal – felső padding (klasszikus + Blocks) */
.woocommerce-cart .woocommerce,
.woocommerce-cart .entry-content,
.woocommerce-cart .page-content {
    padding-top: 40px !important;
}

/* Tovább a pénztárhoz gomb – klasszikus cart */
.woocommerce a.checkout-button,
.woocommerce a.checkout-button:visited {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    background-color: #8D9887 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 14px 24px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.03em !important;
    text-decoration: none !important;
    transition: background-color 0.2s !important;
}
.woocommerce a.checkout-button:hover {
    background-color: #7a8674 !important;
    color: #fff !important;
}

/* Tovább a pénztárhoz gomb – WooCommerce Blocks */
.wc-block-cart__submit-button.wc-block-components-button,
.wc-block-cart__submit-button.wp-element-button {
    background-color: #8D9887 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 14px 24px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.03em !important;
    transition: background-color 0.2s !important;
}
.wc-block-cart__submit-button.wc-block-components-button:hover,
.wc-block-cart__submit-button.wp-element-button:hover {
    background-color: #7a8674 !important;
    color: #fff !important;
}

/* Megrendelés gomb – WooCommerce Blocks checkout */
.wc-block-components-checkout-place-order-button {
    background-color: #8D9887 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 14px 24px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.03em !important;
    transition: background-color 0.2s !important;
    min-height: unset !important;
}
.wc-block-components-checkout-place-order-button:hover {
    background-color: #7a8674 !important;
    color: #fff !important;
}

.woocommerce .cart_totals h2,
.woocommerce .cross-sells h2 {
    font-family: 'Playfair Display', serif;
    color: #404040;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0ebe3;
}

/* Reszponzív kosár */
@media (max-width: 768px) {
    .woocommerce table.shop_table thead {
        display: none;
    }
    .woocommerce table.shop_table tbody tr {
        display: block;
        border-bottom: 2px solid #e8e0d5;
        padding: 12px 0;
    }
    .woocommerce table.shop_table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: none;
        padding: 6px 8px;
    }
    .woocommerce table.shop_table td::before {
        content: attr(data-title);
        font-weight: 600;
        color: #404040;
        margin-right: 12px;
    }
    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        float: none !important;
        width: 100% !important;
    }
}

/* --- Pénztár oldal --- */
.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review_heading {
    font-family: 'Playfair Display', serif;
    color: #404040;
    font-size: 1.3rem;
    border-bottom: 2px solid #8D9887;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.woocommerce form .form-row label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #404040;
    margin-bottom: 4px;
    display: block;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: #8D9887;
    outline: none;
    box-shadow: 0 0 0 3px rgba(141, 152, 135, 0.15);
}

/* Fizetési módok */
.woocommerce-checkout #payment {
    background-color: #f7f5f0;
    border-radius: 6px;
    padding: 20px;
}

.woocommerce-checkout #payment .payment_methods {
    border-bottom: 1px solid #e8e0d5;
    margin-bottom: 16px;
    padding-bottom: 8px;
}

.woocommerce-checkout #payment .payment_methods li {
    padding: 8px 0;
    font-family: 'Poppins', sans-serif;
}

.woocommerce-checkout #payment .payment_methods li label {
    font-weight: 500;
}

.woocommerce-checkout #payment .payment_box {
    background-color: #ede9e1;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #555;
    margin-top: 8px;
}

/* Rendelés összefoglaló */
.woocommerce-checkout #order_review table.shop_table {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

/* Reszponzív pénztár */
@media (max-width: 768px) {
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        float: none !important;
        width: 100% !important;
    }
    .col2-set .col-1,
    .col2-set .col-2 {
        float: none !important;
        width: 100% !important;
    }
}

/* --- Értesítések / üzenetek --- */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
    font-family: 'Poppins', sans-serif;
    border-radius: 4px;
    margin-bottom: 20px;
}

.woocommerce .woocommerce-message {
    border-top-color: #8D9887;
    background-color: #f0f2ef;
}

.woocommerce .woocommerce-info {
    border-top-color: #8D9887;
}

/* --- Köszönő / rendelés visszaigazolás oldal --- */
.woocommerce-order-received h1,
.woocommerce-order-details h2,
.woocommerce-customer-details h2 {
    font-family: 'Playfair Display', serif;
    color: #404040;
}

.woocommerce-order-received .woocommerce-notice--success {
    font-family: 'Poppins', sans-serif;
}

.woocommerce-order ul.order_details {
    background-color: #f7f5f0;
    border-radius: 6px;
    padding: 20px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.woocommerce-order ul.order_details li {
    font-family: 'Poppins', sans-serif;
    min-width: 140px;
}

.woocommerce-order ul.order_details li strong {
    display: block;
    font-size: 1.1rem;
    color: #8D9887;
    margin-top: 4px;
}

/* --- Termékkategóriák sáv --- */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #666;
}

.woocommerce .woocommerce-ordering select {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 10px;
    font-family: 'Poppins', sans-serif;
}

/* --- Értékelés csillagok --- */
.woocommerce .star-rating span,
.woocommerce .star-rating::before,
.woocommerce .star-rating span::before,
.woocommerce p.stars a:hover,
.woocommerce p.stars a:hover ~ a,
.woocommerce p.stars.selected a.active,
.woocommerce p.stars.selected a.active ~ a,
.woocommerce p.stars.selected a:not(.active) {
    color: #8D9887 !important;
}

/* Meglévő értékelések csillag szín */
.woocommerce .star-rating {
    color: #8D9887 !important;
}

/* "Küldés" gomb az értékelési formnál */
.woocommerce #respond input#submit,
.comment-form-rating .stars a {
    color: #8D9887;
}

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 24px;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #8D9887;
}

/* =====================================================
   HairCoach – Termék galéria: 1:1 arány, overlay thumbs
   ===================================================== */

/* 1. Négyzetarány a flex-viewport-ra (Flexslider height override) */
.woocommerce-product-gallery {
    position: relative;
}

.woocommerce-product-gallery .flex-viewport {
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
}

/* A figure wrapper töltse ki a viewport-ot */
.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    height: 100% !important;
}

/* Minden slide töltse ki a viewportot */
.woocommerce-product-gallery .woocommerce-product-gallery__image {
    height: 100% !important;
    overflow: hidden !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image a {
    display: block !important;
    height: 100% !important;
    cursor: zoom-in !important;
}

/* Cover crop a négyzetbe */
.woocommerce-product-gallery .woocommerce-product-gallery__image img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* 2. Elhomályosítás alul a thumbok mögé */
.woocommerce-product-gallery::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
    pointer-events: none;
    z-index: 5;
}

/* 3. Thumbok overlay: alul, középre igazítva */
.woocommerce-product-gallery .flex-control-thumbs {
    position: absolute !important;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    z-index: 10 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    max-width: calc(100% - 76px) !important;
    transition: scroll-behavior 0.2s;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    flex-shrink: 0 !important;
    width: 58px !important; /* 54px kép + 2px border × 2 – felülírja a WC 25%-os grid szélességét */
    line-height: 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 54px !important;
    height: 54px !important;
    object-fit: cover !important;
    border: 2px solid rgba(255,255,255,0.55) !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    opacity: 0.72 !important;
    transition: opacity 0.2s, border-color 0.2s !important;
    display: block !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs li img:hover {
    opacity: 1 !important;
    border-color: #fff !important;
}

/* 4. Karussel nyilak */
.hc-thumb-prev,
.hc-thumb-next {
    position: absolute;
    bottom: 22px;
    z-index: 11;
    background: rgba(255,255,255,0.88);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #404040;
    box-shadow: 0 1px 5px rgba(0,0,0,0.25);
    transition: background 0.15s;
}

.hc-thumb-prev:hover,
.hc-thumb-next:hover {
    background: #fff;
}

.hc-thumb-prev {
    left: 8px;
}

.hc-thumb-next {
    right: 8px;
}

.hc-gallery--has-carousel .hc-thumb-prev,
.hc-gallery--has-carousel .hc-thumb-next {
    display: flex;
}

/* Az eredeti WC trigger (nagyító ikon) elrejtése — lightboxot mi kezeljük */
.woocommerce-product-gallery__trigger {
    display: none !important;
}

/* WooCommerce jQuery Zoom overlay letiltása — különben elnyeli a kattintásokat */
.woocommerce-product-gallery .zoomImg {
    pointer-events: none !important;
}

/* =====================================================
   HairCoach – Custom Lightbox
   ===================================================== */

.hc-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hcLbFadeIn 0.18s ease;
}

@keyframes hcLbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hc-lightbox__img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    display: block;
    border-radius: 2px;
    user-select: none;
}

.hc-lightbox__close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000000;
    opacity: 0.75;
    transition: opacity 0.15s;
    padding: 4px 8px;
}

.hc-lightbox__close:hover { opacity: 1; }

.hc-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.13);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 1000000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}

.hc-lightbox__nav:hover { background: rgba(255,255,255,0.28); }
.hc-lightbox__nav--prev { left: 12px; }
.hc-lightbox__nav--next { right: 12px; }
.hc-lightbox__nav[hidden] { display: none; }

.hc-lightbox__counter {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.65);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    letter-spacing: 0.04em;
    pointer-events: none;
}

/* =====================================================
   Fiókom oldal – belépés + regisztráció egymás mellett
   ===================================================== */

/* Kétoszlopos elrendezés */
.woocommerce-page #customer_login.col2-set {
    display: flex !important;
    gap: 32px;
    align-items: flex-start;
}
.woocommerce-page #customer_login .u-column1,
.woocommerce-page #customer_login .u-column2 {
    flex: 1 1 0;
    min-width: 0;
    float: none !important;
    width: auto !important;
}

/* Doboz stílus */
.woocommerce-page #customer_login .u-column1 > h2,
.woocommerce-page #customer_login .u-column2 > h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    color: #3a3a3a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.woocommerce-page #customer_login .woocommerce-form {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px;
}

/* Input mezők */
.woocommerce-page #customer_login .woocommerce-Input {
    width: 100% !important;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.woocommerce-page #customer_login .woocommerce-Input:focus {
    border-color: #8D9887;
    outline: none;
}

/* Label */
.woocommerce-page #customer_login label {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

/* Gomb */
.woocommerce-page #customer_login .woocommerce-Button {
    width: 100%;
    margin-top: 8px;
    padding: 11px 20px;
    font-size: 14px;
    letter-spacing: 0.03em;
}

/* Emlékezz rám + Elfelejtett jelszó */
.woocommerce-page #customer_login .woocommerce-form__label-for-checkbox {
    font-size: 13px;
    color: #666;
}
.woocommerce-page #customer_login .woocommerce-LostPassword {
    margin-top: 10px;
    font-size: 13px;
}
.woocommerce-page #customer_login .woocommerce-LostPassword a {
    color: #8D9887;
}

/* Reszponzív: egymás alá mobilon */
@media (max-width: 768px) {
    .woocommerce-page #customer_login.col2-set {
        flex-direction: column;
    }
    .woocommerce-page #customer_login .u-column1,
    .woocommerce-page #customer_login .u-column2 {
        width: 100% !important;
    }
}
