@media (max-width: 599px) {

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-nav {
        display: none;
    }

    .header-icons .icon-user,
    .header-icons .icon-favorite {
        display: none;
    }

    .hero-categories {
        display: none;
    }

    .features-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .header-main {
        height: 56px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header-schedule {
        display: none;
    }

    .desktop-logo {
        display: none;
    }

    .mobile-logo {
        display: block;
        width: 32px;
        height: 32px;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 24px;
        height: 24px;

        border: 0;
        background: none;
        cursor: pointer;
    }

    .header-user,
    .header-favorite {
        display: none;
    }



    .header-bottom {
        justify-content: space-between;
    }

    .header-nav {
        display: none;
    }

    .header-main {
        height: 56px;
        padding: 12px 0px;

        display: grid;
        grid-template-columns: 24px 1fr 24px;
        align-items: center;
    }
    .mobile-menu-btn {
        grid-column: 1;
        justify-self: start;

        width: 24px;
        height: 24px;
    }

    .mobile-logo {
        grid-column: 2;
        justify-self: center;
    }

    .mobile-logo img {
        width: 32px;
        height: auto;
    }

    .header-icons {
        grid-column: 3;
        justify-self: end;
        width: 24px;

        display: flex;
        align-items: center;
    }

    .header-cart {
        display: flex;
        width: 24px;
        height: 24px;
    }

    .header-cart img {
        width: 24px;
        height: 24px;
    }
    .mobile-header-info {
        display: flex;
        align-items: center;
        justify-content: space-between;

        min-height: 48px;
        padding: 10px 0px;

        background: var(--color-neutral-95);
        border-top: 1px solid var(--color-border);
    }

    .mobile-worktime {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-worktime img {
        width: 18px;
        height: 20px;
        flex-shrink: 0;
    }

    .mobile-worktime-days,
    .mobile-worktime-hours {
        font-size: 12px;
        line-height: 1.4;
        color: var(--color-text);
    }

    .mobile-worktime-hours {
        color: var(--color-text-light);
    }

    .mobile-phone {
        display: flex;
        align-items: center;
        gap: 8px;

        text-decoration: none;
        color: var(--color-text);

        font-size: 12px;
        line-height: 1.4;
    }

    .mobile-phone img {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    .mobile-header-info {
        gap: 12px;

    }

    .mobile-worktime {
        flex: 1;
    }

    .mobile-phone {
        white-space: nowrap;
    }
.header-bottom-wrap{
    display:none;
}

    .mobile-header-info-wrap {
        display: block;
        width: 100%;
        background: #F3F3FA;
        border-top: 1px solid var(--color-border);
    }

    .mobile-header-info {
        display: flex;
        align-items: center;
        justify-content: space-between;

        min-height: 48px;
        padding: 10px 0;

        background: transparent;
        border-top: 0;
        gap: 12px;
    }

    .hero-section {
        padding-top: 24px;
    }

    .hero-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .hero-categories {
        display: none;
    }

    .hero-slider {
        position: relative;
        width: 100% !important;
        border-radius: 24px;
        overflow: hidden;
        max-height: 231px;
        vertical-align: center;
    }

    .hero-slider img {
        display: block;
        width: 100% !important;
        border-radius: 24px;
    }

    .slider-dots {
        position: absolute;
        left: 50%;
        bottom: 12px;

        transform: translateX(-50%);

        display: flex;
        gap: 6px;
    }

    .slider-dots span {
        width: 6px;
        height: 6px;
        border-radius: 50%;

        background: rgba(255,255,255,.7);
    }

    .slider-dots span.active {
        background: #ffffff;
    }

    .mobile-catalog-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;

        width: 100%;
        height: 48px;

        border: 0;
        border-radius: 40px;

        background: var(--color-primary);
        color: #fff;

        font-size: 16px;
        font-weight: 500;

        cursor: pointer;

        transition: .2s;
    }

    .mobile-catalog-btn:hover {
        opacity: .9;
    }

    .mobile-catalog-btn img {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .container h2 {
        font-size: 32px;
    }
    .products-section .slider-arrows, .reviews-section .slider-arrows {
        display: none;
    }

    .products-slider, .reviews-slider {
        overflow: visible;
    }

    .products-grid, .reviews-track {
        display: flex;
        gap: 16px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;

     /*   margin-left: -16px;*/
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 0;

        scrollbar-width: none;
    }

    .products-grid::-webkit-scrollbar {
        display: none;
    }

    .product-card, .review-card {
        flex: 0 0 267px;
        gap: 16px;

        scroll-snap-align: start;
    }

    .product-media {
        height: 180px;
    }

    .product-card h3 {
        font-size: 18px;
    }

    .product-card p {
        font-size: 16px;
    }

    .product-price {
        font-size: 22px;
    }

    .section-action .btn {
        width: 100%;
    }

    .site-footer {
        padding-top: 24px;
        padding-bottom: 16px;
        margin-top: 40px;
        background: #F3F3FA;
        gap: 24px;

    }

    .footer-logo {
        width: 120px;
        height: auto;
        margin-bottom: 16px;
    }

    .footer-layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
    }

    .footer-brand {
        width: 100%;
        gap: 16px;
    }

    .footer-brand .header-schedule {
        display: flex;
        gap: 12px;
        font-size: 12px;
        line-height: 1.4;
    }

    .footer-map {
        width: 100%;
        max-width: none;
        border-radius: 12px;
    }

    .footer-address {
        font-size: 12px;
        line-height: 1.4;
        margin: 0;
    }

    .footer-column {
        width: 100%;
        gap: 12px;
    }

    .footer-column h3 {
        margin: 0;
        font-size: 16px;
        line-height: 1.1;
    }

    .footer-column a {
        font-size: 12px;
        line-height: 1.4;
    }

    .footer-socials {
        gap: 16px;
    }

    .footer-socials img {
        width: 20px;
        height: 20px;
    }

    .footer-bottom {
        margin-top: 16px;
        padding-top: 8px;
        padding-bottom: 0;
        border-top: 1px solid #DDDEE8;

        font-size: 10px;
        line-height: 1.4;
    }
    main {
        margin-bottom:48px;

    }
}

@media (max-width: 599px) {

    /* 1. Верхній hero-слайдер на всю ширину контейнера */
    .hero-section {
        padding-top: 24px;
    }

    .hero-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .hero-slider {
        width: 100%;
        height: auto;
        aspect-ratio: 361 / 215;
        border-radius: 24px;
    }

    .hero-slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 2. Приховати стрілки в товарних/відгукових слайдерах */
    .products-section .slider-arrows,
    .reviews-section .slider-arrows {
        display: none !important;
    }

    /* 3. Футер вертикально */
    .site-footer .footer-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px;
    }

    .site-footer .footer-brand,
    .site-footer .footer-column {
        width: 100% !important;
        max-width: none !important;
    }

    .site-footer .footer-column {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-map {
        width: 100%;
        max-width: none;
    }
}
/*Catalog */

@media (max-width: 599px) {

    .catalog-page {
        padding-top: 24px;
    }

    .title-section {
        padding-left: 16px;
        padding-right: 16px;
        margin-bottom: 24px;
    }

    .breadcrumbs {
        margin-bottom: 16px;
        font-size: 12px;
    }

    .page-title {
        font-size: 40px;
    }

    .catalog-categories {
        margin-bottom: 40px;
    }

    .catalog-categories-slider {
        overflow: visible;
    }

    .catalog-categories-track {
        overflow-x: auto;
        gap: 12px;

        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;

        scrollbar-width: none;
    }

    .catalog-categories-track::-webkit-scrollbar {
        display: none;
    }

    .catalog-category-card {
        flex: 0 0 132px;
    }

    .catalog-category-image {
        width: 132px;
        height: 80px;
    }

    .catalog-category-card h3 {
        font-size: 14px;
    }

    .catalog-filters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .catalog-filter span {
        font-size: 12px;
    }
    catalog-filter select {
        font-size: 14px;
    }

    .catalog-toolbar {
        padding-left: 16px;
        padding-right: 16px;
        margin-bottom: 24px;
    }

    .catalog-products-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .catalog-products-grid .product-card {
        width: 100%;
        flex: none;
    }

    .catalog-products-grid .product-media {
        height: auto;
        aspect-ratio: 361 / 215;
    }
}

@media (max-width: 599px) {

    .product-single {
        margin-top: 16px;
    }

    .product-single-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .product-gallery-main {
        width: 100%;
        gap: 12px;
    }

    .product-main-image {
        width: 100%;
        height: auto;
        aspect-ratio: 361 / 215;
        border-radius: 16px;
    }

    .product-main-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product-thumbs-wrap {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-gallery-arrow {
        display: none;
    }

    .product-thumbs {
        display: flex;
        justify-content: center;
        gap: 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .product-thumbs::-webkit-scrollbar {
        display: none;
    }

    .product-thumb {
        width: 64px;
        height: 48px;
        flex: 0 0 64px;
    }

    .product-summary {
        width: 100%;
        gap: 16px;
    }

    .product-summary-favorite {
        top: 0;
        right: 0;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #FFDCC7;
    }

    .product-summary h1 {
    /*    max-width: 300px; */
        font-size: 32px;
        line-height: 1.1;
    }

    .product-stock {
        font-size: 12px;
    }

    .product-tags span,
    .product-sku {
        font-size: 12px;
    }

    .product-single-price {
        margin: 8px 0 10px 0;
        font-size: 28px;
    }

    .product-short-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .product-buy-row {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;

        z-index: 1000;

        display: flex;
        gap: 12px;

        padding: 12px 16px;

        background: #FFFFFF;
        border-top: 1px solid #E7E7E7;

        box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    }

    .product-summary {
        padding-bottom: 90px;
    }

    .product-qty {
        width: 88px;
        flex-shrink: 0;
    }

    .product-add-to-cart {
        flex: 1;
    }

    .product-accordion-head {
        font-size: 18px;
    }

    .product-specs dt,
    .product-specs dd,
    .product-features-list li,
    .product-simple-list li {
        font-size: 14px;
    }
}

@media (max-width: 599px) {

    .product-description-section {
        margin-top: 40px;
        margin-bottom: 56px;
    }

    .product-description-title {
        margin-bottom: 24px;
        font-size: 32px;
    }

    .product-description-content {
        gap: 32px;
    }

    .product-description-content .wp-block-media-text {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-description-content h2 {
        font-size: 24px;
    }

    .product-description-content h3 {
        font-size: 20px;
    }

    .product-description-content p {
        font-size: 14px;
        line-height: 1.5;
    }
	
	.product-summary
    .woocommerce-variation-add-to-cart,
    .product-summary
    form.cart:not(.variations_form) {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;

        display: flex;
        gap: 12px;

        margin: 0;
        padding: 12px 16px;

        background: #fff;
        border-top: 1px solid #e7e7e7;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    }

    .product-summary {
        padding-bottom: 88px;
    }

    .fabric-class-swatch {
        width: 38px;
        height: 38px;
    }
	.single_add_to_cart_button 	{
		max-width:150px;
	}
}

.product-buy-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.product-buy-row .quantity-custom {
    flex: 0 0 92px;
}

.product-buy-row .single_add_to_cart_button {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.product-buy-sticky {
    width: 100%;
    box-sizing: border-box;
}

.product-buy-sticky .product-buy-row {
    width: 100%;
}

@media (max-width: 599px) {

    /* Головне мобільне меню */
    .header-bottom-wrap {
        display: none;
    }

    .header-bottom-wrap.is-open {
        display: block;
        background: #fff;
        border-top: 1px solid var(--color-border);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .header-bottom-wrap.is-open .header-bottom {
        display: block;
        padding: 8px 0 16px;
    }

    .header-bottom-wrap.is-open .header-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .header-bottom-wrap.is-open .header-nav a {
        display: block;
        padding: 12px 16px;
        color: var(--color-text);
        text-decoration: none;
        border-bottom: 1px solid var(--color-border);
    }

    .header-bottom-wrap.is-open .header-phone-div {
        display: none;
    }

    /* Бічний каталог товарів */
    .mobile-catalog-drawer {
        position: fixed;
        z-index: 10000;
        top: 0;
        left: 0;

        display: block;
        width: min(88vw, 360px);
        height: 100dvh;
        padding: 16px;

        background: #fff;
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.18);

        overflow-x: hidden;
        overflow-y: auto;

        transform: translateX(-105%);
        visibility: hidden;
        transition:
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    .mobile-catalog-drawer.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .mobile-catalog-header {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 12px;
    }

    .mobile-catalog-close {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 40px;
        height: 40px;
        padding: 0;

        border: 0;
        border-radius: 50%;
        background: #f3f3fa;
        color: var(--color-text);

        font-size: 22px;
        cursor: pointer;
    }

    .mobile-catalog-nav {
        display: flex;
        flex-direction: column;
    }

    .mobile-catalog-nav .hero-category-link {
        display: flex;
        align-items: center;
        gap: 12px;

        padding: 12px 4px;
        color: var(--color-text);
        text-decoration: none;
        border-bottom: 1px solid var(--color-border);
    }

    .mobile-catalog-nav .hero-category-link img {
        width: 28px;
        height: 28px;
        object-fit: contain;
        flex-shrink: 0;
    }

    body.mobile-catalog-open {
        overflow: hidden;
    }
}