/*! Оновлений Responsive з фіксами для iOS/iPhone */

@media (max-width: 1855px) {    
    .welcome__title1 { font-size: 64px; }
    .welcome__title2 { font-size: 48px; }
    .bestselers__title { font-size: 56px; }
    .why-we__title { font-size: 36px; }
    .why-we__section .container { gap: 80px; }
    .about-us__title { font-size: 36px; }
    .about-us__content { gap: 80px; }
    .contacts__text { max-width: 600px; font-size: 20px; }
    .contacts__content { gap: 80px; }
}

@media (max-width: 1650px) {
    .products__grid {
        grid-template-columns: repeat(3, 300px);
    }
}

@media (max-width: 1380px) {
    .welcome__title1 { font-size: 48px; }
    .welcome__title2 { font-size: 36px; }
    .welcome__section { padding: 80px 0; }
    .welcome__text { font-size: 22px; max-width: 700px; }
    .welcome__buttons { gap: 20px; }
    .welcome__link { font-size: 22px; padding: 20px 40px; }
    .bestselers__title { font-size: 48px; }
    .why-we__title { font-size: 36px; margin-bottom: 25px; } 
    .cards { gap: 50px; }
    .why-we__img { max-width: 400px; width: 100%; height: auto; }
    .why-we__text { font-size: 24px; }
    .about-us__section { padding: 50px 0; }
    .about-us__content { gap: 5px; }
    .about-us__title { font-size: 36px; margin-bottom: 50px; letter-spacing: 1px; }
    .about-us__text { max-width: 600px; font-size: 22px; letter-spacing: 3px; margin-bottom: 20px; }
    .about-us__img { margin-bottom: 40px; }
    .about-us__flowers { max-width: 400px; width: 100%; height: auto; }
    .about-us__small-title { font-size: 28px; }
    .contacts__title { font-size: 64px; } 
    .contacts__title2 { font-size: 40px; } 
    .contacts__content { gap: 80px; }
    .contacts__text { max-width: 550px; width: 100%; font-size: 18px; letter-spacing: 2px; margin-bottom: 20px; }
    .contacts-small__title { font-size: 28px; margin-bottom: 15px; }
    .contacts .contacts__list:last-child { margin-top: 15px; }
    .contacts__list { gap: 10px; }
    .google__map { max-width: 550px; width: 100%; height: 400px; }
    .contact { font-size: 22px; letter-spacing: 2px; }
    .working__hours { margin-top: 10px; font-size: 22px; letter-spacing: 2px; }
    .contacts-small__title2 { margin-top: 10px; }
    .user-contacts__content { gap: 80px; }
    .contacts__form { background-color: #F0F0F0; max-width: 550px; width: 100%; padding: 20px 0 40px 0; border-radius: 15px; }
    .contacts-form__title { font-size: 48px; font-weight: bold; text-align: center; }
    .contacts-form__title2 { font-size: 24px; font-weight: bold; margin-bottom: 65px; text-align: center; }
    .user-contacts__img { max-width: 450px; width: 100%; height: auto; }
}

@media (max-width: 1360px) {
    .order__title { font-size: 64px; margin-top: 100px; margin-bottom: 80px; }
    .order__text { font-size: 28px; max-width: 800px; width: 100%; }
}

@media (max-width: 1280px) {
    .why-we__title { font-size: 32px; letter-spacing: 2px; } 
    .about-us__title { font-size: 30px; letter-spacing: 1px; }
    .bestselers__title { font-size: 36px; }
}

@media (max-width: 1250px) {
    .contacts__text { max-width: 400px; width: 100%; font-size: 16px; letter-spacing: 1px; margin-bottom: 10px; }
    .working__hours { margin-top: 10px; font-size: 18px; letter-spacing: 2px; }
    .contacts-small__title { font-size: 28px; margin-bottom: 10px; }
    .contacts-small__title2 { font-size: 28px; margin-top: 10px; }
    .products__grid { grid-template-columns: repeat(2, 300px); }
}

@media (max-width: 1220px) {
    .hideHeaderOnMobile { display: none; }
    .header__sidebar-button { display: flex; }
}

@media (max-width: 1200px) {
    .product-page__title, .product-page__price { font-size: 42px; }
    .product__content { gap: 30px; }
}

@media (max-width: 1160px) {
    .footer__text { font-size: 16px; }
}

@media (max-width: 1133px) {
    .welcome__title1 { font-size: 36px; }
    .welcome__title2 { font-size: 24px; margin-bottom: 50px; }
    .welcome__section { padding: 80px 0; }
    .welcome__text { font-size: 20px; max-width: 600px; }
    .welcome__buttons { gap: 20px; margin-top: 75px; }
    .welcome__link { font-size: 18px; padding: 15px 30px; }
    .bestselers__title { font-size: 36px; }
    .why-we__title { font-size: 32px; margin-bottom: 15px; } 
    .why-we__section .container { gap: 50px; }
    .why-we__icon { width: 20px; height: 20px; flex-shrink: 0; }
    .cards { gap: 25px; }
    .why-we__img { max-width: 350px; width: 100%; height: auto; }
    .why-we__text { font-size: 22px; }
    .about-us__section { padding: 50px 0; }
    .about-us__content { gap: 5px; }
    .about-us__title { font-size: 30px; margin-bottom: 50px; letter-spacing: 0px; }
    .about-us__text { max-width: 550px; width: 100%; font-size: 22px; letter-spacing: 1px; margin-bottom: 20px; }
    .about-us__img { margin-bottom: 40px; }
    .about-us__flowers { max-width: 400px; width: 100%; height: auto; }
    .about-us__small-title { font-size: 28px; }
    .contacts__title { font-size: 64px; } 
    .contacts__title2 { font-size: 40px; } 
    .contacts__content { gap: 80px; }
    .contacts__text { max-width: 550px; width: 100%; font-size: 18px; letter-spacing: 1px; margin-bottom: 20px; }
    .google__map { max-width: 450px; width: 100%; height: 400px; }
    .working__hours { margin-top: 10px; font-size: 22px; letter-spacing: 1px; }
    .contacts-small__title2 { margin-top: 10px; }
    .user-contacts__content { gap: 80px; }
    .contacts__form { background-color: #F0F0F0; max-width: 450px; width: 100%; padding: 20px 0 40px 0; border-radius: 15px; }
    .contacts-form__title { font-size: 32px; font-weight: bold; text-align: center; }
    .contacts-form__title2 { font-size: 24px; font-weight: bold; margin-bottom: 65px; text-align: center; }
    .user-contacts__img { max-width: 450px; width: 100%; height: auto; }
    .form__input { font-size: 16px; max-width: 350px; width: 100%; }
}

@media (max-width: 1090px) {
    .user-contacts__content, .contacts__content { gap: 40px; }
    .user-contacts__img { height: 420px; }
}

@media (max-width: 1045px) {
    .footer__text { max-width: 300px; width: 100%; }
}

@media (max-width: 1024px) {
    .product__content { gap: 30px; padding: 0 20px; }
    .product-page__title, .product-page__price { font-size: 42px; }
    .product__content1 { height: auto; flex: 0 1 50%; }
    .product__content2 { height: auto; }
    .product__img-page { height: 500px; object-fit: cover; }
    .product-page__button { width: 100%; font-size: 22px; padding: 5px 10px; }
    .admin-grid { grid-template-columns: 1fr; gap: 30px; }
    .admin-list-pane { max-height: 400px; overflow-y: auto; }
}

@media (max-width: 1005px) {
    .about-us__title { font-size: 28px; } 
    .about-us__text { max-width: 500px; width: 100%; font-size: 20px; letter-spacing: 1px; margin-bottom: 20px; }
    .about-us__img { margin-bottom: 40px; }
    .about-us__flowers { max-width: 400px; width: 100%; height: auto; }
    .about-us__small-title { font-size: 28px; }
}

@media (max-width: 1000px) {
    .hideHeaderOnMobile { display: none; }
    .header__sidebar-button { display: flex; }
}

@media (max-width: 992px) {
    .checkout-wrapper { flex-direction: column; }
    .checkout-sidebar { width: 100%; position: static; }
}

@media (max-width: 985px) {
    .bestselers__title, .why-we__title { font-size: 28px; }
    .why-we__title { margin-bottom: 15px; } 
    .why-we__section .container { gap: 40px; }
    .why-we__icon { width: 18px; height: 18px; flex-shrink: 0; }
    .cards { gap: 20px; }
    .why-we__img { max-width: 350px; width: 100%; height: auto; }
    .why-we__text { font-size: 22px; }
    .why-we__list + .why-we__list { margin-top: 15px; }
    .user-contacts__content, .contacts__content { gap: 20px; }
    .user-contacts__img { max-width: 400px; width: 100%; height: 400px; }
    .google__map { max-width: 400px; width: 100%; }
    .contacts__form { height: 400px; }
    .contacts__title2 { font-size: 20px; }
    .about-us__title { font-size: 24px; }
    .about-us__text { font-size: 18px; max-width: 400px; width: 100%; }
}

@media (max-width: 930px) {
    .sidebar-button { display: flex; }
    .hideOnMobile { display: none; }
    .why-we__text { font-size: 20px; max-width: 400px; width: 100%; }
}

@media (max-width: 900px) {
    .welcome__title1 { font-size: 28px; }
    .welcome__title2 { font-size: 22px; letter-spacing: 5px; margin-bottom: 25px; }
    .welcome__section { padding: 80px 0; }
    .welcome__text { font-size: 18px; max-width: 500px; width: 100%; }
    .welcome__buttons { gap: 20px; margin-top: 75px; }
    .welcome__link { font-size: 16px; padding: 12px 26px; }
    .bestselers__title { font-size: 28px; }
    .about-us__section { padding: 50px 0; }
    .about-us__content { gap: 5px; }
    .about-us__title { font-size: 24px; margin-bottom: 50px; letter-spacing: 0px; }
    .about-us__text { max-width: 550px; width: 100%; font-size: 18px; letter-spacing: 0.5px; margin-bottom: 20px; }
    .about-us__img { margin-bottom: 40px; }
    .about-us__flowers { max-width: 400px; width: 100%; height: auto; }
    .about-us__small-title { font-size: 24px; }
    .contacts__title { font-size: 48px; }
    .contacts__title2 { font-size: 40px; }
    .contacts__content { gap: 20px; }
    .contacts__text { max-width: 500px; width: 100%; font-size: 16px; letter-spacing: 0.5px; margin-bottom: 10px; }
    .google__map { max-width: 450px; width: 100%; height: 400px; }
    .working__hours { font-size: 20px; letter-spacing: 1px; }
    .user-contacts__content { gap: 20px; }
    .contacts__form { max-width: 400px; width: 100%; padding: 20px 0 40px 0; border-radius: 15px; }
    .contacts-form__title { font-size: 32px; font-weight: bold; text-align: center; }
    .contacts-form__title2 { font-size: 24px; font-weight: bold; margin-bottom: 65px; text-align: center; }
    .user-contacts__img { max-width: 450px; width: 100%; height: auto; }
    .form__input { font-size: 16px; max-width: 300px; width: 100%; }
    .openFiltersButton { display: flex; }
    .hideOnMobile { display: none; }
    .showOnMobile { display: block; }
    .catalog__grid { grid-template-columns: 1fr; }
    
    .order__title { font-size: 42px; margin-top: 60px; margin-bottom: 40px; padding: 0 15px; }
    .order__text { font-size: 20px; width: 100%; padding: 0 20px; margin-bottom: 40px; }
    .order__link { font-size: 20px; padding: 15px 25px; }
    .order__button { margin-bottom: 60px; }
}

@media (max-width: 840px) {
    .bestselers__title { font-size: 24px; }
    .cards { 
        display: flex;
        flex-direction: column; 
        align-items: center;
        max-width: 300px; 
        width: 100%; 
        margin: 0 auto;
    }
    .card { margin-bottom: 20px; width: 100%; }
    .cards .card:last-child { margin-bottom: 40px; }
    
    .why-we__section .container { display: flex; flex-direction: column; align-items: center; }
    .why-we__img { display: flex; margin: 0 auto; max-width: 450px; width: 100%; }
    .why-we__list { width: 100%; display: flex; justify-content: flex-start; align-items: center; }
    .why-we__title { display: block; text-align: center; font-size: 36px; width: 100%; }
    
    .about-us__content { display: flex; flex-direction: column; align-items: center; }
    .about-us__text { font-size: 24px; width: 100%; max-width: 650px; text-align: center; }
    .about-us__small-title { font-size: 36px; text-align: center; }
    .about-us__flowers { display: block; margin: 0 auto; max-width: 550px; width: 100%; }
    
    .contacts__content { display: flex; flex-direction: column; align-items: center; }
    .google__map { display: block; margin: 0 auto; width: 100%; }
    .contacts__text { font-size: 24px; text-align: center; width: 100%; margin: 0 auto 15px; }
    .contacts-small__title, .contacts-small__title2 { text-align: center; font-size: 36px; width: 100%; }
    .contacts__list { display: flex; flex-direction: column; align-items: center; width: 100%; }
    .contact { font-size: 24px; text-align: center; }
    .working__hours { text-align: center; width: 100%; }
    
    .user-contacts__content { display: flex; flex-direction: column; align-items: center; width: 100%; }
    .contacts__form { width: 100%; margin: 0 auto; }
    .form__input { max-width: 450px; width: 100%; margin: 0 auto; }
    .user-contacts__img { display: block; margin: 0 auto; width: 100%; }
    
    .admin-grid { display: flex; flex-direction: column; gap: 30px; }
    .admin-element { width: 100% !important; }
    .admin-list-pane { max-height: 350px; overflow-y: auto; padding: 15px; background: #fdfdfd; border: 1px solid #e0e0e0; border-radius: 12px; }
    .product-scroll-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
    .added-item { width: 100% !important; height: auto !important; padding: 10px; display: flex; flex-direction: row; align-items: center; border: 1px solid #eee; }
    .action-header { flex-direction: column; gap: 15px; text-align: center; }
    .action-buttons { width: 100%; display: flex; gap: 10px; }
    .action-btn { flex: 1; font-size: 14px; padding: 12px 5px; }
    .add-product__form, .add-tag__form { width: 100% !important; }
    .add-product__input, .add-product__textarea { width: 100% !important; margin: 0 !important; }
    .add-product__field { display: flex; flex-direction: column; gap: 10px; }
    .added__tags { display: flex; flex-direction: column; gap: 12px; width: 100%; }
    #tagName, #tagValue, #saveTagBtn { width: 100% !important; margin: 0 !important; }
}

@media (max-width: 800px) {
    .footer .container { flex-direction: column; align-items: center; }
    .footer__text { width: 100%; text-align: center; font-size: 24px; }
    .footer__title { font-size: 28px; text-align: center; }
    .footer__contacts li a, .footer__docs li a { font-size: 20px; text-align: center; }
    .privacy-main__title { font-size: 36px; }
}

@media (max-width: 768px) {
    .product__content { flex-direction: column; align-items: center; gap: 20px; margin-top: 20px; }
    .product__content1, .product__content2 { width: 100%; flex: none; }
    .product__img-page { height: 400px; border-radius: 15px; }
    .product-page__title { font-size: 32px; margin-top: 10px; line-height: 1.2; }
    .product-page__price { font-size: 30px; margin-top: 5px; }
    .product-page__description { font-size: 18px; margin-top: 20px; margin-bottom: 30px; line-height: 1.4; }
    .product-page__button { width: 100%; font-size: 22px; padding: 15px; }
    .product-page__text { font-size: 18px; }
    .admin-page { padding: 20px 0; }
    .added-item { padding: 10px; }
    .added-item__img { width: 60px; height: 60px; }
    .added-item__name { font-size: 16px; }
    .added__tags { flex-direction: column; gap: 10px; }
    .admin-tags-selection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}

@media (max-width: 740px) {
    .catalog__header .container { flex-direction: column; align-items: center; }
}

@media (max-width: 710px) {
    .products__grid { display: grid; grid-template-columns: 1fr; justify-items: center; }
}

@media (max-width: 600px) {
    .user-contacts__content { width: 100%; }
    .form__input { width: 90%; margin: 0 auto; }
}

@media (max-width: 568px) {
    .welcome__title1 { font-size: 32px; letter-spacing: 1px; line-height: 1.2; word-wrap: break-word; }
    .welcome__title2 { font-size: 22px; letter-spacing: 1px; margin-bottom: 20px; }
    .welcome__text { font-size: 16px; max-width: 100%; letter-spacing: 1px; padding: 0 10px; }
    .why-we__title { font-size: 26px; text-align: center; }
    .why-we__text { font-size: 18px; line-height: 1.3; width: 100%; text-align: left; }
    
    /* ФІКС ДЛЯ СПИСКУ WHY WE — іконка зліва, текст справа */
    .why-we__list { gap: 15px; align-items: center; display: flex !important; flex-direction: row !important; }
    .why-we__item { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 15px; width: 100%; text-align: left; }
    
    .about-us__text { width: 100%; font-size: 16px; padding: 0 15px; text-align: center; }
    .about-us__flowers { width: 100%; height: auto; }
    .container { max-width: 95%; padding: 0 5px; }

    .contacts__title { font-size: 32px; text-align: center; }
    .contacts__title2 { font-size: 24px; text-align: center; letter-spacing: 0; }
    .contacts__text { font-size: 16px; padding: 0 10px; text-align: center; width: 100%; }
    .contacts-small__title, .contacts-small__title2 { font-size: 24px; text-align: center; }
    .contact, .working__hours { font-size: 18px; text-align: center; }

    .order__title { font-size: 32px; margin-top: 40px; }
    .order__text { font-size: 18px; margin-bottom: 30px; }
    .order__link { font-size: 18px; padding: 12px 20px; width: 90%; text-align: center; margin: 0 auto; }
}

@media (max-width: 525px) {
    .welcome__buttons { 
        display: flex;
        flex-direction: column; 
        align-items: center;
        margin-top: 30px; 
        gap: 15px;
    }
    .welcome__link { 
        display: inline-flex; 
        justify-content: center; 
        width: 100%;
        max-width: 280px;
        -webkit-appearance: none;
    }
    .popup { max-width: 300px; width: 100%; }
    .popup__title { font-size: 24px; }
    .popup__close { width: 15px; height: 15px; }
    .add-product__form, .add-tag__form { width: 100%; max-width: 270px; margin-bottom: 10px; }
    .add-product__file-input { width: 139px; }
}

@media (max-width: 500px) {
    .header__img { width: 50%; }
    .header__call { align-items: center; padding: 6px 8px; }
    .header__call-img { width: 12%; flex-shrink: 0; }
    .header__call-a { font-size: 12px; }
}

@media (max-width: 480px) {
    .product__img-page { height: 320px; }
    .product-page__title { font-size: 28px; }
    .product-page__price { font-size: 26px; }
    .product-page__text { font-size: 16px; }
    .admin-form-title { font-size: 20px; }
    .admin-tags-selection-grid { grid-template-columns: 1fr; }
    .added-item__price { font-size: 14px; }
    .product-scroll-list { grid-template-columns: 1fr; }
    .added-item { flex-direction: column; text-align: center; }
    .action-buttons { flex-direction: column; width: 100%; }
}

@media (max-width: 420px) {
    .add-product__form { width: 100%; }
    .catalog__input { width: 200px; }
    .basket, .basket__footer, .favorites { width: 100%; }
    .favorites__item, .added-item { max-width: 300px; width: 100%; gap: 30px; align-items: center; }
    .favorites__item-img, .added-item__img { width: 100px; height: 100px; flex-shrink: 0; }
    .favorites__item-title, .added-item__name { font-size: 24px; text-align: center; }
    .added-item__icon { width: 40px; height: 40px; }
    .favorites__item-price, .added-item__price { font-size: 16px; }
    .why-we__text { font-size: 18px; width: 100%; }
    .order__title { font-size: 28px; }
}

@media (max-width: 381px) {
    .contacts-small__title { font-size: 24px; }
    .user-contacts__img { height: 300px; }
    .product { max-width: 280px; width: 100%; margin: 0 auto; }
}

@media (max-width: 1010px) {
    .why-we__text { max-width: 450px; width: 100%; }
}