 /*
 Theme Name: Avtonomerochek
 Author: Your Name
 Version: 1.0
 Description: Avtonomerochek
 */
.hero {
    position: relative;
    padding: 10px 0;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero-inner {
    max-width: 700px;
}

.hero-title {
    font-size: clamp(24px, 5vw, 56px);
    font-weight: 700;
    padding: 5px;
}

.hero-subtitle {
    margin-top: 20px;
    font-size: 18px;
    opacity: 0.9;
    padding: 25px;
}

.hero-actions {
    margin-top: 30px;
}




.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    font-weight: 700;
}



/* Стилі картки */
.adv-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.adv-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.adv-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.adv-text {
    margin-top: 15px;
    font-weight: 500;
}



/* Адаптив для мобільних */

.products {
    padding: 20px 0;
}


/*.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}*/

.product-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.product-name {
    margin-top: 15px;
    font-size: 20px;
    font-weight: 700;
}

.product-desc {
    margin-top: 10px;
    font-size: 16px;
    opacity: 0.8;
}

.product-item .btn {
    margin-top: 20px;
}
.projects {
    padding: 80px 0;
    background: #f9f9f9;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-info {
    padding: 20px;
}

.project-type {
    font-weight: 700;
    margin-bottom: 8px;
}

.project-area,
.project-system {
    font-size: 14px;
    opacity: 0.8;
}
.faq {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.faq-question {
    font-weight: 700;
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    font-weight: 700;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    display: none;
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    display: block;
}
.cta {
    padding: 80px 0;
    background: #222;
    color: #fff;
    text-align: center;
}

.cta-subtitle {
    margin-top: 15px;
    margin-bottom: 40px;
    font-size: 18px;
    opacity: 0.9;
}


.simple-cta-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.simple-cta-form input {
    padding: 12px 15px;
    border-radius: 8px;
    border: none;
    width: 250px;
    max-width: 100%;
}

.simple-cta-form button {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}
/* Контейнер хедера */
.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 2px 0;
}

/* Логотип */
.header-logo a,
.header-logo img {
    display: block;
    max-height: 50px;
}

/* Меню */
.header-nav ul.menu {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-nav ul.menu li a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: color 0.3s;
}

.header-nav ul.menu li a:hover {
    color: #007BFF;
}

/* Контакти */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 3px;
    background: #000;
    border-radius: 2px;
}

/* Адаптив для мобільних */
@media (max-width: 768px) {
    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        display: none;
        flex-direction: column;
        padding: 15px 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .header-nav.active {
        display: flex;
    }
    .header-nav ul.menu {
        flex-direction: column;
        gap: 15px;
    }
    .burger {
        display: flex;
    }
}   
   /* ==========================
   3. Header
   ========================== */

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
    
  backdrop-filter: blur(100px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo{
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img{
  height: 42px;
  width: auto;
}

.logo-title{
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 16px;
  line-height: 1;
}

.header-nav{
  display: flex;
  align-items: center;
  gap: 26px;
}

.header-nav a{
  font-size: 14px;
  color: var(--muted);
  padding: 10px 6px;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}

.header-nav a:hover{
  color: var(--text);
}

.header-nav .is-active{
  color: var(--text);
}

.header-contacts{
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-contacts .phone{
  font-weight: 600;
  color: var(--text);
}

.header-cta{
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,191,166,0.35);
  color: var(--text);
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}

.header-cta:hover{
  transform: translateY(-1px);
}
/* ==========================
   8. Responsive
   ========================== */

@media (max-width: 1100px){
  .hero-grid{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 700px){
  .header-nav{ display: none; }
  .header-contacts{ display: none; }

  .header-inner{
    justify-content: space-between;
  }
}
/* ===== HEADER MENU FIX ===== */

.site-header {
  top: 0;
  z-index: 1000;
  
  backdrop-filter: blur(6px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

/* NAV */
.main-nav {
  margin-left: auto;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;

  margin: 0;
  padding: 0;
  list-style: none; /* ← головне */
}

.main-nav__list li {
  margin: 0;
  padding: 0;
}

.main-nav__list a {
  display: inline-block;
  padding: 6px 0;

  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;

  transition: color 0.2s ease;
}

.main-nav__list a:hover {
  color: #6ddccf;
}

/* Active menu item */
.main-nav__list .is-active > a {
  color: #6ddccf;
}

/* LOGO */
.logo img {
  max-height: 42px;
  width: auto;
  display: block;
}
/* ===== BURGER ===== */

.burger {
  display: none;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .main-nav {
    position: fixed;
    top: 72px; /* висота хедера */
    left: 0;
    width: 100%;
    background: rgba(10, 20, 22, 0.98);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
  }

  .main-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .main-nav__list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .main-nav__list a {
    padding: 16px;
    display: block;
  }
}

/* ===== BURGER ANIMATION ===== */

.burger.is-active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
}

.burger.is-active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
    .product-item .btn {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
        
    }}

    
    /* ===== Buttons ===== */

.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 20px;

    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #007BFF, #00bcd4);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.25);
    
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 123, 255, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}
    /* ===== FIX BUTTON DESKTOP ===== */

.products .product-item .btn,
.products .product-item button {
    display: inline-block;
    padding: 12px 26px !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer;

    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none;

    background: linear-gradient(135deg, #007BFF, #00bcd4) !important;
    color: #fff !important;

    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.25);
    transition: all 0.25s ease;
}

.products .product-item .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 123, 255, 0.35);
}
    /* ===== PRODUCTS BUTTON HARD FIX ===== */

.products .product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.products .product-item .btn,
.products .product-item button {
    margin-top: 18px;

    padding: 14px 28px !important;
    min-width: 160px;

    border-radius: 12px !important;
    border: none !important;

    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    background: #0ea5a4 !important;
    color: #fff !important;

    cursor: pointer;
    transition: all 0.25s ease;

    box-shadow: 0 8px 20px rgba(14,165,164,0.25);
}

.products .product-item .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(14,165,164,0.35);
}
    /* ===== PRODUCTS BUTTON HARD FIX ===== */

.products .product-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Розтягує контент по вертикалі */
    height: 100%; /* Щоб flex працював по всій висоті картки */
}


.product-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.products .product-item .btn,
.products .product-item button {
    margin-top: 18px;

    padding: 14px 28px !important;
    min-width: 160px;

    border-radius: 12px !important;
    border: none !important;

    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    background: #0ea5a4 !important;
    color: #fff !important;

    cursor: pointer;
    transition: all 0.25s ease;

    box-shadow: 0 8px 20px rgba(14,165,164,0.25);
}

.products .product-item .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(14,165,164,0.35);
}

/* Desktop — звичайна сітка */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* Mobile slider */
@media (max-width: 768px) {

    .projects-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .projects-grid {
        display: flex;
        gap: 16px;
        scroll-snap-type: x mandatory;
    }

    .project-item {
        min-width: 85%;
        flex: 0 0 85%;
        scroll-snap-align: start;
    }

    /* прибрати скролбар (опціонально) */
    .projects-slider::-webkit-scrollbar {
        display: none;
    }
}
.projects-slider {
    position: relative;
}

.projects-arrow {
    display: none;
}

@media (max-width: 768px) {

    .projects-slider {
        overflow: hidden;
    }

    .projects-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-behavior: smooth;
    }

    .project-item {
        min-width: 100%;
        flex: 0 0 100%;
    }

    .projects-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: #000;
        color: #fff;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
        opacity: 0.8;
    }

    .projects-arrow.prev {
        left: 10px;
    }

    .projects-arrow.next {
        right: 10px;
    }
}
@media (max-width: 768px) {

    .projects-grid {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 16px;
    }

    .project-item {
        min-width: 100%;
        flex: 0 0 100%;
    }

}

/* ==========================
   PRODUCTS
   ========================== */

.products {
    padding: 20px 0;
}

/* Desktop grid — без змін */
/*.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}*/

.product-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.product-name {
    margin-top: 15px;
    font-size: 20px;
    font-weight: 700;
}

.product-desc {
    margin-top: 10px;
    font-size: 16px;
    opacity: 0.8;
}

.products .product-item .btn {
    margin-top: 18px;

    padding: 14px 28px;
    min-width: 160px;

    border-radius: 12px;
    border: none;

    font-size: 15px;
    font-weight: 600;
    line-height: 1;

    background: #0ea5a4;
    color: #fff;

    cursor: pointer;
    transition: all 0.25s ease;

    box-shadow: 0 8px 20px rgba(14,165,164,0.25);
}

.products .product-item .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(14,165,164,0.35);
}



/* ==========================
   REVIEWS
   ========================== */

.reviews {
    padding: 80px 0;
    background: #f9f9f9;
}

.reviews__title {
    margin-bottom: 50px;
}

/* Desktop grid (якщо раптом без слайдера) */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Slider wrapper */
.reviews-slider-wrapper {
    position: relative;
}

/* Якщо використовується Swiper */
.reviews-slider {
    width: 100%;
}

.reviews-slider .swiper-wrapper {
    align-items: stretch;
}

.review-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Фото */
.review-card__img {
    margin-bottom: 20px;
}

.review-card__photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
}

/* Ім'я */
.review-card__name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Текст */
.review-card__text {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.85;
}

/* Pagination */
.reviews-slider .swiper-pagination-bullet {
    background: #0ea5a4;
    opacity: 0.4;
}

.reviews-slider .swiper-pagination-bullet-active {
    opacity: 1;
}


/* ABOUT SECTION */

.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about__inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about__image {
    flex: 1;
}

.about__image img {
    width: 50%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.about__content {
    flex: 1;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 600;
}

.about__text {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* Tablet */
@media (max-width: 992px) {
    .about__inner {
        flex-direction: column;
        gap: 40px;
    }

    .section-title {
        font-size: 28px;
    }

    .about__text {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .about {
        padding: 70px 0;
    }
}
/* STEPS SECTION */

.steps {
    padding: 100px 0;
    background: #ffffff;
}

.section-title--center {
    text-align: center;
    margin-bottom: 60px;
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.steps__card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.steps__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.steps__number {
    font-size: 48px;
    font-weight: 700;
    color: #e6e6e6;
    position: absolute;
    top: 20px;
    right: 25px;
    pointer-events: none;
}

.steps__icon {
    margin-bottom: 20px;
}

.steps__icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.steps__card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.steps__card-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Tablet */
@media (max-width: 992px) {
    .steps__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .steps {
        padding: 70px 0;
    }

    .steps__grid {
        grid-template-columns: 1fr;
    }

    .steps__number {
        font-size: 36px;
    }
}
/* ===== SWIPER FIX ===== */

.reviews-slider{
    overflow: hidden;
}

.reviews-slider .swiper-wrapper{
    display: flex;
    align-items: stretch;
}

.reviews-slider .swiper-slide{
    height: auto;
    box-sizing: border-box;
}
/* Mobile slider */
@media (max-width: 768px) {

    .products-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .products-grid {
        display: flex;
        gap: 16px;
        scroll-snap-type: x mandatory;
    }

    .product-item {
        min-width: 85%;
        flex: 0 0 85%;
        scroll-snap-align: start;
    }

    /* прибрати скролбар (опціонально) */
    .products-slider::-webkit-scrollbar {
        display: none;
    }
}
.products-slider {
    position: relative;
}

.products-arrow {
    display: none;
}

@media (max-width: 768px) {

    .products-slider {
        overflow: hidden;
    }

    .products-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-behavior: smooth;
    }

    .product-item {
        min-width: 100%;
        flex: 0 0 100%;
    }

    .products-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: #000;
        color: #fff;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
        opacity: 0.8;
    }

    .products-arrow.prev {
        left: 10px;
    }

    .products-arrow.next {
        right: 10px;
    }
}
@media (max-width: 768px) {

    .products-grid {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 16px;
    }

    .product-item {
        min-width: 100%;
        flex: 0 0 100%;
    }

}
/* ===== PRODUCTS MOBILE SLIDER FIX ===== */

@media (max-width: 768px) {

    .products-slider {
        position: relative;
        overflow: hidden;
    }

    .products-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .product-item {
        min-width: 100%;
        flex: 0 0 100%;
    }

    /* прибрати скролбар */
    .products-grid::-webkit-scrollbar {
        display: none;
    }

    /* стрілки */
    .products-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: #000;
        color: #fff;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
        opacity: 0.8;
    }

    .products-arrow.prev {
        left: 10px;
    }

    .products-arrow.next {
        right: 10px;
    }

}

/* =========================================
   ПОВНА УНІФІКАЦІЯ СТИЛЮ ВСІХ КНОПОК
   (Хедер, Hero, Товари)
   ========================================= */

.header-cta, 
.hero-actions .btn, 
.hero-actions a,
.btn {
    /* Розміри та вирівнювання (як у товарів) */
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 14px 28px !important;
    min-width: 160px !important;
    
    /* Форма та рамки */
    border-radius: 12px !important;
    border: none !important;
    
    /* Типографіка */
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    
    /* Кольори (бірюзовий з товарів) */
    background: #0ea5a4 !important;
    color: #fff !important;
    
    /* Тіні та анімація */
    box-shadow: 0 8px 20px rgba(14,165,164,0.25) !important;
    transition: all 0.25s ease !important;
    cursor: pointer;
}

/* Ефект при наведенні (Hover) */
.header-cta:hover, 
.hero-actions .btn:hover, 
.hero-actions a:hover,
.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 26px rgba(14,165,164,0.35) !important;
    background: #0c8c8b !important; /* Трохи темніший бірюзовий */
    color: #fff !important;
}

/* Зменшуємо кнопку хедера тільки для мобільних, щоб вона влізла в екран */
@media (max-width: 576px) {
    .header-cta {
        min-width: auto !important;
        padding: 10px 18px !important;
        font-size: 14px !important;
    }
}
/* =========================================
   ФІКС КАРТОК "НАША ПРОДУКЦІЯ" (МОБІЛЬНА ВЕРСІЯ)
   ========================================= */

/* 1. Відділяємо білу картку від білого фону (рамка + постійна тінь) */
.product-item {
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* 2. Прибираємо відступ кнопки, через який вона з'їжджала вправо */
.products .product-item .btn,
.products .product-item button {
    margin-left: 0 !important; 
    margin-right: 0 !important;
}

@media (max-width: 768px) {
    .products-grid {
        /* Додаємо відступи, щоб тіні карток не обрізалися контейнером при скролі */
        padding: 15px 5px 30px 5px;
    }

    .product-item {
        /* Ставимо 85% замість 100%, щоб користувач бачив шматочок наступної картки (підказка про свайп) */
        min-width: 85%;
        flex: 0 0 85%;
        scroll-snap-align: center; /* Центруємо активну картку */
    }

    .product-image img {
        /* Робимо фото на всю ширину картки без "дірок" з боків */
        width: 100%;
        height: 240px; /* Фіксуємо висоту, щоб усі картки були рівними */
        max-height: none;
        object-fit: cover; /* Заповнюємо весь простір блоку */
        border-radius: 8px; /* Додаємо акуратні кути для самого фото */
    }
}
/* =========================================
   ФІКС БУРГЕРА ТА ФОРМИ CTA (МОБІЛЬНА ВЕРСІЯ)
   ========================================= */

/* 1. Прибираємо зелений фон, тінь та відступи у бургера (перебиваємо глобальний стиль button) */
button.burger {
    background: transparent !important;
    box-shadow: none !important;
    min-width: auto !important; 
    padding: 0 !important;
}

@media (max-width: 768px) {
    /* 2. Розтягуємо секцію CTA від краю до краю екрану, ігноруючи батьківські контейнери */
    .cta {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-left: 20px !important; /* Щоб поля вводу не прилипали до самих країв телефону */
        padding-right: 20px !important;
        border-radius: 0 !important; 
        box-sizing: border-box !important;
    }
}
/* =========================================
   ФІКС: РОЗТЯГУЄМО HERO ТА CTA НА ВСЮ ШИРИНУ
   ========================================= */

/* Витягуємо секції за межі контейнерів від краю до краю (Desktop + Mobile) */
.hero, 
.cta {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box !important;
    border-radius: 0 !important; /* Прибираємо кути, якщо вони були */
}

/* Переконуємось, що контент всередині не прилипає до самих країв */
.hero {
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-top: 0 !important; /* Прибираємо можливий білий відступ зверху */
}

.cta {
    padding-left: 20px !important;
    padding-right: 20px !important;
}


}
/* =========================================
   POPUP CALCULATOR
   ========================================= */

.calc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 20, 22, 0.85); /* Темний фон з прозорістю */
    backdrop-filter: blur(5px);
    z-index: 9999;
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;

    /* Сховано за замовчуванням */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.calc-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.calc-popup-modal {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    
    /* Анімація появи знизу */
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.calc-popup-overlay.is-active .calc-popup-modal {
    transform: translateY(0) scale(1);
}

/* Кнопка закриття (Хрестик) */
.calc-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #f0f0f0 !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-width: auto !important;
}

.calc-popup-close:hover {
    background: #e0e0e0 !important;
    transform: rotate(90deg) !important;
}

.calc-popup-close span {
    position: absolute;
    width: 14px;
    height: 2px;
    background: #222;
    border-radius: 2px;
}

.calc-popup-close span:nth-child(1) { transform: rotate(45deg); }
.calc-popup-close span:nth-child(2) { transform: rotate(-45deg); }

/* Тексти */
.calc-popup-header {
    text-align: center;
    margin-bottom: 25px;
}

.calc-popup-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.calc-popup-header p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

/* Форма */
.calc-popup-form .form-group {
    margin-bottom: 15px;
}

.calc-popup-form input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    transition: 0.3s ease;
    font-family: inherit;
}

.calc-popup-form input:focus {/* =========================================
   ОБ'ЄДНАНИЙ ФІКС КАРТОК ТОВАРІВ (ДЕСКТОП + МОБІЛЬНА)
   ========================================= */

/* --- 1. Глобальні стилі (для всіх екранів) --- */
.product-item {
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Центруємо кнопку на всіх екранах (прибираємо старий відступ зліва) */
.products .product-item .btn,
.products .product-item button {
    margin-left: 0 !important; 
    margin-right: 0 !important;
}

/* --- 2. Мобільна версія (Edge-to-Edge дизайн) --- */
@media (max-width: 768px) {
    .products-grid {
        padding: 10px 5px 30px 5px !important;
        gap: 16px !important;
    }

    .product-item {
        min-width: 82% !important; /* Видно шматочок наступної картки */
        flex: 0 0 82% !important;
        padding: 0 0 25px 0 !important; /* Забираємо відступи, щоб фото торкалося країв */
        overflow: hidden !important;
        text-align: left !important;
    }

    .product-image {
        width: 100% !important;
        margin-bottom: 15px !important;
        padding: 0 !important;
    }

    .product-image img {
        width: 100% !important;
        height: 240px !important;
        max-height: none !important;
        object-fit: cover !important; /* Заповнює простір, обрізаючи зайве */
        border-radius: 0 !important; 
    }

    /* Повертаємо відступи для тексту */
    .product-name, 
    .product-desc {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .product-name {
        margin-bottom: 8px !important;
    }

    /* Розтягуємо кнопку для зручного тапу */
    .products .product-item .btn,
    .products .product-item button {
        margin-top: 15px !important;
        width: calc(100% - 40px) !important;
        display: flex !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
    outline: none;
    border-color: #0ea5a4;
    box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.1);
}

.calc-popup-form .btn {
    width: 100%;
    margin: 10px 0 0 0 !important; /* Перебиваємо глобальний margin */
}
/* CSS фікс для розміру логотипу */
.header-logo .site-logo {
    display: block;
    max-width: 200px; /* <--- Змініть це значення на потрібну вам максимальну ширину */
    width: auto;
    height: auto; /* Обов’язково: зберігає пропорції, щоб лого не розтягувалося */
    
    /* За бажанням: можна додати обмеження по висоті, якщо лого вертикальне */
    /* max-height: 80px; */
}
/* =========================================
   СТИЛІ ФУТЕРА (SITE FOOTER)
   ========================================= */

.site-footer {
    background-color: #1a1a1a; /* Темний фон футера */
    color: #e0e0e0;
    padding: 60px 0 20px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
}

/* Обмежувач ширини */
.site-footer .container {
    max-width: auto;
    margin: 0 auto;
    padding: 0 20px;
}

/* Розташування колонок */
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

/* Логотип */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 180px; /* Обмеження розміру лого в футері */
    height: auto;
    display: block;
}

.footer-logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}

/* Текст та Контакти */
.footer-address {
    color: #a0a0a0;
    margin-bottom: 15px;
}

.footer-contacts a {
    display: block;
    color: #a0a0a0;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    font-weight: 500;
}

/* Колір при наведенні (бірюзовий, як ваші кнопки) */
.footer-contacts a:hover,
.footer-menu li a:hover {
    color: #00b4d8; /* Замініть на ваш точний HEX колір кнопок, якщо він відрізняється */
}

/* Навігація */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Нижній рядок (Копірайт) */
.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #777777;
}

/* =========================================
   АДАПТИВНІСТЬ (МОБІЛЬНІ ПРИСТРОЇ)
   ========================================= */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-logo img {
        margin: 0 auto 15px; /* Відцентрувати лого на мобільному */
    }
    
    .footer-menu {
        align-items: center;
    }
}
/* =========================================
   ОНОВЛЕНИЙ ФУТЕР (На всю ширину + Компактний)
   ========================================= */

/* 1. Прибираємо стандартні відступи браузера (якщо вони є) */
body {
    margin: 0; 
    overflow-x: hidden; /* Запобігає появі горизонтального скролу */
}

/* 2. Розтягуємо футер на 100% екрана та зменшуємо висоту */
.site-footer {
    background-color: #1a1a1a; /* Темний фон */
    color: #e0e0e0;
    padding: 30px 0 15px; /* Зменшено висоту: було 60px, стало 30px */
    font-size: 14px; /* Зменшено розмір тексту для акуратності */
    
    /* Хак: примусово розтягує фон на весь екран, навіть якщо футер у вузькому контейнері */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
}

/* 3. Вирівнюємо контент в один ряд */
.site-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto 20px; /* Зменшено відступ до копірайту */
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center; /* Центрує блоки по вертикалі */
    gap: 20px;
}

.site-footer .footer-col {
    flex: 1;
    min-width: 200px;
}

/* Логотип та адреса (Ліва колонка) */
.site-footer .footer-logo {
    margin-bottom: 8px;
}

.site-footer .footer-logo img {
    max-width: 140px; /* Зменшено логотип */
    height: auto;
    display: block;
}

.site-footer .footer-address {
    color: #a0a0a0;
    line-height: 1.4;
}

/* Контакти (Центральна колонка) */
.site-footer .footer-contacts {
    text-align: center; /* Розміщуємо контакти по центру */
}

.site-footer .footer-contacts a {
    display: inline-block;
    color: #a0a0a0;
    text-decoration: none;
    margin: 0 10px; /* Контакти тепер в рядок, а не один під одним */
    transition: color 0.3s ease;
    font-weight: 500;
}

/* Навігація (Права колонка) */
.site-footer .footer-nav {
    display: flex;
    justify-content: flex-end; /* Притискаємо меню вправо */
}

.site-footer .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row; /* МЕНЮ ГОРИЗОНТАЛЬНО (дуже економить висоту) */
    flex-wrap: wrap;
    gap: 20px;
}

.site-footer .footer-menu li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Колір при наведенні (бірюзовий) */
.site-footer .footer-contacts a:hover,
.site-footer .footer-menu li a:hover {
    color: #00b4d8; 
}

/* Нижній рядок (Копірайт) */
.site-footer .footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #777777;
}

/* =========================================
   АДАПТИВНІСТЬ (МОБІЛЬНІ ПРИСТРОЇ)
   ========================================= */
@media (max-width: 768px) {
    .site-footer .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .site-footer .footer-logo img {
        margin: 0 auto 10px;
    }

    .site-footer .footer-contacts a {
        display: block;
        margin: 8px 0; /* На мобільному повертаємо контакти в стовпчик */
    }
    
    .site-footer .footer-nav {
        justify-content: center;
    }

    .site-footer .footer-menu {
        justify-content: center;
    }
}
/* =========================================
   ФУТЕР: ДЕСКТОП (Рівномірно по всій ширині)
   ========================================= */
.site-footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 20px 0 10px;
    font-size: 14px;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Контейнер на всю ширину */
.site-footer .footer-inner {
    display: flex;
    flex-direction: row;
    align-items: center; 
    margin-bottom: 15px;
    flex-wrap: wrap; 
}

/* Кожна з 3 колонок тепер займає РІВНО 1/3 ширини (33.333%) */
.site-footer .footer-col {
    flex: 1;
    margin: 0;
    display: flex; /* Робимо колонки flex-контейнерами для вирівнювання всередині */
}

/* 1. Ліва частина (Адреса) - притискаємо вліво */
.site-footer .footer-info {
    justify-content: flex-start;
}

.site-footer .footer-address {
    color: #a0a0a0;
    white-space: nowrap;
}

/* 2. Центральна частина (Контакти) - ідеально по центру екрана */
.site-footer .footer-contacts {
    justify-content: center; /* Вирівнює контакти по центру своєї третини */
    gap: 30px; 
    align-items: center;
}

/* 3. Права частина (Навігація) - притискаємо вправо */
.site-footer .footer-nav {
    justify-content: flex-end;
}

.site-footer .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px; 
}

/* Загальні стилі посилань */
.site-footer a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap; 
}

.site-footer a:hover {
    color: #00b4d8; 
}

/* Копірайт по центру під лінією */
.site-footer .footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 10px;
    text-align: center;
    font-size: 12px;
    color: #777777;
}

/* =========================================
   ФУТЕР: ПЛАНШЕТИ (Коли місця стає мало)
   ========================================= */
@media (max-width: 992px) {
    .site-footer .footer-col {
        flex: auto; /* Скасовуємо 33% для планшетів, щоб текст не наїжджав */
    }
    .site-footer .footer-inner {
        justify-content: space-between;
        gap: 20px;
    }
}

/* =========================================
   ФУТЕР: МОБІЛЬНІ (Акуратний стовпчик)
   ========================================= */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 15px; 
    }
    
    .site-footer .footer-inner {
        flex-direction: column; 
        text-align: center;
        gap: 25px; 
    }

    .site-footer .footer-col {
        justify-content: center; /* Центруємо всі елементи колонок */
        width: 100%;
    }

    .site-footer .footer-address {
        white-space: normal; 
        line-height: 1.5;
    }

    .site-footer .footer-contacts {
        flex-direction: column; 
        gap: 15px;
    }

    .site-footer .footer-contacts a {
        display: inline-block;
        font-size: 16px; 
        padding: 5px 0;  
    }

    .site-footer .footer-menu {
        flex-wrap: wrap; 
        justify-content: center;
        gap: 15px;
    }
}
/* =========================================
   ФУТЕР: ДЕСКТОП (3 рівні елементи)
   ========================================= */
.site-footer {
    background-color: #1a1a1a;
    color: #a0a0a0;
    padding: 15px 0 10px; /* Мінімальні відступи (вузький футер) */
    font-size: 15px;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Розподіляємо 3 блоки: по краях та рівно по центру */
.site-footer .footer-inner {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 15px;
    flex-wrap: wrap; 
}

/* Кожен елемент отримує рівну частку простору */
.site-footer .footer-item {
    flex: 1;
    white-space: nowrap; /* Забороняємо перенесення рядків */
}

/* Вирівнювання тексту всередині колонок */
.site-footer .footer-address {
    text-align: left; /* Адреса чітко зліва */
}

.site-footer .footer-phone {
    text-align: center; /* Телефон ідеально по центру */
}

.site-footer .footer-email {
    text-align: right; /* Пошта чітко справа */
}

/* Стилі посилань */
.site-footer a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #00b4d8; 
}

/* Копірайт */
.site-footer .footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 10px;
    text-align: center;
    font-size: 13px;
    color: #777777;
}

/* =========================================
   ФУТЕР: МОБІЛЬНІ (Акуратний стовпчик)
   ========================================= */
@media (max-width: 768px) {
    .site-footer {
        padding: 20px 0 10px; 
    }
    
    .site-footer .footer-inner {
        flex-direction: column; 
        gap: 15px; /* Відстань між елементами */
    }

    /* На мобільному скасовуємо вирівнювання по краях і центруємо все */
    .site-footer .footer-address,
    .site-footer .footer-phone,
    .site-footer .footer-email {
        text-align: center; 
        white-space: normal; 
    }
    
    .site-footer .footer-item a {
        display: block;
        padding: 5px 0; /* Збільшуємо зону для натискання пальцем */
    }
}
/* =========================================
   ФУТЕР: ПЛАНШЕТИ
   ========================================= */
@media (max-width: 992px) {
    .site-footer .footer-col {
        flex: auto; /* Дозволяємо колонкам стискатися */
    }
}

/* =========================================
   ФУТЕР: МОБІЛЬНІ (Максимально стиснутий)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Загальні відступи самого футера (зверху і знизу) */
    .site-footer {
        padding: 15px 0 10px !important; 
    }
    
    /* 2. Контейнер з трьома елементами */
    .site-footer .footer-inner {
        flex-direction: column; 
        gap: 8px !important; /* Дуже маленька відстань між рядками */
        margin-bottom: 10px !important; /* Відступ до лінії копірайту */
    }

    /* 3. Вбиваємо стандартні відступи WordPress (якщо він додав тег <p> до адреси) */
    .site-footer .footer-address p,
    .site-footer .footer-address {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }

    /* 4. Центруємо все */
    .site-footer .footer-address,
    .site-footer .footer-phone,
    .site-footer .footer-email {
        text-align: center; 
    }
    
    /* 5. Робимо посилання компактнішими по висоті */
    .site-footer .footer-item a {
        display: inline-block !important; /* inline-block займає менше місця по висоті, ніж block */
        padding: 2px 0 !important; 
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    /* 6. Лінія та копірайт */
    .site-footer .footer-bottom {
        padding-top: 10px !important; /* Відступ від лінії до тексту копірайту */
        margin-top: 0 !important;
    }
    
    .site-footer .footer-bottom p {
        margin: 0 !important; /* Прибираємо відступи у копірайту, якщо там є <p> */
    }
}
/* =========================================
   ФІКС ХЕДЕРА: ДЕСКТОП ТА МОБІЛЬНИЙ (ФІНАЛ)
   ========================================= */

/* Загальні стилі для номера телефону (під стиль сайту) */
.header-phone {
    color: #1a1a1a !important; /* Темний колір */
    text-decoration: none !important; /* Без підкреслення */
    font-weight: 600 !important; /* Напівжирний */
    font-size: 16px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.header-phone:hover {
    color: #00b4d8 !important; /* Ваш бірюзовий */
}

/* =========================================
   --- ДЕСКТОП ---
   ========================================= */
@media (min-width: 769px) {
    /* Зменшуємо відступи між пунктами меню */
    .header-nav .menu {
        gap: 15px !important; 
    }
    
    /* Забороняємо розривати "Про нас" на 2 рядки */
    .header-nav .menu li a {
        white-space: nowrap !important; 
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Вирівнюємо телефон і кнопку в один ряд */
    .header-contacts {
        display: flex;
        align-items: center;
        gap: 20px; /* Відстань між телефоном і кнопкою */
    }
}

/* =========================================
   --- МОБІЛЬНІ ПРИСТРОЇ (Все в 1 ряд) ---
   ========================================= */
@media (max-width: 768px) {
    /* 1. Налаштовуємо головний контейнер хедера в один рядок */
    .site-header .header-inner {
        display: flex;
        flex-wrap: nowrap !important; /* ЗАБОРОНЯЄМО перенесення на новий рядок */
        justify-content: space-between;
        align-items: center;
        padding: 5px 10px; /* Зменшуємо внутрішні відступи шапки */
        gap: 5px; /* Мінімальна відстань між усіма елементами */
    }

    /* 2. Логотип - трохи зменшуємо */
    .header-logo {
        flex-shrink: 0;
    }
    .header-logo img, .site-logo {
        max-width: 40px !important; /* Зменшіть лого, щоб звільнити місце */
        height: auto;
    }

    /* 3. Блок з контактами (Телефон + Кнопка) */
    .header-contacts {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-direction: row; /* В один рядок */
        align-items: center;
        justify-content: center;
        gap: 8px; /* Мінімальна відстань між тел і кнопкою */
        flex-grow: 1; /* Дозволяємо блоку зайняти весь вільний центр */
        margin: 0 !important; /* Прибираємо відступи з попереднього кроку */
        padding: 0 !important;
    }

    /* 4. Номер телефону - робимо дуже компактним */
    .header-phone {
        font-size: 13px !important; /* Значно зменшуємо шрифт */
        padding: 0 !important;
        margin: 0 !important;
        white-space: nowrap;
    }

    /* 5. Кнопка - зменшуємо розмір та відступи */
    .header-contacts .btn {
        font-size: 11px !important; /* Дрібний шрифт для кнопки */
        padding: 6px 10px !important; /* Робимо кнопку тоншою і коротшою */
        white-space: nowrap;
        line-height: 1;
    }

    /* 6. Бургер - притискаємо вправо */
    .burger {
        flex-shrink: 0;
        margin-left: 0 !important;
        transform: scale(0.8); /* Зменшуємо сам значок бургера на 20% */
    }
    
    /* Скидаємо gap для меню, щоб не ламало бургер */
    .site-header ul {
        gap: 0 !important; 
    }
}
/* =========================================
   СЛАЙДЕРИ: ПРОДУКЦІЯ ТА ПРОЄКТИ
   ========================================= */

/* Контейнер сітки робимо гнучким з можливістю скролу */
.products-grid,
.projects-grid {
    display: flex;
    gap: 20px; /* Відстань між картками (можете змінити) */
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Плавне "прилипання" слайдів */
    scroll-behavior: smooth;
    
    /* Ховаємо стандартну смугу прокрутки (щоб було красиво) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Ховаємо смугу прокрутки в Chrome/Safari */
.products-grid::-webkit-scrollbar,
.projects-grid::-webkit-scrollbar {
    display: none;
}

/* Налаштування самих карток */
.product-item,
.project-item {
    flex-shrink: 0;
    scroll-snap-align: start; /* Щоб картка рівно ставала при скролі */
}

/* --- ДЕСКТОП: 4 картки --- */
@media (min-width: 1024px) {
    .product-item,
    .project-item {
        /* 100% ширини мінус 3 відступи (по 20px), поділено на 4 картки */
        width: calc((100% - 60px) / 4);
    }
}

/* --- ПЛАНШЕТ: 2 картки --- */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-item,
    .project-item {
        width: calc((100% - 20px) / 2);
    }
}

/* --- МОБІЛЬНИЙ: 1 картка --- */
@media (max-width: 767px) {
    .product-item,
    .project-item {
        width: 100%; 
        /* Якщо хочете, щоб збоку трохи виглядала наступна картка (щоб люди розуміли, що можна скролити), 
           замініть 100% на 85% */
    }
}
/* =========================================
   СЛАЙДЕР ПРОДУКЦІЇ ТА СТРІЛКИ
   ========================================= */

/* Контейнер для сітки */
.products-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    /* Ховаємо смугу прокрутки, щоб було акуратно */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.products-grid::-webkit-scrollbar {
    display: none;
}

/* Налаштування карток (на десктопі рівно 4 шт) */
.product-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .product-item {
        /* 100% ширини мінус 3 відступи по 20px, поділено на 4 */
        width: calc((100% - 60px) / 4);
    }
}

@media (max-width: 1023px) {
    .product-item {
        width: calc((100% - 20px) / 2); /* На планшеті по 2 */
    }
}

@media (max-width: 767px) {
    .product-item {
        width: 100%; /* На телефоні по 1 */
    }
}

/* --- СТИЛІ СТРІЛОК --- */
.products-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #00b4d8; /* Ваш фірмовий бірюзовий */
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.products-arrow:hover {
    background-color: #008ba8; /* Трохи темніший при наведенні */
}

/* Розміщуємо стрілки по краях, трохи виступаючи за межі карток */
.products-arrow.prev {
    left: -20px;
}

.products-arrow.next {
    right: -20px;
}

/* Ховаємо стрілки на мобільних телефонах (там скролять пальцем) */
@media (max-width: 768px) {
    .products-arrow {
        display: none !important;
    }
}
/* =========================================
   СЛАЙДЕРИ (SWIPER) - ПРОДУКТИ ТА ПРОЄКТИ
   ========================================= */

/* Картки мають тягнутися по висоті */
.product-item.swiper-slide,
.project-item.swiper-slide {
    height: auto; 
    display: flex;
    flex-direction: column;
}

/* Спільні стилі для всіх стрілок обох секцій */
.products-arrow,
.projects-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #00b4d8; /* Ваш колір */
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.products-arrow:hover,
.projects-arrow:hover { background-color: #008ba8; }

.products-arrow.prev,
.projects-arrow.prev { left: 0; }

.products-arrow.next,
.projects-arrow.next { right: 0; }

@media (max-width: 768px) {
    .products-arrow,
    .projects-arrow { display: none !important; }
}
/* =========================================
   ФІНАЛЬНИЙ ФІКС: СТРІЛКИ ТА ОБРІЗАННЯ СЛАЙДІВ
   ========================================= */

/* 1. Робимо стрілки як у відгуках (прозорий фон, бірюзовий колір) */
.products-arrow,
.projects-arrow {
    background: transparent !important; /* Прибираємо чорний/бірюзовий круглий фон */
    color: #0ea5a4 !important; /* Фірмовий бірюзовий колір */
    font-size: 38px !important; /* Робимо стрілки більшими */
    font-weight: 300 !important; /* Робимо їх тоншими */
    box-shadow: none !important; /* Прибираємо тіні, якщо вони є */
    transition: color 0.3s ease, transform 0.3s ease !important;
}

.products-arrow:hover,
.projects-arrow:hover {
    background: transparent !important;
    color: #0c8c8b !important; /* Трохи темніший при наведенні */
    transform: translateY(-50%) scale(1.1) !important; /* Легке збільшення */
}

/* Розсовуємо стрілки трохи ширше, щоб вони не налізали на фото карток */
.products-arrow.prev,
.projects-arrow.prev { left: -15px !important; }

.products-arrow.next,
.projects-arrow.next { right: -15px !important; }

/* 2. Фікс обрізання слайдів та тіней */
.products-slider.swiper,
.projects-slider.swiper {
    /* Дозволяємо тіням і крайнім слайдам "вилазити" за межі Swiper-контейнера */
    overflow: visible !important; 
    /* Додаємо місце зверху і знизу спеціально для тіней (box-shadow) */
    padding-top: 15px !important;
    padding-bottom: 25px !important;
}

/* 3. Гарантуємо, що сторінка не отримає горизонтального скролу */
section.products,
section.projects {
    overflow: hidden !important; 
    position: relative;
}
/* =========================================
   ПРИМУСОВИЙ ФІКС ДЛЯ 4 СЛАЙДІВ (ДЕСКТОП)
   ========================================= */

/* 1. Знищуємо старий Grid, щоб Swiper міг поставити картки в один нескінченний рядок */
.products-grid.swiper-wrapper,
.projects-grid.swiper-wrapper {
    display: flex !important;
    grid-template-columns: none !important; 
    flex-wrap: nowrap !important;
    gap: 0 !important; /* Відступи між слайдами тепер розраховує JS Swiper */
}

/* 2. Очищаємо параметри карток на десктопі, щоб вони на 100% слухалися JS */
@media (min-width: 769px) {
    .product-item.swiper-slide,
    .project-item.swiper-slide {
        flex-shrink: 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        /* ВАЖЛИВО: ми спеціально НЕ пишемо тут ширину (width), 
           щоб Swiper міг сам прописати ідеальні 25% кожній картці */
    }
}
/* =========================================
   ФІКС КНОПОК ДЛЯ PAGESPEED ТА ЮЗАБІЛІТІ
   ========================================= */

/* 1. Глобальна вимога Google: мінімальна висота для зручного тапу пальцем (48px) */
.btn, 
.btn-primary, 
.header-cta, 
.hero-actions .btn, 
.products .product-item .btn, 
.simple-cta-form button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important; /* Стандарт PageSpeed */
    box-sizing: border-box !important;
}

/* 2. Фікс кнопки в хедері на мобільних пристроях */
@media (max-width: 768px) {
    .header-contacts .btn, 
    .header-cta {
        min-height: 44px !important; /* Робимо достатньо високою, але щоб влізла в шапку */
        padding: 0 16px !important;
        font-size: 14px !important;
        width: auto !important;
    }
    
    /* 3. Кнопки в товарах на мобільному (на всю ширину для зручності) */
    .products .product-item .btn {
        width: 100% !important;
        min-height: 50px !important; /* Велика зручна кнопка */
        margin-top: 15px !important;
    }

    /* 4. Кнопка у формі підвалу */
    .simple-cta-form button {
        width: 100% !important;
    }
}
/* Ховаємо стандартні віджети підвалу WordPress */
.widget-area, 
.footer-widgets, 
.site-info {
    display: none !important;
}
 /*
 Theme Name: Metal Ceiling Landing
 Author: Your Name
 Version: 1.0
 Description: Landing page для металевих підвісних стель
 */
.hero {
    position: relative;
    padding: 10px 0;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero-inner {
    max-width: 700px;
}

.hero-title {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 700;
    padding: 5px;
}

.hero-subtitle {
    margin-top: 10px;
    font-size: 18px;
    opacity: 0.9;
    padding: 5px;
}

.hero-actions {
    margin-top: 5px;
}




.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    font-weight: 700;
}



/* Стилі картки */
.adv-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.adv-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.adv-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.adv-text {
    margin-top: 15px;
    font-weight: 500;
}



/* Адаптив для мобільних */

.products {
    padding: 20px 0;
}


/*.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}*/

.product-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.product-name {
    margin-top: 15px;
    font-size: 20px;
    font-weight: 700;
}

.product-desc {
    margin-top: 10px;
    font-size: 16px;
    opacity: 0.8;
}

.product-item .btn {
    margin-top: 20px;
}
.projects {
    padding: 80px 0;
    background: #f9f9f9;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-info {
    padding: 20px;
}

.project-type {
    font-weight: 700;
    margin-bottom: 8px;
}

.project-area,
.project-system {
    font-size: 14px;
    opacity: 0.8;
}
.faq {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.faq-question {
    font-weight: 700;
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    font-weight: 700;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    display: none;
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    display: block;
}
.cta {
    padding: 80px 0;
    background: #222;
    color: #fff;
    text-align: center;
}

.cta-subtitle {
    margin-top: 15px;
    margin-bottom: 40px;
    font-size: 18px;
    opacity: 0.9;
}


.simple-cta-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.simple-cta-form input {
    padding: 12px 15px;
    border-radius: 8px;
    border: none;
    width: 250px;
    max-width: 100%;
}

.simple-cta-form button {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}
/* Контейнер хедера */
.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 2px 0;
}

/* Логотип */
.header-logo a,
.header-logo img {
    display: block;
    max-height: 50px;
}

/* Меню */
.header-nav ul.menu {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-nav ul.menu li a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: color 0.3s;
}

.header-nav ul.menu li a:hover {
    color: #007BFF;
}

/* Контакти */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 3px;
    background: #000;
    border-radius: 2px;
}

/* Адаптив для мобільних */
@media (max-width: 768px) {
    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        display: none;
        flex-direction: column;
        padding: 15px 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .header-nav.active {
        display: flex;
    }
    .header-nav ul.menu {
        flex-direction: column;
        gap: 15px;
    }
    .burger {
        display: flex;
    }
}   
   /* ==========================
   3. Header
   ========================== */

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
    
  backdrop-filter: blur(100px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo{
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img{
  height: 42px;
  width: auto;
}

.logo-title{
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 16px;
  line-height: 1;
}

.header-nav{
  display: flex;
  align-items: center;
  gap: 26px;
}

.header-nav a{
  font-size: 14px;
  color: var(--muted);
  padding: 10px 6px;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}

.header-nav a:hover{
  color: var(--text);
}

.header-nav .is-active{
  color: var(--text);
}

.header-contacts{
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-contacts .phone{
  font-weight: 600;
  color: var(--text);
}

.header-cta{
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,191,166,0.35);
  color: var(--text);
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}

.header-cta:hover{
  transform: translateY(-1px);
}
/* ==========================
   8. Responsive
   ========================== */

@media (max-width: 1100px){
  .hero-grid{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 700px){
  .header-nav{ display: none; }
  .header-contacts{ display: none; }

  .header-inner{
    justify-content: space-between;
  }
}
/* ===== HEADER MENU FIX ===== */

.site-header {
  top: 0;
  z-index: 1000;
  
  backdrop-filter: blur(6px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

/* NAV */
.main-nav {
  margin-left: auto;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;

  margin: 0;
  padding: 0;
  list-style: none; /* ← головне */
}

.main-nav__list li {
  margin: 0;
  padding: 0;
}

.main-nav__list a {
  display: inline-block;
  padding: 6px 0;

  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;

  transition: color 0.2s ease;
}

.main-nav__list a:hover {
  color: #6ddccf;
}

/* Active menu item */
.main-nav__list .is-active > a {
  color: #6ddccf;
}

/* LOGO */
.logo img {
  max-height: 42px;
  width: auto;
  display: block;
}
/* ===== BURGER ===== */

.burger {
  display: none;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .main-nav {
    position: fixed;
    top: 72px; /* висота хедера */
    left: 0;
    width: 100%;
    background: rgba(10, 20, 22, 0.98);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
  }

  .main-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .main-nav__list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .main-nav__list a {
    padding: 16px;
    display: block;
  }
}

/* ===== BURGER ANIMATION ===== */

.burger.is-active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
}

.burger.is-active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
    .product-item .btn {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
        
    }}

    
    /* ===== Buttons ===== */

.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 20px;

    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #007BFF, #00bcd4);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.25);
    
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 123, 255, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}
    /* ===== FIX BUTTON DESKTOP ===== */

.products .product-item .btn,
.products .product-item button {
    display: inline-block;
    padding: 12px 26px !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer;

    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none;

    background: linear-gradient(135deg, #007BFF, #00bcd4) !important;
    color: #fff !important;

    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.25);
    transition: all 0.25s ease;
}

.products .product-item .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 123, 255, 0.35);
}
    /* ===== PRODUCTS BUTTON HARD FIX ===== */

.products .product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.products .product-item .btn,
.products .product-item button {
    margin-top: 18px;

    padding: 14px 28px !important;
    min-width: 160px;

    border-radius: 12px !important;
    border: none !important;

    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    background: #0ea5a4 !important;
    color: #fff !important;

    cursor: pointer;
    transition: all 0.25s ease;

    box-shadow: 0 8px 20px rgba(14,165,164,0.25);
}

.products .product-item .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(14,165,164,0.35);
}
    /* ===== PRODUCTS BUTTON HARD FIX ===== */

.products .product-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Розтягує контент по вертикалі */
    height: 100%; /* Щоб flex працював по всій висоті картки */
}


.product-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.products .product-item .btn,
.products .product-item button {
    margin-top: 18px;

    padding: 14px 28px !important;
    min-width: 160px;

    border-radius: 12px !important;
    border: none !important;

    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    background: #0ea5a4 !important;
    color: #fff !important;

    cursor: pointer;
    transition: all 0.25s ease;

    box-shadow: 0 8px 20px rgba(14,165,164,0.25);
}

.products .product-item .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(14,165,164,0.35);
}

/* Desktop — звичайна сітка */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* Mobile slider */
@media (max-width: 768px) {

    .projects-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .projects-grid {
        display: flex;
        gap: 16px;
        scroll-snap-type: x mandatory;
    }

    .project-item {
        min-width: 85%;
        flex: 0 0 85%;
        scroll-snap-align: start;
    }

    /* прибрати скролбар (опціонально) */
    .projects-slider::-webkit-scrollbar {
        display: none;
    }
}
.projects-slider {
    position: relative;
}

.projects-arrow {
    display: none;
}

@media (max-width: 768px) {

    .projects-slider {
        overflow: hidden;
    }

    .projects-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-behavior: smooth;
    }

    .project-item {
        min-width: 100%;
        flex: 0 0 100%;
    }

    .projects-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: #000;
        color: #fff;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
        opacity: 0.8;
    }

    .projects-arrow.prev {
        left: 10px;
    }

    .projects-arrow.next {
        right: 10px;
    }
}
@media (max-width: 768px) {

    .projects-grid {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 16px;
    }

    .project-item {
        min-width: 100%;
        flex: 0 0 100%;
    }

}

/* ==========================
   PRODUCTS
   ========================== */

.products {
    padding: 20px 0;
}

/* Desktop grid — без змін */
/*.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}*/

.product-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.product-name {
    margin-top: 15px;
    font-size: 20px;
    font-weight: 700;
}

.product-desc {
    margin-top: 10px;
    font-size: 16px;
    opacity: 0.8;
}

.products .product-item .btn {
    margin-top: 18px;

    padding: 14px 28px;
    min-width: 160px;

    border-radius: 12px;
    border: none;

    font-size: 15px;
    font-weight: 600;
    line-height: 1;

    background: #0ea5a4;
    color: #fff;

    cursor: pointer;
    transition: all 0.25s ease;

    box-shadow: 0 8px 20px rgba(14,165,164,0.25);
}

.products .product-item .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(14,165,164,0.35);
}



/* ==========================
   REVIEWS
   ========================== */

.reviews {
    padding: 80px 0;
    background: #f9f9f9;
}

.reviews__title {
    margin-bottom: 50px;
}

/* Desktop grid (якщо раптом без слайдера) */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Slider wrapper */
.reviews-slider-wrapper {
    position: relative;
}

/* Якщо використовується Swiper */
.reviews-slider {
    width: 100%;
}

.reviews-slider .swiper-wrapper {
    align-items: stretch;
}

.review-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Фото */
.review-card__img {
    margin-bottom: 20px;
}

.review-card__photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
}

/* Ім'я */
.review-card__name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Текст */
.review-card__text {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.85;
}

/* Pagination */
.reviews-slider .swiper-pagination-bullet {
    background: #0ea5a4;
    opacity: 0.4;
}

.reviews-slider .swiper-pagination-bullet-active {
    opacity: 1;
}


/* ABOUT SECTION */

.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about__inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about__image {
    flex: 1;
}

.about__image img {
    width: 50%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.about__content {
    flex: 1;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 600;
}

.about__text {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* Tablet */
@media (max-width: 992px) {
    .about__inner {
        flex-direction: column;
        gap: 40px;
    }

    .section-title {
        font-size: 28px;
    }

    .about__text {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .about {
        padding: 70px 0;
    }
}
/* STEPS SECTION */

.steps {
    padding: 100px 0;
    background: #ffffff;
}

.section-title--center {
    text-align: center;
    margin-bottom: 60px;
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.steps__card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.steps__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.steps__number {
    font-size: 48px;
    font-weight: 700;
    color: #e6e6e6;
    position: absolute;
    top: 20px;
    right: 25px;
    pointer-events: none;
}

.steps__icon {
    margin-bottom: 20px;
}

.steps__icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.steps__card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.steps__card-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Tablet */
@media (max-width: 992px) {
    .steps__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .steps {
        padding: 70px 0;
    }

    .steps__grid {
        grid-template-columns: 1fr;
    }

    .steps__number {
        font-size: 36px;
    }
}
/* ===== SWIPER FIX ===== */

.reviews-slider{
    overflow: hidden;
}

.reviews-slider .swiper-wrapper{
    display: flex;
    align-items: stretch;
}

.reviews-slider .swiper-slide{
    height: auto;
    box-sizing: border-box;
}
/* Mobile slider */
@media (max-width: 768px) {

    .products-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .products-grid {
        display: flex;
        gap: 16px;
        scroll-snap-type: x mandatory;
    }

    .product-item {
        min-width: 85%;
        flex: 0 0 85%;
        scroll-snap-align: start;
    }

    /* прибрати скролбар (опціонально) */
    .products-slider::-webkit-scrollbar {
        display: none;
    }
}
.products-slider {
    position: relative;
}

.products-arrow {
    display: none;
}

@media (max-width: 768px) {

    .products-slider {
        overflow: hidden;
    }

    .products-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-behavior: smooth;
    }

    .product-item {
        min-width: 100%;
        flex: 0 0 100%;
    }

    .products-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: #000;
        color: #fff;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
        opacity: 0.8;
    }

    .products-arrow.prev {
        left: 10px;
    }

    .products-arrow.next {
        right: 10px;
    }
}
@media (max-width: 768px) {

    .products-grid {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 16px;
    }

    .product-item {
        min-width: 100%;
        flex: 0 0 100%;
    }

}
/* ===== PRODUCTS MOBILE SLIDER FIX ===== */

@media (max-width: 768px) {

    .products-slider {
        position: relative;
        overflow: hidden;
    }

    .products-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .product-item {
        min-width: 100%;
        flex: 0 0 100%;
    }

    /* прибрати скролбар */
    .products-grid::-webkit-scrollbar {
        display: none;
    }

    /* стрілки */
    .products-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: #000;
        color: #fff;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
        opacity: 0.8;
    }

    .products-arrow.prev {
        left: 10px;
    }

    .products-arrow.next {
        right: 10px;
    }

}
/* =========================================
   ФІКСИ ДИЗАЙНУ ТА ВЕРСТКИ (Додано в кінець)
   ========================================= */

/* 1. Обмеження ширини контенту (щоб не розтягувалося на великих моніторах) */
.header-inner, .header__inner,
.hero-inner,
.products, .projects, 
.steps, .reviews, .about__inner,
.faq-list, .simple-cta-form {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Оскільки секції мають padding, перепризначаємо грід-контейнерам 100% ширини всередині них */
.products-grid, 
.projects-grid, .steps__grid {
    width: 100%;
}

/* 2. Фікс секції "Про нас" (прибираємо "дірку" між фото і текстом) */
.about__image img {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Додаємо легку тінь для об'єму */
}
.about__inner {
    gap: 40px;
    justify-content: space-between;
}

/* 3. Фікс хедера (щоб не зливався з текстом при скролі) */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.main-nav__list a, .header-nav a {
    color: #222 !important; /* Темний текст на світлому фоні */
}
.main-nav__list a:hover, .header-nav a:hover, 
.main-nav__list .is-active > a {
    color: #0ea5a4 !important; /* Бірюзовий акцент при наведенні */
}
.burger span {
    background: #222 !important;
}

/* 4. Фікс стрілок слайдера "Відгуки" */
.reviews-slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 50px; /* Залишаємо місце для стрілок з боків */
}
.swiper-button-next, .swiper-button-prev {
    color: #0ea5a4 !important; /* Перефарбовуємо стрілки у фірмовий колір */
}

/* 5. Уніфікація стилю всіх кнопок і очищення конфліктів */
.btn, .btn-primary, .products .product-item .btn, button {
    background: #0ea5a4 !important; /* Єдиний бірюзовий колір */
    color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 20px rgba(14,165,164,0.25) !important;
    transition: all 0.3s ease !important;
}
.btn:hover, .btn-primary:hover, .products .product-item .btn:hover, button:hover {
    background: #0c8c8b !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 25px rgba(14,165,164,0.35) !important;
}

/* 6. Естетичні правки карток (щоб картинки не вилазили за межі блоку) */
.product-image img, .project-image img {
    border-radius: 8px; 
}
.hero-title {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Щоб заголовок краще читався на фоні */
}
/* =========================================
   ПОВНА УНІФІКАЦІЯ СТИЛЮ ВСІХ КНОПОК
   (Хедер, Hero, Товари)
   ========================================= */

.header-cta, 
.hero-actions .btn, 
.hero-actions a,
.btn {
    /* Розміри та вирівнювання (як у товарів) */
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 14px 28px !important;
    min-width: 160px !important;
    
    /* Форма та рамки */
    border-radius: 12px !important;
    border: none !important;
    
    /* Типографіка */
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    
    /* Кольори (бірюзовий з товарів) */
    background: #0ea5a4 !important;
    color: #fff !important;
    
    /* Тіні та анімація */
    box-shadow: 0 8px 20px rgba(14,165,164,0.25) !important;
    transition: all 0.25s ease !important;
    cursor: pointer;
}

/* Ефект при наведенні (Hover) */
.header-cta:hover, 
.hero-actions .btn:hover, 
.hero-actions a:hover,
.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 26px rgba(14,165,164,0.35) !important;
    background: #0c8c8b !important; /* Трохи темніший бірюзовий */
    color: #fff !important;
}

/* Зменшуємо кнопку хедера тільки для мобільних, щоб вона влізла в екран */
@media (max-width: 576px) {
    .header-cta {
        min-width: auto !important;
        padding: 10px 18px !important;
        font-size: 14px !important;
    }
}
/* =========================================
   ФІКС КАРТОК "НАША ПРОДУКЦІЯ" (МОБІЛЬНА ВЕРСІЯ)
   ========================================= */

/* 1. Відділяємо білу картку від білого фону (рамка + постійна тінь) */
.product-item {
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* 2. Прибираємо відступ кнопки, через який вона з'їжджала вправо */
.products .product-item .btn,
.products .product-item button {
    margin-left: 0 !important; 
    margin-right: 0 !important;
}

@media (max-width: 768px) {
    .products-grid {
        /* Додаємо відступи, щоб тіні карток не обрізалися контейнером при скролі */
        padding: 15px 5px 30px 5px;
    }

    .product-item {
        /* Ставимо 85% замість 100%, щоб користувач бачив шматочок наступної картки (підказка про свайп) */
        min-width: 85%;
        flex: 0 0 85%;
        scroll-snap-align: center; /* Центруємо активну картку */
    }

    .product-image img {
        /* Робимо фото на всю ширину картки без "дірок" з боків */
        width: 100%;
        height: 240px; /* Фіксуємо висоту, щоб усі картки були рівними */
        max-height: none;
        object-fit: cover; /* Заповнюємо весь простір блоку */
        border-radius: 8px; /* Додаємо акуратні кути для самого фото */
    }
}
/* =========================================
   ФІКС БУРГЕРА ТА ФОРМИ CTA (МОБІЛЬНА ВЕРСІЯ)
   ========================================= */

/* 1. Прибираємо зелений фон, тінь та відступи у бургера (перебиваємо глобальний стиль button) */
button.burger {
    background: transparent !important;
    box-shadow: none !important;
    min-width: auto !important; 
    padding: 0 !important;
}

@media (max-width: 768px) {
    /* 2. Розтягуємо секцію CTA від краю до краю екрану, ігноруючи батьківські контейнери */
    .cta {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-left: 20px !important; /* Щоб поля вводу не прилипали до самих країв телефону */
        padding-right: 20px !important;
        border-radius: 0 !important; 
        box-sizing: border-box !important;
    }
}
/* =========================================
   ФІКС: РОЗТЯГУЄМО HERO ТА CTA НА ВСЮ ШИРИНУ
   ========================================= */

/* Витягуємо секції за межі контейнерів від краю до краю (Desktop + Mobile) */
.hero, 
.cta {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box !important;
    border-radius: 0 !important; /* Прибираємо кути, якщо вони були */
}

/* Переконуємось, що контент всередині не прилипає до самих країв */
.hero {
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-top: 0 !important; /* Прибираємо можливий білий відступ зверху */
}

.cta {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Косметичний фікс для мобілки (цифри в hero) */

    
    /* Вирівнюємо тексти по одній лінії (прибираємо зайві внутрішні відступи) */
    .hero-title, 
    .hero-subtitle {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* =========================================
   POPUP CALCULATOR
   ========================================= */

.calc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 20, 22, 0.85); /* Темний фон з прозорістю */
    backdrop-filter: blur(5px);
    z-index: 9999;
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;

    /* Сховано за замовчуванням */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.calc-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.calc-popup-modal {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    
    /* Анімація появи знизу */
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.calc-popup-overlay.is-active .calc-popup-modal {
    transform: translateY(0) scale(1);
}

/* Кнопка закриття (Хрестик) */
.calc-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #f0f0f0 !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-width: auto !important;
}

.calc-popup-close:hover {
    background: #e0e0e0 !important;
    transform: rotate(90deg) !important;
}

.calc-popup-close span {
    position: absolute;
    width: 14px;
    height: 2px;
    background: #222;
    border-radius: 2px;
}

.calc-popup-close span:nth-child(1) { transform: rotate(45deg); }
.calc-popup-close span:nth-child(2) { transform: rotate(-45deg); }

/* Тексти */
.calc-popup-header {
    text-align: center;
    margin-bottom: 25px;
}

.calc-popup-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.calc-popup-header p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

/* Форма */
.calc-popup-form .form-group {
    margin-bottom: 15px;
}

.calc-popup-form input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    transition: 0.3s ease;
    font-family: inherit;
}

.calc-popup-form input:focus {/* =========================================
   ОБ'ЄДНАНИЙ ФІКС КАРТОК ТОВАРІВ (ДЕСКТОП + МОБІЛЬНА)
   ========================================= */

/* --- 1. Глобальні стилі (для всіх екранів) --- */
.product-item {
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Центруємо кнопку на всіх екранах (прибираємо старий відступ зліва) */
.products .product-item .btn,
.products .product-item button {
    margin-left: 0 !important; 
    margin-right: 0 !important;
}

/* --- 2. Мобільна версія (Edge-to-Edge дизайн) --- */
@media (max-width: 768px) {
    .products-grid {
        padding: 10px 5px 30px 5px !important;
        gap: 16px !important;
    }

    .product-item {
        min-width: 82% !important; /* Видно шматочок наступної картки */
        flex: 0 0 82% !important;
        padding: 0 0 25px 0 !important; /* Забираємо відступи, щоб фото торкалося країв */
        overflow: hidden !important;
        text-align: left !important;
    }

    .product-image {
        width: 100% !important;
        margin-bottom: 15px !important;
        padding: 0 !important;
    }

    .product-image img {
        width: 100% !important;
        height: 240px !important;
        max-height: none !important;
        object-fit: cover !important; /* Заповнює простір, обрізаючи зайве */
        border-radius: 0 !important; 
    }

    /* Повертаємо відступи для тексту */
    .product-name, 
    .product-desc {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .product-name {
        margin-bottom: 8px !important;
    }

    /* Розтягуємо кнопку для зручного тапу */
    .products .product-item .btn,
    .products .product-item button {
        margin-top: 15px !important;
        width: calc(100% - 40px) !important;
        display: flex !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
    outline: none;
    border-color: #0ea5a4;
    box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.1);
}

.calc-popup-form .btn {
    width: 100%;
    margin: 10px 0 0 0 !important; /* Перебиваємо глобальний margin */
}
/* CSS фікс для розміру логотипу */
.header-logo .site-logo {
    display: block;
    max-width: 200px; /* <--- Змініть це значення на потрібну вам максимальну ширину */
    width: auto;
    height: auto; /* Обов’язково: зберігає пропорції, щоб лого не розтягувалося */
    
    /* За бажанням: можна додати обмеження по висоті, якщо лого вертикальне */
    /* max-height: 80px; */
}
/* =========================================
   СТИЛІ ФУТЕРА (SITE FOOTER)
   ========================================= */

.site-footer {
    background-color: #1a1a1a; /* Темний фон футера */
    color: #e0e0e0;
    padding: 60px 0 20px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
}

/* Обмежувач ширини */
.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Розташування колонок */
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

/* Логотип */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 180px; /* Обмеження розміру лого в футері */
    height: auto;
    display: block;
}

.footer-logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}

/* Текст та Контакти */
.footer-address {
    color: #a0a0a0;
    margin-bottom: 15px;
}

.footer-contacts a {
    display: block;
    color: #a0a0a0;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    font-weight: 500;
}

/* Колір при наведенні (бірюзовий, як ваші кнопки) */
.footer-contacts a:hover,
.footer-menu li a:hover {
    color: #00b4d8; /* Замініть на ваш точний HEX колір кнопок, якщо він відрізняється */
}

/* Навігація */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Нижній рядок (Копірайт) */
.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #777777;
}

/* =========================================
   АДАПТИВНІСТЬ (МОБІЛЬНІ ПРИСТРОЇ)
   ========================================= */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-logo img {
        margin: 0 auto 15px; /* Відцентрувати лого на мобільному */
    }
    
    .footer-menu {
        align-items: center;
    }
}
/* =========================================
   ОНОВЛЕНИЙ ФУТЕР (На всю ширину + Компактний)
   ========================================= */

/* 1. Прибираємо стандартні відступи браузера (якщо вони є) */
body {
    margin: 0; 
    overflow-x: hidden; /* Запобігає появі горизонтального скролу */
}

/* 2. Розтягуємо футер на 100% екрана та зменшуємо висоту */
.site-footer {
    background-color: #1a1a1a; /* Темний фон */
    color: #e0e0e0;
    padding: 30px 0 15px; /* Зменшено висоту: було 60px, стало 30px */
    font-size: 14px; /* Зменшено розмір тексту для акуратності */
    
    /* Хак: примусово розтягує фон на весь екран, навіть якщо футер у вузькому контейнері */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
}

/* 3. Вирівнюємо контент в один ряд */
.site-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto 20px; /* Зменшено відступ до копірайту */
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center; /* Центрує блоки по вертикалі */
    gap: 20px;
}

.site-footer .footer-col {
    flex: 1;
    min-width: 200px;
}

/* Логотип та адреса (Ліва колонка) */
.site-footer .footer-logo {
    margin-bottom: 8px;
}

.site-footer .footer-logo img {
    max-width: 140px; /* Зменшено логотип */
    height: auto;
    display: block;
}

.site-footer .footer-address {
    color: #a0a0a0;
    line-height: 1.4;
}

/* Контакти (Центральна колонка) */
.site-footer .footer-contacts {
    text-align: center; /* Розміщуємо контакти по центру */
}

.site-footer .footer-contacts a {
    display: inline-block;
    color: #a0a0a0;
    text-decoration: none;
    margin: 0 10px; /* Контакти тепер в рядок, а не один під одним */
    transition: color 0.3s ease;
    font-weight: 500;
}

/* Навігація (Права колонка) */
.site-footer .footer-nav {
    display: flex;
    justify-content: flex-end; /* Притискаємо меню вправо */
}

.site-footer .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row; /* МЕНЮ ГОРИЗОНТАЛЬНО (дуже економить висоту) */
    flex-wrap: wrap;
    gap: 20px;
}

.site-footer .footer-menu li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Колір при наведенні (бірюзовий) */
.site-footer .footer-contacts a:hover,
.site-footer .footer-menu li a:hover {
    color: #00b4d8; 
}

/* Нижній рядок (Копірайт) */
.site-footer .footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #777777;
}

/* =========================================
   АДАПТИВНІСТЬ (МОБІЛЬНІ ПРИСТРОЇ)
   ========================================= */
@media (max-width: 768px) {
    .site-footer .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .site-footer .footer-logo img {
        margin: 0 auto 10px;
    }

    .site-footer .footer-contacts a {
        display: block;
        margin: 8px 0; /* На мобільному повертаємо контакти в стовпчик */
    }
    
    .site-footer .footer-nav {
        justify-content: center;
    }

    .site-footer .footer-menu {
        justify-content: center;
    }
}
/* =========================================
   ФУТЕР: ДЕСКТОП (Рівномірно по всій ширині)
   ========================================= */
.site-footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 20px 0 10px;
    font-size: 14px;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 !important;
}

/* Контейнер на всю ширину */
.site-footer .footer-inner {
    display: flex;
    flex-direction: row;
    align-items: center; 
    margin-bottom: 15px;
    flex-wrap: wrap; 
}

/* Кожна з 3 колонок тепер займає РІВНО 1/3 ширини (33.333%) */
.site-footer .footer-col {
    flex: 1;
    margin: 0;
    display: flex; /* Робимо колонки flex-контейнерами для вирівнювання всередині */
}

/* 1. Ліва частина (Адреса) - притискаємо вліво */
.site-footer .footer-info {
    justify-content: flex-start;
}

.site-footer .footer-address {
    color: #a0a0a0;
    white-space: nowrap;
}

/* 2. Центральна частина (Контакти) - ідеально по центру екрана */
.site-footer .footer-contacts {
    justify-content: center; /* Вирівнює контакти по центру своєї третини */
    gap: 30px; 
    align-items: center;
}

/* 3. Права частина (Навігація) - притискаємо вправо */
.site-footer .footer-nav {
    justify-content: flex-end;
}

.site-footer .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px; 
}

/* Загальні стилі посилань */
.site-footer a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap; 
}

.site-footer a:hover {
    color: #00b4d8; 
}

/* Копірайт по центру під лінією */
.site-footer .footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 10px;
    text-align: center;
    font-size: 12px;
    color: #777777;
}

/* =========================================
   ФУТЕР: ПЛАНШЕТИ (Коли місця стає мало)
   ========================================= */
@media (max-width: 992px) {
    .site-footer .footer-col {
        flex: auto; /* Скасовуємо 33% для планшетів, щоб текст не наїжджав */
    }
    .site-footer .footer-inner {
        justify-content: space-between;
        gap: 20px;
    }
}

/* =========================================
   ФУТЕР: МОБІЛЬНІ (Акуратний стовпчик)
   ========================================= */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 15px; 
    }
    
    .site-footer .footer-inner {
        flex-direction: column; 
        text-align: center;
        gap: 25px; 
    }

    .site-footer .footer-col {
        justify-content: center; /* Центруємо всі елементи колонок */
        width: 100%;
    }

    .site-footer .footer-address {
        white-space: normal; 
        line-height: 1.5;
    }

    .site-footer .footer-contacts {
        flex-direction: column; 
        gap: 15px;
    }

    .site-footer .footer-contacts a {
        display: inline-block;
        font-size: 16px; 
        padding: 5px 0;  
    }

    .site-footer .footer-menu {
        flex-wrap: wrap; 
        justify-content: center;
        gap: 15px;
    }
}
/* =========================================
   ФУТЕР: ДЕСКТОП (3 рівні елементи)
   ========================================= */
.site-footer {
    background-color: #1a1a1a;
    color: #a0a0a0;
    padding: 15px 20px 10px; /* Мінімальні відступи (вузький футер) */
    font-size: 15px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(100vw + 100%);
    box-sizing: border-box;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Розподіляємо 3 блоки: по краях та рівно по центру */
.site-footer .footer-inner {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 15px;
    flex-wrap: wrap; 
}

/* Кожен елемент отримує рівну частку простору */
.site-footer .footer-item {
    flex: 1;
    white-space: nowrap; /* Забороняємо перенесення рядків */
}

/* Вирівнювання тексту всередині колонок */
.site-footer .footer-address {
    text-align: left; /* Адреса чітко зліва */
}

.site-footer .footer-phone {
    text-align: center; /* Телефон ідеально по центру */
}

.site-footer .footer-email {
    text-align: right; /* Пошта чітко справа */
}

/* Стилі посилань */
.site-footer a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #00b4d8; 
}

/* Копірайт */
.site-footer .footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 10px;
    text-align: center;
    font-size: 13px;
    color: #777777;
}

/* =========================================
   ФУТЕР: МОБІЛЬНІ (Акуратний стовпчик)
   ========================================= */
@media (max-width: 768px) {
    .site-footer {
        padding: 20px 0 10px; 
    }
    
    .site-footer .footer-inner {
        flex-direction: column; 
        gap: 15px; /* Відстань між елементами */
    }

    /* На мобільному скасовуємо вирівнювання по краях і центруємо все */
    .site-footer .footer-address,
    .site-footer .footer-phone,
    .site-footer .footer-email {
        text-align: center; 
        white-space: normal; 
    }
    
    .site-footer .footer-item a {
        display: block;
        padding: 5px 0; /* Збільшуємо зону для натискання пальцем */
    }
}
/* =========================================
   ФУТЕР: ПЛАНШЕТИ
   ========================================= */
@media (max-width: 992px) {
    .site-footer .footer-col {
        flex: auto; /* Дозволяємо колонкам стискатися */
    }
}

/* =========================================
   ФУТЕР: МОБІЛЬНІ (Максимально стиснутий)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Загальні відступи самого футера (зверху і знизу) */
    .site-footer {
        padding: 15px 0 10px !important; 
    }
    
    /* 2. Контейнер з трьома елементами */
    .site-footer .footer-inner {
        flex-direction: column; 
        gap: 8px !important; /* Дуже маленька відстань між рядками */
        margin-bottom: 10px !important; /* Відступ до лінії копірайту */
    }

    /* 3. Вбиваємо стандартні відступи WordPress (якщо він додав тег <p> до адреси) */
    .site-footer .footer-address p,
    .site-footer .footer-address {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }

    /* 4. Центруємо все */
    .site-footer .footer-address,
    .site-footer .footer-phone,
    .site-footer .footer-email {
        text-align: center; 
    }
    
    /* 5. Робимо посилання компактнішими по висоті */
    .site-footer .footer-item a {
        display: inline-block !important; /* inline-block займає менше місця по висоті, ніж block */
        padding: 2px 0 !important; 
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    /* 6. Лінія та копірайт */
    .site-footer .footer-bottom {
        padding-top: 10px !important; /* Відступ від лінії до тексту копірайту */
        margin-top: 0 !important;
    }
    
    .site-footer .footer-bottom p {
        margin: 0 !important; /* Прибираємо відступи у копірайту, якщо там є <p> */
    }
}
/* =========================================
   ФІКС ХЕДЕРА: ДЕСКТОП ТА МОБІЛЬНИЙ (ФІНАЛ)
   ========================================= */

/* Загальні стилі для номера телефону (під стиль сайту) */
.header-phone {
    color: #1a1a1a !important; /* Темний колір */
    text-decoration: none !important; /* Без підкреслення */
    font-weight: 600 !important; /* Напівжирний */
    font-size: 16px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.header-phone:hover {
    color: #00b4d8 !important; /* Ваш бірюзовий */
}

/* =========================================
   --- ДЕСКТОП ---
   ========================================= */
@media (min-width: 769px) {
    /* Зменшуємо відступи між пунктами меню */
    .header-nav .menu {
        gap: 15px !important; 
    }
    
    /* Забороняємо розривати "Про нас" на 2 рядки */
    .header-nav .menu li a {
        white-space: nowrap !important; 
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Вирівнюємо телефон і кнопку в один ряд */
    .header-contacts {
        display: flex;
        align-items: center;
        gap: 20px; /* Відстань між телефоном і кнопкою */
    }
}

/* =========================================
   --- МОБІЛЬНІ ПРИСТРОЇ (Все в 1 ряд) ---
   ========================================= */
@media (max-width: 768px) {
    /* 1. Налаштовуємо головний контейнер хедера в один рядок */
    .site-header .header-inner {
        display: flex;
        flex-wrap: nowrap !important; /* ЗАБОРОНЯЄМО перенесення на новий рядок */
        justify-content: space-between;
        align-items: center;
        padding: 5px 10px; /* Зменшуємо внутрішні відступи шапки */
        gap: 5px; /* Мінімальна відстань між усіма елементами */
    }

    /* 2. Логотип - трохи зменшуємо */
    .header-logo {
        flex-shrink: 0;
    }
    .header-logo img, .site-logo {
        max-width: 40px !important; /* Зменшіть лого, щоб звільнити місце */
        height: auto;
    }

    /* 3. Блок з контактами (Телефон + Кнопка) */
    .header-contacts {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-direction: row; /* В один рядок */
        align-items: center;
        justify-content: center;
        gap: 8px; /* Мінімальна відстань між тел і кнопкою */
        flex-grow: 1; /* Дозволяємо блоку зайняти весь вільний центр */
        margin: 0 !important; /* Прибираємо відступи з попереднього кроку */
        padding: 0 !important;
    }

    /* 4. Номер телефону - робимо дуже компактним */
    .header-phone {
        font-size: 13px !important; /* Значно зменшуємо шрифт */
        padding: 0 !important;
        margin: 0 !important;
        white-space: nowrap;
    }

    /* 5. Кнопка - зменшуємо розмір та відступи */
    .header-contacts .btn {
        font-size: 11px !important; /* Дрібний шрифт для кнопки */
        padding: 6px 10px !important; /* Робимо кнопку тоншою і коротшою */
        white-space: nowrap;
        line-height: 1;
    }

    /* 6. Бургер - притискаємо вправо */
    .burger {
        flex-shrink: 0;
        margin-left: 0 !important;
        transform: scale(0.8); /* Зменшуємо сам значок бургера на 20% */
    }
    
    /* Скидаємо gap для меню, щоб не ламало бургер */
    .site-header ul {
        gap: 0 !important; 
    }
}
/* =========================================
   СЛАЙДЕРИ: ПРОДУКЦІЯ ТА ПРОЄКТИ
   ========================================= */

/* Контейнер сітки робимо гнучким з можливістю скролу */
.products-grid,
.projects-grid {
    display: flex;
    gap: 20px; /* Відстань між картками (можете змінити) */
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Плавне "прилипання" слайдів */
    scroll-behavior: smooth;
    
    /* Ховаємо стандартну смугу прокрутки (щоб було красиво) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Ховаємо смугу прокрутки в Chrome/Safari */
.products-grid::-webkit-scrollbar,
.projects-grid::-webkit-scrollbar {
    display: none;
}

/* Налаштування самих карток */
.product-item,
.project-item {
    flex-shrink: 0;
    scroll-snap-align: start; /* Щоб картка рівно ставала при скролі */
}

/* --- ДЕСКТОП: 4 картки --- */
@media (min-width: 1024px) {
    .product-item,
    .project-item {
        /* 100% ширини мінус 3 відступи (по 20px), поділено на 4 картки */
        width: calc((100% - 60px) / 4);
    }
}

/* --- ПЛАНШЕТ: 2 картки --- */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-item,
    .project-item {
        width: calc((100% - 20px) / 2);
    }
}

/* --- МОБІЛЬНИЙ: 1 картка --- */
@media (max-width: 767px) {
    .product-item,
    .project-item {
        width: 100%; 
        /* Якщо хочете, щоб збоку трохи виглядала наступна картка (щоб люди розуміли, що можна скролити), 
           замініть 100% на 85% */
    }
}
/* =========================================
   СЛАЙДЕР ПРОДУКЦІЇ ТА СТРІЛКИ
   ========================================= */

/* Контейнер для сітки */
.products-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    /* Ховаємо смугу прокрутки, щоб було акуратно */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.products-grid::-webkit-scrollbar {
    display: none;
}

/* Налаштування карток (на десктопі рівно 4 шт) */
.product-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .product-item {
        /* 100% ширини мінус 3 відступи по 20px, поділено на 4 */
        width: calc((100% - 60px) / 4);
    }
}

@media (max-width: 1023px) {
    .product-item {
        width: calc((100% - 20px) / 2); /* На планшеті по 2 */
    }
}

@media (max-width: 767px) {
    .product-item {
        width: 100%; /* На телефоні по 1 */
    }
}

/* --- СТИЛІ СТРІЛОК --- */
.products-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #00b4d8; /* Ваш фірмовий бірюзовий */
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.products-arrow:hover {
    background-color: #008ba8; /* Трохи темніший при наведенні */
}

/* Розміщуємо стрілки по краях, трохи виступаючи за межі карток */
.products-arrow.prev {
    left: -20px;
}

.products-arrow.next {
    right: -20px;
}

/* Ховаємо стрілки на мобільних телефонах (там скролять пальцем) */
@media (max-width: 768px) {
    .products-arrow {
        display: none !important;
    }
}
/* =========================================
   СЛАЙДЕРИ (SWIPER) - ПРОДУКТИ ТА ПРОЄКТИ
   ========================================= */

/* Картки мають тягнутися по висоті */
.product-item.swiper-slide,
.project-item.swiper-slide {
    height: auto; 
    display: flex;
    flex-direction: column;
}

/* Спільні стилі для всіх стрілок обох секцій */
.products-arrow,
.projects-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #00b4d8; /* Ваш колір */
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.products-arrow:hover,
.projects-arrow:hover { background-color: #008ba8; }

.products-arrow.prev,
.projects-arrow.prev { left: 0; }

.products-arrow.next,
.projects-arrow.next { right: 0; }

@media (max-width: 768px) {
    .products-arrow,
    .projects-arrow { display: none !important; }
}
/* =========================================
   ФІНАЛЬНИЙ ФІКС: СТРІЛКИ ТА ОБРІЗАННЯ СЛАЙДІВ
   ========================================= */

/* 1. Робимо стрілки як у відгуках (прозорий фон, бірюзовий колір) */
.products-arrow,
.projects-arrow {
    background: transparent !important; /* Прибираємо чорний/бірюзовий круглий фон */
    color: #0ea5a4 !important; /* Фірмовий бірюзовий колір */
    font-size: 38px !important; /* Робимо стрілки більшими */
    font-weight: 300 !important; /* Робимо їх тоншими */
    box-shadow: none !important; /* Прибираємо тіні, якщо вони є */
    transition: color 0.3s ease, transform 0.3s ease !important;
}

.products-arrow:hover,
.projects-arrow:hover {
    background: transparent !important;
    color: #0c8c8b !important; /* Трохи темніший при наведенні */
    transform: translateY(-50%) scale(1.1) !important; /* Легке збільшення */
}

/* Розсовуємо стрілки трохи ширше, щоб вони не налізали на фото карток */
.products-arrow.prev,
.projects-arrow.prev { left: -15px !important; }

.products-arrow.next,
.projects-arrow.next { right: -15px !important; }

/* 2. Фікс обрізання слайдів та тіней */
.products-slider.swiper,
.projects-slider.swiper {
    /* Дозволяємо тіням і крайнім слайдам "вилазити" за межі Swiper-контейнера */
    overflow: visible !important; 
    /* Додаємо місце зверху і знизу спеціально для тіней (box-shadow) */
    padding-top: 15px !important;
    padding-bottom: 25px !important;
}

/* 3. Гарантуємо, що сторінка не отримає горизонтального скролу */
section.products,
section.projects {
    overflow: hidden !important; 
    position: relative;
}
/* =========================================
   ПРИМУСОВИЙ ФІКС ДЛЯ 4 СЛАЙДІВ (ДЕСКТОП)
   ========================================= */

/* 1. Знищуємо старий Grid, щоб Swiper міг поставити картки в один нескінченний рядок */
.products-grid.swiper-wrapper,
.projects-grid.swiper-wrapper {
    display: flex !important;
    grid-template-columns: none !important; 
    flex-wrap: nowrap !important;
    gap: 0 !important; /* Відступи між слайдами тепер розраховує JS Swiper */
}

/* 2. Очищаємо параметри карток на десктопі, щоб вони на 100% слухалися JS */
@media (min-width: 769px) {
    .product-item.swiper-slide,
    .project-item.swiper-slide {
        flex-shrink: 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        /* ВАЖЛИВО: ми спеціально НЕ пишемо тут ширину (width), 
           щоб Swiper міг сам прописати ідеальні 25% кожній картці */
    }
}
/* =========================================
   ФІКС КНОПОК ДЛЯ PAGESPEED ТА ЮЗАБІЛІТІ
   ========================================= */

/* 1. Глобальна вимога Google: мінімальна висота для зручного тапу пальцем (48px) */
.btn, 
.btn-primary, 
.header-cta, 
.hero-actions .btn, 
.products .product-item .btn, 
.simple-cta-form button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important; /* Стандарт PageSpeed */
    box-sizing: border-box !important;
}

/* 2. Фікс кнопки в хедері на мобільних пристроях */
@media (max-width: 768px) {
    .header-contacts .btn, 
    .header-cta {
        min-height: 44px !important; /* Робимо достатньо високою, але щоб влізла в шапку */
        padding: 0 16px !important;
        font-size: 14px !important;
        width: auto !important;
    }
    
    /* 3. Кнопки в товарах на мобільному (на всю ширину для зручності) */
    .products .product-item .btn {
        width: 100% !important;
        min-height: 50px !important; /* Велика зручна кнопка */
        margin-top: 15px !important;
    }

    /* 4. Кнопка у формі підвалу */
    .simple-cta-form button {
        width: 100% !important;
    }
}
/* Ховаємо стандартні віджети підвалу WordPress */
.widget-area, 
.footer-widgets, 
.site-info {
    display: none !important;
}
/* Стилізація кнопки видалення на чекауті */
.remove-from-checkout {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    border: 1px solid #ff4d4d;
    border-radius: 50%;
    /*background: #fff;*/
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-from-checkout:hover {
    background: #ff4d4d;
    color: #fff !important;
}

/* Робимо так, щоб таблиця на чекауті виглядала чистіше */
.woocommerce-checkout-review-order-table .product-name {
    display: flex;
    align-items: center;
}
/* =========================================
   ПОПАП ДОДАВАННЯ В КОШИК
   ========================================= */
.cart-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(10, 20, 22, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.cart-popup-modal {
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 16px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-popup-overlay.is-active .cart-popup-modal {
    transform: translateY(0) scale(1);
}

.cart-popup-close {
    position: absolute;
    top: 15px; right: 15px;
    width: 30px; height: 30px;
    background: #f0f0f0 !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease !important;
    padding: 0 !important;
}

.cart-popup-close:hover {
    background: #e0e0e0 !important;
    transform: rotate(90deg) !important;
}

.cart-popup-close span {
    position: absolute;
    width: 14px; height: 2px;
    background: #222;
    border-radius: 2px;
}

.cart-popup-modal h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.cart-popup-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.cart-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-popup-actions .btn {
    width: 100% !important;
    margin: 0 !important;
}

/* Стиль прозорої кнопки для "Продовжити покупки" */
.btn-outline {
    background: transparent !important;
    color: #0ea5a4 !important;
    border: 2px solid #0ea5a4 !important;
    box-shadow: none !important;
}

.btn-outline:hover {
    background: #0ea5a4 !important;
    color: #fff !important;
}
/* =========================================
   СТРУКТУРНИЙ ФІКС (Світла тема: Hero + Advantages)
   Вставляти в самий кінець style.css!
   ========================================= */

/* 1. HERO BLOCK (Текст зліва, Зображення справа) */
.hero {
    background-position: right center !important; 
    background-size: cover !important; 
    position: relative !important;
}

/* Робимо темний градієнт ТІЛЬКИ зліва під текстом, щоб на будь-якому фото машини білі букви читалися ідеально */
.hero::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 20%, rgba(0,0,0,0.1) 100%) !important;
    z-index: 1 !important;
}

.hero .container {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Текст жорстко зліва */
}

.hero-inner {
    max-width: 55% !important; /* Текст не залізає на праву частину картинки */
    width: 100% !important;
    text-align: left !important; /* Вирівнювання тексту зліва */
    margin: 0 !important;
}

@media (max-width: 768px) {
    .hero-inner {
        max-width: 100% !important; /* На мобільному текст на весь екран */
        text-align: center !important;
    }
    .hero::after {
        background: rgba(0,0,0,0.6) !important; /* На мобільному затемнюємо все рівномірно */
    }
}

/* 2. ADVANTAGES SECTION (Чому ми? На весь екран, рівномірно) */


/* "Ламаємо" стандартний контейнер, щоб розтягнути гріди */



.adv-item {
    flex: 1 1 0 !important; /* Картки займають ідеально рівні частини екрана */
    background: #ffffff !important;
    padding: 40px 20px !important;
    text-align: center !important;
    border-right: 1px solid #e5e5e5 !important; /* Легкі розділювачі між картками */
    transition: background 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    box-shadow: none !important; /* Прибираємо стандартну тінь для плоского сучасного дизайну */
    border-radius: 0 !important; /* Прибираємо заокруглення для стилю "на весь екран" */
}

.adv-item:last-child {
    border-right: none !important;
}

.adv-item:hover {
    background: #f0f4f8 !important; /* Легкий блакитнувато-сірий відтінок при наведенні */
    transform: none !important; /* Скасовуємо підстрибування */
}

.adv-text {
    color: #555555 !important;
    margin-top: 15px !important;
}


/* =========================================
   ФІКС: HERO, ADVANTAGES ТА КАРТКИ ТОВАРІВ
   ========================================= */

/* --- 1. HERO BLOCK (Текст зліва, Картинка справа) --- */
.hero {
    position: relative !important;
    background-color: #0d1315 !important; /* Темний колір для лівої частини */
    background-position: right center !important; 
    background-size: contain !important; /* Картинка не розтягується, а притискається вправо */
    background-repeat: no-repeat !important;
}

/* Створюємо плавний перехід (градієнт), щоб текст гарантовано читався */
.hero::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(90deg, #0d1315 0%, #0d1315 45%, rgba(13,19,21,0) 70%) !important;
    z-index: 1 !important;
}

.hero .container {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
}

.hero-inner {
    max-width: 50% !important; /* Текст займає лише ліву половину екрана */
    text-align: left !important;
    padding-right: 30px !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .hero {
        background-size: cover !important;
        background-position: center !important;
    }
    /*.hero::after {
        background: rgba(13,19,21,0.8) !important; /* На мобільному затемнюємо все */
    }
    .hero-inner {
        max-width: 100% !important;
        text-align: center !important;
        padding-right: 0 !important;
    }
}

/* --- 2. ПЕРЕВАГИ (Розтягнуті на весь екран) --- */



.adv-item {
    flex: 1 1 0 !important; /* Всі 4 картки ідеально рівні */
    background: #ffffff !important;
    padding: 40px 20px !important;
    text-align: center !important;
    border-right: 1px solid #eaeaea !important;
    border-radius: 0 !important; /* Прибираємо круглі кути */
    box-shadow: none !important; /* Плоский сучасний дизайн */
    transition: background 0.3s ease !important;
}

.adv-item:last-child {
    border-right: none !important;
}

.adv-item:hover {
    background: #f1f5f9 !important;
    transform: none !important;
}


@media (max-width: 600px) {
    .adv-item { flex: 0 0 100% !important; border-right: none !important; }
}

/* --- 3. КАРТКИ ТОВАРІВ (Тотальна зачистка від стилів списків) --- */
.products-grid {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.products-grid::before,
.products-grid::after,
.product-item::before,
.product-item::after {
    display: none !important; /* Знищуємо будь-які точки або маркери */
}

.product-item {
    border: 1px solid #f0f0f0 !important;
    background: #ffffff !important;
}

/* Кнопка "Замовити" */
.btn-order {
    background: #0ea5a4 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 14px 0 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 15px rgba(14,165,164,0.2) !important;
}

.btn-order:hover {
    background: #0c8c8b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(14,165,164,0.3) !important;
}
/* =========================================
   ГЛОБАЛЬНИЙ ДИЗАЙН WOOCOMMERCE (Світла тема)
   (Кошик, Чекаут, Особистий кабінет, Товар)
   ========================================= */

/* --- 1. Поля вводу (Форми, Чекаут, Конструктор товару) --- */
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea,
.avto-custom-fields input[type="text"],
.avto-custom-fields input[type="file"] {
    width: 100%;
    padding: 25px 18px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 15px;
    color: #333333;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: none !important;
    gap: 10px;
}

.woocommerce form .form-row input.input-text:focus, 
.woocommerce form .form-row textarea:focus,
.avto-custom-fields input[type="text"]:focus {
    border-color: #0ea5a4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.1) !important;
}

/* Лейбли (Назви полів) */
.woocommerce form .form-row label,
.avto-custom-fields label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: inline-block;
    line-height: 1 !important;
}

/* --- 2. Сторінка Товару (Конструктор) --- */
.avto-custom-fields {
    background: #f8f9fa !important;
    border: 1px solid #e5e5e5 !important;
    padding: 25px !important;
    border-radius: 12px !important;
    margin-bottom: 30px !important;
}

/* --- 3. Таблиці (Кошик та Чекаут) --- */
.woocommerce table.shop_table {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    border-collapse: separate;
    overflow: hidden;
}

.woocommerce table.shop_table th {
    background-color: #f8f9fa;
    color: #1a1a1a;
    font-weight: 700;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.woocommerce table.shop_table td {
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    vertical-align: middle;
}

/* Поле кількості в кошику */
.woocommerce .quantity .qty {
    width: 70px;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    text-align: center;
}

/* --- 4. Особистий Кабінет (My Account) --- */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 25%;
    float: left;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 15px 20px;
    color: #555555;
    text-decoration: none;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 500;
    transition: all 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #0ea5a4;
    color: #ffffff;
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 70%;
    float: right;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

/* Адаптив для кабінету */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }
}

/* --- 5. Чекаут (Оформлення замовлення) --- */
#add_payment_method #payment, 
.woocommerce-cart #payment, 
.woocommerce-checkout #payment {
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    padding: 30px;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: #ffffff;
    color: #555;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: #ffffff; /* Трикутник */
}

/* --- 6. Сповіщення (Помилки, Успіх) --- */
.woocommerce-error, .woocommerce-info, .woocommerce-message {
    background-color: #f8f9fa;
    border-top: 3px solid #0ea5a4;
    color: #1a1a1a;
    border-radius: 8px;
    padding: 20px 20px 20px 50px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.woocommerce-error { border-top-color: #ff4d4d; }
.woocommerce-info { border-top-color: #007BFF; }
// Прибираємо вкладку "Додаткова інформація" на сторінці товару
add_filter( 'woocommerce_product_tabs', 'avto_remove_additional_information_tab', 98 );
function avto_remove_additional_information_tab( $tabs ) {
    unset( $tabs['additional_information'] ); // Видаляємо вкладку атрибутів
    return $tabs;
}

/* ==========================================
   БАЗОВІ ВІДСТУПИ ТА ЗАОКРУГЛЕННЯ
========================================== */

/* 1. Додаємо простір навколо всього контенту товару */
.woocommerce div.product {
    margin-top: 40px !important;    /* Відступ від хедера (вгорі) */
    margin-bottom: 40px !important; /* Відступ внизу */
    padding-left: 25px !important;  /* Відступ зліва */
    padding-right: 25px !important; /* Відступ справа */
}

/* 2. Заокруглюємо головне зображення та мініатюри */
.woocommerce-product-gallery img {
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Легка тінь для об'єму */
}

/* 3. Окремий фікс для мобільних (щоб відступи не були занадто великими) */
@media (max-width: 768px) {
    .woocommerce div.product {
        margin-top: 20px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ==========================================
   СТИЛІЗАЦІЯ КОШИКА (CART PAGE)
========================================== */

/* 1. Загальні відступи сторінки */
.woocommerce-cart .woocommerce {
    padding: 40px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2. Таблиця товарів */
.woocommerce-cart table.cart {
    border-collapse: separate;
    border-spacing: 0 15px; /* Створюємо ефект окремих карток для товарів */
    border: none !important;
}

.woocommerce-cart table.cart thead {
    display: none; /* Ховаємо шапку таблиці для сучаснішого вигляду */
}

.woocommerce-cart table.cart tr.cart_item {
    background: #ffffff;
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border-radius: 12px;
}

.woocommerce-cart table.cart td {
    padding: 20px !important;
    border: none !important;
    vertical-align: middle;
}

/* Фото товару */
.woocommerce-cart table.cart td.product-thumbnail img {
    width: 80px !important;
    border-radius: 8px;
}

/* Назва та характеристики товару */
.woocommerce-cart table.cart td.product-name a {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 18px;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

/* Стилізація списку характеристик (Розмір, Рік тощо) */
.woocommerce-cart table.cart .variation {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 15px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.woocommerce-cart table.cart .variation dt {
    font-weight: 700;
    color: #888;
    font-size: 13px;
    text-transform: uppercase;
}

.woocommerce-cart table.cart .variation dd {
    margin: 0;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* 3. Кнопка видалення (Х) */
.woocommerce-cart table.cart td.product-remove a.remove {
    color: #e74c3c !important;
    background: #fdf2f2 !important;
    width: 30px;
    height: 30px;
    line-height: 28px;
    font-size: 20px;
    border-radius: 50%;
    transition: 0.3s;
}

.woocommerce-cart table.cart td.product-remove a.remove:hover {
    background: #e74c3c !important;
    color: #fff !important;
}

/* 4. Блок купона та оновлення кошика */
.woocommerce-cart .actions {
    background: transparent !important;
    padding: 20px 0 !important;
    text-align: right;
}

.woocommerce-cart .coupon {
    float: left;
}

.woocommerce-cart .coupon input#coupon_code {
    border-radius: 8px !important;
    padding: 10px 15px !important;
    border: 1px solid #ddd !important;
    width: 180px !important;
}

/* 5. Підсумки кошика (Cart Totals) */
.cart-collaterals {
    margin-top: 40px;
}

.cart_totals {
    background: #f9f9f9;
    padding: 30px !important;
    border-radius: 20px;
    border: 1px solid #eee;
}

.cart_totals h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cart_totals table tr th, 
.cart_totals table tr td {
    padding: 15px 0 !important;
    border-top: 1px solid #eee !important;
}

/* 6. КНОПКИ (У вашому стилі) */
.woocommerce-cart .button {
    background-color: #0ea5a4 !important; /* Бірюзовий */
    color: #fff !important;
    border-radius: 10px !important;
    padding: 12px 25px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 14px;
    transition: 0.3s;
    border: none;
}

.woocommerce-cart .button:hover {
    background-color: #0c8c8b !important;
    transform: translateY(-2px);
}

/* Головна кнопка "Перейти до оформлення" */
.woocommerce-cart .checkout-button {
    background-color: #0ea5a4 !important;
    padding: 20px !important;
    font-size: 18px !important;
    margin-top: 20px;
    display: block;
    text-align: center;
}

/* Адаптивність */
@media (max-width: 768px) {
    .woocommerce-cart table.cart .variation {
        grid-template-columns: 1fr;
    }
    .woocommerce-cart .coupon {
        float: none;
        margin-bottom: 15px;
    }
    .woocommerce-cart .coupon input#coupon_code {
        width: 100% !important;
    }
}
/* ==========================================
   НАДІЙНИЙ ФІКС ЧЕКАУТА (CHECKOUT)
========================================== */

/* 1. Контейнер та заголовки */
.woocommerce-checkout .woocommerce {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.woocommerce-checkout h3 {
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 20px !important;
    color: #1a1a1a;
}

/* 2. Стиль полів ( Billing Fields ) */
.woocommerce-checkout .form-row input.input-text, 
.woocommerce-checkout .form-row select {
    border-radius: 8px !important;
    padding: 12px !important;
    border: 1px solid #ddd !important;
    background: #fdfdfd !important;
}

/* 3. Блок "Ваше замовлення" (Order Review) */
#order_review_heading {
    margin-top: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0ea5a4;
}

#order_review {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-top: 20px;
}

/* Виправляємо таблицю замовлення, щоб вона не стискалася */
table.shop_table.woocommerce-checkout-review-order-table {
    width: 100% !important;
    border: none !important;
    border-collapse: collapse;
}

table.shop_table.woocommerce-checkout-review-order-table td,
table.shop_table.woocommerce-checkout-review-order-table th {
    padding: 15px 10px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: transparent !important;
}

/* 4. Стилізація характеристик номера (щоб не злипалися) */
.woocommerce-checkout .product-name dl.variation {
    margin: 10px 0 0 0 !important;
    font-size: 13px !important;
    display: block !important;
}

.woocommerce-checkout .product-name dl.variation dt {
    font-weight: 700 !important;
    color: #777 !important;
    margin-bottom: 2px;
}

.woocommerce-checkout .product-name dl.variation dd {
    margin: 0 0 8px 0 !important;
    color: #333 !important;
}

/* 5. Блок оплати та Кнопка */
#payment {
    background: #f9f9f9 !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

#place_order {
    background-color: #0ea5a4 !important; /* Ваш колір */
    color: #fff !important;
    padding: 18px 30px !important;
    border-radius: 10px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    width: 100% !important;
    transition: 0.3s !important;
}

#place_order:hover {
    background-color: #0c8c8b !important;
    transform: translateY(-2px);
}

/* Ховаємо непотрібні рамки в таблиці підсумків */
.cart-subtotal td, .shipping td, .order-total td {
    text-align: right;
    font-weight: 700;
}
/* 1. Відступ від хедера до всього блоку товару (20px) */
.woocommerce div.product {
    margin-top: -20px !important;
}

/* 2. Налаштування відступів галереї (Мініатюри) */
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs {
    margin-top: 5px !important;   /* Відступ від головного фото до мініатюр */
    display: flex !important;     /* Вмикаємо гнучку сітку для мініатюр */
    gap: 3px !important;          /* Відстань між мініатюрами 3px */
    padding: 0 !important;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li {
    margin: 0 !important;
    float: none !important;
    flex: 1 1 0;                  /* Змушує мініатюри рівномірно заповнити ширину */
}

/* 3 & 4. Переміщення блоку "Опис/Відгуки" ПІД фото без руйнування правої колонки */
@media (min-width: 769px) {
    .woocommerce div.product .woocommerce-tabs {
        clear: left !important;    /* Дозволяє стати ТІЛЬКИ під лівою колонкою (фото) */
        float: left !important;    /* Притискає блок вліво */
        width: 48% !important;     /* Стандартна ширина лівої колонки WooCommerce */
        margin-top: 30px !important;
    }

    /* Захист: щоб супутні товари гарантовано залишалися в самому низу на всю ширину */
    .woocommerce div.product .related.products {
        clear: both !important;
        float: none !important;
        width: 100% !important;
        padding-top: 30px !important;
    }
}
/* Фікс для футера, щоб він не наїжджав на товар */
.woocommerce div.product::after {
    content: "";
    display: block;
    clear: both;
}
/* ==========================================
   PRO-ДИЗАЙН КОШИКА (КАРТКОВИЙ ВИГЛЯД ТА ДОСТАВКА)
========================================== */

/* --- 1. ПЕРЕТВОРЕННЯ ТАБЛИЦІ НА КАРТКИ --- */
.woocommerce-cart table.cart {
    border: none !important;
    background: transparent !important;
}
.woocommerce-cart table.cart thead {
    display: none !important; /* Ховаємо старі заголовки */
}
.woocommerce-cart table.cart tbody,
.woocommerce-cart table.cart tr {
    display: block;
    width: 100%;
}
.woocommerce-cart table.cart tr.cart_item {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e5e5e5 !important;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* --- 2. КНОПКА ВИДАЛЕННЯ (ХРЕСТИК) --- */
.woocommerce-cart table.cart .product-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    display: block;
    border: none;
    width: auto;
    padding: 0;
}
.woocommerce-cart table.cart .product-remove a {
    background: #ffebeb;
    color: #ff4a4a !important;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
    transition: 0.3s;
}
.woocommerce-cart table.cart .product-remove a:hover {
    background: #ff4a4a;
    color: #fff !important;
}

/* --- 3. ФОТО ТОВАРУ --- */
.woocommerce-cart table.cart .product-thumbnail {
    width: 130px; /* Робимо фото великим */
    border: none;
    padding: 0;
    margin-right: 30px;
}
.woocommerce-cart table.cart .product-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- 4. НАЗВА ТА ХАРАКТЕРИСТИКИ --- */
.woocommerce-cart table.cart .product-name {
    width: calc(100% - 160px); /* Вся ширина мінус фото */
    border: none;
    padding: 0;
    text-align: left;
}
.woocommerce-cart table.cart .product-name > a {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
    padding-right: 40px; /* Запас для хрестика */
}

/* Акуратний блок варіацій в 2 колонки */
.woocommerce-cart table.cart dl.variation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    margin: 0;
}
.woocommerce-cart table.cart dl.variation dt {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    margin: 0;
}
.woocommerce-cart table.cart dl.variation dd {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0;
}
.woocommerce-cart table.cart dl.variation dd p {
    margin: 0;
}

/* Перетворюємо посилання (Техпаспорт) на маленькі кнопки */
.woocommerce-cart table.cart dl.variation dd a {
    display: inline-block;
    background: #e0f4f4;
    color: #0ea5a4;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: 0.2s;
    border: 1px solid #c2ebeb;
}
.woocommerce-cart table.cart dl.variation dd a:hover {
    background: #0ea5a4;
    color: #fff;
}

/* --- 5. ЦІНИ, КІЛЬКІСТЬ ТА ПІДСУМОК (ВНИЗУ КАРТКИ) --- */
.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-quantity,
.woocommerce-cart table.cart .product-subtotal {
    width: 33.33%; /* Ділимо низ на 3 рівні колонки */
    border: none;
    border-top: 1px dashed #e5e5e5;
    margin-top: 25px;
    padding: 20px 10px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Динамічні підписи замість заголовків таблиці */
.woocommerce-cart table.cart .product-price::before { content: "Ціна за штуку"; }
.woocommerce-cart table.cart .product-quantity::before { content: "Кількість"; }
.woocommerce-cart table.cart .product-subtotal::before { content: "Всього"; }

.woocommerce-cart table.cart .product-price::before,
.woocommerce-cart table.cart .product-quantity::before,
.woocommerce-cart table.cart .product-subtotal::before {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Стиль сум */
.woocommerce-cart table.cart .product-price .amount,
.woocommerce-cart table.cart .product-subtotal .amount {
    font-size: 20px;
    font-weight: 800;
    color: #0ea5a4;
}

/* --- 6. ФІКС ВЕЛИЧЕЗНИХ РАМОК В ДОСТАВЦІ --- */
ul#shipping_method li input[type="radio"] {
    position: absolute !important;
    left: -9999px !important; /* Жорстко ховаємо за межі екрану */
    opacity: 0;
    width: 1px !important;
    height: 1px !important;
}
ul#shipping_method li label {
    padding: 16px 45px 16px 16px !important;
}
/* Повертаємо галочку на місце */
ul#shipping_method li input[type="radio"]:checked + label::after {
    right: 15px;
}

/* --- 7. АДАПТИВ ДЛЯ ТЕЛЕФОНІВ --- */
@media (max-width: 768px) {
    .woocommerce-cart table.cart .product-thumbnail { width: 80px; margin-bottom: 15px; }
    .woocommerce-cart table.cart .product-name { width: calc(100% - 100px); }
    .woocommerce-cart table.cart dl.variation { grid-template-columns: 1fr; }
    .woocommerce-cart table.cart .product-price,
    .woocommerce-cart table.cart .product-quantity,
    .woocommerce-cart table.cart .product-subtotal {
        width: 100%; 
        border-top: none; 
        border-bottom: 1px solid #f0f0f0; 
        padding: 15px 0; 
        margin: 0; 
        flex-direction: row; 
        justify-content: space-between; 
    }
    .woocommerce-cart table.cart .product-subtotal { border-bottom: none; }
    .woocommerce-cart table.cart .product-price::before,
    .woocommerce-cart table.cart .product-quantity::before,
    .woocommerce-cart table.cart .product-subtotal::before { margin-bottom: 0; }
}
/* ==========================================
   ІДЕАЛЬНИЙ КОШИК: 3 КОЛОНКИ ТА ШИРОКА ДОСТАВКА
========================================== */

/* --- 1. ЖОРСТКА СІТКА НА 3 КОЛОНКИ --- */
.woocommerce-cart table.cart tr.cart_item {
    display: grid !important;
    /* 1: Фото (220px), 2: Характеристики (розтягується), 3: Ціни (220px) */
    grid-template-columns: 220px 1fr 220px !important;
    grid-template-areas:
        "thumb name price"
        "thumb name qty"
        "thumb name total"
        "thumb name ." !important;
    gap: 15px 30px !important;
    align-items: start !important;
    background: #fff;
    border: 1px solid #eee !important;
    border-radius: 12px;
    padding: 25px !important;
    margin-bottom: 25px !important;
}

/* Прив'язуємо елементи до їхніх зон */
.woocommerce-cart table.cart td.product-thumbnail { grid-area: thumb; padding: 0 !important; border: none !important; }
.woocommerce-cart table.cart td.product-name { grid-area: name; padding: 0 !important; border: none !important; }
.woocommerce-cart table.cart td.product-price { grid-area: price; }
.woocommerce-cart table.cart td.product-quantity { grid-area: qty; }
.woocommerce-cart table.cart td.product-subtotal { grid-area: total; }


/* --- 2. СТОВПЧИК ЦІН (ПРАВА КОЛОНКА) --- */
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-quantity,
.woocommerce-cart table.cart td.product-subtotal {
    display: flex !important;
    flex-direction: row !important; /* Текст зліва, цифри справа */
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 12px 0 !important;
    border: none !important;
    border-bottom: 1px dashed #eee !important;
}
.woocommerce-cart table.cart td.product-subtotal { border-bottom: none !important; }

/* Вирівнюємо підписи і цифри */
.woocommerce-cart table.cart td.product-price::before { content: "Ціна:"; font-size: 13px; font-weight: 600; color: #888; }
.woocommerce-cart table.cart td.product-quantity::before { content: "Кількість:"; font-size: 13px; font-weight: 600; color: #888; }
.woocommerce-cart table.cart td.product-subtotal::before { content: "Всього:"; font-size: 14px; font-weight: 700; color: #111; }

.woocommerce-cart table.cart td.product-price .amount,
.woocommerce-cart table.cart td.product-subtotal .amount,
.woocommerce-cart table.cart td.product-quantity {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #111 !important;
    text-align: right !important;
}
.woocommerce-cart table.cart td.product-subtotal .amount { color: #0ea5a4 !important; font-size: 20px !important; }


/* --- 3. ПЕРЕЙМЕНУВАННЯ "ВІДПРАВЛЕННЯ" НА "СПОСОБИ ДОСТАВКИ" --- */
/* Руйнуємо таблицю підсумків і будуємо блоками */
.woocommerce-cart .cart-collaterals .shop_table tr.shipping {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 15px 0 !important;
}
.woocommerce-cart .cart-collaterals .shop_table tr.shipping th {
    width: 100% !important;
    text-align: left !important;
    padding: 0 0 15px 0 !important;
    border: none !important;
    font-size: 0 !important; /* Ховаємо слово "Відправлення" */
}
.woocommerce-cart .cart-collaterals .shop_table tr.shipping th::before {
    content: "Способи доставки" !important; /* Виводимо наше слово */
    font-size: 16px !important;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
}
.woocommerce-cart .cart-collaterals .shop_table tr.shipping td {
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
}


/* --- 4. ДОСТАВКА: 4 КАРТКИ В ІДЕАЛЬНИЙ РЯД --- */
ul#shipping_method {
    display: grid !important;
    /* Жорстко ділимо ширину на 4 рівні колонки */
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 15px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
ul#shipping_method li {
    width: 100% !important;
    margin: 0 !important;
}
ul#shipping_method li label {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100% !important;
    width: 100% !important;
    padding: 15px 5px !important;
    box-sizing: border-box !important;
    font-size: 12px !important;
}


/* --- 5. АДАПТИВ ДЛЯ МОБІЛЬНИХ --- */
@media (max-width: 992px) {
    .woocommerce-cart table.cart tr.cart_item {
        grid-template-columns: 1fr !important; /* Всі 3 колонки стають однією */
        grid-template-areas:
            "thumb"
            "name"
            "price"
            "qty"
            "total" !important;
    }
    ul#shipping_method {
        grid-template-columns: repeat(2, 1fr) !important; /* По 2 картки в ряд на планшеті */
    }
}
@media (max-width: 576px) {
    ul#shipping_method {
        grid-template-columns: 1fr !important; /* По 1 картці на телефоні */
    }
}
/* ==========================================
   ФІНАЛЬНИЙ КОШИК: 3 КОЛОНКИ ТА 100% ШИРИНА ПІДСУМКІВ
========================================== */

/* --- 1. ТОТАЛЬНЕ СКИДАННЯ ТАБЛИЦІ WOOCOMMERCE --- */
.woocommerce-cart table.cart,
.woocommerce-cart table.cart tbody {
    display: block !important;
    width: 100% !important;
    border: none !important;
}

/* --- 2. СІТКА ТОВАРУ (ФОТО - ОПИС - ЦІНИ) --- */
.woocommerce-cart table.cart tr.cart_item {
    display: grid !important;
    /* 200px (Фото) | Простір між ними | 200px (Ціни) */
    grid-template-columns: 200px 1fr 200px !important;
    gap: 20px 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    background: #fff;
    border: 1px solid #eee !important;
    border-radius: 12px;
    padding: 25px !important;
    margin-bottom: 25px !important;
    align-items: start !important;
}

/* --- 3. ЛІКУЄМО ФОТОГРАФІЮ --- */
.woocommerce-cart table.cart td.product-thumbnail {
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
}
.woocommerce-cart table.cart td.product-thumbnail img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Характеристики по центру */
.woocommerce-cart table.cart td.product-name {
    padding: 0 !important;
    border: none !important;
}

/* --- 4. СТОВПЧИК ЦІН (СПРАВА) --- */
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-quantity,
.woocommerce-cart table.cart td.product-subtotal {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 12px 0 !important;
    border: none !important;
    border-bottom: 1px dashed #eee !important;
    box-sizing: border-box !important;
}
.woocommerce-cart table.cart td.product-subtotal { border-bottom: none !important; }

/* Текст та цифри */
.woocommerce-cart table.cart td.product-price::before { content: "Ціна:"; color: #888; font-weight: 600; font-size: 13px; }
.woocommerce-cart table.cart td.product-quantity::before { content: "Кількість:"; color: #888; font-weight: 600; font-size: 13px; }
.woocommerce-cart table.cart td.product-subtotal::before { content: "Всього:"; color: #111; font-weight: 700; font-size: 14px; }

.woocommerce-cart table.cart td.product-price .amount,
.woocommerce-cart table.cart td.product-subtotal .amount,
.woocommerce-cart table.cart td.product-quantity {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #111 !important;
}
.woocommerce-cart table.cart td.product-subtotal .amount { color: #0ea5a4 !important; font-size: 20px !important; }

/* --- 5. РОЗТЯГУЄМО ПІДСУМКИ ТА ДОСТАВКУ НА 100% ШИРИНИ --- */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
}

.woocommerce-cart .cart-collaterals .shop_table tr.shipping {
    display: flex !important;
    flex-direction: column !important;
}

/* Перейменовуємо заголовок */
.woocommerce-cart .cart-collaterals .shop_table tr.shipping th {
    text-align: left !important;
    padding: 0 0 15px 0 !important;
    border: none !important;
    font-size: 0 !important; 
}
.woocommerce-cart .cart-collaterals .shop_table tr.shipping th::before {
    content: "Способи доставки" !important;
    font-size: 16px !important;
    font-weight: 700;
    color: #1a1a1a;
}
.woocommerce-cart .cart-collaterals .shop_table tr.shipping td {
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
}

/* 4 картки доставки */
ul#shipping_method {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 15px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
ul#shipping_method li { margin: 0 !important; width: 100% !important; }
ul#shipping_method li label {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100% !important;
    padding: 15px 5px !important;
    box-sizing: border-box !important;
    font-size: 12px !important;
}

/* --- 6. ХОВАЄМО ЗАЙВЕ ("Оновити кошик", "Київ") --- */
button[name="update_cart"],
.woocommerce-shipping-destination,
.woocommerce-shipping-calculator {
    display: none !important;
}

/* --- 7. АДАПТИВНІСТЬ --- */
@media (max-width: 992px) {
    .woocommerce-cart table.cart tr.cart_item {
        grid-template-columns: 1fr !important; /* На планшеті все в 1 стовпчик */
    }
    ul#shipping_method { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 576px) {
    ul#shipping_method { grid-template-columns: 1fr !important; }
}
/* ==========================================
   ІДЕАЛЬНИЙ КОШИК 3.0: БЕЗПЕЧНА СІТКА
========================================== */

/* --- 1. БЕЗПЕЧНА СІТКА ДЛЯ ТОВАРУ (3 КОЛОНКИ) --- */
.woocommerce-cart table.cart {
    width: 100% !important;
    border: none !important;
}
.woocommerce-cart table.cart thead { display: none !important; }

.woocommerce-cart table.cart tr.cart_item {
    display: grid !important;
    /* Фото (240px) | Характеристики (вільний простір) | Ціни (320px) */
    grid-template-columns: 240px 1fr 320px !important;
    grid-template-rows: auto auto 1fr !important;
    grid-template-areas:
        "thumb name price"
        "thumb name qty"
        "thumb name total" !important;
    gap: 0 30px !important;
    background: #fff;
    padding: 30px !important;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin-bottom: 20px !important;
}

/* Розподіляємо елементи по сітці */
.woocommerce-cart table.cart td.product-thumbnail { grid-area: thumb; padding: 0 !important; border: none !important; }
.woocommerce-cart table.cart td.product-name { grid-area: name; padding: 0 !important; border: none !important; }
.woocommerce-cart table.cart td.product-price { grid-area: price; }
.woocommerce-cart table.cart td.product-quantity { grid-area: qty; }
.woocommerce-cart table.cart td.product-subtotal { grid-area: total; }

/* Фотографія */
.woocommerce-cart table.cart td.product-thumbnail img {
    width: 100% !important;
    height: auto !important;
    border-radius: 10px;
}

/* --- 2. СТОВПЧИК ЦІН (ВЕРХ ПРАВОЇ ЧАСТИНИ) --- */
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-quantity,
.woocommerce-cart table.cart td.product-subtotal {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border: none !important;
    border-bottom: 1px dashed #eee !important;
}
.woocommerce-cart table.cart td.product-subtotal { border-bottom: none !important; }

/* Підписи до цін */
.woocommerce-cart table.cart td.product-price::before { content: "Ціна:"; font-size: 13px; font-weight: 600; color: #888; }
.woocommerce-cart table.cart td.product-quantity::before { content: "Кількість:"; font-size: 13px; font-weight: 600; color: #888; }
.woocommerce-cart table.cart td.product-subtotal::before { content: "Всього:"; font-size: 14px; font-weight: 700; color: #111; }

.woocommerce-cart table.cart td.product-price .amount,
.woocommerce-cart table.cart td.product-quantity { font-size: 16px !important; font-weight: 800 !important; color: #111; }
.woocommerce-cart table.cart td.product-subtotal .amount { color: #0ea5a4 !important; font-size: 20px !important; font-weight: 800 !important; }


/* --- 3. БЛОК ДОСТАВКИ (НИЗ ПРАВОЇ ЧАСТИНИ) --- */
/* Розміщуємо контейнер підсумків чітко під 3-ю колонкою */
.woocommerce-cart .cart-collaterals {
    display: flex !important;
    justify-content: flex-end !important; /* Притискаємо вправо */
    width: 100% !important;
}
.woocommerce-cart .cart-collaterals .cart_totals {
    width: 320px !important; /* Ширина ідеально збігається з колонкою цін */
    float: none !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

/* Ховаємо дублікати підсумків (бо вони вже є в таблиці) */
.cart_totals h2,
.cart-subtotal,
.order-total,
.woocommerce-shipping-destination,
button[name="update_cart"] {
    display: none !important;
}

/* --- 4. ДОСТАВКА КВАДРАТОМ 2х2 --- */
.woocommerce-cart .cart-collaterals .shop_table,
.woocommerce-cart .cart-collaterals .shop_table tbody,
.woocommerce-cart .cart-collaterals .shop_table tr.shipping,
.woocommerce-cart .cart-collaterals .shop_table tr.shipping td {
    display: block !important;
    width: 100% !important;
    border: none !important;
    padding: 100 !important;
}
.woocommerce-cart .cart-collaterals .shop_table tr.shipping th { display: none !important; } /* Ховаємо слово "Відправлення" */

/* Сітка 2х2 */
ul#shipping_method {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 2 колонки */
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}
ul#shipping_method li { margin: 0 !important; width: 100% !important; }
ul#shipping_method li input[type="radio"] { display: none !important; }

/* Дизайн міні-карток */
ul#shipping_method li label {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100% !important;
    padding: 12px 5px !important;
    box-sizing: border-box !important;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 11px !important;
    line-height: 1.2 !important;
    cursor: pointer;
    background: #fff;
    transition: 0.2s;
}
.avto-shipping-icon { width: 32px !important; height: 32px !important; margin-bottom: 6px !important; }

ul#shipping_method li input[type="radio"]:checked + label {
    border-color: #0ea5a4;
    background: #f0fbfb;
}

/* --- 5. КНОПКА "ПЕРЕЙТИ ДО ОФОРМЛЕННЯ" --- */
.wc-proceed-to-checkout {
    display: flex !important;
    justify-content: flex-end !important; /* Правий нижній кут */
    margin-top: 15px !important;
    padding: 0 !important;
}
.wc-proceed-to-checkout a.checkout-button {
    display: inline-block !important;
    padding: 12px 25px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    width: auto !important; /* Середній розмір */
    margin: 0 !important;
}

/* --- 6. АДАПТИВНІСТЬ ДЛЯ СМАРТФОНІВ --- */
@media (max-width: 992px) {
    .woocommerce-cart table.cart tr.cart_item {
        grid-template-columns: 1fr !important; /* Все в 1 стовпчик */
        grid-template-areas:
            "thumb"
            "name"
            "price"
            "qty"
            "total" !important;
    }
    .woocommerce-cart .cart-collaterals .cart_totals { width: 100% !important; }
}
/* ==========================================
   ІДЕАЛЬНИЙ КОШИК 4.0: ЄДИНА КАРТКА + ДОСТАВКА ПІД ЦІНОЮ
========================================== */

/* --- 1. ЄДИНА ВЕЛИКА КАРТКА ДЛЯ ВСЬОГО КОШИКА --- */
.woocommerce {
    background: #fff;
 /*   border: 1px solid #eee;*/
    border-radius: 16px;
    padding: 1px 5px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 40px;
}

/* Очищаємо внутрішню таблицю від старих рамок */
.woocommerce-cart table.cart { width: 100% !important; border: none !important; }
.woocommerce-cart table.cart thead { display: none !important; }

.woocommerce-cart table.cart tr.cart_item {
    display: grid !important;
    /* Фото (240px) | Характеристики | Ціни (320px) */
    grid-template-columns: 240px 1fr 320px !important;
    grid-template-rows: auto 1fr !important;
    grid-template-areas:
        "thumb name price"
        "thumb name total" !important; /* Кількість видалена з сітки */
    gap: 0 35px !important;
    border: none !important; /* Прибрали внутрішню рамку */
    background: transparent !important;
    padding: 0 !important; /* Прибрали внутрішні відступи */
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

/* Розподіл по сітці */
.woocommerce-cart table.cart td.product-thumbnail { grid-area: thumb; border: none !important; padding: 0 !important; }
.woocommerce-cart table.cart td.product-name { grid-area: name; border: none !important; padding: 0 !important; }
.woocommerce-cart table.cart td.product-price { grid-area: price; }
.woocommerce-cart table.cart td.product-subtotal { grid-area: total; }

.woocommerce-cart table.cart td.product-thumbnail img { width: 100% !important; height: auto !important; border-radius: 10px; }

/* --- 2. ВИДАЛЯЄМО ПОРОЖНЮ "КІЛЬКІСТЬ" --- */
/* Оскільки "1 шт" вже є в центральному блоці опису, тут вона зайва */
.woocommerce-cart table.cart td.product-quantity {
    display: none !important;
}

/* --- 3. ЧЕК ЦІН (ПРАВА ЧАСТИНА) --- */
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-subtotal {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 0 !important;
    border: none !important;
}
.woocommerce-cart table.cart td.product-price { border-bottom: 1px dashed #ddd !important; }

.woocommerce-cart table.cart td.product-price::before { content: "Ціна:"; font-size: 13px; font-weight: 600; color: #888; }
.woocommerce-cart table.cart td.product-subtotal::before { content: "Всього:"; font-size: 14px; font-weight: 700; color: #111; }

.woocommerce-cart table.cart td.product-price .amount { font-size: 16px !important; font-weight: 800 !important; color: #111; }
.woocommerce-cart table.cart td.product-subtotal .amount { color: #0ea5a4 !important; font-size: 22px !important; font-weight: 800 !important; }


/* --- 4. МАГНІТ: ТЯГНЕМО ДОСТАВКУ В ДІРКУ ПІД ЦІНАМИ --- */
.woocommerce-cart .cart-collaterals {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
}
.woocommerce-cart .cart-collaterals .cart_totals {
    width: 320px !important; /* Точно як ширина колонки цін над нею */
    float: none !important;
    background: transparent !important;
    padding-right: 25px !important;
    border: 10px !important;
}

/* Цей код діє тільки на десктопах і фізично піднімає блок доставки вгору */
@media (min-width: 993px) {
    .woocommerce-cart .cart-collaterals {
        margin-top: -240px !important; 
        position: relative;
        z-index: 90;
    }
}

/* Ховаємо сміття з підсумків */
.cart_totals h2, .cart-subtotal, .order-total, .woocommerce-shipping-destination, button[name="update_cart"] { display: none !important; }


/* --- 5. ДОСТАВКА ІДЕАЛЬНИМ КВАДРАТОМ 2х2 --- */
.woocommerce-cart .cart-collaterals .shop_table,
.woocommerce-cart .cart-collaterals .shop_table tbody,
.woocommerce-cart .cart-collaterals .shop_table tr.shipping,
.woocommerce-cart .cart-collaterals .shop_table tr.shipping td { display: block !important; width: 100% !important; border: none !important; padding-top: 4px !important; }
.woocommerce-cart .cart-collaterals .shop_table tr.shipping th { display: none !important; }

ul#shipping_method {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 25 !important;
}
ul#shipping_method li { margin: 0 !important; width: 100% !important; }
ul#shipping_method li input[type="radio"] { display: none !important; }

ul#shipping_method li label {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100% !important;
    padding: 12px 5px !important;
    box-sizing: border-box !important;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 11px !important;
    line-height: 1.2 !important;
    cursor: pointer;
    background: #fff;
    transition: 0.2s;
}
.avto-shipping-icon { width: 32px !important; height: 32px !important; margin-bottom: 6px !important; }
ul#shipping_method li input[type="radio"]:checked + label { border-color: #0ea5a4; background: #f0fbfb; }


/* --- 6. КНОПКА "ПЕРЕЙТИ ДО ОФОРМЛЕННЯ" --- */
.wc-proceed-to-checkout {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 20px !important;
    padding: 0 !important;
}
.wc-proceed-to-checkout a.checkout-button {
    display: inline-block !important;
    padding: 14px 25px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    width: auto !important;
    margin: 0 !important;
}

/* --- 7. АДАПТИВНІСТЬ ДЛЯ СМАРТФОНІВ --- */
@media (max-width: 992px) {
    .woocommerce { padding: 20px !important; }
    .woocommerce-cart .cart-collaterals { margin-top: 20px !important; } /* Скидаємо магніт на мобільному */
    .woocommerce-cart table.cart tr.cart_item {
        grid-template-columns: 1fr !important;
        grid-template-areas: "thumb" "name" "price" "total" !important;
        gap: 15px !important;
    }
    .woocommerce-cart .cart-collaterals .cart_totals { width: 100% !important; }
}
/* --- ФІКС ЧІТКОСТІ ТА ПРОПОРЦІЙ ПІКТОГРАМ --- */
.avto-shipping-icon { 
    width: 40px !important; /* Зробив трохи більшими для кращої видимості */
    height: 40px !important; 
    object-fit: contain !important; /* Жорстко забороняє сплющувати чи розтягувати картинку */
    flex-shrink: 0 !important; /* Забороняє браузеру стискати іконку, якщо тексту тісно */
    margin-bottom: 8px !important;
    /* Ці дві команди змушують браузер краще рендерити PNG іконки, забираючи "мило" */
    image-rendering: -webkit-optimize-contrast; 
    image-rendering: crisp-edges;
}
/* ==========================================
   ФІНАЛЬНИЙ ШТРИХ: КНОПКА ВИДАЛЕННЯ ТА ВІДСТУП ЦІНИ
========================================== */

/* Робимо картку відносною, щоб хрестик міг за неї зачепитися */
.woocommerce-cart table.cart tr.cart_item {
    position: relative !important;
}

/* Вириваємо хрестик із сітки і ставимо в правий верхній кут */
.woocommerce-cart table.cart td.product-remove {
    position: absolute !important;
    top: -10px !important;
    right: -10px !important;
    border: none !important;
    padding: 0 !important;
    z-index: 20;
}

/* Стилізуємо сам хрестик під сучасну кнопку */
.woocommerce-cart table.cart td.product-remove a.remove {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    background: #ffebeb !important;
    color: #ff4a4a !important;
    border-radius: 50% !important;
    font-size: 22px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

/* Ефект при наведенні на хрестик */
.woocommerce-cart table.cart td.product-remove a.remove:hover {
    background: #ff4a4a !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* Трохи опускаємо блок з ціною вниз, щоб вона ніколи не билася об хрестик */
.woocommerce-cart table.cart td.product-price {
    padding-top: 25px !important; 
}
/* ==========================================
   ФІНАЛЬНІ КОРИГУВАННЯ: ВІДСТУПИ, ШИРИНА ТА РОЗМІР КАРТОК
========================================== */

/* --- 1. ШИРШИЙ ЦЕНТР ТА МЕНШІ ВІДСТУПИ --- */
.woocommerce-cart table.cart tr.cart_item {
    /* Робимо праву колонку трохи ш (300px замість 320px), а центр забирає решту */
    grid-template-columns: 260px 1fr 300px !important; 
    /* Зменшуємо відстань між колонками (було 35px, стало 20px) */
    gap: 0 20px !important; 
}

/* Відповідно звужуємо і контейнер з доставкою, щоб він ідеально став під ціни */
.woocommerce-cart .cart-collaterals .cart_totals {
    width: 350px !important; 
}

/* --- 2. ПІДТЯГУЄМО ДОСТАВКУ БЛИЖЧЕ ДО "ВСЬОГО" --- */
@media (min-width: 993px) {
    .woocommerce-cart .cart-collaterals {
        /* Збільшуємо мінусовий відступ, щоб сильніше затягнути блок вгору */
        margin-top: -490px !important; 
    }
}

/* --- 3. ЗБІЛЬШУЄМО КАРТКИ ДОСТАВКИ --- */
ul#shipping_method li label {
    padding: 18px 8px !important; /* Більше повітря всередині (зверху/знизу) */
    min-height: 105px !important; /* Жорстко задаємо мінімальну висоту, щоб вони були масивнішими */
    font-size: 12px !important; /* Трохи більший шрифт */
}

/* Пропорційно збільшуємо іконки в картках */
.avto-shipping-icon { 
    width: 44px !important; 
    height: 44px !important; 
    margin-bottom: 10px !important; 
}
/* ==========================================
   КОРИГУВАННЯ МІЖРЯДКОВИХ ІНТЕРВАЛІВ (ПРАВА КОЛОНКА)
========================================== */

/* 1. Зменшуємо відступи між "Ціна" та "Всього" */
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-subtotal {
    padding: 5px 0 !important; /* Робимо рядки значно щільнішими (було 15px) */
}

/* 2. Підтягуємо блок доставки ще ближче до напису "Всього" */
@media (min-width: 993px) {
    .woocommerce-cart .cart-collaterals {
        /* Оскільки ми зменшили висоту цін, тягнемо доставку ще вище. 
           Якщо налізе на текст — змініть на -330px, якщо треба ще вище — на -350px */
        margin-top: -345px !important; 
    }
}
/* ==========================================
   ЮВЕЛІРНІ ШТРИХИ: ЦЕНТРУВАННЯ ТА ВІДСТУП
========================================== */

/* 1. Строго центруємо блок з описом по вертикалі */
.woocommerce-cart table.cart td.product-name {
    align-self: center !important;
}

/* 2. Підтягуємо доставку ще трохи вгору */
@media (min-width: 993px) {
    .woocommerce-cart .cart-collaterals {
        /* Збільшуємо мінусовий відступ. Було -345px, тепер робимо -375px. 
           Якщо треба ще вище — змініть на -385px */
        margin-top: -375px !important; 
    }
}
add_filter( 'woocommerce_checkout_fields' , 'avto_checkout_cleanup' );
function avto_checkout_cleanup( $fields ) {
    // Робимо телефон обов'язковим
    $fields['billing']['billing_phone']['required'] = true;
    $fields['billing']['billing_phone']['placeholder'] = '+38 (0__) ___-__-__';
    
    // Прибираємо зайве
    unset($fields['billing']['billing_country']);
    unset($fields['billing']['billing_company']);
    unset($fields['billing']['billing_address_2']);
    unset($fields['shipping']['shipping_company']);
    
    return $fields;
}
/* ==========================================
   AVTONOMEROCHEK: ЧЕКАУТ 2.0 (КОМБІНОВАНА СІТКА)
========================================== */

/* --- 1. ВЕРХНЯ ЧАСТИНА: ДВІ КОЛОНКИ (ПІДСУМОК + ДОСТАВКА) --- */
.avto-checkout-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* Рівні колонки */
    gap: 30px !important;
    align-items: stretch !important;
    margin-bottom: 30px !important;
}

.avto-checkout-left, 
.avto-checkout-right {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 30px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    height: 100%; /* Щоб блоки були однакової висоти */
}

/* --- 2. ПЕРЕХІД В ОДНУ КОЛОНКУ ДЛЯ ПОЛІВ ТА ОПЛАТИ --- */
/* Робимо форму контейнером, який дозволяє виносити елементи на всю ширину */
form.checkout.woocommerce-checkout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

/* Виносимо поля та оплату з правої колонки вниз на всю ширину */
.avto-checkout-right {
    display: flex;
    flex-direction: column;
}

#customer_details,
.avto-payment-section,
#order_review .woocommerce-checkout-payment {
    grid-column: 1 / -1 !important; /* Команда для Grid зайняти всі колонки */
    width: 100% !important;
    max-width: 1140px; /* Або ваша ширина контенту */
    margin: 0 auto !important;
}

/* Якщо блоки знаходяться всередині avto-checkout-right, ми їх "виштовхуємо" нижче */
@media (min-width: 993px) {
    .avto-checkout-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        /* Додаємо рядок для полів, що розтягнеться на всю ширину */
        grid-template-rows: auto auto !important; 
    }
    
    #customer_details {
        grid-column: 1 / span 2 !important;
        grid-row: 2 !important;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 16px;
        padding: 40px !important;
        margin-top: 10px !important;
    }
    
    #order_review {
        /* Тільки доставка та залом залишаються в правій верхній колонці */
        grid-column: 2 !important;
        grid-row: 1 !important;
    }
}

/* --- 3. СТИЛІЗАЦІЯ КАРТОК ДОСТАВКИ (2х2) --- */
ul#shipping_method {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

ul#shipping_method li label {
    padding: 20px 10px !important;
    border: 2px solid #eee;
    border-radius: 12px;
    text-align: center;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    min-height: 110px;
    cursor: pointer;
    transition: 0.3s;
}

ul#shipping_method li input[type="radio"]:checked + label {
    border-color: #0ea5a4;
    background: #f0fbfb;
}

/* --- 4. СТИЛІЗАЦІЯ ПОЛІВ (ШИРОКИЙ БЛОК) --- */
.woocommerce-checkout .form-row {
    width: 100% !important; /* Всі поля в одну колонку */
    float: none !important;
}

.woocommerce-checkout .form-row-first, 
.woocommerce-checkout .form-row-last {
    width: 48% !important; /* Тільки Прізвище/Ім'я залишаємо парами, якщо хочете */
    display: inline-block;
}

/* --- 5. ОФОРМЛЕННЯ ТАБЛИЦІ ЗАГАЛОМ (ПІД ДОСТАВКОЮ) --- */
tr.order-total {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px !important;
    margin-top: 20px;
    border-top: 1px dashed #ddd;
}

tr.order-total th { font-size: 16px; color: #888; }
tr.order-total td .amount { font-size: 24px; font-weight: 800; color: #111; }

/* Приховуємо сміття */
#order_review .shop_table thead, 
#order_review .shop_table tbody:not(.wizard), 
tr.cart-subtotal,
#order_review_heading { 
    display: none !important; 
}

/* Кнопка */
#place_order {
    width: 100% !important;
    max-width: 400px;
    margin: 30px auto 0 !important;
    display: block !important;
}
/* ==========================================
   ФІНАЛЬНИЙ МАКЕТ: ТАБИ ПІД ФОТО + СІТКА 2х2
========================================== */

@media (min-width: 993px) {
    /* 1. РОЗПОДІЛ: ФОТО ЗЛІВА, ФОРМА СПРАВА */
    .woocommerce div.product {
        display: grid !important;
        grid-template-columns: 40% 55% !important;
        justify-content: space-between !important;
        align-items: start !important;
    }

    .woocommerce div.product div.images {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    /* ТАБИ (Опис/Відгуки) - ЧІТКО ПІД ФОТОГРАФІЄЮ */
    .woocommerce div.product .woocommerce-tabs {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        margin-top: 30px !important;
        clear: none !important;
    }

    .woocommerce div.product div.summary {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        width: 100% !important;
    }
}

/* ==========================================
   2. БРОНЕБІЙНА СІТКА 2х2 ДЛЯ КРОКІВ (ВАРІАЦІЙ)
========================================== */

/* Перетворюємо саму таблицю на сітку 2х2 */
table.variations {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* Створюємо 2 колонки */
    column-gap: 20px !important;
    row-gap: 15px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

/* ХАК: "Знищуємо" tbody, щоб рядки стали прямими елементами сітки */
table.variations tbody {
    display: contents !important;
}

/* Кожен рядок (крок 1, 2, 3...) стає коміркою */
table.variations tr {
    display: flex !important;
    flex-direction: column !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

table.variations th,
table.variations td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: left !important;
}

/* Заголовки кроків */
table.variations th {
    margin-bottom: 8px !important;
}
table.variations label {
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}

/* Змушуємо кнопки-картинки ставати поруч всередині комірок */
table.variations td.value {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

table.variations td.value > div,
.tawcvs-swatches,
.vi-wpvs-variation-wrap,
.wpcvs-terms {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
}

/* Зменшуємо картинки рівно настільки, щоб влізли у вузьку колонку */
table.variations .variable-item { margin: 0 !important; }
table.variations .variable-item img {
    max-width: 95px !important; 
    height: auto !important;
    border-radius: 4px !important;
}

/* ==========================================
   3. СІРИЙ БЛОК (ФАЙЛИ) НА ВСЮ ШИРИНУ ЗНИЗУ
========================================== */
.single_variation_wrap, 
.wapf-wrapper, 
.wc-pao-addons-container {
    width: 100% !important;
    margin-top: 15px !important;
    padding: 25px !important;
    background: #fdfdfd !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    clear: both !important;
}

/* Тонкі акуратні поля в сірому блоці */
form.cart input[type="text"] {
    height: 40px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    width: 100% !important;
}

/* Кнопка "Оформити замовлення" */
.single_add_to_cart_button {
    width: 100% !important;
    padding: 16px !important;
    font-size: 16px !important;
    margin-top: 10px !important;
    background-color: #0ea5a4 !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
}
/* ==========================================
   ЕКСТРЕМАЛЬНА КОМПРЕСІЯ КОШИКА (ОДИН ЕКРАН)
========================================== */

/* 1. Зменшуємо загальні відступи самої білої картки */
.woocommerce-cart table.cart tr.cart_item {
    padding: 20px !important; /* Було 25-30px */
}

/* 2. Стискаємо сірий блок з характеристиками (Центр) */
.woocommerce-cart table.cart dl.variation {
    padding: 12px 15px !important; /* Зменшуємо внутрішнє повітря блоку */
    gap: 6px 15px !important; /* КРИТИЧНО: зменшуємо міжрядковий інтервал вдвічі */
}

/* Змушуємо текст характеристик займати менше місця по висоті */
.woocommerce-cart table.cart dl.variation dt,
.woocommerce-cart table.cart dl.variation dd {
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important; /* Центруємо текст і кнопки по одній лінії */
}

/* Робимо кнопки "Переглянути фото" компактними */
.woocommerce-cart table.cart dl.variation dd a {
    padding: 4px 10px !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

/* 3. Ущільнюємо колонку з цінами (Справа) */
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-subtotal {
    padding: 0px 0 !important; /* Майже повністю прибираємо відступи зверху/знизу */
}

.woocommerce-cart table.cart td.product-price .amount {
    font-size: 16px !important;
}

/* 4. Робимо сітку доставки (2х2) нижчою */
ul#shipping_method li label {
    padding: 10px 5px !important;
    min-height: 85px !important; /* Було понад 100px */
}

/* Трохи зменшуємо іконки доставки */
.avto-shipping-icon {
    width: 34px !important;
    height: 34px !important;
    margin-bottom: 6px !important;
}

/* 5. Якщо кнопка "Оформити" з'їхала вниз, підтягуємо і її */
.wc-proceed-to-checkout {
    margin-top: 10px !important;
}
/* ==========================================
   НАДІЙНИЙ SPLIT-SCREEN КОШИК (БЕЗ ПЕРЕКРИТТІВ)
========================================== */

/* 1. РОЗБИВАЄМО ЕКРАН НА ДВІ НЕЗАЛЕЖНІ КОЛОНКИ */
@media (min-width: 993px) {
    .woocommerce-cart .woocommerce {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 30px !important;
    }
    
    /* Ліва колонка (Товар) */
    .woocommerce-cart .woocommerce-cart-form {
        flex: 1 !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Права колонка (Підсумки та Доставка) */
    .woocommerce-cart .cart-collaterals {
        width: 360px !important; /* Фіксована ширина терміналу */
        flex-shrink: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }
}

/* ==========================================
   2. ЛІВА КОЛОНКА (КАРТКА ТОВАРУ)
========================================== */
.woocommerce-cart table.cart {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce-cart table.cart thead { display: none !important; }

.woocommerce-cart table.cart tr.cart_item {
    display: flex !important;
    position: relative !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 16px !important;
    padding: 25px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}

.woocommerce-cart table.cart td {
    border: none !important;
    padding: 0 !important;
}

/* Фотографія */
.woocommerce-cart table.cart td.product-thumbnail {
    width: 200px !important;
    margin-right: 25px !important;
}
.woocommerce-cart table.cart td.product-thumbnail img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
}

/* Назва та характеристики */
.woocommerce-cart table.cart td.product-name {
    flex: 1 !important;
}
.woocommerce-cart table.cart td.product-name a {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111 !important;
    text-decoration: none !important;
    display: block !important;
    margin-bottom: 10px !important;
    padding-right: 40px !important; /* Відступ, щоб текст не ліз під хрестик */
}

/* Компактний сірий блок характеристик */
.woocommerce-cart table.cart dl.variation {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 6px 15px !important;
    background: #fdfdfd !important;
    padding: 15px !important;
    border-radius: 8px !important;
    border: 1px solid #eee !important;
    margin: 0 !important;
}
.woocommerce-cart table.cart dl.variation dt {
    font-size: 11px !important;
    color: #888 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}
.woocommerce-cart table.cart dl.variation dd {
    font-size: 13px !important;
    color: #111 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}
.woocommerce-cart table.cart dl.variation p { margin: 0 !important; }
.woocommerce-cart table.cart dl.variation dd a {
    display: inline-block !important;
    padding: 4px 10px !important;
    background: #e0f4f4 !important;
    color: #0ea5a4 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 11px !important;
}

/* Хрестик (Видалення) - тепер 100% на місці */
.woocommerce-cart table.cart td.product-remove {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 10 !important;
}
.woocommerce-cart table.cart td.product-remove a.remove {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    background: #ffebeb !important;
    color: #ff4a4a !important;
    border-radius: 50% !important;
    font-size: 22px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: 0.3s !important;
}
.woocommerce-cart table.cart td.product-remove a.remove:hover {
    background: #ff4a4a !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

/* Ховаємо зайві ціни всередині таблиці (вони будуть у правій колонці) */
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-quantity,
.woocommerce-cart table.cart td.product-subtotal {
    display: none !important;
}

/* ==========================================
   3. ПРАВА КОЛОНКА (ТЕРМІНАЛ ОПЛАТИ ТА ДОСТАВКИ)
========================================== */
.woocommerce-cart .cart_totals {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 16px !important;
    padding: 25px !important;
    width: 100% !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}

.woocommerce-cart .cart_totals h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px dashed #eee !important;
    display: block !important;
}

.woocommerce-cart .cart_totals table {
    width: 100% !important;
    border: none !important;
    margin: 0 !important;
}
.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
    background: transparent !important;
    border: none !important;
    padding: 10px 0 !important;
}

/* Рядки сум */
.woocommerce-cart .cart_totals tr.cart-subtotal,
.woocommerce-cart .cart_totals tr.order-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.woocommerce-cart .cart_totals tr.order-total {
    border-top: 1px dashed #eee !important;
    margin-top: 10px !important;
    padding-top: 15px !important;
}

.woocommerce-cart .cart_totals th {
    font-weight: 600 !important;
    color: #888 !important;
    font-size: 13px !important;
}
.woocommerce-cart .cart_totals td {
    text-align: right !important;
}
.woocommerce-cart .cart_totals td .amount {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #111 !important;
}
.woocommerce-cart .cart_totals tr.order-total td .amount {
    font-size: 22px !important;
    color: #0ea5a4 !important;
}

/* Доставка (Сітка 2х2) */
.woocommerce-cart .cart_totals tr.shipping {
    display: block !important;
    width: 100% !important;
    padding: 15px 0 !important;
}
.woocommerce-cart .cart_totals tr.shipping th {
    display: block !important;
    text-align: left !important;
    padding: 0 0 10px 0 !important;
    color: #111 !important;
}

ul#shipping_method {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}
ul#shipping_method li { margin: 0 !important; }
ul#shipping_method li input { display: none !important; }
ul#shipping_method li label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 5px !important;
    border: 2px solid #eee !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    cursor: pointer !important;
    height: 100% !important;
    box-sizing: border-box !important;
    transition: 0.2s !important;
}
ul#shipping_method li input:checked + label {
    border-color: #0ea5a4 !important;
    background: #f0fbfb !important;
}
.avto-shipping-icon {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 6px !important;
}

/* Кнопка Оформлення */
.wc-proceed-to-checkout {
    margin-top: 20px !important;
    padding: 0 !important;
}
.wc-proceed-to-checkout a.checkout-button {
    width: 100% !important;
    text-align: center !important;
    padding: 16px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    background: #0ea5a4 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    display: block !important;
}

/* Ховаємо зайве сміття WooCommerce */
button[name="update_cart"],
.woocommerce-shipping-destination,
.woocommerce-shipping-calculator { 
    display: none !important; 
}

/* ==========================================
   4. АДАПТИВ ДЛЯ МОБІЛЬНИХ
========================================== */
@media (max-width: 992px) {
    .woocommerce-cart .woocommerce {
        flex-direction: column !important;
    }
    .woocommerce-cart .cart-collaterals {
        width: 100% !important;
    }
    .woocommerce-cart table.cart tr.cart_item {
        flex-direction: column !important;
        padding: 20px !important;
    }
    .woocommerce-cart table.cart td.product-thumbnail {
        width: 100% !important;
        margin: 0 0 20px 0 !important;
    }
    .woocommerce-cart table.cart td.product-name a {
        padding-right: 0 !important;
    }
}
/* ==========================================
   ІДЕАЛЬНИЙ ЧЕКАУТ НА ОДИН ЕКРАН (APPLE / ROZETKA STYLE)
========================================== */

/* --- 1. ЛІВА КОЛОНКА (СТИСТА КАРТКА ТОВАРУ) --- */
.avto-cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.avto-item-card {
    display: flex !important;
    align-items: center !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    padding: 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}
/* Лікуємо гігантське фото */
.avto-item-img {
    width: 100px !important; /* Робимо картинку акуратною */
    flex-shrink: 0 !important;
    margin-right: 20px !important;
}
.avto-item-img img {
    width: 100% !important;
    height: auto !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}
.avto-item-info {
    flex: 1 !important;
}
.avto-item-info h4 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.2 !important;
}
.avto-item-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.avto-item-meta .qty { font-size: 12px !important; color: #888 !important; font-weight: 600 !important; }
.avto-item-meta .price { font-size: 18px !important; font-weight: 800 !important; color: #0ea5a4 !important; }

/* --- 2. ПРАВА КОЛОНКА (КОМПРЕСІЯ ФОРМИ) --- */
.avto-checkout-right {
    background: #fff !important;
    padding: 25px !important;
    border-radius: 16px !important;
    border: 1px solid #eee !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}
/* Робимо заголовки компактними */
.avto-checkout-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px dashed #eee !important;
    color: #111 !important;
}
/* Ховаємо внутрішні дублюючі заголовки WooCommerce */
.woocommerce-checkout h3 { display: none !important; }

/* --- 3. ПОЛЯ ВВОДУ (2 КОЛОНКИ СІТКОЮ) --- */
.woocommerce-billing-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* Два поля в ряд */
    gap: 0px 15px !important;
}
.woocommerce-checkout .form-row {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce-checkout .form-row label {
    font-size: 11px !important;
    margin-bottom: 4px !important;
    color: #777 !important;
}

/* Примушуємо поля ставати в 1 колонку сітки */
#billing_first_name_field, #billing_last_name_field,
#billing_phone_field, #billing_email_field,
#billing_city_field, #billing_postcode_field {
    grid-column: span 1 !important;
}
/* Поля на всю ширину (якщо є) */
#billing_address_1_field { grid-column: span 2 !important; }

/* ХОВАЄМО ЗАЙВЕ ДЛЯ ЕКОНОМІЇ МІСЦЯ */
#billing_country_field,
.woocommerce-additional-fields,
.woocommerce-shipping-fields {
    display: none !important; /* Ховаємо Країну та "Нотатки до замовлення" */
}

/* --- 4. ДОСТАВКА (4 В ОДИН РЯД) --- */
ul#shipping_method {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    margin-top: 15px !important;
}
ul#shipping_method li { margin: 0 !important; padding: 0 !important; }
ul#shipping_method li label {
    padding: 8px 5px !important;
    min-height: 65px !important;
    font-size: 10px !important;
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
}
.avto-shipping-icon {
    width: 24px !important;
    height: 24px !important;
    margin-bottom: 4px !important;
}

/* --- 5. ПІДСУМОК --- */
tr.order-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px dashed #eee !important;
}
tr.order-total th { font-size: 13px !important; color: #888 !important; border: none !important; padding: 0 !important; }
tr.order-total td { border: none !important; padding: 0 !important; }
tr.order-total td .amount { font-size: 20px !important; font-weight: 800 !important; color: #0ea5a4 !important; }

/* --- 6. СПОСОБИ ОПЛАТИ (ГОРИЗОНТАЛЬНО) --- */
#payment {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    margin-top: 12px !important;
}
ul.payment_methods {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 2 способи в ряд */
    gap: 10px !important;
    padding: 0 !important;
    border-bottom: none !important;
}
ul.payment_methods li {
    background: #fdfdfd !important;
    border: 1px solid #eee !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    cursor: pointer;
}
ul.payment_methods li input { margin-right: 8px !important; margin-top: 0 !important; }
div.payment_box { display: none !important; } /* Ховаємо сірий опис банку */

/* --- 7. КНОПКА ЗАМОВЛЕННЯ --- */
#place_order {
    margin-top: 15px !important;
    padding: 14px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    width: 100% !important;
}

/* --- АДАПТИВ ДЛЯ ТЕЛЕФОНІВ --- */
@media (max-width: 992px) {
    .avto-checkout-container { flex-direction: column !important; }
    .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr !important; }
    ul#shipping_method { grid-template-columns: 1fr 1fr !important; }
    ul.payment_methods { grid-template-columns: 1fr !important; }
}
/* ==========================================
   ЕКСТРЕМАЛЬНА КОМПРЕСІЯ ЧЕКАУТУ (ОДИН ЕКРАН)
========================================== */

/* 1. Зменшуємо загальні відступи блоків */
.avto-checkout-container {
    gap: 20px !important; /* Відстань між лівою та правою колонкою */
    margin-bottom: 5 !important;
}
.avto-checkout-left, 
#customer_details, 
#order_review {
    padding: 10px 10px !important; /* Робимо внутрішнє повітря блоків меншим */
}
#order_review {
    margin-top: 10px !important;
}

/* 2. Тотальне стиснення полів вводу (Платіжні дані) */
.woocommerce-billing-fields__field-wrapper {
    gap: 5px 10px !important; /* Менший інтервал між самими полями */
}
.woocommerce-checkout .form-row {
    margin-bottom: 0 !important;
}
.woocommerce-checkout .form-row label {
    margin-bottom: 1px !important;
    font-size: 11px !important;
}
.woocommerce-checkout .form-row input.input-text, 
.woocommerce-checkout .form-row select,
.select2-container .select2-selection--single {
    height: 25px !important; /* Тонші поля */
    padding: 10px 10px !important;
}

/* 3. Фікс "Відправлення" (розтягуємо іконки на всю ширину) */
.woocommerce-checkout-review-order-table tr.shipping {
    display: block !important;
    padding: 5px 0 !important;
    border: none !important;
}
.woocommerce-checkout-review-order-table tr.shipping th {
    display: none !important; /* Ховаємо слово "Відправлення", іконки і так зрозумілі */
}
.woocommerce-checkout-review-order-table tr.shipping td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Стискаємо самі іконки доставки */
ul#shipping_method {
    margin-top: 0 !important;
    gap: 8px !important;
}
ul#shipping_method li label {
    min-height: 55px !important; /* Робимо плашки доставки нижчими */
    padding: 5px !important;
    font-size: 10px !important;
}
.avto-shipping-icon {
    width: 24px !important;
    height: 24px !important;
    margin-bottom: 4px !important;
}

/* 4. Ущільнення підсумку "Загалом" */
tr.order-total {
    margin-top: 5px !important;
    padding-top: 5px !important;
}
tr.order-total th, 
tr.order-total td {
    padding: 0 !important;
}
tr.order-total td .amount {
    font-size: 18px !important;
}

/* 5. Оплата та безжальне видалення тексту політики */
#payment {
    margin-top: 10px !important;
}
ul.payment_methods {
    gap: 8px !important;
}
ul.payment_methods li {
    padding: 6px 10px !important;
}
.woocommerce-privacy-policy-text {
    display: none !important; /* ХОВАЄМО ТЕКСТ, що краде 5 рядків висоти */
}
.woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 0 !important;
}
#payment .place-order {
    padding: 0 !important;
    margin-top: 10px !important;
}
#place_order {
    margin-top: 0 !important;
    padding: 10px !important;
    font-size: 14px !important;
}
/* ТОЧЕЧНИЙ ФІКС ТІЛЬКИ ДЛЯ ПОЛІВ НОВОЇ ПОШТИ */

#billing_city_field,
#shipping_city_field,
#billing_novaposhta_warehouse_field,
#shipping_novaposhta_warehouse_field,
#billing_npu_warehouse_field,
#billing_warehouse_field,
.form-row[id*="novaposhta"],
.form-row[id*="warehouse"],
.form-row[id*="city"] {
    margin-bottom: 12px !important; /* Даємо повітря ТІЛЬКИ цим полям */
    margin-top: 5px !important;
}

/* Фікс висоти самого списку вибору (щоб він не вилазив за рамки) */
.select2-container .select2-selection--single {
    height: 38px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important; 
}
/* ==========================================
   ФІКС МОБІЛЬНОГО КОШИКА (КАРТКОВИЙ ДИЗАЙН)
========================================== */

@media (max-width: 768px) {
    /* 1. Перетворюємо рядок товару на відносну картку */
    .woocommerce-cart table.cart tr.cart_item {
        display: block !important;
        position: relative !important;
        padding: 15px !important;
        min-height: 120px !important; /* Запас висоти для фото */
        background: #fff !important;
        border-radius: 12px !important;
        border: 1px solid #eee !important;
    }

    /* 2. Повертаємо фотографію і ставимо її зліва */
    .woocommerce-cart table.cart td.product-thumbnail {
        display: block !important;
        position: absolute !important;
        top: 15px !important;
        left: 15px !important;
        width: 80px !important; /* Розмір мініатюри */
        padding: 0 !important;
        border: none !important;
    }
    .woocommerce-cart table.cart td.product-thumbnail img {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    }

    /* 3. Назва товару (зсуваємо вправо від фото) */
    .woocommerce-cart table.cart td.product-name {
        display: block !important;
        margin-left: 95px !important; /* Відступ на ширину фото + 15px */
        padding: 0 !important;
        text-align: left !important;
        border: none !important;
    }
    
    /* ВБИВАЄМО стандартний мобільний напис "Товар:" від WooCommerce */
    .woocommerce-cart table.cart td::before,
    .woocommerce-cart table.cart td.product-name::before {
        display: none !important;
    }

    .woocommerce-cart table.cart td.product-name > a {
        font-size: 14px !important;
        font-weight: 700 !important;
        display: block !important;
        margin-bottom: 8px !important;
        padding-right: 30px !important; /* Місце для хрестика */
        line-height: 1.2 !important;
    }

    /* 4. Компактний сірий блок характеристик */
    .woocommerce-cart table.cart dl.variation {
        display: grid !important;
        grid-template-columns: auto 1fr !important; /* Характеристика - Значення */
        gap: 4px 10px !important;
        background: #fdfdfd !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
        border: 1px solid #eee !important;
        text-align: left !important;
        margin: 0 !important;
    }
    .woocommerce-cart table.cart dl.variation dt {
        font-size: 10px !important;
        margin: 0 !important;
        color: #888 !important;
        text-transform: uppercase !important;
    }
    .woocommerce-cart table.cart dl.variation dd {
        font-size: 11px !important;
        margin: 0 !important;
        color: #111 !important;
        font-weight: 700 !important;
    }
    /* Міні-кнопки для фото в характеристиках */
    .woocommerce-cart table.cart dl.variation dd a {
        padding: 2px 6px !important;
        font-size: 10px !important;
        display: inline-block !important;
    }

    /* 5. Фікс хрестика (Видалення) */
    .woocommerce-cart table.cart td.product-remove {
        display: block !important;
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        border: none !important;
        padding: 0 !important;
    }
    .woocommerce-cart table.cart td.product-remove a.remove {
        width: 28px !important;
        height: 28px !important;
        font-size: 20px !important;
    }

    /* 6. Сума "Всього" (під характеристиками) */
    .woocommerce-cart table.cart td.product-subtotal {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-left: 95px !important; /* Також зсуваємо вправо від фото */
        padding: 10px 0 0 0 !important;
        border: none !important;
        border-top: 1px dashed #eee !important;
        margin-top: 10px !important;
    }
    .woocommerce-cart table.cart td.product-subtotal::before {
        content: "Всього:" !important;
        font-size: 12px !important;
        color: #888 !important;
        font-weight: 600 !important;
        display: block !important;
        text-transform: uppercase !important;
    }
    .woocommerce-cart table.cart td.product-subtotal .amount {
        font-size: 16px !important;
        color: #0ea5a4 !important;
        font-weight: 800 !important;
    }

    /* Ховаємо зайві поля на мобільному (кількість і базову ціну), бо вони дублюються або не потрібні */
    .woocommerce-cart table.cart td.product-price,
    .woocommerce-cart table.cart td.product-quantity {
        display: none !important;
    }
}
/* ==========================================
   ТОТАЛЬНИЙ ФІКС МОБІЛЬНОГО КОШИКА
========================================== */

@media (max-width: 768px) {
    /* 1. БАЗА КАРТКИ ТОВАРУ */
    .woocommerce-cart table.cart tr.cart_item {
        display: block !important;
        position: relative !important;
        padding: 15px !important;
        background: #fff !important;
        border-radius: 12px !important;
        border: 1px solid #eee !important;
        margin-bottom: 20px !important;
    }

    /* 2. ФОТОГРАФІЯ (Ставимо чітко зліва) */
    .woocommerce-cart table.cart td.product-thumbnail {
        display: block !important;
        position: absolute !important;
        top: 15px !important;
        left: 15px !important;
        width: 90px !important; /* Розмір фото */
        padding: 0 !important;
        border: none !important;
    }
    .woocommerce-cart table.cart td.product-thumbnail img {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    }
    /* Ховаємо "Товар:" перед фото */
    .woocommerce-cart table.cart td.product-thumbnail::before { display: none !important; }

    /* 3. НАЗВА ТОВАРУ ТА ХАРАКТЕРИСТИКИ (Зсуваємо вправо) */
    .woocommerce-cart table.cart td.product-name {
        display: block !important;
        margin-left: 105px !important; /* 90px фото + 15px відступ */
        padding: 0 20px 0 0 !important; /* Запас для хрестика */
        border: none !important;
        text-align: left !important;
    }
    .woocommerce-cart table.cart td.product-name::before { display: none !important; }
    
    .woocommerce-cart table.cart td.product-name > a {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #111 !important;
        display: block !important;
        margin-bottom: 10px !important;
        line-height: 1.2 !important;
    }

    /* Сірий блок характеристик */
    .woocommerce-cart table.cart dl.variation {
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        gap: 6px 10px !important;
        background: #fdfdfd !important;
        padding: 10px !important;
        border-radius: 8px !important;
        border: 1px solid #eee !important;
        margin: 0 !important;
    }
    .woocommerce-cart table.cart dl.variation dt {
        font-size: 10px !important;
        color: #888 !important;
        margin: 0 !important;
    }
    .woocommerce-cart table.cart dl.variation dd {
        font-size: 12px !important;
        margin: 0 !important;
        color: #111 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* 4. ФІКС ХРЕСТИКА (Щоб не обрізався) */
    .woocommerce-cart table.cart td.product-remove {
        display: block !important;
        position: absolute !important;
        top: -10px !important; /* Виносимо трохи за межі картки */
        right: -10px !important;
        border: none !important;
        padding: 0 !important;
        z-index: 10 !important;
    }
    .woocommerce-cart table.cart td.product-remove::before { display: none !important; }
    .woocommerce-cart table.cart td.product-remove a.remove {
        width: 32px !important;
        height: 32px !important;
        font-size: 22px !important;
        line-height: 30px !important; /* Центрує сам хрестик */
        background: #ffebeb !important;
        color: #ff4a4a !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    }

    /* 5. ПОВЕРТАЄМО СУМУ "ВСЬОГО" */
    .woocommerce-cart table.cart td.product-subtotal {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-left: 105px !important; /* Рівняємо по тексту */
        padding: 15px 0 0 0 !important;
        margin-top: 15px !important;
        border: none !important;
        border-top: 1px dashed #eee !important;
    }
    /* Жорстко перебиваємо мобільний напис WooCommerce на свій */
    .woocommerce-cart table.cart td.product-subtotal::before {
        content: "Всього:" !important;
        font-size: 13px !important;
        color: #888 !important;
        font-weight: 700 !important;
        display: block !important;
    }
    .woocommerce-cart table.cart td.product-subtotal .amount {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #0ea5a4 !important;
        display: block !important;
    }

    /* Ховаємо зайві поля (ціна за 1 шт та кількість, бо вони дублюються) */
    .woocommerce-cart table.cart td.product-price,
    .woocommerce-cart table.cart td.product-quantity {
        display: none !important;
    }

    /* ==========================================
       6. ЧИСТКА "СМІТТЯ" З ПІДСУМКІВ КОШИКА
       ========================================== */
    .cart_totals h2, /* Ховає "ПІДСУМКИ КОШИКА" */
    .cart_totals .cart-subtotal, /* Ховає "Проміжний підсумок" */
    .woocommerce-cart .cart-collaterals .shop_table tr.shipping th /* Ховає "Відправлення:" */ {
        display: none !important;
    }

    .woocommerce-cart .cart-collaterals .cart_totals {
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        margin-top: -60px !important;
    }
    
    .woocommerce-cart .cart-collaterals .shop_table {
        border: none !important;
    }
    .woocommerce-cart .cart-collaterals .shop_table td {
        padding: 0 !important;
    }

    /* Відновлюємо сітку 2х2 для доставки */
    ul#shipping_method {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
}
/* ==========================================
   ГЛОБАЛЬНИЙ МОБІЛЬНИЙ ФІКС (В ОДНУ КОЛОНКУ)
   КОШИК + ОФОРМЛЕННЯ ЗАМОВЛЕННЯ
========================================== */

@media (max-width: 768px) {
    /* --- 1. ЧЕКАУТ В ОДНУ КОЛОНКУ --- */
    .avto-checkout-container {
        display: flex !important;
        flex-direction: column !important; /* Ставимо блоки один під одним */
        gap: 20px !important;
    }
    
    .avto-checkout-left,
    .avto-checkout-right {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 15px !important;
    }
    
    /* Картка товару в чекауті: фото зверху, текст знизу */
    .avto-item-card {
        flex-direction: column !important;
        text-align: center !important;
    }
    .avto-item-img {
        margin: 0 auto 15px auto !important;
        width: 150px !important; /* Робимо фото достатньо великим, але акуратним */
    }
    .avto-item-meta {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: center !important;
    }

    /* --- 2. КОШИК В ОДНУ КОЛОНКУ (Фото зверху) --- */
    .woocommerce-cart table.cart tr.cart_item {
        display: flex !important;
        flex-direction: column !important;
        padding: 20px 15px !important;
        align-items: center !important; /* Центруємо весь контент */
    }
    
    /* Ставимо фотографію нагору по центру */
    .woocommerce-cart table.cart td.product-thumbnail {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 250px !important;
        margin: 0 auto 15px auto !important;
        padding: 0 !important;
    }
    
    /* Повертаємо назву та блок характеристик під фотографію */
    .woocommerce-cart table.cart td.product-name {
        margin-left: 0 !important;
        width: 100% !important;
        text-align: center !important; /* Назву по центру */
    }
    .woocommerce-cart table.cart td.product-name > a {
        padding-right: 0 !important;
        font-size: 16px !important;
    }
    
    /* Сірий блок характеристик робимо на всю ширину, текст по лівому краю */
    .woocommerce-cart table.cart dl.variation {
        text-align: left !important;
        margin: 10px 0 !important;
    }
    
    /* Сума "Всього" стає чітко під характеристиками */
    .woocommerce-cart table.cart td.product-subtotal {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    /* Хрестик видалення - відправляємо в самий правий верхній кут КАРТКИ */
    .woocommerce-cart table.cart td.product-remove {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
    }

    /* --- 3. ТОТАЛЬНА ЗАЧИСТКА СМІТТЯ WOOCOMMERCE --- */
    /* Ховаємо "ПІДСУМКИ КОШИКА", "Проміжний підсумок" та мобільні підписи */
    .cart_totals h2,
    .cart-subtotal,
    .woocommerce-cart .cart-collaterals .shop_table tr.shipping th,
    .woocommerce-cart table.cart td::before {
        display: none !important;
    }
    
    /* Загальний відступ для блоку підсумків */
    .woocommerce-cart .cart-collaterals {
        margin-top: 20px !important; /* Скидаємо десктопний магніт */
    }
}
/* ==========================================
   ФІКС ВІДСТУПУ ВІД ХЕДЕРА ТА ЗАЛИШКІВ ТЕКСТУ
========================================== */

@media (max-width: 768px) {
    /* 1. Відштовхуємо весь кошик вниз, щоб він виліз з-під хедера */
    .woocommerce-cart .woocommerce {
        margin-top: 20px !important; /* Якщо відступ замалий - збільште до 80px */
    }

    /* 2. БРОНЕБІЙНЕ приховування тексту підсумків, який все ще висить */
    .cart_totals h2,
    .cart-collaterals h2,
    .woocommerce-cart .cart-collaterals .shop_table tr.cart-subtotal,
    .woocommerce-cart .cart-collaterals .shop_table tr.shipping th {
        display: none !important;
        font-size: 0 !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}
/* ==========================================
   ФІНАЛЬНИЙ ТЮНІНГ МОБІЛЬНОГО КОШИКА 
   (КАРТИНКА НА ВСЮ ШИРИНУ ТА ВИДАЛЕННЯ ДІРОК)
========================================== */

@media (max-width: 768px) {
    /* 1. РОЗТЯГУЄМО КАРТИНКУ ВІД КРАЮ ДО КРАЮ */
    .woocommerce-cart table.cart td.product-thumbnail {
        max-width: 100% !important;
        width: calc(100% + 30px) !important; /* Компенсуємо внутрішні бокові відступи картки (по 15px) */
        margin: -20px -15px 15px -15px !important; /* Витягуємо зображення за межі внутрішнього поля */
    }
    
    .woocommerce-cart table.cart td.product-thumbnail img {
        width: 100% !important;
        border-radius: 12px 12px 0 0 !important; /* Заокруглюємо ТІЛЬКИ верхні кути, щоб збігалося з карткою */
    }

    /* 2. ЗМЕНШУЄМО ВІДСТАНЬ МІЖ ОПИСОМ ТА "ВСЬОГО" */
    .woocommerce-cart table.cart dl.variation {
        margin: 10px 0 5px 0 !important;
    }
    .woocommerce-cart table.cart td.product-subtotal {
        margin-top: 5px !important;
        padding-top: 10px !important; /* Зменшуємо простір біля пунктирної лінії */
    }

    /* 3. ЗНИЩУЄМО ГІГАНТСЬКУ ДІРКУ МІЖ КАРТКОЮ І ДОСТАВКОЮ */
    /* Ховаємо порожній блок від купонів, який крав висоту */
    .woocommerce-cart-form .actions {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 0 !important;
    }
    
    /* Зменшуємо зовнішні відступи самої форми та підсумків */
    .woocommerce-cart-form {
        margin-bottom: 10px !important;
    }
    .woocommerce-cart .cart-collaterals {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}
/* ==========================================
   УЛЬТИМАТИВНИЙ МОБІЛЬНИЙ КОШИК (EDGE-TO-EDGE)
========================================== */

@media (max-width: 768px) {
    /* 1. РОБИМО КАРТКУ ТОВАРУ БЕЗ ВІДСТУПІВ (Щоб фото лягло ідеально) */
    .woocommerce-cart table.cart tr.cart_item {
        padding: 0 !important; /* Забираємо відступи */
        overflow: hidden !important; /* Ховаємо кути фотографії, щоб вони заокруглилися по формі картки */
        display: flex !important;
        flex-direction: column !important;
    }

    /* Фото на всю ширину від краю до краю */
    .woocommerce-cart table.cart td.product-thumbnail {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 15px 0 !important; 
        padding: 0 !important;
    }
    .woocommerce-cart table.cart td.product-thumbnail img {
        border-radius: 0 !important; /* Кути обріже сам батьківський контейнер */
        width: 100% !important;
    }

    /* Хрестик поверх фотографії */
    .woocommerce-cart table.cart td.product-remove {
        top: 15px !important;
        right: 15px !important;
        z-index: 10 !important;
    }

    /* 2. ПОВЕРТАЄМО ВІДСТУПИ ТІЛЬКИ ДЛЯ ТЕКСТУ */
    .woocommerce-cart table.cart td.product-name,
    .woocommerce-cart table.cart dl.variation,
    .woocommerce-cart table.cart td.product-subtotal {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .woocommerce-cart table.cart td.product-subtotal {
        padding-bottom: 20px !important; /* Відступ знизу картки */
        border-top: 1px dashed #eee !important;
        margin-top: 10px !important;
        padding-top: 15px !important;
    }

    /* 3. ЗНИЩУЄМО ДІРКУ МІЖ КАРТКОЮ ТА ДОСТАВКОЮ */
    .woocommerce-cart .cart-collaterals {
        margin-top: 15px !important; /* Акуратна невелика відстань */
    }
    .woocommerce-cart-form {
        margin-bottom: 0 !important;
    }

    /* 4. БЕЗЖАЛЬНО ХОВАЄМО СЛОВО "ВІДПРАВЛЕННЯ" */
    .woocommerce-cart .cart-collaterals .shop_table tr.shipping th {
        display: none !important;
    }
    .woocommerce-cart .cart-collaterals .shop_table tr.shipping td {
        padding-top: 0 !important; /* Забираємо відступ там, де був заголовок */
    }

    /* 5. РОЗКЛЕЮЄМО "ЗАГАЛОМ" ТА ЦІНУ */
    tr.order-total {
        display: flex !important;
        justify-content: space-between !important; /* Розсовуємо по краях */
        align-items: center !important;
        padding: 15px 0 !important;
    }
    tr.order-total th {
        font-size: 14px !important;
        color: #111 !important;
    }
    tr.order-total td {
        text-align: right !important;
    }
}
/* ==========================================
   ФІНАЛЬНІ ПРАВКИ: ДУБЛІ ТА СЛОВО "ВІДПРАВЛЕННЯ"
========================================== */

/* 1. ГЛОБАЛЬНА ЗАМІНА "ВІДПРАВЛЕННЯ" НА "СПОСОБИ ДОСТАВКИ" */
.woocommerce-cart .cart-collaterals .shop_table tr.shipping th {
    font-size: 0 !important; /* Безжально ховаємо старе слово */
    display: block !important;
    padding-bottom: 12px !important;
    text-align: left !important;
    visibility: visible !important;
    height: auto !important;
}
.woocommerce-cart .cart-collaterals .shop_table tr.shipping th::before {
    content: "Способи доставки:" !important; /* Вставляємо наш текст */
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #111 !important;
    text-transform: uppercase !important;
    display: block !important;
}
.woocommerce-cart .cart-collaterals .shop_table tr.shipping td::before {
    display: none !important; /* Знищуємо мобільний дубль від WooCommerce */
}

/* 2. МОБІЛЬНІ ПРАВКИ (ДУБЛІ СУМ) */
@media (max-width: 768px) {
    
    /* Прибираємо "ВСЬОГО" з картки товару, залишаємо тільки "Загалом" внизу */
    .woocommerce-cart table.cart td.product-subtotal {
        display: none !important;
    }
    
    /* Додаємо відступ знизу характеристик, щоб картка залишалася акуратною */
    .woocommerce-cart table.cart dl.variation {
        margin-bottom: 20px !important;
    }

    /* Розсовуємо "Загалом" та суму по краях екрана і додаємо правильний пробіл */
    tr.order-total {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 20px 0 10px 0 !important;
        border-top: 1px dashed #eee !important;
        margin-top: 15px !important;
    }
    tr.order-total th {
        display: block !important;
        font-size: 0 !important; /* Ховаємо злипле слово */
        padding: 0 !important;
    }
    tr.order-total th::before {
        content: "Загалом:" !important; /* Пишемо заново з нормальним шрифтом і відступом */
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #111 !important;
    }
    tr.order-total td::before {
        display: none !important; /* Ховаємо ще один мобільний дубль */
    }
    tr.order-total td {
        text-align: right !important;
        padding: 0 !important;
    }
    tr.order-total td .amount {
        font-size: 24px !important;
        font-weight: 800 !important;
        color: #0ea5a4 !important;
    }
}
/* ==========================================
   ФІКС ОБРІЗАНОГО ТЕКСТУ ТА ДУБЛЯ "ЗАГАЛОМ"
========================================== */

@media (max-width: 768px) {
    
    /* 1. ЛІКУЄМО ЗРІЗАНІ "СПОСОБИ ДОСТАВКИ" */
    .woocommerce-cart .cart-collaterals .shop_table tr.shipping th {
        display: block !important;
        font-size: 16px !important; /* Повертаємо нормальний розмір шрифту */
        color: transparent !important; /* Робимо оригінальне слово невидимим */
        position: relative !important;
        padding: 30px 0 10px 0 !important; /* Даємо багато повітря зверху, щоб текст не врізався у характеристики */
        line-height: 1.2 !important;
    }
    
    .woocommerce-cart .cart-collaterals .shop_table tr.shipping th::before {
        content: "Способи доставки:" !important;
        color: #111 !important; /* Робимо наш новий текст видимим */
        position: absolute !important;
        left: 0 !important;
        bottom: 10px !important; /* Притискаємо вниз до іконок */
        font-size: 16px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
    }

    /* Відсуваємо сірий блок характеристик, щоб він не тиснув зверху */
    .woocommerce-cart table.cart dl.variation {
        margin-bottom: 25px !important; 
    }

    /* 2. ЗНИЩУЄМО ДУБЛІКАТ "ЗАГАЛОМ" */
    tr.order-total th {
        display: none !important; /* Повністю вбиваємо ліву колонку */
    }
    
    tr.order-total td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 20px 0 10px 0 !important;
    }
    
    /* Перехоплюємо мобільний напис WooCommerce і робимо його єдиним і красивим */
    tr.order-total td::before {
        content: "Загалом:" !important; 
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #111 !important;
        display: block !important;
        margin-right: auto !important; /* Відштовхуємо ціну в самий правий край */
    }
}
/* ==========================================
   АДАПТАЦІЯ СІТКИ ПІД ПОЛЕ "ПО-БАТЬКОВІ"
========================================== */

#billing_last_name_field, 
#billing_first_name_field {
    grid-column: span 1 !important; /* Прізвище та Ім'я ділять рядок навпіл */
}

#billing_middle_name_field {
    grid-column: 1 / -1 !important; /* По-батькові розтягується на 100% ширини */
}

#billing_phone_field, 
#billing_email_field {
    grid-column: span 1 !important; /* Телефон та Email знову ділять рядок навпіл */
}
/* ==========================================
   ЗАЛІЗОБЕТОННА СІТКА ЧЕКАУТУ (2 КОЛОНКИ НА ДЕСКТОПІ)
========================================== */

/* --- ДЕСКТОП --- */
@media (min-width: 993px) {
    .avto-checkout-grid {
        display: grid !important;
        grid-template-columns: 46% 52% !important; /* Ліва 46%, Права 52% */
        gap: 0 2% !important;
        align-items: start !important;
    }

    .avto-checkout-left,
    .avto-checkout-right {
        display: flex;
        flex-direction: column;
        gap: 20px; /* Відстань між карткою товару і блоком оплати */
        width: 100% !important;
    }
}

/* --- ДИЗАЙН КАРТОК (БІЛІ БЛОКИ) --- */
.avto-cart-wrapper,
#order_review,
.avto-checkout-right {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02) !important;
}

.avto-cart-wrapper .avto-item-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.avto-cart-wrapper .avto-item-img {
    margin-right: 20px !important;
}

/* Ховаємо зайві системні заголовки */
.woocommerce-checkout h3#order_review_heading {
    display: none !important;
}

/* --- МОБІЛЬНИЙ АДАПТИВ --- */
@media (max-width: 992px) {
    .avto-checkout-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin-top: 30px !important; 
    }
    
    .avto-cart-wrapper,
    #order_review,
    .avto-checkout-right {
        padding: 20px !important;
    }

    .avto-cart-wrapper .avto-item-card {
        flex-direction: column !important;
    }
    .avto-cart-wrapper .avto-item-img {
        width: calc(100% + 40px) !important;
        max-width: none !important;
        margin: -20px -20px 20px -20px !important; 
    }
    .avto-cart-wrapper .avto-item-img img {
        border-radius: 16px 16px 0 0 !important; 
    }
}
/* ==========================================
   ЕКСТРЕМАЛЬНЕ СТИСНЕННЯ (ВМІЩАЄМО НА ОДИН ЕКРАН)
========================================== */

@media (min-width: 993px) {
    /* Зменшуємо "повітря" всередині білих карток */
    .avto-cart-wrapper,
    #order_review,
    .avto-checkout-right {
        padding: 20px 25px !important; 
    }
    /* Відстань між карткою товару і блоком оплати */
    .avto-checkout-left,
    .avto-checkout-right {
        gap: 15px !important; 
    }
}

/* Зменшуємо відступи між полями вводу */
.woocommerce-checkout .form-row {
    margin-bottom: 12px !important; 
}
.woocommerce-checkout .form-row label {
    margin-bottom: 4px !important;
}

/* Робимо самі поля тоншими (були пухкі) */
.woocommerce-checkout .form-row input.input-text, 
.woocommerce-checkout .form-row select,
.select2-container .select2-selection--single {
    height: 38px !important; 
    padding: 6px 12px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
}

/* Трохи стискаємо іконки доставки */
ul#shipping_method li label {
    min-height: 55px !important;
    padding: 8px 5px !important;
}
/* ==========================================
   УЛЬТРА-КОМПРЕСІЯ ТА ФІКС ОПЛАТИ (ФІНАЛ)
========================================== */

/* --- 1. ФІКС ОПЛАТИ (ОДНА КОЛОНКА) --- */
ul.payment_methods {
    display: grid !important;
    grid-template-columns: 1fr !important; /* Робимо плашки одна під одною */
    gap: 8px !important;
}

ul.payment_methods li.wc_payment_method {
    padding: 10px 15px !important; /* Робимо плашки оплат трохи тоншими */
}

/* --- 2. ІКОНКА ДЛЯ "ГОТІВКИ" (SVG) --- */
label[for="payment_method_cod"] {
    display: flex !important;
    align-items: center !important;
}

label[for="payment_method_cod"]::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 10px;
    /* Векторна іконка гаманця/банкноти кольору #0ea5a4 */
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ea5a4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='2' y='6' width='20' height='12' rx='2'/%3e%3ccircle cx='12' cy='12' r='2'/%3e%3cpath d='M6 12h.01M18 12h.01'/%3e%3c/svg%3e") no-repeat center center;
    background-size: contain;
}

/* --- 3. ЕКСТРЕМАЛЬНЕ ВЕРТИКАЛЬНЕ СТИСНЕННЯ --- */
@media (min-width: 993px) {
    /* Зменшуємо "повітря" всередині великих білих карток */
    .avto-cart-wrapper,
    #order_review,
    .avto-checkout-right {
        padding: 15px 25px !important; 
    }
    
    /* Зменшуємо відстань між карткою товару і блоком оплати */
    .avto-checkout-left,
    .avto-checkout-right {
        gap: 12px !important; 
    }
}

/* Зменшуємо відступи між самими полями вводу */
.woocommerce-checkout .form-row {
    margin-bottom: 8px !important; /* Було 12px */
}
.woocommerce-checkout .form-row label {
    margin-bottom: 2px !important;
    font-size: 9px !important; /* Ледь-ледь менший шрифт заголовків */
}

/* Робимо поля вводу тоншими */
.woocommerce-checkout .form-row input.input-text, 
.woocommerce-checkout .form-row select,
.select2-container .select2-selection--single {
    height: 34px !important; /* Було 38px */
    padding: 4px 10px !important;
    font-size: 13px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px !important;
}

/* Зменшуємо плашки доставки */
ul#shipping_method {
    margin-top: 10px !important;
}
ul#shipping_method li label {
    min-height: 48px !important; /* Робимо їх нижчими */
    padding: 5px !important;
}
.avto-shipping-icon {
    width: 20px !important; /* Зменшуємо іконки авто/магазину */
    height: 20px !important;
    margin-bottom: 2px !important;
}

/* Зменшуємо відступ і товщину фінальної кнопки */
#place_order {
    margin-top: 15px !important;
    padding: 14px 20px !important; 
}
/* ==========================================
   БУДИНОК І КВАРТИРА В ОДИН РЯД
========================================== */

/* Робимо поля по 48% ширини і ставимо в ряд */
.woocommerce-checkout .form-row[id*="house"], 
.woocommerce-checkout .form-row[id*="apartment"],
.woocommerce-checkout .form-row[id*="flat"],
.woocommerce-checkout .form-row[id*="address_2"] {
    width: 48% !important;
    float: left !important;
    clear: none !important;
}

/* Додаємо відступ справа для Будинку (щоб не злипалися) */
.woocommerce-checkout .form-row[id*="house"] {
    margin-right: 4% !important;
}

/* Забираємо відступ справа для Квартири (вона з краю) */
.woocommerce-checkout .form-row[id*="apartment"],
.woocommerce-checkout .form-row[id*="flat"],
.woocommerce-checkout .form-row[id*="address_2"] {
    margin-right: 0 !important;
}

/* Додаємо очищення (clearfix), щоб наступні елементи не "наїжджали" на ці поля */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper::after,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper::after {
    content: "";
    display: table;
    clear: both;
}
/* ==========================================
   УЛЬТРА-ДІЄТА: ВМІЩАЄМО ВЕСЬ ЧЕКАУТ В 1 ЕКРАН
========================================== */

@media (min-width: 993px) {
    /* 1. Зрізаємо внутрішні відступи білих карток до мінімуму */
    .avto-cart-wrapper,
    #order_review,
    .avto-checkout-right {
        padding: 12px 15px !important; 
    }
    
    /* 2. Зменшуємо дірку між товаром і блоком оплати зліва */
    .avto-checkout-left {
        gap: 8px !important; 
    }
    
    /* 3. Підтягуємо всю сітку трохи вище до хедера */
    form.avto-checkout-container {
        margin-top: -10px !important;
    }
}

/* 4. Сплющуємо поля вводу (відступи між ними та висоту) */
.woocommerce-checkout .form-row {
    margin-bottom: 5px !important; 
}
.woocommerce-checkout .form-row label {
    margin-bottom: 2px !important;
}
.woocommerce-checkout .form-row input.input-text, 
.woocommerce-checkout .form-row select,
.select2-container .select2-selection--single {
    height: 30px !important; 
    padding: 0 10px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px !important;
}

/* 5. Стискаємо плашки доставки */
ul#shipping_method {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}
ul#shipping_method li label {
    min-height: 42px !important; 
    padding: 4px 2px !important;
}
.avto-shipping-icon {
    width: 18px !important; /* Робимо іконки машинок трохи меншими */
    height: 18px !important;
}

/* 6. Стискаємо плашки оплати */
ul.payment_methods {
    gap: 5px !important;
    margin-bottom: 0 !important;
}
ul.payment_methods li.wc_payment_method {
    padding: 8px 12px !important; 
}

/* 7. Зменшуємо повітря навколо суми "Загалом" */
tr.order-total th, 
tr.order-total td {
    padding: 8px 0 !important;
}

/* 8. Робимо кнопку трохи тоншою */
#place_order {
    margin-top: 10px !important;
    padding: 12px 15px !important; 
    font-size: 15px !important;
}

/* 9. Трохи зменшуємо мініатюру товару, щоб виграти висоту в лівій колонці */
.avto-cart-wrapper .avto-item-img img {
    max-width: 80px !important; 
}
/* ==========================================
   ФІНАЛЬНЕ ПІДТЯГУВАННЯ ОПЛАТИ ТА КНОПКИ
========================================== */

/* 1. Знищуємо дірку під способами доставки */
.woocommerce-checkout #order_review table.shop_table {
    margin-bottom: 0 !important;
}
.woocommerce-checkout #order_review tr.shipping td {
    padding-bottom: 5px !important;
}

/* 2. Максимально стискаємо рядок "Загалом" */
tr.order-total th, 
tr.order-total td {
    padding: 2px 0 8px 0 !important;
}

/* 3. Підтягуємо весь блок оплат вгору */
#payment {
    margin-top: 0 !important;
}
#payment ul.payment_methods {
    padding: 0 !important;
    margin-bottom: 5px !important;
    border-bottom: none !important; /* Прибираємо прихований відступ WooCommerce */
}

/* 4. Підтягуємо кнопку "Підтвердити замовлення" до оплат */
#payment .form-row.place-order {
    margin: 3px 0 0 0 !important;
    padding: 0 !important;
}
#place_order {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
/* ==========================================
   ТОТАЛЬНЕ ПЕРЕПЛАНУВАННЯ СТОРІНКИ ТОВАРУ
========================================== */

@media (min-width: 993px) {
    /* 1. СІТКА: ЗВУЖУЄМО ФОТО, РОЗШИРЮЄМО ПРАВУ ЧАСТИНУ, ПЕРЕНОСИМО ТАБИ */
    .woocommerce div.product {
        display: grid !important;
        grid-template-columns: 32% 65% !important; /* Фото 32%, Контент 65% */
        gap: 20px 3% !important;
        align-items: start !important;
    }

    /* Фото (Лівий верхній кут) */
    .woocommerce div.product div.images {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    /* Таби Опис/Відгуки (Переміщуємо точно під фото) */
    .woocommerce div.product .woocommerce-tabs {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Права колонка з даними (Розтягуємо на всю висоту праворуч) */
    .woocommerce div.product div.summary {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important; 
        width: 100% !important;
        padding-top: 0 !important;
    }

    /* 2. ЗМЕНШУЄМО ВІДСТУПИ У ШАПЦІ */
    .woocommerce div.product .product_title {
        font-size: 24px !important;
        margin-bottom: 5px !important;
        line-height: 1.2 !important;
    }
    .woocommerce div.product .woocommerce-product-rating { margin-bottom: 5px !important; }
    .woocommerce div.product .price { margin-bottom: 5px !important; font-size: 18px !important; }
    .woocommerce div.product .woocommerce-breadcrumb { margin-bottom: 5px !important; padding: 0 !important; }
    .woocommerce-product-details__short-description { margin-bottom: 10px !important; }
    .woocommerce-product-details__short-description p { margin-bottom: 0 !important; font-size: 13px !important; }

    /* 3. ТАБЛИЦЯ ВАРІАЦІЙ (Компактний вигляд) */
    table.variations { margin-bottom: 10px !important; }
    table.variations tr {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 10px !important;
    }
    table.variations td.label { padding: 0 0 5px 0 !important; }
    table.variations td.label label { font-size: 11px !important; }
    table.variations td.value { padding: 0 !important; width: 100% !important; }

    /* 4. ЗВУЖУЄМО ПЛАШКИ РОЗМІРУ (Перша стрілочка в таблиці) */
    .vi-wpvs-variation-wrap { gap: 5px !important; }
    .vi-wpvs-variation-wrap .vi-wpvs-option-wrap { padding: 2px !important; }
    .vi-wpvs-variation-wrap .vi-wpvs-option-wrap img {
        max-height: 45px !important; /* Жорстко зрізаємо висоту номерів */
        width: auto !important;
        object-fit: contain !important;
    }

    /* 5. РОКИ ПРИСВОЄННЯ: 4 В РЯД (Забороняємо падати вниз) */
    td.value .vi-wpvs-variation-wrap {
        display: flex !important;
        flex-wrap: nowrap !important; /* Усі кнопки в один ряд */
        width: 100% !important;
    }
    td.value .vi-wpvs-option-wrap.vi-wpvs-option-wrap-button {
        flex: 1 1 auto !important; /* Розтягуємо рівномірно */
        padding: 5px 2px !important;
        font-size: 11px !important;
        min-width: 0 !important;
        text-align: center !important;
    }

    /* 6. СТИСКАЄМО ФОРМУ ОФОРМЛЕННЯ (Додаткові поля) */
    .wapf-wrapper, .tc-extra-product-options {
        padding: 15px !important;
        margin-top: 10px !important;
        background: #fdfdfd !important;
        border: 1px solid #eee !important;
        border-radius: 12px !important;
    }
    .wapf-field-row { margin-bottom: 8px !important; }
    .wapf-field-container label { margin-bottom: 3px !important; font-size: 11px !important; }
    
    .wapf-field-container input[type="text"],
    .wapf-field-container input[type="file"] {
        height: 32px !important; /* Звужуємо поля вводу */
        padding: 4px 10px !important;
        font-size: 12px !important;
    }

    /* 7. КНОПКА ЗАМОВЛЕННЯ */
    .woocommerce-variation-add-to-cart { padding-top: 5px !important; }
    .woocommerce-variation-add-to-cart .single_add_to_cart_button {
        padding: 12px !important;
        margin-top: 5px !important;
        width: 100% !important;
    }
}
/* ==========================================
   МАКСИМАЛЬНО КОМПАКТНА СТОРІНКА ТОВАРУ (1 ЕКРАН)
========================================== */

@media (min-width: 993px) {
    /* --- КРОК 1: ЗМЕНШУЄМО ЗОБРАЖЕННЯ (ФОТО 30%, КОНТЕНТ 67%) --- */
    .woocommerce div.product {
        display: grid !important;
        grid-template-columns: 30% 67% !important; 
        gap: 0 3% !important;
        align-items: start !important;
    }
    .woocommerce div.product .woocommerce-product-gallery {
        grid-column: 1 !important;
        grid-row: 1 !important;
        margin-bottom: 10px !important;
    }
    .woocommerce div.product .summary.entry-summary {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        padding-top: 0 !important;
    }
    /* Таби (якщо вони є) ховаємо під фото */
    .woocommerce div.product .woocommerce-tabs {
        grid-column: 1 !important;
        grid-row: 2 !important;
        margin-top: 0 !important;
    }

    /* --- КРОК 2: ЗМЕНШУЄМО ВЕРТИКАЛЬНІ ВІДСТУПИ --- */
    .summary.entry-summary .product_title { font-size: 22px !important; margin-bottom: 2px !important; line-height: 1.1 !important; }
    .summary.entry-summary .woocommerce-product-rating { margin-bottom: 2px !important; }
    .summary.entry-summary .price { font-size: 18px !important; margin-bottom: 4px !important; }
    .summary.entry-summary .woocommerce-breadcrumb { margin-bottom: 4px !important; font-size: 11px !important; padding: 0 !important; }
    .summary.entry-summary .woocommerce-product-details__short-description { margin-bottom: 6px !important; font-size: 12px !important; }
    .summary.entry-summary .woocommerce-product-details__short-description p { margin-bottom: 0 !important; }

    /* Таблиця варіацій (загальні відступи) */
    table.variations { margin-bottom: 6px !important; width: 100% !important; }
    table.variations td.label { padding: 0 0 2px 0 !important; }
    table.variations td.label label { font-size: 11px !important; margin: 0 !important; }
    table.variations td.value { padding: 0 !important; width: 100% !important; }

    /* Зменшуємо висоту самих плашок розміру номерів */
    .vi-wpvs-variation-wrap { gap: 5px !important; }
    .vi-wpvs-variation-wrap .vi-wpvs-option-wrap img { max-height: 38px !important; width: auto !important; }

    /* --- КРОК 3: "ДИЗАЙН" І "КІЛЬКІСТЬ" В ОДИН РЯД --- */
    table.variations tbody {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }
    table.variations tr {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 8px !important;
        border: none !important;
    }
    /* Крок 1 і 2 - на 100% ширини */
    table.variations tr:nth-child(1),
    table.variations tr:nth-child(2) { width: 100% !important; }
    
    /* Крок 3 і 4 - по 48% ширини (стають поруч) */
    table.variations tr:nth-child(3),
    table.variations tr:nth-child(4) { 
        width: 48% !important; 
        margin-bottom: 0 !important; 
    }

    /* --- КРОК 4: СТИСКАЄМО ФОРМУ ДОДАТКОВИХ ПОЛІВ --- */
    /* Робимо саму рамку компактнішою */
    .wapf-wrapper, .tc-extra-product-options {
        margin-top: 5px !important;
        padding: 10px 15px !important; 
        background: #fdfdfd !important;
        border: 1px solid #eee !important;
        border-radius: 8px !important;
    }
    /* Перетворюємо поля форми на сітку (Текст на всю ширину, два фото - поруч) */
    .wapf-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px 15px !important;
    }
    .wapf-field-row:nth-child(1) {
        grid-column: span 2 !important; /* Перше поле (текст) на всю ширину */
    }
    .wapf-field-row { margin-bottom: 0 !important; }
    .wapf-field-container label { font-size: 11px !important; margin-bottom: 2px !important; display: block !important; }
    
    /* Робимо самі інпути дуже тонкими */
    .wapf-field-container input[type="text"],
    .wapf-field-container input[type="file"] {
        height: 28px !important; 
        padding: 2px 8px !important;
        font-size: 11px !important;
    }

    /* Кнопка замовлення */
    .woocommerce-variation-add-to-cart { padding-top: 8px !important; margin-top: 0 !important; }
    .woocommerce-variation-add-to-cart button.single_add_to_cart_button {
        padding: 12px !important;
        font-size: 14px !important;
        margin-top: 0 !important;
        width: 100% !important;
    }
}
/* ==========================================
   МАКСИМАЛЬНО КОМПАКТНА СТОРІНКА ТОВАРУ (1 ЕКРАН)
========================================== */

@media (min-width: 993px) {
    /* --- КРОК 1: ЗМЕНШУЄМО ЗОБРАЖЕННЯ (ФОТО 30%, КОНТЕНТ 67%) --- */
    .woocommerce div.product {
        display: grid !important;
        grid-template-columns: 30% 67% !important; 
        gap: 0 3% !important;
        align-items: start !important;
    }
    .woocommerce div.product .woocommerce-product-gallery {
        grid-column: 1 !important;
        grid-row: 1 !important;
        margin-bottom: 10px !important;
    }
    .woocommerce div.product .summary.entry-summary {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        padding-top: 0 !important;
    }
    /* Таби (якщо вони є) ховаємо під фото */
    .woocommerce div.product .woocommerce-tabs {
        grid-column: 1 !important;
        grid-row: 2 !important;
        margin-top: 0 !important;
    }

    /* --- КРОК 2: ЗМЕНШУЄМО ВЕРТИКАЛЬНІ ВІДСТУПИ --- */
    .summary.entry-summary .product_title { font-size: 22px !important; margin-bottom: 2px !important; line-height: 1.1 !important; }
    .summary.entry-summary .woocommerce-product-rating { margin-bottom: 2px !important; }
    .summary.entry-summary .price { font-size: 18px !important; margin-bottom: 4px !important; }
    .summary.entry-summary .woocommerce-breadcrumb { margin-bottom: 4px !important; font-size: 11px !important; padding: 0 !important; }
    .summary.entry-summary .woocommerce-product-details__short-description { margin-bottom: 6px !important; font-size: 12px !important; }
    .summary.entry-summary .woocommerce-product-details__short-description p { margin-bottom: 0 !important; }

    /* Таблиця варіацій (загальні відступи) */
    table.variations { margin-bottom: 6px !important; width: 100% !important; }
    table.variations td.label { padding: 0 0 2px 0 !important; }
    table.variations td.label label { font-size: 11px !important; margin: 0 !important; }
    table.variations td.value { padding: 0 !important; width: 100% !important; }

    /* Зменшуємо висоту самих плашок розміру номерів */
    .vi-wpvs-variation-wrap { gap: 5px !important; }
    .vi-wpvs-variation-wrap .vi-wpvs-option-wrap img { max-height: 38px !important; width: auto !important; }

    /* --- КРОК 3: "ДИЗАЙН" І "КІЛЬКІСТЬ" В ОДИН РЯД --- */
    table.variations tbody {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }
    table.variations tr {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 8px !important;
        border: none !important;
    }
    /* Крок 1 і 2 - на 100% ширини */
    table.variations tr:nth-child(1),
    table.variations tr:nth-child(2) { width: 100% !important; }
    
    /* Крок 3 і 4 - по 48% ширини (стають поруч) */
    table.variations tr:nth-child(3),
    table.variations tr:nth-child(4) { 
        width: 48% !important; 
        margin-bottom: 0 !important; 
    }

    /* --- КРОК 4: СТИСКАЄМО ФОРМУ ДОДАТКОВИХ ПОЛІВ --- */
    /* Робимо саму рамку компактнішою */
    .wapf-wrapper, .tc-extra-product-options {
        margin-top: 5px !important;
        padding: 10px 15px !important; 
        background: #fdfdfd !important;
        border: 1px solid #eee !important;
        border-radius: 8px !important;
    }
    /* Перетворюємо поля форми на сітку (Текст на всю ширину, два фото - поруч) */
    .wapf-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px 15px !important;
    }
    .wapf-field-row:nth-child(1) {
        grid-column: span 2 !important; /* Перше поле (текст) на всю ширину */
    }
    .wapf-field-row { margin-bottom: 0 !important; }
    .wapf-field-container label { font-size: 11px !important; margin-bottom: 2px !important; display: block !important; }
    
    /* Робимо самі інпути дуже тонкими */
    .wapf-field-container input[type="text"],
    .wapf-field-container input[type="file"] {
        height: 28px !important; 
        padding: 2px 8px !important;
        font-size: 11px !important;
    }

    /* Кнопка замовлення */
    .woocommerce-variation-add-to-cart { padding-top: 8px !important; margin-top: 0 !important; }
    .woocommerce-variation-add-to-cart button.single_add_to_cart_button {
        padding: 12px !important;
        font-size: 14px !important;
        margin-top: 0 !important;
        width: 100% !important;
    }
}
/* ==========================================
   ПЕРЕСТАНОВКА: ДИЗАЙН ПОРУЧ ІЗ КІЛЬКІСТЮ + ФОРМА ЗЛІВА
========================================== */

@media (min-width: 993px) {
    /* 1. Налаштовуємо головну сітку сторінки */
    body.single-product .woocommerce div.product {
        display: grid !important;
        grid-template-columns: 35% 62% !important; /* Трохи розширив ліву колонку, щоб форма туди гарно влізла */
        gap: 0 3% !important;
        align-items: start !important;
    }

    /* Галерея залишається зліва зверху */
    body.single-product .woocommerce-product-gallery {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    /* Уся інформація (кроки 1-4) - справа зверху */
    body.single-product .summary.entry-summary {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    /* 2. ПЕРЕКИДАЄМО СІРУ ФОРМУ (ТЕХПАСПОРТ) ВЛІВО ПІД ФОТО */
    body.single-product .wapf-wrapper, 
    body.single-product .tc-extra-product-options {
        grid-column: 1 !important;
        grid-row: 2 !important; /* Ставимо в другий рядок зліва */
        margin-top: 15px !important;
        padding: 15px !important; 
        background: #fdfdfd !important;
        border: 1px solid #eee !important;
        border-radius: 8px !important;
        display: flex !important;
        flex-direction: column !important; /* Поля йдуть одне під одним, бо колонка вузька */
        gap: 10px !important;
    }
    
    /* Кнопку замовлення теж залишаємо під формою в лівій колонці (щоб було логічно після завантаження фото) */
    body.single-product .woocommerce-variation-add-to-cart {
        grid-column: 1 !important;
        grid-row: 3 !important;
        padding-top: 10px !important;
    }
    body.single-product .woocommerce-variation-add-to-cart button.single_add_to_cart_button {
        width: 100% !important;
        padding: 15px !important;
    }

    /* Таби (Опис) опускаємо в самий низ на всю ширину */
    body.single-product .woocommerce-tabs {
        grid-column: 1 / -1 !important;
        grid-row: 4 !important;
        margin-top: 30px !important;
        clear: both !important;
    }

    /* 3. КРОКИ 3 ТА 4 СТАВИМО В ОДИН РЯД (Справа) */
    body.single-product table.variations tbody {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }
    body.single-product table.variations tr {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 15px !important;
        border: none !important;
    }
    
    /* Крок 1 (Розмір) і Крок 2 (Роки) - на всю ширину правої колонки */
    body.single-product table.variations tr:nth-child(1),
    body.single-product table.variations tr:nth-child(2) { 
        width: 100% !important; 
        flex: 0 0 100% !important;
    }
    
    /* Крок 3 (Кількість) і Крок 4 (Дизайн) - по 48% (стають поруч) */
    body.single-product table.variations tr:nth-child(3),
    body.single-product table.variations tr:nth-child(4) { 
        width: 48% !important; 
        flex: 0 0 48% !important; 
        margin-bottom: 0 !important; 
    }
}
/* ==========================================
   КОМПАКТНА СІТКА СТОРІНКИ ТОВАРУ (З ПЕРЕСТАНОВКОЮ)
========================================== */

@media (min-width: 993px) {
    /* 1. Головна сітка */
    body.single-product .woocommerce div.product {
        display: grid !important;
        grid-template-columns: 35% 62% !important; 
        gap: 0 3% !important;
        align-items: start !important;
    }

    /* Галерея зліва */
    body.single-product .woocommerce-product-gallery {
        grid-column: 1 !important;
        grid-row: 1 !important;
        margin-bottom: 0 !important;
    }

    /* Шапка і варіації справа */
    body.single-product .summary.entry-summary {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding-top: 0 !important;
        width: 100% !important;
    }

    /* 2. Сіра форма (Техпаспорт) - переносимо вліво під фото */
    body.single-product .wapf-wrapper, 
    body.single-product .tc-extra-product-options {
        grid-column: 1 !important;
        grid-row: 2 !important; 
        margin-top: 15px !important;
        padding: 15px !important; 
        background: #fdfdfd !important;
        border: 1px solid #eee !important;
        border-radius: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* Кнопка замовлення - теж зліва під формою */
    body.single-product .woocommerce-variation-add-to-cart {
        grid-column: 1 !important;
        grid-row: 3 !important;
        padding-top: 10px !important;
    }
    body.single-product .woocommerce-variation-add-to-cart button.single_add_to_cart_button {
        width: 100% !important;
        padding: 15px !important;
    }

    /* Таби (Опис/Відгуки) - опускаємо в самий низ */
    body.single-product .woocommerce-tabs {
        grid-column: 1 / -1 !important;
        grid-row: 4 !important;
        margin-top: 30px !important;
        clear: both !important;
    }

    /* 3. КРОКИ 3 ТА 4 СТАВИМО В ОДИН РЯД (Справа) */
    body.single-product table.variations { width: 100% !important; }
    body.single-product table.variations tbody {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }
    body.single-product table.variations tr {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 15px !important;
        border: none !important;
    }
    
    /* Крок 1 і 2 - на всю ширину */
    body.single-product table.variations tr:nth-child(1),
    body.single-product table.variations tr:nth-child(2) { 
        width: 100% !important; 
    }
    
    /* Крок 3 і 4 - по 48% (стають поруч) */
    body.single-product table.variations tr:nth-child(3),
    body.single-product table.variations tr:nth-child(4) { 
        width: 48% !important; 
        margin-bottom: 0 !important; 
    }
}
/* =========================================
   ТОНКА СМУГА ХЕДЕРА + НОРМАЛЬНИЙ ТЕКСТ
========================================= */

/* 1. Жорстко фіксуємо висоту самої смуги хедера */
.site-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 60px !important; 
    height: 60px !important;
    display: flex;
    align-items: center;
}

.header-inner {
    min-height: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
}

/* 2. Логотип: пропорційно вписуємо в нову висоту */
.header-logo img,
.site-logo {
    max-height: 40px !important;
    width: auto !important;
    margin: 0 !important;
    display: block !important;
}

/* 3. Меню навігації: нормальний шрифт, але без вертикальних відступів */
.header-nav ul.menu {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.header-nav ul.menu li a {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 14px !important; /* Нормальний, читабельний текст */
    font-weight: 500 !important;
    line-height: 60px !important; /* Текст рівно по центру хедера */
}

/* 4. Блок контактів (телефон, кошик, кнопка) */
.header-contacts {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin: 0 !important;
    gap: 15px !important;
}

/* Нормальний розмір телефону */
.header-phone {
    font-size: 15px !important; 
    font-weight: 700 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

/* Кнопка: компактні відступи, але нормальний шрифт */
.header-contacts .btn.open-popup {
    padding: 8px 16px !important; 
    font-size: 14px !important; /* Повертаємо нормальний розмір */
    font-weight: 700 !important;
    line-height: 1.2 !important;
    height: auto !important;
    margin: 0 !important;
}

/* Іконки кошика та кабінету */
.header-contacts svg {
    width: 22px !important;
    height: 22px !important;
}

/* Підтягуємо контент вище до тонкого хедера */
.site-content {
    padding-top: 15px !important; 
}
/* =========================================
   ФІКС КАРТОК СПОСОБІВ ДОСТАВКИ (КОШИК)
========================================= */

/* Задаємо правильну сітку для карток, щоб вони були однаковими */
ul#shipping_method {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    margin: 10px 0 !important;
    padding: 0 !important;
}

ul#shipping_method li {
    flex: 1 1 0 !important; /* Картки ділять ширину порівну */
    min-width: 0 !important;
    margin: 0 !important;
}

/* Прокачуємо вміст картки (текст) */
ul#shipping_method li label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    height: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 6px !important; /* Більше повітря всередині */
    white-space: normal !important; /* Дозволяємо тексту нормально переноситись */
    font-size: 13px !important; /* Збільшуємо розмір шрифту */
    line-height: 1.25 !important;
    font-weight: 600 !important;
    word-wrap: break-word !important;
}

/* Робимо логотипи нормального розміру */
ul#shipping_method li label img {
    display: block !important;
    width: 45px !important; /* Значно збільшуємо логотип */
    height: 40px !important; 
    max-width: 100% !important;
    object-fit: contain !important; /* Щоб лого не сплюснуло */
    margin: 0 auto 8px auto !important; /* Рівний відступ від лого до тексту */
}
/* =========================================
   ФІКС "МАТРЬОШКИ" (ЗВІЛЬНЯЄМО ПРОСТІР)
========================================= */

/* 1. Вбиваємо сіру рамку навколо товару зліва */
.woocommerce-cart-form table.cart tr.cart_item,
.woocommerce-cart-form .cart_item,
.woocommerce-cart-form table.shop_table {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Прибираємо можливі внутрішні лінії таблиці */
.woocommerce-cart-form table.cart td,
.woocommerce-cart-form table.cart th {
    border: none !important; 
}

/* 2. Прибираємо тінь з мініатюри (робимо її плоскою і сучасною) */
.woocommerce-cart-form .product-thumbnail img,
.woocommerce-cart table.cart img {
    box-shadow: none !important;
    border: 1px solid #f2f2f2 !important; /* Тільки ледь помітна лінія, щоб фото не зливалося з фоном */
}

/* 3. Робимо картки доставки "повітряними" */
ul#shipping_method li {
    border: 1px solid #f0f0f0 !important; /* Максимально непомітна базова рамка */
    background: transparent !important; /* Забираємо сірий фон */
}

/* Сучасний трюк: виділяємо рамку лише тоді, коли радіокнопка вибрана */
ul#shipping_method li:has(input:checked) {
    border-color: #0ea5a4 !important;
    background: #faffff !important; /* Легкий бірюзовий відтінок фону для активного */
}

ul#shipping_method li:hover {
    border-color: #b0e2e2 !important;
}
/* =========================================
   ГЛОБАЛЬНА СІТКА КОШИКА (ШИРОКИЙ ФОРМАТ)
========================================= */

@media (min-width: 769px) {
    /* 1. Розширюємо загальний контейнер кошика */
    .woocommerce-cart .woocommerce {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 5% !important; /* Відстань між товаром і підсумками */
        max-width: 1200px !important; /* Робимо кошик широким */
        margin: 0 auto !important;
    }
    
    /* 2. Лівий блок (Товар) - робимо компактнішим і сунемо вліво */
    .woocommerce-cart .woocommerce-cart-form {
        width: 40% !important;
        flex: 0 0 40% !important;
        margin: 0 !important;
    }

    /* 3. Правий блок (Підсумки і Доставка) - віддаємо максимум місця */
    .woocommerce-cart .cart-collaterals {
        width: 55% !important;
        flex: 0 0 55% !important;
        margin: 0 !important;
    }
}
/* =========================================
   ГЛОБАЛЬНА СІТКА КОШИКА ТА ФІКС МАТРЬОШКИ
========================================= */

@media (min-width: 769px) {
    /* 1. Розширюємо загальну робочу зону */
    .woocommerce-cart .woocommerce {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        max-width: 100% !important; /* Даємо контейнеру всю ширину */
        gap: 40px !important; /* Відстань між колонками */
    }
    
    /* 2. Лівий блок (Товар) - сунемо вліво до упору */
    .woocommerce-cart .woocommerce-cart-form {
        width: 35% !important; /* Зменшуємо зону для товару */
        flex: 0 0 35% !important;
        margin: 0 !important;
        padding-left: 0 !important; /* Притискаємо до лівого краю */
    }

    /* 3. Правий блок (Підсумки) - розширюємо максимально */
    .woocommerce-cart .cart-collaterals {
        width: 60% !important; /* Віддаємо левову частку екрану */
        flex: 0 0 60% !important;
        margin: 0 !important;
        padding-right: 0 !important;
    }

    /* 4. Способи доставки: 3 В РЯД на десктопі */
    ul#shipping_method {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* Три колонки однакової ширини */
        gap: 12px !important;
    }
}

/* Мобільна версія для доставки (2 в ряд) */
@media (max-width: 768px) {
    ul#shipping_method {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
}

/* =========================================
   ВБИВАЄМО ВНУТРІШНЮ КАРТКУ (СІРИЙ ФОН)
========================================= */

/* Прибираємо фон, рамки та відступи навколо характеристик товару */
.woocommerce-cart-form dl.variation,
.woocommerce-cart-form .product-name,
.woocommerce-cart-form .cart_item td.product-name {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Притискаємо мініатюру товару до лівого краю без відступів */
.woocommerce-cart-form table.cart td.product-thumbnail {
    padding-left: 0 !important;
    text-align: left !important;
}

/* Прибираємо зайві рамки з таблиці кошика */
.woocommerce-cart-form table.shop_table {
    border: none !important;
    margin-left: 0 !important;
}

.woocommerce-cart-form table.shop_table td,
.woocommerce-cart-form table.shop_table th {
    border: none !important;
}

/* =========================================
   СТИЛІ СПОСОБІВ ДОСТАВКИ (ЧИСТИЙ ДИЗАЙН)
========================================= */

ul#shipping_method li {
    width: 90% !important; 
    margin: 0 !important;
    display: flex !important;
    border: 1px solid #eaeaea !important; /* Дуже легка рамка */
    border-radius: 8px !important;
    background: transparent !important;
    transition: all 0.2s ease;
}

/* Активний стан (коли вибрано) */
ul#shipping_method li:has(input:checked) {
    border-color: #0ea5a4 !important;
    background: #f4fdfd !important; /* Легкий фірмовий відтінок */
}

ul#shipping_method li label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 6px !important; 
    white-space: normal !important; 
    font-size: 13px !important; 
    line-height: 1.3 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

ul#shipping_method li label img {
    display: block !important;
    width: 45px !important; 
    height: 40px !important; 
    object-fit: contain !important; 
    margin: 0 auto 8px auto !important; 
}
/* =========================================
   НОВА СІТКА: МАКСИМУМ МІСЦЯ ДЛЯ ОФОРМЛЕННЯ
========================================= */

@media (min-width: 992px) {
    /* 1. Перерозподіл колонок: 30% ліворуч, 68% праворуч */
    .avto-checkout-grid {
        display: grid !important;
        grid-template-columns: 30% 68% !important; 
        gap: 2% !important;
        max-width: 100% !important;
        width: 100% !important;
        align-items: flex-start !important;
    }

    /* 2. Картки товарів - тепер у ряд (side-by-side) */
    .avto-cart-items {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        margin-bottom: 30px !important;
    }

    .avto-item-card {
        flex: 1 1 calc(50% - 15px) !important; /* По два товари в ряд у лівій колонці */
        display: flex !important;
        flex-direction: column !important; /* Фото зверху, текст знизу для вузької картки */
        background: #fff !important;
        border: 1px solid #f0f0f0 !important;
        border-radius: 12px !important;
        padding: 10px !important;
        text-align: center !important;
    }

    .avto-item-img img {
        max-width: 100% !important;
        height: auto !important;
        margin-bottom: 10px !important;
    }

    /* 3. Способи доставки - ЖОРСТКО 4 В РЯД */
    ul#shipping_method {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important; /* Чотири рівні колонки */
        gap: 10px !important;
        width: 100% !important;
    }
}

/* Налаштування для невеликих екранів (планшетів) */
@media (max-width: 1200px) and (min-width: 769px) {
    ul#shipping_method {
        grid-template-columns: repeat(2, 1fr) !important; /* На планшетах краще 2х2 */
    }
}

/* Прибираємо можливі обмеження ширини в темі */
.avto-checkout-right {
    width: 100% !important;
    max-width: 100% !important;
}

/* Компактні заголовки в картках */
.avto-item-info h4 {
    font-size: 13px !important;
    margin: 5px 0 !important;
    line-height: 1.2 !important;
}

.avto-item-meta {
    font-size: 12px !important;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
/* =========================================
   ГЛОБАЛЬНИЙ СУПЕР-ФІКС СТОРІНКИ КОШИКА 
   (Ламаємо таблицю WooCommerce)
========================================= */

@media (min-width: 992px) {
    /* 1. Глобальний поділ: 40% на товари, 60% на підсумки */
    .woocommerce-cart .woocommerce {
        display: flex !important;
        flex-direction: row !important;
        gap: 3% !important;
        max-width: 1200px !important;
        width: 100% !important;
        margin: 0 auto !important;
        align-items: flex-start !important;
    }

    .woocommerce-cart .woocommerce-cart-form {
        width: 40% !important;
        flex: 0 0 40% !important;
    }

    .woocommerce-cart .cart-collaterals {
        width: 57% !important;
        flex: 0 0 57% !important;
        margin-top: 0 !important;
    }

    /* 2. ПЕРЕТВОРЮЄМО ТАБЛИЦЮ НА КАРТКИ (2 в ряд) */
    .woocommerce-cart-form table.cart,
    .woocommerce-cart-form table.cart tbody {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        border: none !important;
        background: transparent !important;
    }

    /* Ховаємо заголовки таблиці */
    .woocommerce-cart-form table.cart thead {
        display: none !important;
    }

    /* Рядок таблиці стає карткою! */
    .woocommerce-cart-form table.cart tr.cart_item {
        display: flex !important;
        flex-direction: column !important; /* Фото зверху, текст знизу */
        width: calc(50% - 7.5px) !important; /* Дві картки в ряд */
        border: 1px solid #eaeaea !important;
        border-radius: 12px !important;
        padding: 15px !important;
        position: relative !important;
        box-sizing: border-box !important;
        background: #fff !important;
        margin-bottom: 0 !important;
    }

    /* Комірки таблиці стають звичайними блоками */
    .woocommerce-cart-form table.cart td {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        border: none !important;
        padding: 5px 0 !important;
    }

    /* Фото товару в картці */
    .woocommerce-cart-form table.cart td.product-thumbnail {
        margin: 0 auto 10px auto !important;
    }
    
    .woocommerce-cart-form table.cart td.product-thumbnail img {
        max-width: 100% !important;
        height: auto !important;
        border: none !important;
    }

    /* 3. ДОСТАВКА: ЖОРСТКО 4 В РЯД */
    ul#shipping_method {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }
}

/* =========================================
   ДЕТАЛІ КАРТКИ ТОВАРУ ТА СІТКА КОШИКА
========================================= */

/* --- 1. Глобальні стилі (для всіх екранів) --- */

/* Атрибути всередині картки товару (центруємо) */
.woocommerce-cart-form dl.variation {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin-top: 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.woocommerce-cart-form dl.variation dt {
    margin: 0 !important;
    font-size: 10px !important;
    color: #888 !important;
    text-align: center !important;
}

.woocommerce-cart-form dl.variation dd {
    margin: 0 0 5px 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #333 !important;
    text-align: center !important;
}

/* Червоний хрестик (видалення товару) чітко в кутку */
.woocommerce-cart-form table.cart td.product-remove {
    position: absolute !important;
    top: -10px !important;
    right: -10px !important;
    width: auto !important;
    z-index: 10 !important;
}

.woocommerce-cart a.remove {
    width: 24px !important;
    height: 24px !important;
    line-height: 22px !important;
    font-size: 16px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important; /* Тінь для контрасту з фоном */
}

/* --- 2. Десктопна версія (від 992px) --- */

@media (min-width: 992px) {
    /* Розподіл екрану: ліва колонка (Товари) */
    .woocommerce-cart .woocommerce-cart-form {
        width: 50% !important;
        flex: 0 0 50% !important;
    }

    /* Розподіл екрану: права колонка (Підсумки) */
    .woocommerce-cart .cart-collaterals {
        width: 47% !important;
        flex: 0 0 47% !important;
        margin-top: 0 !important;
    }

    /* Сітка товарів: 3 картки в ряд */
    .woocommerce-cart-form table.cart tr.cart_item {
        display: flex !important;
        flex-direction: column !important; 
        width: calc(33.333% - 10px) !important; /* 3 колонки з урахуванням gap */
        margin-bottom: 0 !important;
        padding: 15px !important;
        background: #fff !important;
        border: 1px solid #eaeaea !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
}
@media (min-width: 992px) {
    /* 1. Розширюємо загальний контейнер, щоб усім вистачило місця */
    .woocommerce-cart .woocommerce {
        max-width: 1400px !important; /* Збільшили з 1200px */
        width: 95% !important;
        gap: 2% !important; /* Відстань між лівою і правою колонкою */
    }

    /* 2. Лівій колонці (товарам) віддаємо аж 62% простору */
    .woocommerce-cart .woocommerce-cart-form {
        width: 62% !important; 
        flex: 0 0 62% !important;
    }

    /* 3. Правій колонці (підсумкам) залишаємо 36% (цього вистачить для 4 карток доставки) */
    .woocommerce-cart .cart-collaterals {
        width: 36% !important; 
        flex: 0 0 36% !important;
        margin-top: 0 !important;
    }

    /* 4. Запобіжник для карток товару, щоб вони ніколи не вилазили за межі */
    .woocommerce-cart-form table.cart tr.cart_item {
        width: calc(33.333% - 10px) !important; 
        padding: 10px !important; /* Трохи зменшили внутрішній відступ для економії місця */
        overflow: hidden !important; /* Обрізає все, що намагається вилізти за рамку картки */
    }

    /* 5. Дозволяємо довгому тексту в атрибутах переноситися, а не розривати картку */
    .woocommerce-cart-form dl.variation dt,
    .woocommerce-cart-form dl.variation dd {
        word-wrap: break-word !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }
}
/* =========================================
   ФІНАЛЬНИЙ ЛОСК ДЛЯ КАРТОК ДОСТАВКИ
========================================= */

@media (min-width: 992px) {
    /* Зменшуємо відстань між картками, щоб дати їм максимум фізичної ширини */
    ul#shipping_method {
        gap: 6px !important; 
    }
}

/* Компактний дизайн всередині картки */
ul#shipping_method li label {
    padding: 10px 4px !important; /* Мінімальні бокові відступи (4px), щоб влізло більше букв */
    font-size: 11px !important; /* Трохи менший шрифт для вузьких колонок */
    line-height: 1.15 !important; /* Максимально щільні рядки */
    justify-content: center !important; /* Центруємо вміст по вертикалі */
    min-height: 110px !important; /* Задаємо приблизну однакову висоту для всіх карток */
}

/* Акуратніші іконки */
ul#shipping_method li label img {
    width: 32px !important; /* Трохи зменшили (було 45px) */
    height: 32px !important; 
    margin-bottom: 6px !important; /* Менший відступ від картинки до тексту */
}

/* Гарантуємо, що всі картки розтягуються на однакову висоту */
ul#shipping_method li {
    height: auto !important;
    align-items: stretch !important;
}
/* =========================================
   РОЗШИРЕННЯ ПРАВОЇ КОЛОНКИ ТА КАРТОК ДОСТАВКИ
========================================= */

@media (min-width: 992px) {
    /* 1. Трохи звужуємо ліву колонку (для 3-х карток місця все одно вистачить) */
    .woocommerce-cart .woocommerce-cart-form {
        width: 56% !important; /* Було 62% */
        flex: 0 0 56% !important;
    }

    /* 2. Розширюємо праву колонку з підсумками */
    .woocommerce-cart .cart-collaterals {
        width: 42% !important; /* Було 36% (56 + 42 = 98%, залишається 2% на відступ) */
        flex: 0 0 42% !important;
    }
}

/* 3. Даємо карткам доставки більше повітря з боків */
ul#shipping_method li label {
    padding: 12px 8px !important; /* Збільшили відступи, щоб текст не прилипав до рамок */
    min-height: 100px !important; /* Трохи зменшили жорстку висоту, бо текст розтягнеться вшир */
    font-size: 11.5px !important; /* Можемо ледь-ледь збільшити шрифт для читабельності */
}
/* =========================================
   ФІНАЛЬНИЙ ФІКС ДОСТАВКИ: ІКОНКИ В РЯД ТА УЩІЛЬНЕННЯ
========================================= */

/* Притискаємо іконки до верху і максимально ущільнюємо текст */
ul#shipping_method li label {
    justify-content: flex-start !important; /* Вирівнювання строго по верхньому краю */
    padding: 10px 1px !important; /* Лишаємо лише 2px по боках для економії місця! */
    font-size: 10.5px !important; /* Оптимальний мінімум для читабельності */
    line-height: 1.15 !important;
    letter-spacing: -0.3px !important; /* Злегка стискаємо слова, щоб вони влазили в рядок */
    text-align: center !important;
}

/* Фіксуємо розмір іконок, щоб лінія була ідеально рівною */
ul#shipping_method li label img {
    display: block !important;
    height: 28px !important; /* Жорстка висота для всіх іконок */
    width: auto !important;
    max-width: 80% !important;
    margin: 0 auto 8px auto !important; /* Прибираємо верхній відступ, лишаємо тільки знизу */
    object-fit: contain !important;
}
/* =========================================
   ФІКС "МАТРЬОШКИ" НА СТОРІНЦІ ОФОРМЛЕННЯ (CHECKOUT)
========================================= */

/* 1. Знімаємо зайві рамки з головних внутрішніх блоків */
.woocommerce-checkout .avto-cart-wrapper,
.woocommerce-checkout #order_review,
.woocommerce-checkout #customer_details,
.woocommerce-checkout .col2-set {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Відступ між блоком товарів і блоком доставки/оплати */
.woocommerce-checkout .avto-cart-wrapper {
    margin-bottom: 25px !important;
}

/* 2. Приводимо товари зліва до акуратного горизонтального вигляду (Списком) */
.woocommerce-checkout .avto-cart-items {
    display: flex !important;
    flex-direction: column !important; /* Ставимо товари один під одним */
    gap: 0 !important;
}

.woocommerce-checkout .avto-item-card {
    display: flex !important;
    flex-direction: row !important; /* Горизонтальна орієнтація: фото зліва, текст справа */
    align-items: center !important;
    text-align: left !important;
    gap: 15px !important;
    border: none !important;
    border-bottom: 1px solid #eaeaea !important; /* Тільки тонкий роздільник між товарами */
    border-radius: 0 !important;
    padding: 12px 0 !important;
    background: transparent !important;
    width: 100% !important;
}

/* Прибираємо лінію під останнім товаром */
.woocommerce-checkout .avto-item-card:last-child {
    border-bottom: none !important;
}

/* Мініатюра товару в чекауті (робимо компактною) */
.woocommerce-checkout .avto-item-img {
    width: 60px !important;
    flex: 0 0 60px !important;
    margin-bottom: 0 !important;
}

/* Текстова інформація про товар */
.woocommerce-checkout .avto-item-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
}

.woocommerce-checkout .avto-item-info h4 {
    margin: 0 0 4px 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

/* Рядок з кількістю та ціною */
.woocommerce-checkout .avto-item-meta {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    font-size: 12px !important;
    color: #666 !important;
}

/* 3. Очищаємо блок оплати від стандартного брудного фону WooCommerce */
#payment.woocommerce-checkout-payment {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Робимо гарну рамку тільки для списку методів оплати */
#payment.woocommerce-checkout-payment ul.payment_methods {
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    background: #fff !important;
    padding: 15px !important;
    border-bottom: none !important;
}

/* Кнопка підтвердження і згода з правилами */
#payment.woocommerce-checkout-payment div.form-row {
    padding: 20px 0 0 0 !important;
    border-top: none !important;
}
/* =========================================
   ФІНАЛЬНА ЧИСТКА ЧЕКАУТУ ТА ДОСТАВКА В РЯД
========================================= */

/* 1. Вбиваємо глобальні зовнішні рамки навколо колонок (остання "матрьошка") */
.avto-checkout-grid .avto-checkout-left,
.avto-checkout-grid .avto-checkout-right {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* 2. Витягуємо доставку з тісної таблиці WooCommerce */
.woocommerce-checkout table.shop_table tfoot tr.shipping {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    border-top: 1px solid #eaeaea !important;
    border-bottom: 1px solid #eaeaea !important;
    padding: 20px 0 !important;
    margin: 15px 0 !important;
}

/* Ховаємо стандартний заголовок "Доставка", щоб не займав місце */
.woocommerce-checkout table.shop_table tfoot tr.shipping th {
    display: none !important;
}

/* Даємо контейнеру доставки 100% ширини */
.woocommerce-checkout table.shop_table tfoot tr.shipping td {
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
    border: none !important;
}

/* 3. Ставимо картки доставки жорстко в один рядок (4 в ряд) */
.woocommerce-checkout ul#shipping_method {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    margin: 0 !important;
    width: 100% !important;
}

/* На мобільних телефонах робимо 2х2, щоб було зручно тиснути пальцем */
@media (max-width: 768px) {
    .woocommerce-checkout ul#shipping_method {
        grid-template-columns: repeat(2, 1fr) !important; 
    }
}
/* =========================================
   СУПЕР-ГРІД: ПЕРЕЗБИРАЄМО СТРУКТУРУ ЧЕКАУТУ
========================================= */

@media (min-width: 992px) {
    /* 1. Робимо головний контейнер грід-сіткою */
    .woocommerce-checkout .avto-checkout-grid {
        display: grid !important;
        grid-template-columns: 35% 60% !important; /* 35% на товари, 60% на оформлення */
        gap: 5% !important;
        align-items: start !important;
        position: relative !important;
    }

    /* 2. РОЗЧИНЯЄМО ОБГОРТКИ (Магія)
       Це знищить класичні колонки Woo, щоб ми могли вільно сортувати їх вміст */
    .woocommerce-checkout .avto-checkout-left,
    .woocommerce-checkout .avto-checkout-right,
    .woocommerce-checkout #order_review,
    .woocommerce-checkout #order_review table.shop_table,
    .woocommerce-checkout #order_review table.shop_table tbody,
    .woocommerce-checkout #order_review table.shop_table tfoot {
        display: contents !important;
    }

    /* 3. ЛІВА КОЛОНКА (Фіксуємо список товарів зліва) */
    .woocommerce-checkout .avto-cart-wrapper {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 6 !important; /* Розтягуємо на всю висоту */
    }

    /* 4. ПРАВА КОЛОНКА, БЛОК 1: ДОСТАВКА (Тепер над формою!) */
    .woocommerce-checkout #order_review table.shop_table tfoot tr.shipping {
        grid-column: 2 / 3 !important;
        grid-row: 1 / 2 !important;
        display: block !important;
        border: none !important;
        padding: 0 0 20px 0 !important;
    }

    /* 5. ПРАВА КОЛОНКА, БЛОК 2: ФОРМА ПІП ТА АДРЕСИ */
    .woocommerce-checkout #customer_details {
        grid-column: 2 / 3 !important;
        grid-row: 2 / 3 !important;
        margin-bottom: 25px !important;
    }

    /* 6. ПРАВА КОЛОНКА, БЛОК 3: ПІДСУМОК "ЗАГАЛОМ" */
    .woocommerce-checkout #order_review table.shop_table tfoot tr.order-total {
        grid-column: 2 / 3 !important;
        grid-row: 3 / 4 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 0 !important;
        border-top: 1px solid #eaeaea !important;
        border-bottom: 1px solid #eaeaea !important;
        margin-bottom: 25px !important;
    }

    /* 7. ПРАВА КОЛОНКА, БЛОК 4: ОПЛАТА (Під підсумком) */
    .woocommerce-checkout #payment {
        grid-column: 2 / 3 !important;
        grid-row: 4 / 5 !important;
    }

    /* Ховаємо зайві рядки стандартної таблиці (заголовки, дублюючі суми) */
    .woocommerce-checkout #order_review table.shop_table thead,
    .woocommerce-checkout #order_review table.shop_table tfoot tr.cart-subtotal {
        display: none !important;
    }
}

/* =========================================
   СПОСОБИ ОПЛАТИ - РОБИМО ГОРИЗОНТАЛЬНИЙ РЯДОК
========================================= */

.woocommerce-checkout #payment ul.payment_methods {
    display: flex !important;
    flex-direction: row !important; /* Ставимо в рядок */
    gap: 15px !important;
    padding: 0 !important;
    margin: 0 0 25px 0 !important;
    border: none !important;
    background: transparent !important;
}

/* На телефонах краще залишити один під одним */
@media (max-width: 768px) {
    .woocommerce-checkout #payment ul.payment_methods {
        flex-direction: column !important;
    }
}

/* Оформлюємо способи оплати як стильні кнопки */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
    flex: 1 1 0 !important; /* Ділять ширину порівну */
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    transition: all 0.2s ease;
}

/* Виділяємо активний спосіб оплати фірмовим кольором */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(input:checked) {
    border-color: #0ea5a4 !important;
    background: #f4fdfd !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin: 0 0 0 10px !important;
    display: flex !important;
    align-items: center !important;
}

/* Ховаємо випадаючі сірі блоки з текстовим описом оплати, 
   щоб вони не ламали нашу красиву горизонтальну сітку кнопок */
.woocommerce-checkout #payment div.payment_box {
    display: none !important;
}
/* =========================================
   ФІКС "ПРИВИДІВ" ВНИЗУ ЧЕКАУТУ
========================================= */

/* Вбиваємо стандартний дублюючий список товарів WooCommerce, 
   оскільки у нас вже є свій кастомний список зліва */
.woocommerce-checkout #order_review table.shop_table tbody {
    display: none !important;
}
/* =========================================
   УЩІЛЬНЕННЯ ЧЕКАУТУ (Зменшуємо вертикальні відступи)
========================================= */

/* 1. Відступ під картками доставки */
.woocommerce-checkout #order_review table.shop_table tfoot tr.shipping {
    padding-bottom: 15px !important; /* Було 20px */
}

/* 2. Зменшуємо дірки між полями в самій формі (Прізвище, Місто тощо) */
.woocommerce-checkout .woocommerce-billing-fields .form-row {
    margin-bottom: 12px !important; /* Стандартно буває понад 24px */
}

/* 3. Відступ під усією формою клієнта перед лінією "Загалом" */
.woocommerce-checkout #customer_details {
    margin-bottom: 10px !important; /* Було 25px */
}

/* 4. Сам рядок "Загалом" робимо тоншим */
.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total {
    padding: 10px 0 !important; /* Було 15px */
    margin-bottom: 15px !important; /* Було 25px */
}

/* 5. Відступ між картками оплати (WayForPay) та кнопкою підтвердження */
.woocommerce-checkout #payment ul.payment_methods {
    margin-bottom: 15px !important; /* Було 25px */
}

/* 6. Зменшуємо порожнечу навколо кнопки "Підтвердити замовлення" */
#payment.woocommerce-checkout-payment div.form-row.place-order {
    padding-top: 10px !important; /* Було 20px */
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
/* =========================================
   ФІКС "РОЗТЯГНУТОСТІ" (ПРИТИСКАЄМО БЛОКИ ВГОРУ)
========================================= */

@media (min-width: 992px) {
    /* Головна магія: жорстко задаємо висоту рядків для правої колонки */
    .woocommerce-checkout .avto-checkout-grid {
        /* Перші 4 рядки займають рівно стільки місця, скільки треба тексту, 
           а 5-й (пустий) рядок забирає всю зайву висоту від лівої колонки */
        grid-template-rows: max-content max-content max-content max-content 1fr !important;
    }
}

/* =========================================
   УЩІЛЬНЮЄМО ПОЛЯ ВВОДУ (Прізвище, Місто тощо)
========================================= */

/* Зменшуємо гігантські відступи між самими полями */
.woocommerce-checkout .form-row {
    margin-bottom: 12px !important;
}

/* Зменшуємо "повітря" всередині інпутів (полів вводу), щоб вони не були такими товстими */
.woocommerce-checkout .woocommerce-billing-fields input.input-text,
.woocommerce-checkout .woocommerce-billing-fields select {
    padding: 8px 12px !important;
    height: auto !important;
}

/* Відступ між доставкою та формою */
.woocommerce-checkout #order_review table.shop_table tfoot tr.shipping {
    padding-bottom: 10px !important;
    margin-bottom: 15px !important;
}

/* Відступ під формою перед "Загалом" */
.woocommerce-checkout #customer_details {
    margin-bottom: 15px !important;
}

/* Відступ між "Загалом" та оплатою */
.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total {
    padding: 10px 0 !important;
    margin-bottom: 15px !important;
}
/* =========================================
   ЖОРСТКЕ УЩІЛЬНЕННЯ ЧЕКАУТУ (ФІКС РОЗТЯГУВАННЯ)
========================================= */

@media (min-width: 992px) {
    /* 1. Забороняємо правій колонці розтягуватися! */
    .woocommerce-checkout .avto-checkout-grid {
        display: grid !important;
        grid-template-columns: 35% 60% !important;
        gap: 5% !important;
        align-items: start !important;
        align-content: start !important; /* МАГІЯ: Притискає всі рядки в самий верх */
        grid-template-rows: auto auto auto auto !important; /* Вбиваємо попередній 1fr */
        position: relative !important;
    }
}

/* =========================================
   СТИСТИКА ПОЛІВ ТА ВІДСТУПІВ (По ваших стрілках)
========================================= */

/* 2. Максимально стискаємо поля форми (Прізвище, Телефон тощо) */
.woocommerce-checkout .form-row {
    margin-bottom: 8px !important; /* Мінімальна відстань між рядками форми */
}

/* Зменшуємо "повітря" всередині самих полів вводу, робимо їх тоншими */
.woocommerce-checkout .woocommerce-billing-fields input.input-text,
.woocommerce-checkout .woocommerce-billing-fields select {
    padding: 6px 12px !important; 
    height: 38px !important; /* Фіксована компактна висота */
}

/* 3. Збираємо до купи великі блоки (Доставка -> Форма -> Загалом -> Оплата) */
.woocommerce-checkout #order_review table.shop_table tfoot tr.shipping {
    padding-bottom: 10px !important;
    margin-bottom: -50px !important; /* Підтягуємо форму до доставки */
}

.woocommerce-checkout #customer_details {
    margin-bottom: 5px !important; /* Вбиваємо дірку під формою перед "Загалом" */
}

.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total {
    padding: 8px 0 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important; /* Підтягуємо оплату до "Загалом" */
}

/* 4. Фікс кнопки підтвердження в самому низу (щоб не випадала) */
#payment.woocommerce-checkout-payment div.form-row.place-order {
    padding: 15px 0 0 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Зменшуємо відступ під картками оплати */
.woocommerce-checkout #payment ul.payment_methods {
    margin-bottom: 5px !important;
}
/* ==========================================
   ФІКСИ ХЕДЕРА (ДЕСКТОП ТА МОБІЛКА)
========================================== */

/* 1. Глобальні налаштування хедера та контраст кнопки */
.site-header {
    background-color: #ffffff;
    z-index: 999;
    position: relative; /* Щоб хедер не накладався на картинки, якщо у нього абсолютне позиціонування */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Легка тінь для відділення від контенту */
}

.site-header .header-contacts .btn.btn-primary.open-popup {
    background-color: #0b7a79 !important; /* Більш темний, насичений бірюзовий */
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3); /* Тінь для тексту, щоб краще читалося */
    transition: background-color 0.3s ease;
}

.site-header .header-contacts .btn.btn-primary.open-popup:hover {
    background-color: #085a59 !important;
}

/* ==========================================
   2. ДЕСКТОПНА ВЕРСІЯ (Екрани від 992px)
========================================== */
@media (min-width: 992px) {
    .site-header {
        padding: 10px 0 !important; /* Робимо хедер нижчим */
    }
    
    .site-header .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
    }

    /* Розтягуємо меню на всю ширину і збільшуємо шрифт */
    .header-nav {
        flex-grow: 1; /* Меню займає весь вільний простір між лого і кнопкою */
    }
    
    .header-nav ul.menu {
        display: flex;
        justify-content: space-evenly !important; /* Рівномірний розподіл пунктів */
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .header-nav ul.menu li a {
        font-size: 16px !important; /* Збільшуємо розмір шрифту */
        font-weight: 600;
        white-space: nowrap;
    }
}

/* ==========================================
   3. МОБІЛЬНА ВЕРСІЯ (Екрани до 991px)
========================================== */
@media (max-width: 991px) {
    .site-header {
        padding: 5px 0 !important; /* Робимо максимально тонким */
    }
    
    .site-header .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    /* Зменшуємо логотип */
    .header-logo .site-logo {
        max-height: 35px !important;
        width: auto !important;
    }

    /* Збиваємо іконки та кнопку в щільний блок */
    .header-contacts {
        display: flex;
        align-items: center;
        gap: 12px !important;
        margin-right: 10px; /* Відступ від бургера */
    }

    /* Забираємо хардкодний відступ (margin-right: 15px) у іконки акаунта */
    .header-account {
        margin-right: 0 !important;
    }

    /* Зменшуємо самі іконки кошика та профілю */
    .header-account svg, 
    .header-cart svg {
        width: 22px !important;
        height: 22px !important;
    }

    /* ХАК ДЛЯ КНОПКИ: 
       Ховаємо довгий текст і підміняємо його на короткий через ::after 
    */
    .site-header .header-contacts .btn.btn-primary.open-popup {
        font-size: 0 !important; /* Приховує оригінальний текст */
        padding: 8px 12px !important;
        min-height: auto !important;
        border-radius: 6px !important;
    }
    
    .site-header .header-contacts .btn.btn-primary.open-popup::after {
        content: "Загубив номер?"; /* Короткий текст */
        font-size: 12px !important;
        display: block;
        letter-spacing: 0.5px;
    }
    
    /* Якщо в хедері на мобільному виводиться телефон, краще його сховати, щоб не ламав верстку */
    .header-phone {
        display: none !important;
    }
}
/* ==========================================
   ЖОРСТКИЙ ФІКС ПРОКРУТКИ ДЛЯ ГОЛОВНОЇ
========================================== */

/* 1. Блокуємо головний контейнер (діє безвідмовно на всіх мобільних) */
.site-content, 
main {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* 2. Приборкуємо слайдери (Swiper) та їхні обгортки */
.swiper, 
.swiper-container,
.swiper-wrapper {
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* 3. Гарантія для секцій та рядків (часто margin у сіток розпирає екран) */
section,
.container,
.row {
    max-width: 100vw;
    box-sizing: border-box !important;
}

/* Якщо ви використовували від'ємні відступи для сіток, це їх компенсує */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* ==============================================================
   ФІКС: МОБІЛЬНА ВЕРСІЯ ТАБЛИЦІ ЗАМОВЛЕНЬ (ЩОБ НЕ ОБРІЗАЛО)
   ============================================================== */
@media (max-width: 768px) {
    /* Примусово обмежуємо ширину таблиці та забороняємо їй вилазити за краї */
    .woocommerce-account table.woocommerce-orders-table,
    .woocommerce-account table.my_account_orders {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .woocommerce-account table.woocommerce-orders-table tbody,
    .woocommerce-account table.my_account_orders tbody {
        display: block !important;
        width: 100% !important;
    }

    /* Перетворюємо кожне замовлення на гарну білу картку */
    .woocommerce-account table.woocommerce-orders-table tr,
    .woocommerce-account table.my_account_orders tr {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 20px !important;
        border: 1px solid #e5e5e5 !important;
        border-radius: 10px !important;
        background: #fff !important;
        padding: 10px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important;
    }

    /* Ховаємо стандартну шапку таблиці, вона на телефоні не потрібна */
    .woocommerce-account table.woocommerce-orders-table thead,
    .woocommerce-account table.my_account_orders thead {
        display: none !important;
    }

    /* Налаштовуємо рядки всередині картки (гнучкий контейнер) */
    .woocommerce-account table.woocommerce-orders-table td,
    .woocommerce-account table.my_account_orders td {
        display: flex !important;
        justify-content: space-between !important; /* Назва зліва, значення справа */
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 5px !important;
        border-bottom: 1px solid #f4f4f4 !important;
        text-align: right !important;
        word-break: break-word !important; /* Якщо текст задовгий — він перенесеться, а не вилізе */
        background: transparent !important; /* Прибираємо стандартні сірі смуги теми */
    }

    .woocommerce-account table.woocommerce-orders-table td:last-child,
    .woocommerce-account table.my_account_orders td:last-child {
        border-bottom: none !important;
    }

    /* Налаштовуємо мітки зліва (Дата, Статус, Загалом) */
    .woocommerce-account table.woocommerce-orders-table td::before,
    .woocommerce-account table.my_account_orders td::before {
        content: attr(data-title) !important;
        font-weight: 600 !important;
        color: #777 !important;
        text-align: left !important;
        margin-right: 15px !important;
        flex-shrink: 0 !important; /* Забороняємо мітці стискатися, якщо справа багато тексту */
    }

    /* Акуратне позиціонування кнопки "Переглянути" (Дії) */
    .woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions,
    .woocommerce-account table.my_account_orders td.order-actions {
        justify-content: flex-end !important;
    }
    
    .woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions .button,
    .woocommerce-account table.my_account_orders td.order-actions .button {
        margin: 0 !important;
        padding: 8px 15px !important;
        font-size: 13px !important;
        white-space: normal !important;
        background: #0ea5a4 !important;
        color: #fff !important;
        border-radius: 6px !important;
    }
}/* ==============================================================
   ФІКС 2.0: ЖОРСТКА МОБІЛЬНА ТАБЛИЦЯ (БРОНЕБІЙНИЙ ВАРІАНТ)
   ============================================================== */
@media (max-width: 768px) {
    /* 1. Забороняємо батьківському блоку розтягувати екран */
    .woocommerce-account .woocommerce-MyAccount-content,
    .woocommerce-account .woocommerce {
        max-width: 100vw !important;
        overflow-x: hidden !important; /* Ховаємо горизонтальний скрол на рівні сторінки */
    }

    /* 2. Змушуємо таблицю і картки бути 100% і не більше */
    .woocommerce-account table.woocommerce-orders-table,
    .woocommerce-account table.my_account_orders,
    .woocommerce-account table.woocommerce-orders-table tbody,
    .woocommerce-account table.my_account_orders tbody,
    .woocommerce-account table.woocommerce-orders-table tr,
    .woocommerce-account table.my_account_orders tr {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 3. Оформлення картки замовлення */
    .woocommerce-account table.woocommerce-orders-table tr,
    .woocommerce-account table.my_account_orders tr {
        margin-bottom: 20px !important;
        border: 1px solid #e5e5e5 !important;
        border-radius: 10px !important;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important;
        overflow: hidden !important; /* Обрізаємо все, що намагається вилізти з самої картки */
    }

    /* Ховаємо шапку */
    .woocommerce-account table.woocommerce-orders-table thead,
    .woocommerce-account table.my_account_orders thead {
        display: none !important;
    }

    /* 4. Налаштування комірок (Flexbox) */
    .woocommerce-account table.woocommerce-orders-table td,
    .woocommerce-account table.my_account_orders td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 15px !important;
        border-bottom: 1px solid #f4f4f4 !important;
        
        /* МАГІЯ ТУТ: змушуємо текст переноситись */
        white-space: normal !important; 
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        text-align: right !important;
    }

    .woocommerce-account table.woocommerce-orders-table td:last-child { 
        border-bottom: none !important; 
    }

    /* 5. Мітки зліва (Дата, Статус тощо) */
    .woocommerce-account table.woocommerce-orders-table td::before,
    .woocommerce-account table.my_account_orders td::before {
        content: attr(data-title) !important;
        font-weight: 600 !important;
        color: #777 !important;
        flex-shrink: 0 !important;
        width: 35% !important; /* Фіксуємо ширину для мітки */
        text-align: left !important;
        margin-right: 10px !important;
    }

    /* 6. Текст значень справа (Ціни, дати) */
    .woocommerce-account table.woocommerce-orders-table td > *,
    .woocommerce-account table.my_account_orders td > * {
        flex-grow: 1 !important;
        max-width: 65% !important; /* Не даємо тексту зайняти більше 65% ширини картки */
        min-width: 0 !important; /* Критично важливо для Flexbox: забороняємо виштовхувати межі */
        text-align: right !important;
        display: inline-block !important; /* Допомагає з перенесенням слів */
    }

    /* 7. Кнопка Дії */
    .woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions .button {
        width: auto !important;
        display: inline-block !important;
        margin: 0 !important;
    }
}
/* ==========================================================================
   GLOBAL GLOBAL DARK THEME FIX FOR AUTO NOMEROCHEK
   ========================================================================== */

/* Застосовуємо до обгортки лендінгу */
.avto-landing-wrapper {
    background-color: #060f10 !important; /* Надтемний глибокий фон */
    color: #e0e6e6 !important;
}

/* 1. СЕКЦІЯ ПЕРЕВАГ (advantages.php) */
.advantages {
    background-color: #060f10 !important;
}
.advantages .section-title {
    color: #ffffff !important;
}
.advantages .adv-item {
    background: #0d1b1c !important; /* Темна картка */
    border: 1px solid rgba(14, 165, 164, 0.2) !important; /* Легка бірюзова рамка */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}
.advantages .adv-text {
    color: #ffffff !important;
}

/* 2. КАТАЛОГ WOOCOMMERCE (woo-catalog.php) */
.woo-category-section {
    background-color: #081415 !important; /* Чергування тону фону */
}
.woo-category-section .section-title {
    color: #ffffff !important;
}
.woo-category-section .product-item {
    background: #0d1b1c !important;
    border: 1px solid rgba(14, 165, 164, 0.15) !important;
}
.woo-category-section .product-item .product-name {
    color: #ffffff !important;
}
.woo-category-section .product-item .price-row {
    background: rgba(14, 165, 164, 0.08) !important; /* Напівпрозора підкладка цін */
    border: 1px solid rgba(14, 165, 164, 0.2) !important;
}
.woo-category-section .product-item .price-label {
    color: #a4b4b5 !important;
}
.woo-category-section .product-item .price-val {
    color: #0ea5a4 !important; /* Яскрава бірюза */
}

/* 3. СЕКЦІЯ ПРО НАС (about.php) */
.about {
    background-color: #060f10 !important;
}
.about .section-title {
    color: #ffffff !important;
}
.about__text {
    color: #ccd7d7 !important;
}

/* 4. НАШЕ ВИРОБНИЦТВО (prodaction.php) */
.screen-prodaction {
    background-color: #081415 !important;
}
.production-title {
    color: #ffffff !important;
}
.production-content-block {
    background: #0d1b1c !important;
    border: 1px solid rgba(14, 165, 164, 0.1) !important;
}
.production-text {
    color: #ccd7d7 !important;
}
.production-text h3, .production-text h4 {
    color: #ffffff !important;
}
.production-prev, .production-next {
    background: #0d1b1c !important;
    border: 1px solid #0ea5a4 !important;
}

/* 5. НАШІ РОБОТИ (works.php) */
.screen-works {
    background-color: #060f10 !important;
}
.works-title {
    color: #ffffff !important;
}
.works-tab {
    background: #0d1b1c !important;
    color: #a4b4b5 !important;
    border: 1px solid rgba(14, 165, 164, 0.3) !important;
}
.works-tab:hover {
    color: #0ea5a4 !important;
    border-color: #0ea5a4 !important;
}
.works-tab.active {
    background: #0ea5a4 !important;
    color: #ffffff !important;
}
.works-slide-inner {
    background: #0d1b1c !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}
.works-prev, .works-next {
    background: #0d1b1c !important;
}

/* 6. ЕТАПИ ЗАМОВЛЕННЯ (steps.php) */
.steps {
    background-color: #081415 !important;
}
.steps .section-title {
    color: #ffffff !important;
}
.steps__card {
    background: #0d1b1c !important;
    border: 1px solid rgba(14, 165, 164, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}
/* Велика фонова цифра на десктопі стає ледь помітною темною */
.steps__number {
    color: rgba(14, 165, 164, 0.05) !important;
}
.steps__card-title {
    color: #ffffff !important;
}
.steps__card-text {
    color: #a4b4b5 !important;
}

/* 7. СЕКЦІЯ ВІДГУКІВ (reviews.php) */
.reviews-visual {
    background-color: #060f10 !important;
}
.reviews-visual__title {
    color: #ffffff !important;
}
.review-screen-card__img {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
}
.reviews-btn-next, .reviews-btn-prev {
    background: rgba(255, 255, 255, 0.05) !important;
}
.reviews-btn-next:hover, .reviews-btn-prev:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}
.avto-reviews-swiper .swiper-pagination-bullet {
    background: #ffffff !important;
}

/* 8. ЗВОРОТНІЙ ЗВ'ЯЗОК ТА КОНТАКТИ (cta.php) */
.cta-section {
    background: #081415 !important;
    color: #ffffff !important;
}
.cta__main-title {
    color: #ffffff !important;
}
.cta__subtitle {
    color: #a4b4b5 !important;
}
.cta-card {
    background: #0d1b1c !important;
    border: 1px solid rgba(14, 165, 164, 0.15) !important;
}
.cta-card-title {
    color: #ffffff !important;
}
.schedule-list li, .contact-list li {
    border-bottom: 1px solid rgba(14, 165, 164, 0.1) !important;
    color: #ccd7d7 !important;
}
.schedule-list .days, .schedule-list .hours, .contact-list .c-val {
    color: #ffffff !important;
}
.contact-list .c-label {
    color: #a4b4b5 !important;
}
/* Поля вводу форми */
.simple-cta-form input, 
.wpcf7-form input[type="text"], 
.wpcf7-form input[type="tel"], 
.wpcf7-form input[type="email"] {
    background: #060f10 !important;
    border: 1px solid rgba(14, 165, 164, 0.3) !important;
    color: #ffffff !important;
}
.simple-cta-form input:focus, .wpcf7-form input:focus {
    border-color: #0ea5a4 !important;
    box-shadow: 0 0 10px rgba(14, 165, 164, 0.3) !important;
}

/* 9. СЕКЦІЯ FAQ (faq.php) */
.faq {
    background-color: #060f10 !important;
}
.faq .section-title {
    color: #ffffff !important;
}
.faq-question {
    color: #ffffff !important;
    background: #0d1b1c !important;
    border: 1px solid rgba(14, 165, 164, 0.15) !important;
}
.faq-answer {
    color: #ccd7d7 !important;
}
/* =========================================
   ПРИТИСКАЄМО ФУТЕР ДО НИЗУ СТОРІНКИ
========================================= */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Мінімальна висота тіла - 100% висоти екрана */
}

.site-content {
    flex-grow: 1; /* Контентна частина розтягується, заповнюючи порожній простір */
}
/* =========================================
   ФІКС: Заборона горизонтальної прокрутки та білих полів на мобільних
========================================= */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

/* Додаткова страховка для основного контейнера сайту (якщо використовується) */
#page, .site-main, .elementor-page {
    overflow-x: hidden !important;
}
/* =========================================
   DARK THEME OVERRIDE (ТЕМНА ТЕМА ДЛЯ ВСЬОГО САЙТУ)
   Вставляти в самий кінець style.css!
   ========================================= */

/* 1. Глобальний фон та текст */
body, .projects, .products, .reviews, .about, .steps, .faq, .woocommerce, .woocommerce-cart, .woocommerce-checkout {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

h1, h2, h3, h4, h5, h6, .section-title, .product-name, .project-type, .review-card__name, .steps__card-title, .adv-text, .faq-question, .cart-popup-modal h3, .calc-popup-header h3 {
    color: #ffffff !important;
}

p, .product-desc, .project-area, .project-system, .review-card__text, .about__text, .steps__card-text, .faq-answer, .cart-popup-desc, .calc-popup-header p {
    color: #b3b3b3 !important;
}

/* 2. Картки (Товари, Переваги, Відгуки, Кроки, Блоки Чекауту) */
.adv-item, .product-item, .project-item, .review-card, .steps__card,
.woocommerce-cart table.cart tr.cart_item, .cart_totals,
.avto-cart-wrapper, #order_review, .avto-checkout-right, .avto-checkout-left, #customer_details,
.wapf-wrapper, .tc-extra-product-options, .avto-custom-fields,
.woocommerce-account .woocommerce-MyAccount-navigation ul,
.woocommerce-account .woocommerce-MyAccount-content,
.calc-popup-modal, .cart-popup-modal {
    background-color: #1e1e1e !important;
    border-color: #333333 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

/* Ховер ефекти для карток */
.adv-item:hover, .product-item:hover, .project-item:hover, .review-card:hover, .steps__card:hover {
    background-color: #252525 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
}

/* 3. Хедер та Навігація */
.site-header {
    background: rgba(18, 18, 18, 0.95) !important;
    border-bottom: 1px solid #333 !important;
}

.main-nav__list a, .header-nav a, .header-phone, .logo-title, .header-contacts a {
    color: #e0e0e0 !important;
}

.burger span {
    background: #e0e0e0 !important;
}

/* Мобільне меню */
@media (max-width: 768px) {
    .header-nav, .main-nav {
        background: #1e1e1e !important;
        border-bottom: 1px solid #333 !important;
    }
}

/* 4. Форми, Інпути та Select */
input, textarea, select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.avto-custom-fields input[type="text"],
.avto-custom-fields input[type="file"],
.simple-cta-form input,
.calc-popup-form input {
    background-color: #2a2a2a !important;
    border: 1px solid #444 !important;
    color: #ffffff !important;
}

input:focus, textarea:focus, select:focus {
    border-color: #0ea5a4 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.2) !important;
    background-color: #333 !important;
}

/* 5. WooCommerce Специфічні елементи (Кошик та Чекаут) */
.woocommerce-cart table.cart dl.variation {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
}

/* Тьмяний текст для підписів */
.woocommerce-cart table.cart dl.variation dt,
.woocommerce-cart table.cart td.product-price::before,
.woocommerce-cart table.cart td.product-quantity::before,
tr.order-total th::before,
.woocommerce-checkout .form-row label,
.woocommerce table.shop_table th {
    color: #a0a0a0 !important;
}

/* Яскравий текст для значень та сум */
.woocommerce-cart table.cart dl.variation dd,
.woocommerce-cart table.cart td.product-subtotal::before,
.woocommerce-cart table.cart td.product-price .amount,
.woocommerce-cart table.cart td.product-quantity,
tr.order-total td .amount,
tr.order-total th {
    color: #ffffff !important;
}

/* Блоки доставки та оплати */
ul#shipping_method li label,
ul.payment_methods li,
#payment {
    background-color: #2a2a2a !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #e0e0e0 !important;
}

ul#shipping_method li:has(input:checked) label,
ul#shipping_method li input:checked + label {
    background-color: #1a2a2a !important; /* Темно-бірюзовий фон */
    border-color: #0ea5a4 !important;
}

/* 6. Попапи: кнопки закриття */
.calc-popup-close, .cart-popup-close {
    background: #333333 !important;
}
.calc-popup-close span, .cart-popup-close span {
    background: #ffffff !important;
}
.calc-popup-close:hover, .cart-popup-close:hover {
    background: #555555 !important;
}

/* 7. Розділювачі, рамки таблиць та варіації */
.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce-cart table.cart td.product-subtotal,
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart .cart_totals tr.order-total,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout-review-order-table tr.shipping,
table.variations tr,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    border-color: #444 !important;
}

/* Перебиваємо світлі фони в специфічних блоках WooCommerce */
.cart_totals, .woocommerce-checkout #payment div.payment_box {
    background-color: #2a2a2a !important;
    color: #b3b3b3 !important;
}
.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: #2a2a2a !important;
}

/* Кнопка видалення товару (Хрестик) */
.woocommerce-cart table.cart td.product-remove a.remove {
    background: #3a1c1c !important; /* Темно-червоний фон */
    color: #ff4a4a !important;
}
.woocommerce-cart table.cart td.product-remove a.remove:hover {
    background: #ff4a4a !important;
    color: #ffffff !important;
}