/* ==================== BASE STYLES ==================== */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Century Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: clamp(16px, 2.5vw, 20px);
}

/* ==================== VARIABLES ==================== */
:root {
  --primary-color: #60843b;
  --primary-light: #7aa54d;
  --accent-pink: #f4daee;
  --background: #F6E2E1;
  --text-dark: #2c2c2c;
  --white: #F3F0F0;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* ==================== HEADER ==================== */
.headerr {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(246, 226, 225, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px var(--shadow);
}

.headerr.hidden {
  transform: translateY(-100%);
}

.bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}
.headerr__container {
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(15px, 3vw, 30px);
  min-height: clamp(70px, 12vw, 90px);
  font-size: clamp(14px, 2vw, 18px);
}


.menu__body:first-of-type {
  grid-column: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}

.menu__body:last-of-type {
  grid-column: 3;
}

.menu__list {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  list-style: none;
}
.logo {
  height: clamp(50px, 10vw, 70px);
  width: clamp(100px, 20vw, 150px);
  object-fit: contain;
}

/* Основна кнопка фільтра */
.filter-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #5a6d4b;
    color: #eee;
    border: none;
    padding: 12px 45px 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: clamp(14px, 2vw, 16px);
    min-width: 150px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.filter-button:hover {
    background: #7aae51;
}

.filter-button.active {
    background: #7aae51;
}

/* Кнопка з вибраним фільтром */
.filter-button.has-selection {
    background: linear-gradient(135deg, #f4a5ec, #c23eff);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(194, 62, 255, 0.3);
}

.filter-button.has-selection:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(194, 62, 255, 0.5);
}

/* Кнопка скидання фільтрів */
.reset-filters-btn {
    background: linear-gradient(135deg, #f4a5ec, #c23eff);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(194, 62, 255, 0.3);
    white-space: nowrap;
}

.reset-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(194, 62, 255, 0.5);
}

/* Випадаючий список */
.dropdown {
    position: absolute;
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 100;
    margin-top: 5px;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    padding: 8px 0;
}

.dropdown.active {
    display: block;
}

/* Сірі заголовки в описі квітки */
.detail-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
    font-weight: 600;
}

.detail-value {
    font-size: 15px;
    color: #2c2c2c;
    margin-bottom: 10px;
}

/* Стиль для активної кнопки фільтра */
.filter-button.active .arrow {
    transform: rotate(180deg);
}

.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: #000;
}

.dropdown-item.selected {
    background-color: #fef5fd;
    color: #f06fb9;
    font-weight: 600;
}

.detail-item {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.right-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 20px);
}

.lng-menu-bouquets,
.lng-menu-contacts,
.lng-menu-dostavka {
  color: rgb(0, 0, 0);
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
  white-space: nowrap;
}

.lng-menu-bouquets::after,
.lng-menu-contacts::after,
.lng-menu-dostavka::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #f4a5ec, #c23eff);
  transition: width 0.3s ease;
  box-shadow: 0 2px 8px rgba(194, 62, 255, 0.3);
}

.lng-menu-bouquets:hover::after,
.lng-menu-contacts:hover::after,
.lng-menu-dostavka:hover::after {
  width: 100%;
}

.right-side {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
}

.plase {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 8px);
}

.icons {
  display: flex;
  gap: 15px;
  position: relative;
}

.icon, .icon_2, .icon_3 {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.icon {
  width: clamp(25px, 4vw, 30px);
  height: auto;
}

.icon_2 {
  width: clamp(30px, 4vw, 35px);
  height: auto;
}

.icon_3 {
  width: clamp(20px, 3vw, 25px);
  height: auto;
}

.icon:hover, .icon_2:hover, .icon_3:hover {
  transform: scale(1.1) translateY(-3px);
  filter: drop-shadow(0 4px 8px rgba(194, 62, 255, 0.4));
}

/* Badge for cart and favorites */
.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #f4a5ec, #c23eff);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(194, 62, 255, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.pereklad {
  appearance: none;
  background-color: #5a6d4b;
  color: white;
  padding: clamp(6px, 1.5vw, 8px) clamp(20px, 4vw, 30px) clamp(6px, 1.5vw, 8px) clamp(10px, 2vw, 15px);
  border: none;
  border-radius: 4px;
  font-size: clamp(14px, 2vw, 16px);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* ==================== MAIN CONTENT ==================== */
.contentik {
  min-height: 100vh;
  width: 100%;
}

.main-content {
  width: 90%;
  max-width: 1400px;
  margin: clamp(100px, 15vw, 120px) auto 50px auto;
  padding: 0 20px;
}

.main-content_search {
  display: flex;
  align-items: center;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  padding: 8px 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 40px auto;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.main-content_search:focus-within {
  border-color: #f4a5ec;
  box-shadow: 0 4px 15px rgba(244, 165, 236, 0.3);
}

.main-content_search input {
  border: none;
  outline: none;
  flex: 1;
  padding: 8px;
  font-size: clamp(14px, 2vw, 16px);
  background: transparent;
}

.search-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  opacity: 0.6;
}

/* ==================== FLOWERS GRID ==================== */
.main-content__flowers-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(15px, 3vw, 25px);
  width: 100%;
}

.flower-love {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  z-index: 2;
  cursor: pointer;
  transition: all 0.25s ease;
  filter: invert(39%) sepia(18%) saturate(750%) hue-rotate(60deg) brightness(90%) contrast(100%);
}

.flower-love:hover {
  transform: scale(1.2);
  filter: invert(40%) sepia(20%) saturate(700%) hue-rotate(80deg) brightness(130%) contrast(170%);
}

.flower-love.active {
  transform: scale(1.2);
  filter: invert(40%) sepia(20%) saturate(700%) hue-rotate(80deg) brightness(130%) contrast(170%);
}

.flower-button {
  width: 80%;
  margin: 10px auto;
  border-radius: 15px;
  padding: 10px;
  background-color: #fffbef;
  box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.372);
  color: #000000;
  border: none;
  transition: all 0.25s ease;
  cursor: pointer;
  font-size: clamp(14px, 2vw, 16px);
}

.flower-button:hover {
  transform: scale(1.05);
  box-shadow: 5px 8px 14px rgba(0, 0, 0, 0.372);
}

.flower-button-active {
  background-color: #5a6d4b !important;
  color: white !important;
  box-shadow: inset 2px 5px 12px rgba(0, 0, 0, 0.2);
}

.flower-button-details {
  width: 80%;
  margin: 10px auto;
  border-radius: 15px;
  padding: 10px;
  background: linear-gradient(135deg, #f4a5ec, #c23eff);
  color: white;
  border: none;
  transition: all 0.25s ease;
  cursor: pointer;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(194, 62, 255, 0.3);
}

.flower-button-details:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 16px rgba(194, 62, 255, 0.5);
}

.main-content__flower-box {
  border-radius: 10px;
  border: 1px solid #E4E4E4;
  box-shadow: 0px 4px 12px rgba(141, 186, 136, 0.2);
  padding: 10px;
  display: flex;
  flex-direction: column;
  background-color: #fffbef;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.main-content__flower-box:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 20px rgba(141, 186, 136, 0.4);
}

.main-content__flower-box__flower {
  width: 100%;
  height: 300px;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.flower-name {
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
  color: var(--text-dark);
}

.flower-price {
  font-size: clamp(16px, 2.5vw, 18px);
  font-weight: bold;
  text-align: center;
  margin-top: 5px;
  color: var(--primary-color);
}

/* ==================== FLOWER DETAILS MODAL ==================== */
#flower-details-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.flower-details-container {
  background: white;
  border-radius: 24px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes slideUp {
  from {
    transform: translateY(60px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.flower-details-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.flower-details-close:hover {
  background: white;
  transform: rotate(90deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.flower-details-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

.flower-details-image-container {
  position: relative;
}

.flower-details-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.flower-details-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.flower-details-header {
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 20px;
}

.flower-details-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.flower-details-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #f0f8e8, #e8f5d8);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(96, 132, 59, 0.2);
}

.flower-details-description {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.flower-details-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.detail-item {
  background: white;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.detail-item:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(96, 132, 59, 0.1);
}

.detail-label {
  font-size: 13px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.detail-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.flower-details-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}

.flower-details-add {
  flex: 1;
  padding: 16px 32px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(96, 132, 59, 0.3);
}

.flower-details-add:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(96, 132, 59, 0.4);
}

.flower-details-add.in-cart {
  background: #7aa54d;
  cursor: default;
}

.flower-details-add.in-cart:hover {
  transform: none;
}

/* ==================== MODAL STYLES ==================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  font-size: clamp(20px, 3vw, 24px);
  color: var(--text-dark);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  transition: all 0.2s;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.modal-body {
  padding: 20px 30px;
  overflow-y: auto;
  flex: 1;
}

.modal-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #999;
  text-align: center;
}

.empty-state svg {
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-state p {
  font-size: 18px;
  margin: 0;
}

.modal-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: all 0.2s;
  background: #fafafa;
}

.modal-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: white;
}

.modal-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.modal-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-item-info h4 {
  margin: 0;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.3;
}

.modal-item-price {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
  margin: 0;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.quantity-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.quantity-controls button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.quantity-controls span {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.modal-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.modal-item-total {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-dark);
}

.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #999;
  transition: all 0.2s;
  border-radius: 6px;
}

.remove-btn:hover {
  background: #fee;
  color: #e74c3c;
}

.add-to-cart-btn {
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  font-size: 14px;
}

.add-to-cart-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 132, 59, 0.3);
}

.add-to-cart-btn.in-cart {
  background: #7aa54d;
  cursor: default;
}

.add-to-cart-btn.in-cart:hover {
  transform: none;
  box-shadow: none;
}

.modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
}

.modal-total-price {
  color: var(--primary-color);
  font-size: 24px;
}

.modal-buttons {
  display: flex;
  gap: 12px;
}

.modal-btn {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-btn-secondary {
  background: #f5f5f5;
  color: var(--text-dark);
}

.modal-btn-secondary:hover {
  background: #e5e5e5;
}

.modal-btn-primary {
  background: var(--primary-color);
  color: white;
}

.modal-btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(96, 132, 59, 0.3);
}

.modal-checkout {
  width: 100%;
}

/* ==================== NOTIFICATIONS ====================*/
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  font-size: 15px;
  font-weight: 500;
  z-index: 3000;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  max-width: 400px;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification-success {
  border-left: 4px solid #28a745;
  color: #155724;
  background: #d4edda;
}

.notification-error {
  border-left: 4px solid #dc3545;
  color: #721c24;
  background: #f8d7da;
}

.notification-info {
  border-left: 4px solid #17a2b8;
  color: #0c5460;
  background: #d1ecf1;
}

/* Мобільна кнопка фільтрів */
.mobile-filters-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f4a5ec, #c23eff);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(194, 62, 255, 0.3);
  margin-bottom: 20px;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s ease;
}

.mobile-filters-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(194, 62, 255, 0.5);
}

.mobile-filters-toggle svg {
  stroke: white;
}

.filters-row {
  display: flex;
  border-radius: 17px;
  padding: 10px;
  text-align: center;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-item {
  position: relative;
}

.arrow {
  position: absolute;
  right: 15px;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.price-slider-container {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  min-width: 340px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: none;
}

.price-inputs {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.price-input-group {
  flex: 1;
  position: relative;
}

.price-input-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
}

.price-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 15px;
  background: white;
}

.price-input-wrapper input {
  border: none;
  outline: none;
  font-size: 18px;
  font-weight: 600;
  width: 100%;
  background: transparent;
}

.price-input-wrapper .arrows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 10px;
}

.price-input-wrapper .arrows span {
  cursor: pointer;
  font-size: 10px;
  color: #999;
  line-height: 1;
  user-select: none;
}

.price-input-wrapper .arrows span:hover {
  color: #f06fb9;
}

.slider-track {
  position: relative;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  margin: 20px 10px;
}

.slider-range {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, #f4a5ec, #c23eff);
  border-radius: 3px;
}

.slider-thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border: 3px solid #f06fb9;
  border-radius: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.2s;
}

.slider-thumb:hover {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 2px 8px rgba(240, 111, 185, 0.4);
}

.slider-thumb:active {
  transform: translate(-50%, -50%) scale(1.1);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .main-content__flowers-box {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .flower-details-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
  }

  .flower-details-image {
    height: 400px;
  }

  .bottom-nav { display: flex; }
  body { padding-bottom: 70px; }
  .mobile-filters-toggle {
    display: flex;
  }
  .flower-details-specs {
    grid-template-columns: 1fr;
  }

  .filters-row {
    gap: 10px;
  }

  .filter-button, .reset-filters-btn {
    font-size: 14px;
    padding: 10px 20px;
    min-width: 130px;
  }
  .headerr__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .price-slider-container {
    min-width: 300px;
  }
  
  /* Показуємо мобільну кнопку фільтрів на планшетах */
  .mobile-filters-toggle {
    display: flex;
  }
  
  .menu__body:first-of-type {
    display: none;
  }
  .menu__body:last-of-type {
    display: none;
  }
  .right-side{
    display: none !important;
  }
  .pereklad {
    display: none !important;
  }
  /* Ховаємо фільтри за замовчуванням */
  .filters-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .filters-container.active {
    max-height: 2000px;
  }
}

@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: 70px; }
  .mobile-filters-toggle {
    display: flex;
  }
  .filters-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  
  .filters-container.active {
    max-height: 2000px;
  }
  .headerr__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .menu__body:first-of-type {
    display: none;
  }
  .menu__body:last-of-type {
    display: none;
  }
  .right-side{
    display: none !important;
  }
  .pereklad {
    display: none !important;
  }
  
  .filters-row {
    flex-direction: column;
    gap: 10px;
  }

  .filter-item {
    width: 100%;
  }

  .filter-button, .reset-filters-btn {
    width: 100%;
    justify-content: center;
  }

  .price-slider-container {
    position: static;
    min-width: 100%;
    margin-top: 10px;
  }

  .dropdown {
    position: static;
    margin-top: 10px;
  }

  /* Сітка квітів */
  .main-content__flowers-box {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .main-content__flower-box__flower {
    height: 350px;
  }

  /* Модалки */
  .modal {
    width: 95%;
    max-height: 95vh;
    border-radius: 16px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 20px;
  }

  .modal-buttons {
    flex-direction: column;
  }

  /* Деталі квітки */
  .flower-details-content {
    padding: 20px;
    gap: 20px;
  }

  .flower-details-image {
    height: 300px;
  }

  .flower-details-name {
    font-size: 24px;
  }

  .flower-details-price {
    font-size: 22px;
  }

  .flower-details-actions {
    flex-direction: column;
  }

  /* Пошук */
  .main-content_search {
    max-width: 100%;
  }

  /* Сповіщення */
  .notification {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  /* Сітка на одну колонку для маленьких екранів */
  .main-content__flowers-box {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 70px;
  }
  .main-content__flower-box__flower {
    height: 400px;
  }

  .flower-name {
    font-size: 16px;
  }

  .flower-price {
    font-size: 18px;
  }

  /* Елементи кошика */
  .modal-item {
    flex-direction: column;
    gap: 15px;
  }

  .modal-item img {
    width: 100%;
    height: 150px;
  }

  .modal-item-actions {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
  }

  /* Деталі квітки на маленьких екранах */
  .flower-details-image {
    height: 250px;
  }

  .flower-details-name {
    font-size: 20px;
  }

  .flower-details-price {
    font-size: 20px;
  }

  .flower-details-add {
    padding: 14px 24px;
    font-size: 15px;
  }

  /* Фільтри */
  .mobile-filters-toggle {
    max-width: 100%;
  }
  
  .filter-button, .reset-filters-btn {
    font-size: 13px;
    padding: 10px 15px;
  }
}

@media (max-width: 360px) {
    .bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 70px;
  }
  .main-content__flowers-box {
    grid-template-columns: 1fr;
  }

  .main-content__flower-box__flower {
    height: 250px;
  }
}







@media (min-width: 1024px) {
  .bottom-nav {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }
}


/* ==================== BOTTOM NAV (MOBILE) ==================== */
.bottom-nav {
  display: none;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(246, 226, 225, 0.98);
  backdrop-filter: blur(15px);
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #333;
  padding: 6px 8px;
  transition: all 0.3s ease;
  position: relative;
}
.bottom-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #f4a5ec, #c23eff);
  transition: width 0.3s ease;
  border-radius: 0 0 3px 3px;
}
.bottom-nav-item:hover::before,
.bottom-nav-item:active::before,
.bottom-nav-item.active::before { width: 60%; }
.bottom-nav-item.active { color: #c23eff; }
.bottom-nav-item span { font-size: 11px; font-weight: 600; text-align: center; }
.bottom-nav-lang {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin: 0 10px 0 10px;
  padding: 8px;
}

.bottom-nav-lang select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px; /* важливо для iOS — без zoom */
}
.bottom-nav-lang select:focus { pointer-events: auto; }
.bottom-nav-lang .bottom-nav-icon { font-size: 24px; margin-bottom: 2px; }
@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: 70px; }
}
@media (min-width: 1025px) {
  .bottom-nav { display: none !important; }
  body { padding-bottom: 0; }
}
