:root {
    --bg: #f8f9fa;
    --text: #112E3E;
    --muted: #146591;
    --brand: #FAEB5D;
    --brand-2: #FDF49C;
    --accent: #FFEB00;
    --warn: #FA951A;

    --stroke: #e2e8f0;
    --shadow: 0 6px 20px rgba(17, 46, 62, 0.15), 0 10px 40px rgba(17, 46, 62, 0.10);
    --shadow-low: 0 4px 12px rgba(17, 46, 62, 0.10), 0 6px 20px rgba(17, 46, 62, 0.08);


    --radius: 16px;

}

* {
    box-sizing: border-box
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: var(--text);
}

a,
p,
span,
button,
h1,
h2,
h3,
h4,
h5,
h6,
div,
li {
    color: var(--text);
}

.div-block {
    display: block;
}


.row {
    margin-top: 30px;
    gap: 7.5px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.row.second {
    gap: 40px 15px;
    grid-template-columns: repeat(9, 1fr) !important;
}

@media (min-width: 992px) {
    :root {
        --font-size-large: 90px;
        /* Визначаємо змінну */
        --font-size-extra-large: 150px;
        /* Визначаємо змінну */
        --font-size-medium: 36px;
        /* Визначаємо змінну */
    }

    .container {
        margin: 0 auto;
        max-width: 1400px;
        padding-left: 3%;
        padding-right: 3%;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .col-lg-1 {
        grid-column: span 1;
    }

    .col-lg-2 {
        grid-column: span 2;
    }

    .col-lg-3 {
        grid-column: span 3;
    }

    .col-lg-4 {
        grid-column: span 4;
    }

    .col-lg-5 {
        grid-column: span 5;
    }

    .col-lg-6 {
        grid-column: span 6;
    }

    .col-lg-7 {
        grid-column: span 7;
    }

    .col-lg-8 {
        grid-column: span 8;
    }

    .col-lg-9 {
        grid-column: span 9;
    }

    .col-lg-10 {
        grid-column: span 10;
    }

    .col-lg-11 {
        grid-column: span 11;
    }

    .col-lg-12 {
        grid-column: span 12;
    }
}


@media (min-width: 768px) and (max-width: 991.98px) {
    :root {
        --font-size-large: 50px;
        /* Визначаємо змінну */
        --font-size-extra-large: 100px;
        --font-size-medium: 20px;
        /* Визначаємо змінну */
    }

    .container {
        width: 94%;
        padding-left: 3%;
        padding-right: 3%;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .col-md-0 {
        grid-column: span 0;
    }

    .col-md-1 {
        grid-column: span 1;
    }

    .col-md-2 {
        grid-column: span 2;
    }

    .col-md-3 {
        grid-column: span 3;
    }

    .col-md-4 {
        grid-column: span 4;
    }

    .col-md-5 {
        grid-column: span 5;
    }

    .col-md-6 {
        grid-column: span 6;
    }

    .col-md-7 {
        grid-column: span 7;
    }

    .col-md-8 {
        grid-column: span 8;
    }

    .col-md-9 {
        grid-column: span 9;
    }

    .col-md-10 {
        grid-column: span 10;
    }

    .col-md-11 {
        grid-column: span 11;
    }

    .col-md-12 {
        grid-column: span 12;
    }
}


@media (max-width: 767.98px) {
    :root {
        --font-size-large: 36px;
        --font-size-extra-large: 80px;
        --font-size-medium: 16px;
        /* Визначаємо змінну */
    }

    .container {
        width: 94%;
        padding-left: 3%;
        padding-right: 3%;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .col-sm-0 {
        grid-column: span 0;
    }

    .col-sm-1 {
        grid-column: span 1;
    }

    .col-sm-2 {
        grid-column: span 2;
    }

    .col-sm-3 {
        grid-column: span 3;
    }

    .col-sm-4 {
        grid-column: span 4;
    }

    .col-sm-5 {
        grid-column: span 5;
    }

    .col-sm-6 {
        grid-column: span 6;
    }

    .col-sm-7 {
        grid-column: span 7;
    }

    .col-sm-8 {
        grid-column: span 8;
    }

    .col-sm-9 {
        grid-column: span 9;
    }

    .col-sm-10 {
        grid-column: span 10;
    }

    .col-sm-11 {
        grid-column: span 11;
    }

    .col-sm-12 {
        grid-column: span 12;
    }
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    mafont: 16px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: #f8fafc
}

a {
    color: var(--text);
    text-decoration: none
}

button {
    font: inherit
}

main {
    min-height: 100vh;
}

/* Header wrapper */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--brand);
    box-shadow: var(--shadow-low);
    transition: transform 0.3s ease;
}


.site-header.header--hidden {
    transform: translateY(-100%);
}


/* Top utility bar */
.util {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-content: space-between;

    padding: .5rem 1rem;
    border-bottom: 1px solid var(--stroke);


}

.util-left,
.util-right {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--muted);
    font-size: .9rem
}

.util .chip {
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    height: 40px;
    gap: .5rem;
    padding: .35rem .6rem;
    border-radius: 8px;
}

.util .chip.icon {
    padding: .35rem .35rem;
    justify-content: center;
}

.util svg {
    width: 23px;
    height: 23px;
    opacity: .8
}

.util .cta svg {
    width: 24px;
    height: 24px;
    opacity: .8
}

.site-header.second {
    background-color: var(--bg);
    position: relative;
}

.site-header.second .util {
    max-width: 1000px;
    min-height: 75px;
}

.site-header.second .util .util-right span {
    font-size: 32px;
    font-weight: bold;
}



/* main-search row */
.main-search {
    display: block;
    margin: 50px auto 30px;
    max-width: 1200px;
    align-items: center;
    padding: .75rem 1rem
}

.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    color: var(--brand-2)
}

.logo-mark {
    display: grid;
    grid-auto-flow: column;
    gap: 4px
}

.logo-mark span {
    width: 14px;
    height: 14px;
    border-radius: 8px;
    display: inline-block
}

.c1 {
    background: #002f34
}

.c2 {
    background: #23e5db
}

.c3 {
    background: #ff5636
}

.c4 {
    background: #ffd600
}

/* Search */
.search {
    box-shadow: var(--shadow-low);
    margin: auto;
    display: flex;
    align-items: center
}

.search .field {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid var(--stroke);
    padding: .4rem .75rem;
    min-height: 42px;
    flex: 1
}

.search input {
    border: 0;
    outline: 0;
    width: 100%;
    font-size: 18px;
    background: transparent
}

.search .divider {
    width: 1px;
    height: -webkit-fill-available;
    background: var(--stroke)
}

.search .btn {
    border-radius: 0;
    border: 0;
    height: -webkit-fill-available;
    background: var(--brand);
    color: var(--text);
    padding: .6rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer
}

.search .btn:hover {
    background: var(--brand-2);
}

/* Category dropdown */
.cat {
    position: relative
}

.cat-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .6rem;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    background: #fff;
    cursor: pointer
}

.cat-menu {
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    box-shadow: var(--shadow-low);
    padding: .35rem;
    display: none
}

.cat-menu.open {
    display: block
}

.cat-menu a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem;
    border-radius: 8px;
    color: var(--brand-2)
}

.cat-menu a:hover {
    background: #f1f5f9
}

/* CTA */
.cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    /* border: 2px solid var(--brand-2); */
    box-shadow: var(--shadow-low);
    ;
    border-radius: 8px;
    background-color: var(--bg);
    padding: .75rem 3rem;
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
    max-width: 500px;
}

/* Mobile */
.hamburger {
    display: none;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    padding: .5rem
}

.nav-drawer {
    position: fixed;
    inset: 0 30% 0 0;
    transform: translateX(-100%);
    transition: .25s ease;
    z-index: 60;
    background: #fff;
    border-right: 1px solid var(--stroke);
    box-shadow: var(--shadow-low);
    display: flex;
    flex-direction: column
}

.nav-drawer.open {
    transform: none
}

.scrim {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .4);
    backdrop-filter: saturate(80%) blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: .2s
}

.main-search .loc {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #fff;
    max-width: 250px;
    /* можна задати ширину */
}

.loc svg {
    flex-shrink: 0;
    /* іконка не стискається */
    color: var(--text);
}

.loc input {
    border: none;
    outline: none;
    flex: 1;
    /* займає весь вільний простір */
    font-size: 14px;
}


.scrim.show {
    opacity: 1;
    pointer-events: auto;
    z-index: 55
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--stroke)
}

.drawer-body {
    padding: .75rem 1rem;
    display: grid;
    gap: .5rem;
    overflow: auto
}

.drawer-body a {
    padding: .75rem;
    border-radius: 8px;
    border: 1px solid var(--stroke)
}


.site-footer {
    background: #fff;
    color: var(--text);
    font-size: 18px;
    padding: 40px 20px 20px;
}

.site-footer.second {
    background-color: var(--bg);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    flex: 1 1 250px;
}

.footer-logo img {
    max-width: 100px;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex: 2 1 500px;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-col {
    min-width: 150px;
}

.footer-col h4 {
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 6px;
}

.footer-col a {
    text-decoration: none;
    color: #333;
}

.footer-col a:hover {
    color: var(--muted);
}

.footer-social {
    flex: 1 1 200px;
}

.social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 13px;
    color: #333;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.footer-bottom {
    border-top: 0.1px solid #ddd;
    margin-top: 30px;
    padding-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* 📱 Адаптивність */


.tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: left;
}

.tag-list.categories li {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
    color: var(--stroke);
    height: 50px;
    background-color: var(--brand);
    border-radius: 8px;
}

.tag-list.categories li:hover {
    color: var(--brand);
}

.tag-list.categories img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin: 5px;
    border-radius: 50%;
    background-color: var(--warn);
}

.tag-list.categories span {
    margin: 0 10px 0 0;
    color: var(--text);
    font-size: 18px;
}

.product-item {
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-low);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-direction: column;
}



.product-item:hover img {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.image-container {
    display: block;
    width: 100%;
    /* height: 200px; */
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.image-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* заповнює блок, обрізаючи зайве */
    display: block;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}


.content-container {
    display: flex;
    gap: 10px;
    padding: 15px;
    flex: 1;
    position: relative;
    width: 100%;
    flex-direction: column;
}

.content-container h4 {
    margin: 0;
    margin-right: 40px;
    font-size: 16px;
    color: #333;
}

.content-container .date {
    font-size: 12px;
    opacity: 0.5;
}

.content-container .loc {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 0 8px;
    font-size: 14px;
    opacity: 0.5;
}

.content-container ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    gap: 10px;
}

.content-container ul li {
    font-size: 14px;
    color: var(--text);
    background-color: var(--brand-2);
    padding: 5px;
    border-radius: 8px;
    position: relative;
}



.price {
    font-size: 18px;
    display: block;
    font-weight: bolder;
    color: var(--text);
    border-radius: 8px;
}

.chat-tabs {
    background-color: #fff;
    padding: 10px;
    box-shadow: var(--shadow-low);
    /* мʼяка тінь */
    border-radius: 8px;
}

#chat-app {
    display: flex;
    margin: 20px;
    gap: 20px;
}

.tab-content {
    width: 300px;
    max-height: 80vh;
    overflow-y: auto;
}

.tab-content button {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 10px;
    border: none;
    position: relative;
    background: #f8f8f8;
    margin-bottom: 5px;
    cursor: pointer;
}

.tab-content button img {
    margin-right: 10px;
    height: 75px;
}

.tab-content button:hover {
    background: #ddd;
}

.chat-window {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
}

.messages {
    flex: 1;
    max-height: 100%;
    overflow-y: auto;
    background: #fafafa;
    position: relative;
}

.messages.start {
    display: flex;
    justify-content: center;
    align-items: center;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    max-width: 70%;
    width: fit-content;
    position: relative;
    word-wrap: break-word;
    flex-direction: row-reverse;
    align-items: flex-end;

}

.message svg {
    height: 20px;
    width: 20px;
    margin-right: 10px;
}

.my-message {
    background: #CEDDFF;
    margin-left: auto;
}

.other-message {
    background: white;
    margin-right: auto;
}

.message-time {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    text-align: right;
}


.chat-input {
    width: 100%;
    display: flex;
    background: #fff;
    padding: 4px;
    gap: 4px;
    box-shadow: var(--shadow-low);
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 8px 70px 8px 8px;
    /* справа більше місця під іконки */
    border: 1px solid #ccc;
    outline: none;
    height: 100%;
}

.input-wrapper .icons {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
}

.input-wrapper .icon-btn {
    display: flex;
    align-items: center;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
}

.input-wrapper .icon-btn span {
    color: var(--text);
    opacity: 0.3;
    font-size: 14px;
}

.chat-input #send-btn {
    cursor: pointer;
    padding: 10px;
    margin: 0;
    color: var(--text);
    background-color: var(--brand);
    border: none;
}

.chat-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.chat-info .chat-time {
    position: absolute;
    right: 10px;
    bottom: 10px;
    color: var(--muted);
    font-size: 16px;
}

.chat-info .chat-last {
    font-size: 16px;
    color: var(--muted);
    opacity: 0.7;
}

.chat-info .chat-title {
    color: var(--text);
    font-weight: 700;
}

.chat-info .chat-autor {
    color: var(--muted);
    opacity: 0.3;
    font-size: 14px;
}

.chat-inform {
    background-color: #fff;
    box-shadow: var(--shadow-low);
    z-index: 10;
}

.interlocutor-info {
    height: 60px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* background-color: #fff; */
}

.interlocutor-info div {
    display: flex;
    flex-direction: row;
    width: 30%;
}

.interlocutor-info .interlocutor_action svg {
    height: 23px;
    width: 23px;
    color: var(--text);
    margin: 0 10px;
}

.interlocutor-info .interlocutor_action button {
    border: none;
    background: none;
    cursor: pointer;
}

.interlocutor-info .interlocutor_block {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.interlocutor-info .interlocutor_block img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin: 0 10px;
}


.interlocutor-info .interlocutor_block span {
    opacity: 0.4;
}

.product-info {
    margin-bottom: 20px;
    border-top: 1px solid rgba(20, 101, 145, 0.2);
    /* background-color: var(--brand-2); */
    display: flex;
    height: 60px;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
}

.product-info img {
    height: 40px;
    margin: 20px;
}

.chat-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(35%, 1fr));
    gap: 6%;
    margin-top: 5px;
    box-sizing: border-box;
    padding-bottom: 12%;
}

.chat-images:has(.single) {
    grid-template-columns: repeat(auto-fill, minmax(88%, 1fr));
}

.chat-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.chat-file a {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.chat-file svg {
    height: 34px;
    width: 34px;
}


.tab-buttons {
    display: flex;
    margin-bottom: 10px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: var(--bg);
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.tab-btn.active {
    background: var(--brand-2);
    color: var(--text);
}

.tab-pane.active {
    display: block;
}

/* затемнення */
.report_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* вікно */
.report_form {
    overflow-y: auto;
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    max-height: 90vh;
    box-shadow: var(--shadow-low);
    animation: fadeIn 0.3s ease;
}

/* заголовок */
.report_form h3 {
    margin: 0;
    font-size: 18px;
}

.report_form form>span {
    margin-bottom: 20px;
}

.report_form span {
    font-size: 14px;
    color: var(--muted);
    opacity: 0.5;
    display: block;
}

.report_form label {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
}

/* textarea */
.report_form textarea,
.review_form textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
    resize: vertical;
}

/* кнопки */
.report_actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.report_actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.report_actions .btn-submit {
    background: var(--brand);
    color: var(--text);
}

.report_actions .btn-cancel {
    background: var(--brand-2);
    color: var(--text);
}

/* анімація */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.day-divider {
    text-align: center;
    margin: 15px 0;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    position: relative;
}

.day-divider::before,
.day-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ccc;
}

.day-divider::before {
    left: 0;
}

.day-divider::after {
    right: 0;
}

.auth-page {
    background-color: var(--brand);
}

.auth-page .row {
    max-width: 1000px;
    margin: auto;
}

.auth-left {
    background-color: #FAEB5D;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.auth-left .logo img {
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-left h1 {
    font-size: 72px;
    color: #fff;
    margin: 0;
}

.auth-left p {
    margin: 10px;
    color: #fff;
    font-size: 36px;
    opacity: 0.9;
}

/* Права частина — форма */
.auth-right {
    background: #fff;
    padding: 60px 50px;
    margin: 100px 0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-right h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #222;
}

.auth-form input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.auth-btn {
    width: 100%;
    background: #FAEB5D;
    color: #000;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.auth-btn:hover {
    background: #f4da00;
}

.auth-google {
    display: flex;
    gap: 10px;
    text-align: center;
    margin: 20px 0;
}

.auth-google button {
    font-weight: normal;
    width: 100%;
    background: #fff;
    color: var(--text);
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
}

.auth-google button:hover {
    background: #f8f8f8;
}

.auth-right p {
    text-align: center;
    margin-top: 20px;
}

.auth-right a {
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
}

.auth-right a:hover {
    text-decoration: underline;
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

/* Кнопка з аватаром */
.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.profile-btn:hover {
    background: var(--brand-2);
}

/* Аватар */
.profile-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Меню */
.profile-menu {
    position: absolute;
    top: 110%;
    right: 0;
    width: 220px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: var(--shadow-low);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

/* Шапка */
.profile-menu-header {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.profile-menu-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 6px;
}

.profile-menu-header strong {
    display: block;
}

/* Команди */
.profile-menu a {
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    display: block;
    transition: background 0.2s;
}

.profile-menu a:hover {
    background: #f9f9f9;
}

/* Вихід */
.profile-menu .logout {
    border-top: 1px solid #eee;
    color: #d33;
    font-weight: bold;
}

.profile-menu.open {
    display: flex;
}

.profile-page {
    max-width: 500px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-low);
    font-family: Arial, sans-serif;
}

.profile-page h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.profile-form label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #444;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="password"],
.profile-form input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid var(--brand-2);
    border-radius: 8px;
    font-size: 15px;
}

.profile-form input[type="file"] {
    border: none;
}

.avatar-preview {
    margin: 10px 0;
    text-align: center;
}

.profile-avatar {
    border-radius: 50%;
    box-shadow: var(--shadow-low);
}

.profile-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--brand);
    color: var(--text);
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.profile-btn:hover {
    background: var(--brand-2);
}

.profile-success {
    text-align: center;
    padding: 10px;
    background: #d1f7d1;
    border: 1px solid #7bd77b;
    border-radius: 8px;
    margin: 15px auto;
    max-width: 500px;
    color: #2b7a2b;
}

.avatar-upload {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.avatar-upload input[type="file"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ccc;
    margin-bottom: 10px;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-btn {
    display: inline-block;
    padding: 6px 12px;
    background: var(--brand);
    color: var(--text);
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    transition: background 0.3s;
}

.upload-btn:hover {
    background: var(--brand-2);
}

.section-product-store,
.edit-product {
    min-height: 100vh;
    background-position: center;
    /* центрує зображення */
    background-size: cover;
    /* розтягує, щоб заповнити блок */
    background-repeat: no-repeat;
    /* не повторює */
    position: relative;
    overflow: hidden;
}

/* Розмиття через псевдоелемент */
.section-product-store::before,
.edit-product::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(10px);
    /* розмиття */
    transform: scale(1.1);
    z-index: 0;
}

.section-product-store>*,
.edit-product>* {
    position: relative;
    z-index: 1;
}


.select-category {
    max-height: fit-content;
    max-width: 400px;
    width: 100%;
    margin: 40px auto;
    padding: 25px 30px;
    border: 1px solid (--bg);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    font-family: "Segoe UI", Roboto, sans-serif;
}

.select-category h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text);
    text-align: center;
}

.select-category form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.select-category label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.select-category select {
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: var(--bg);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.select-category select:focus {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
    outline: none;
}

button,
.btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: var(--brand);
    color: var(--text);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.1s ease;
}

button:hover,
.btn:hover {
    background: var(--brand-2);
    transform: translateY(-1px);
}

button:active,
.btn:active {
    transform: translateY(0);
}

.acf-image-uploader a {
    text-decoration: underline;
    font-weight: bold;
}


/* Загальна обгортка форми */
.acf-form {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: var(--shadow-low);
    font-family: 'Arial', sans-serif;
}

/* Заголовки */
.acf-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

/* Label */
.acf-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

/* Input, select, textarea */
.acf-form input[type="text"],
.acf-form input[type="file"],
.acf-form input[type="number"],
.acf-form textarea,
.acf-form select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.acf-form input[type="text"]:focus,
.acf-form textarea:focus,
.acf-form select:focus {
    border-color: #0073aa;
    outline: none;
}

/* Кнопки */
.acf-form button,
.acf-form input[type="submit"] {
    background-color: var(--brand) !important;
    color: var(--text) !important;
    border: none !important;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.acf-form button:hover,
.acf-form input[type="submit"]:hover,
.acf-button-group label.selected {
    background-color: var(--brand-2) !important;
}

.acf-field select option {
    margin: 5px 0;
    padding: 10px 10px;
    border-radius: 8px;
}

.acf-field select option:checked {
    background-color: var(--brand-2) !important;
}

.acf-button-group label {
    color: var(--text) !important;
    font-weight: 200 !important;
    border: 1px solid var(--brand) !important;
}

/* ACF поля */
.acf-field {
    margin: 0 !important;
    height: inherit;
}

.acf-label label {
    font-weight: bold;
}

.acf-input input,
.acf-input select,
.acf-input textarea {
    width: 100% !important;
}

/* Поле file */
.acf-form input[type="file"] {
    padding: 5px;
}

/* Thumbnail preview (якщо використовуєш ACF image preview) */
.acf-image-uploader img {
    max-width: 200px;
    margin-top: 10px;
    border-radius: 8px;
}

/* Діагностика / повідомлення */
.acf-form p {
    font-size: 14px;
    color: #333;
}

.acf-form p span {
    font-weight: bold;
    color: crimson;
}


/* Контейнер сайдбару */
.sidebar-categories {
    display: block;
    min-width: 20vw;
    width: 35vw;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-low);
    font-family: sans-serif;
}

/* Головний список */
.product-type-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Категорія */
.category-item {
    margin-bottom: 8px;
}

/* Кнопка головної категорії */
.toggle-category {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 5px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.toggle-category:hover {
    background: #f8f8f8;
}

/* Іконки */
.toggle-category img,
.subcategory-list img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

/* Стрілочка */
.arrow {
    font-size: 12px;
    margin-left: auto;
    transition: transform 0.3s;
}

.category-item.active .arrow {
    transform: rotate(180deg);
}

/* Список підкатегорій */
/* .subcategory-list {
    list-style: none;
    margin: 5px 0 0 15px;
    padding: 0;

    max-height: 0;
    overflow: hidden;

    transition: max-height 0.4s ease;
} */

/* Активний блок розкривається */
/* .category-item.active .subcategory-list {
    max-height: 500px; 
} */

/* Елементи підкатегорій */
.subcategory-list li {
    margin: 6px 0;
}

.subcategory-list form {
    display: inline-block;
    width: 100%;
}

.subcategory-list button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 45px;
    border: none;
    background: none;
    font-size: 15px;
    cursor: pointer;
    padding: 5px;
    text-align: left;
    transition: background 0.2s;
    border-radius: 8px;
}

.subcategory-list button:hover {
    background: #f2f2f2;
}

.custom-select {
    position: relative;
    width: max-content;
}

.custom-select input {
    font-size: 21px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
}

.custom-dropdown {
    position: absolute;
    top: 120%;
    left: 0;
    right: 0;
    z-index: 10;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 300px;
    width: 100%;
    padding: 0 16px;
    
    /* Це залишаємо, щоб прокрутка працювала */
    overflow-y: auto; 
    
    display: none;
    border-radius: 8px;

    /* 1. Для Firefox */
    scrollbar-width: none; 
    
    /* 2. Для Internet Explorer та Edge (старих версій) */
    -ms-overflow-style: none; 
}

/* 3. Для Chrome, Safari, Edge та Opera */
.custom-dropdown::-webkit-scrollbar {
    display: none;
}

.custom-dropdown div {
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.custom-dropdown div span {
    opacity: 0.5;
    font-size: 14px;
    font-weight: bold;
}

.custom-dropdown div:hover {
    background-color: #f2f2f2;
}


/* === Контейнер меню === */
.product-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    display: flex;
    flex-direction: column;
    /* приховано, видно лише ярлик */
    max-width: 350px;
    width: 100%;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    transition: right 0.4s ease;
    z-index: 9999;
    padding: 20px 20px 20px 40px;
    /* додано зліва для відступу */
    border-left: 1px solid #ddd;
}

/* коли активне — показати */
.product-sidebar.active {
    right: 0;
}

/* === Ярлик === */
.product-sidebar .sidebar-handle {
    position: absolute;
    left: -45px;
    /* щоб видно було збоку */
    top: 40%;
    width: 45px;
    height: 60px;
    background: var(--brand);
    color: var(--text);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    user-select: none;
    transition: background 0.3s;
}

.product-sidebar .sidebar-handle:hover {
    background: var(--brand-2);
}

/* === Тло === */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
}

.sidebar-overlay.active {
    display: block;
}

/* === Контент меню === */
.product-sidebar h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
}

.my-list-product {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.my-list-product>* {
    flex-shrink: 0;
    /* 👈 не дозволяє стискати дочірні елементи */
}



/* ===== OLX-STYLE ===== */
body {
    background: #f2f4f5;
    font-family: "Inter", sans-serif;
    color: #222;
}


.product-page {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

/* Галерея */
.product-gallery {
    flex: 1 1 55%;
    min-width: 320px;
    padding: 10px;
    position: relative;
}

.product-gallery img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
}

.product-gallery {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: auto;
}

.main-swiper {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.main-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbs-swiper {
    margin-top: 10px;
}

.thumbs-swiper .swiper-slide {
    width: 80px;
    height: 80px;
    opacity: 0.6;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    transform: scale(1.05);
}

.thumbs-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Інформація */
.product-page .product-info {
    flex: 1 1 40%;
    display: block;
    border-top: none;
}

.product-page .product-info>div {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow-low);
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    position: relative;
}

.product-info>div .product-date {
    position: absolute;
    top: 5px;
    right: 5px;
    opacity: 0.5;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.product-location {
    font-size: 1rem;
    color: #444;
    margin-bottom: 10px;
}

.product-cat {
    font-size: 0.9rem;
    color: #777;
}

/* .btn-primary {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    background: #002f34;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 20px;
    transition: background 0.3s;
} */

/* .btn-primary:hover {
    background: #035a5f;
} */

/* Опис */
.product-description {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: var(--shadow-low);
}

.product-description h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.product-description .content {
    line-height: 1.7;
}

/* Деталі */
.product-details {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: var(--shadow-low);
}

.product-details ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-details li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.product-details li:last-child {
    border-bottom: none;
}

/* Повноекранне фото */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.fullscreen-inner {
    position: relative;
}

.fullscreen-inner img {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}

.close-fullscreen {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    color: #fff;
    background-color: #fff;
    font-size: 28px;
    border: none;
    cursor: pointer;
}

/* Swiper */
.swiper {
    border-radius: 8px;
}

.swiper-slide img {
    width: 100%;
    object-fit: cover;
}


.product-author-box {
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 8px;
}

.author-avatar img {
    border: 0.5px solid #112E3E50;
    border-radius: 50%;
    margin: auto;
    width: 80px;
    height: 80px;
    padding: 5px;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 24px;
    margin: 0;
}


section.product-author-box>div {
    background-color: #fff;
    box-shadow: var(--shadow-low);
    padding: 30px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

section.product-author-box .container>div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

section.product-author-box .container>div .author-email {
    opacity: 0.5;
}

.list-product>span {
    font-weight: bold;
    font-size: 32px;
    text-align: center;
    display: block;
}


.like-btn:hover {
    background: none;
}

.like-btn {
    border: none;
    background: none;
    padding: 0;
    color: var(--text);
}

.author-registered {
    display: flex;
    flex-direction: column !important;
    color: #777;
    font-size: 14px;
    align-items: end !important;
}

.author-registered div {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.review-item {
    background-color: #fff;
    box-shadow: var(--shadow-low);
    border-radius: 8px;
    padding: 20px;
}

.review-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.review-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.content-container .like-btn {
    padding: 5px;
    border-radius: 50%;
    box-shadow: var(--shadow-low);
    height: 30px;
    width: 30px;
    position: absolute;
    top: 0px;
    right: 10px;
}

.like-btn.liked svg {
    fill: currentColor;
}

.product-date .like-btn {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 5px;
}

.product-date>*:first-child::before {
    content: "";
    display: block;
    width: 1px;
    height: 16px;
    background-color: var(--text);
    /* колір лінії */
    margin: 0 5px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--brand) !important;
}

.swiper-pagination-bullet-active {
    background: var(--brand) !important;
}

.button-actions svg {
    height: 40px;
    width: 40px;
}

.button-actions a:first-child {
    background-color: var(--brand-2);
}

.button-actions a:nth-child(2) {
    background-color: var(--brand);
}

.button-actions .delete {
    background-color: #E66565;
}


.button-actions {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 10px;
}

.button-actions * {
    padding: 5px;
    border-radius: 8px;
}

.button-actions button svg {
    fill: var(--bg)
}

.site-header .util .util-left a,
.footer-logo a {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: flex-end;
}

.site-footer .footer-logo a {
    align-items: center;
}

.br-line {
    opacity: 0.5;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text);
    gap: 15px;
}

.br-line::before,
.br-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--text));
}

.br-line::after {
    background: linear-gradient(to left, transparent, var(--text));
}

.language-switcher a+a::before {
    opacity: 0.6;
    content: "|";
    margin: 0;
    color: var(--text);
}

.language-switcher a {
    padding: 0 !important;
    font-weight: normal !important;
}

.language-switcher a:hover {
    font-weight: 700 !important;
}

.language-switcher a.active {
    font-weight: 700 !important;
}

.options {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
}

.shop_sort {
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-options {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
}

.filter-item a {
    color: #555;
    text-decoration: none;
}

.filter-item {
    cursor: pointer;
    color: #555;
    padding: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.filter-item:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    color: var(--text);
}

.filter-item a:hover {
    color: var(--white-color);
}

.filter-item.active a {
    color: black;
    font-weight: bold;
}

.acf-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    border-radius: 8px;
    margin-bottom: 30px;
}

.acf-filter-form .acf-field {
    max-width: 300px;
    flex: 1 1 max-content;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    height: inherit;
}

/* .acf-filter-form .acf-field:hover {
    border-color: #b7d7ff;
    box-shadow: 0 0 5px rgba(30, 144, 255, 0.2);
} */

.acf-filter-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px !important;
    color: var(--text);
    font-size: 14px;
}

.acf-filter-form input[type="number"],
.acf-filter-form input[type="text"],
.acf-filter-form select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fafafa;
    transition: border-color 0.2s;

}

.acf-filter-form input[type="number"] {
    width: 85px !important;
    padding: 12px !important;
}

/* .acf-filter-form input:focus,
.acf-filter-form select:focus {
    border-color: #0073aa;
    outline: none;
    background: #fff;
} */

.acf-filter-form .acf-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.acf-filter-form .acf-range-inputs input {
    flex: 1;
}

.acf-filter-submit {
    display: block;
    max-width: 150px;
    width: 100%;
    margin: 10px 90% 0 0;
    padding: 16px;
    font-weight: bold;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.2s;
    float: left;
}


.acf-filter-submit:hover {
    display: block;
    background-color: var(--brand-2);
}

/* 
.acf-field .acf-checkbox-list {
    width: 100%;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 8px;
    position: absolute;
    z-index: 10;
    max-height: 400px;
    overflow-y: auto;
}

.acf-field.open .acf-checkbox-list {
    display: block;
}

.acf-field.open .acf-checkbox-list li label {
    width: max-content;
    display: flex;
}

.acf-input input[type="checkbox"] {
    width: auto !important;
} */

.acf-field .acf-checkbox-list {
    display: none;
    width: 100%;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 0;
    position: absolute;
    z-index: 10;
    max-height: 400px;
    overflow-y: auto;
}

.acf-field.open .acf-checkbox-list {
    display: block;
}

/* Сховати чекбокс */
.acf-checkbox-list input[type="checkbox"] {
    display: none;
}

/* Стиль строки */
.acf-checkbox-list li {
    padding: 8px 12px !important;
    cursor: pointer; 
    list-style: none;
    display: block;
    white-space: nowrap;
}

/* Активна вибрана стрічка */
.acf-checkbox-list li.selected {
    background: var(--brand);
}

/* Ховер */
.acf-checkbox-list li:hover {
    background: var(--brand-2);
}


.acf-field .dropdown-btn {
    min-width: 300px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 12px;
    width: 100%;
    cursor: pointer;
    position: relative;

}

.acf-field .acf-label {
    margin: 0 !important;
}

.acf-field .acf-label label {
    font-weight: bold !important;
}

.acf-true-false label {
    display: flex;
}

.acf-true-false .message {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

.no-products {
    display: flex;
    align-items: center;
}

.no-products.row {
    flex-direction: row;
}

.no-products.column {
    flex-direction: column;
}

.no-products img {
    max-height: 300px;
}

.no-products span {
    font-weight: bold;
    font-size: 48px;
}

button.remove-image {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #e74c3c !important;
    color: #fff !important;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    padding: 0;
    font-size: 12px;

    display: flex;
    /* вмикаємо флекс-контейнер */
    align-items: center;
    /* вирівнюємо по вертикалі */
    justify-content: center;
    /* вирівнюємо по горизонталі */
    line-height: 1;
    /* щоб не було зсуву через шрифт */
}

button.remove-image:hover {
    background-color: #ffa79d !important;
}



.salee-section * {
    box-sizing: border-box;
}


.salee-section {
    margin: 10px auto;
    width: 100%;
    max-width: 1300px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 18% 64% 18%;
    gap: 20px;
    align-items: center;
    padding: 20px;
}

.salee-section .categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text);
}

.salee-section .categories.left {
    align-items: flex-end;
    text-align: end;
}

.salee-section .categories div a {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.salee-section .categories div a span {
    opacity: 0.7;
}

.salee-section .categories div img {
    opacity: 1;
    height: 30px;
    width: 30px;
    border-radius: 8px;
}


.salee-section .categories div a:hover {
    color: var(--muted);
}

.salee-section .banner {
    max-width: 700px;
    background: white;
    display: flex;
    border-radius: 8px;
    height: fit-content;
    width: 100%;
    margin: auto;
    padding: 50px 20px;
    box-shadow: var(--shadow-low);
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.salee-section .banner>span {
    margin: 0;
    font-size: 48px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text);
}

.salee-section .banner>span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.salee-section .banner button {
    margin-top: 20px;
    background: var(--brand);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.25s ease;
}

.salee-section .banner button:hover {
    background: var(--brand);
    transform: translateY(-2px);
}

/* Поиск */
.search-bar {
    margin: 30px auto 20px;
    max-width: 900px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 8px;
}

.search-bar select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
}

/* Слайдер */
.slider {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    border-radius: 8px;
    max-width: 1400px;
    margin: 20px auto;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.6s ease;
}

.slide {
    min-width: 100%;
    font-weight: 600;
    font-size: 24px;
    color: #1f2937;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.dot {
    width: 9px;
    height: 9px;
    opacity: 0.7;
    border-radius: 50%;
    background: var(--muted);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--text);
    opacity: 1;
    width: 10px;
    height: 10px;
}

.swiper-button-next, .swiper-rtl .swiper-button-prev {
    right: -30px !important;
}

.swiper-button-prev, .swiper-rtl .swiper-button-next {
    left: -30px !important;
}

.swiper {
    position: static !important;
}

.categories-list {
    background-color: #fff;
    padding: 40px 0;
    border-bottom: 0.5px solid #112E3E30;
    border-top: 0.5px solid #112E3E30;

}

/* .categories-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
} */

.category-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.category-item:hover {
    transform: translateY(-4px);
}

.category-icon {
    overflow: hidden;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: var(--shadow);
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-name {
    font-weight: 600;
    font-size: 14px;
}

.subcategory-panel {
    display: none !important;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    margin-top: 30px;
    padding: 20px;
}

.subcategory-panel.active {
    display: block !important;
}

/* .subcats-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 30px;
} */

.subcat-item {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.subcat-item:hover *:not(img) {
    opacity: 0.7;
}

.all-link {
    grid-column: 1 / -1;
    font-weight: bold;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 10px;
    display: inline-block;

    border-bottom: 1px solid #14659120;
    opacity: 0.8;
    /* товста лінія */
    padding-bottom: 10px;
    /* відступ тексту від лінії */
}

.subcategory-panel {
    position: relative;
    width: 100%;
    margin-top: 20px;
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    transition: all 0.3s ease;
}

/* Стрілочка вверх */
.subcategory-panel::before {
    content: "";
    position: absolute;
    top: -10px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
    filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.05));
}

.subcategory-content {
    position: relative;
}

.loading {
    text-align: center;
    padding: 15px;
    font-weight: 500;
}

.list-of-product-parameter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.title {
    font-size: 32px;
    opacity: 0.9;
    font-weight: bold;
}

.description {
    max-width: 90vw;
    margin: 0;
    font-size: 14px;
    opacity: 0.5;
}

.categories-list .title {
    text-align: center;
    display: block;
    margin-bottom: 60px;
}

.banner-add-advertisement {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    padding: 60px 0;
    background-color: #fff;
}

.banner-add-advertisement a,
.btn-style-second {
    background-color: var(--text);
    color: #fff;
    transition: all 0.3s ease;
    border: 3px solid var(--text);
}

.banner-add-advertisement a:hover,
.btn-style-second:hover {
    background-color: #fff;
    color: var(--text);
    box-shadow: var(--shadow-low);
}

.popular-questions {
    margin: 50px auto;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
}

.popular-questions>.title {
    font-size: 42px;
}

.popular-questions .row {
    margin-top: 0;
}

.popular-question {
    height: 100%;
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    transition: box-shadow 0.4s ease;
    box-shadow: var(--shadow-low);
}

.popular-question:hover {
    box-shadow: var(--shadow);

}

.popular-question .title {
    font-size: 21px;
}

.popular-question .icon {
    font-size: 40px;
}

.popular-question p {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.625;
}

.rating {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.rating span {
    opacity: 0.5;
    margin-left: 5px;
}

.rating svg {
    color: var(--brand);
    height: 24px;
    width: 24px;

}

.stars {
    margin-right: 5px;
}


.review_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.review_form {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.rating-stars {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin: 10px 0;
}

.rating-stars label {
    cursor: pointer;
    font-size: 28px;
    transition: transform 0.2s ease;
}

.rating-stars label:hover {
    transform: scale(1.1);
}

.rating-stars svg {
    color: #ccc;
    width: 24px;
    height: 24px;
    transition: color 0.2s;
}


.review_actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.chose-section {
    margin-top: 0;
}

.chose-section div {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    padding: 5px;
    gap: 10px;
    width: fit-content;
    box-shadow: var(--shadow-low);
}


.chose-section div button {
    background: none;
    padding: 5px 20px;
    border-radius: 0;
    font-size: 18px;
}

.chose-section div button:hover,
.chose-section div button.active {
    background: var(--brand);
}

.container.list-product.active,
.container.list-review.active,
.container.profile-page.active {
    display: block;
}

.acf-field.acf-field-group .acf-fields {
    display: flex;
    flex-direction: row;
}

.acf-field.acf-field-group .acf-fields .acf-field {
    padding: 0;
}

.acf-field.acf-field-group .acf-fields .acf-field .acf-label, 
.container.list-product, 
.container.list-review, 
.container.profile-page, 
.rating-stars input, 
.tab-pane.gt_switcher_wrapper, 
.site-header.mobile , 
.gt_selector {
    display: none;
}

.acf-field.acf-field-group .acf-fields.-border {
    border: 0;
}

/* Основна сітка */
.acf-fields.acf-form-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* дві колонки */
    gap: 20px;
    /* відстань між полями */
}

/* Робимо пост-тайтл і контент на всю ширину */
.acf-field.acf-field--post-title,
.acf-field.acf-field--post-content {
    grid-column: 1 / -1;
    /* займає обидві колонки */
}

.gallery-upload {
    margin-bottom: 20px;
    font-family: sans-serif;
}

.drop-zone {
    border: 2px dashed #f7b500;
    border-radius: 8px;
    background-color: #fffaf0;
    text-align: center;
    padding: 40px 20px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.drop-zone:hover {
    background-color: #fff3d4;
    border-color: #f0a800;
}

.drop-zone-content svg {
    margin-bottom: 10px;
}

.drop-zone-content p {
    color: #555;
    margin: 10px 0;
}

.upload-btn {
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-btn:hover {
    background: #f7b500;
    color: #fff;
    border-color: #f7b500;
}

/* Прев’ю галереї */
#gallery-preview {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
}

#gallery-preview li {
    list-style: none;
    position: relative;
}

#gallery-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.remove-image {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4c4c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    line-height: 18px;
    text-align: center;
    font-size: 14px;
}


@media (min-width: 768px) and (max-width: 991.98px) {}

@media (max-width: 767.98px) {

    .site-header,
    .salee-section .categories,
    .main-search .search .btn span,
    .main-search .loc,
    .site-header.mobile .util-right {
        display: none;
    }

    .list-of-product-parameters.container {
        width: 100%;
    }

    .list-of-product-parameter {
        align-items: center;
    }

    .title {
        text-align: center;
    }

    .salee-section .banner {
        width: auto;
    }

    .no-products.row {
        flex-direction: column;
    }

    .shop_sort {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-options {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px;
        border: 1px solid #fff;
        background-color: var(--white-color);
    }

    .filter-item {
        padding: 10px;
        text-align: left;
        border-bottom: 1px solid #fff;
    }

    .filter-item:not(:last-child)::after {
        content: "";
    }

    .dropdown.active .filter-options,
    .hamburger,
    .site-header.mobile {
        display: block;
    }

    .sort-label {
        cursor: pointer;
    }

    .selected-sort {
        text-decoration: underline;
    }

    .options {
        align-items: flex-start;
    }

    .shop_sort {
        margin: 0 0 20px 0;
    }

    .salee-section {
        padding: 0;
    }

    .image-container img {
        height: 170px;
    }

    .description {
        font-size: 18px;
        margin: auto;
    }

    .site-header.mobile .util-left {
        justify-content: space-between;
        width: 100%;
    }

    .site-header.mobile .util-left span {
        margin: auto 0;
        font-size: 24px;
        font-weight: lighter;
    }

    .until-right {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    }

    .site-header.mobile .util-right.active {
        display: flex;
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }

    .util,
    .util-right {
        flex-direction: column;
        
    }

    .util .chip.icon {
        justify-content: flex-start;
    }

    .language-switcher .chip{
        width: auto;
    }
}