/* ===== Swiss Pharm — відтворення структури та стилю сайту ===== */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: black;
  color: white;
  font-family: 'Oswald', sans-serif;
  min-height: 100vh;
}

a { color: inherit; }

input, textarea { font-size: 16px; }

/* ---- Фон-слайдер ---- */
.bg-slider {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.8s ease-in-out, transform 3s ease-in-out;
  will-change: opacity, transform;
}

.bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

/* ---- Шапка ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  padding: 15px 0;
  border-bottom: 2px solid #f50505;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-container {
  position: relative;
  display: inline-block;
}

.logo-img {
  height: 40px;
  display: block;
  transition: opacity 0.3s ease;
}

.shtanga-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 150%;
  background: linear-gradient(45deg, transparent 30%, rgba(245, 5, 5, 0.1) 50%, transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo-container:hover .shtanga-bg { opacity: 1; }

.nav-wrapper {
  display: flex;
  align-items: center;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

.categories-dropdown { position: relative; }

.categories-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
}

.dropdown-arrow {
  font-size: 0.7em;
  transition: transform 0.3s ease;
}

.categories-dropdown.active .dropdown-arrow { transform: rotate(180deg); }

.categories-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid #f50505;
  border-radius: 5px;
  padding: 10px 0;
  min-width: 200px;
  display: none;
  z-index: 1001;
  margin: 8px 0 0;
}

.categories-dropdown.active .categories-menu { display: block; }

.categories-menu li { list-style: none; }

.categories-menu a {
  display: block;
  padding: 8px 20px;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.categories-menu a:hover { background-color: rgba(245, 5, 5, 0.3); }

.nav-link {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  padding: 0;
}

.nav-link:hover { color: #f50505; }

.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #229ED9;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.hero-content .telegram-link { margin: -15px 0 25px; }

.telegram-link i { font-size: 1.5rem; }

.telegram-link:hover { color: #4fb4e8; }

.cart-button {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cart-counter {
  background: #f50505;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin-left: 5px;
}

@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.cart-pulse { animation: cartPulse 0.5s ease-in-out; }

/* Бургер (тільки мобільна версія) */
.mobile-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  position: relative;
}

.burger-line {
  width: 25px;
  height: 3px;
  background: white;
  transition: 0.3s;
}

.mobile-burger.active .burger-line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-burger.active .burger-line:nth-child(2) { opacity: 0; }
.mobile-burger.active .burger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.burger-cart-counter {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  font-size: 10px;
  border: 2px solid black;
  margin-left: 0;
  animation: cartPulse 0.5s ease-in-out;
}

/* ---- Головний контент ---- */
.main-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 120px;
}

/* ---- Герой ---- */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 20px 100px;
}

.hero-content { max-width: 800px; }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin: 0 0 30px;
  text-transform: uppercase;
}

.hero-title span {
  color: #f50505;
  text-shadow: 0 0 30px #f50505;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin: 0 0 40px;
  opacity: 0.9;
}

/* ---- Кнопка "входу" ---- */
.enter-btn {
  margin-top: 30px;
  padding: 15px 50px;
  border: 2px solid #f50505;
  border-radius: 10px;
  text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: 500;
  background: rgba(245, 5, 5, 0.2);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.enter-btn:hover {
  background: #f50505;
  transform: scale(1.05);
  box-shadow: 0 0 30px #f50505;
}

/* ---- Категорії ---- */
.categories-section {
  background: rgba(0, 0, 0, 0.8);
  padding: 60px 20px;
  position: relative;
  z-index: 2;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin: 0 0 50px;
  text-transform: uppercase;
  color: #f50505;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.category-card:hover {
  background: rgba(245, 5, 5, 0.2);
  border-color: #f50505;
  transform: translateY(-5px);
}

.category-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 2px solid #00ff41;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.45);
  display: block;
}

.category-name { font-size: 1.3rem; margin: 0 0 10px; }

.category-count { color: #f50505; font-size: 0.9rem; }

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Товари категорії ---- */
.products-section {
  background: rgba(0, 0, 0, 0.9);
  padding: 60px 20px;
  position: relative;
  z-index: 2;
}

.back-to-categories {
  display: block;
  margin: 20px auto;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
}

.back-to-categories:hover {
  background: #f50505;
  border-color: #f50505;
  color: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.product-card:hover {
  background: rgba(245, 5, 5, 0.2);
  border-color: #f50505;
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.product-name { font-size: 1.2rem; margin: 0 0 10px; color: white; }

.product-category { color: #f50505; font-size: 0.9rem; margin: 0 0 10px; }

.product-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
  margin: 0 0 15px;
}

.card-buttons { display: flex; gap: 10px; }

.desc-button, .buy-button {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.desc-button {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.desc-button:hover { background: rgba(255, 255, 255, 0.2); }

.buy-button { background: #f50505; color: white; }

.buy-button:hover {
  background: #d90404;
  transform: scale(1.05);
}

/* Пагінація */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
}

.pagination-button {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
}

.pagination-button:hover:not(:disabled) {
  background: #f50505;
  border-color: #f50505;
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#page-info { font-weight: bold; color: white; }

.no-products {
  text-align: center;
  grid-column: 1 / -1;
  padding: 40px;
  font-size: 1.3rem;
  color: #999;
}

/* ---- Кошик ---- */
.cart-section {
  position: fixed;
  top: 80px !important;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: rgba(0, 0, 0, 0.95);
  z-index: 1001;
  overflow-y: auto;
  padding: 20px;
  display: none;
}

.cart-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.cart-items-list { margin: 30px 0; }

.cart-item {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.cart-item:hover {
  border-color: #f50505;
  background: rgba(245, 5, 5, 0.1);
}

.cart-item-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 20px;
}

.cart-item-details { flex: 1; }

.cart-item-name { color: white; font-size: 1.3rem; margin-bottom: 10px; }

.cart-item-price {
  color: #f50505;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.cart-item-quantity-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.quantity-minus, .quantity-plus {
  width: 40px;
  height: 40px;
  border: 2px solid #f50505;
  background: rgba(245, 5, 5, 0.2);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.quantity-minus:hover, .quantity-plus:hover {
  background: #f50505;
  transform: scale(1.1);
}

.quantity-value {
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  min-width: 30px;
  text-align: center;
}

.remove-from-cart-button {
  padding: 10px 20px;
  background: rgba(255, 0, 0, 0.3);
  border: 2px solid #ff0000;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
}

.remove-from-cart-button:hover {
  background: #ff0000;
  transform: scale(1.05);
}

.empty-cart-message { text-align: center; padding: 60px 20px; }

.empty-cart-message p {
  color: white;
  font-size: 1.5rem;
  margin: 0 0 30px;
}

.cart-summary {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  margin: 30px 0;
  border: 2px solid #f50505;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: white;
}

.total-price { color: white; font-size: 1.5rem; }

#checkout-button,
.cart-summary .checkout-button {
  padding: 15px 40px;
  background: linear-gradient(45deg, #f50505, #d90404);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-family: inherit;
  width: 100%;
  margin-top: 10px;
}

.cart-summary .checkout-button:hover:not(:disabled) {
  background: linear-gradient(45deg, #d90404, #b80303);
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(245, 5, 5, 0.4);
}

.cart-summary .checkout-button:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.continue-shopping-btn {
  width: 100%;
  padding: 12px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 15px;
  font-family: inherit;
  font-size: 1.05rem;
  transition: background 0.3s ease;
}

.continue-shopping-btn:hover { background: #5a6268; }

.close-cart-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #f50505;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  z-index: 10;
  transition: all 0.3s ease;
}

.close-cart-btn:hover { color: white; transform: scale(1.1); }

/* Анімація «політ у кошик» */
.cart-animation {
  position: fixed;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f50505;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(245, 5, 5, 0.7);
  border: 2px solid white;
}

.cart-animation img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---- Оформлення замовлення ---- */
.checkout-section {
  position: fixed !important;
  top: 80px !important;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: rgba(0, 0, 0, 0.95);
  z-index: 1001;
  overflow-y: auto;
  padding: 20px;
  display: none;
  align-items: flex-start;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
}

.checkout-container {
  background: rgba(30, 30, 30, 0.95);
  border: 2px solid #f50505;
  border-radius: 15px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  position: relative;
  margin-top: 0;
}

.checkout-container .section-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.close-checkout-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #f50505;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  z-index: 10;
}

.checkout-summary {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid rgba(245, 5, 5, 0.3);
}

.summary-total {
  font-size: 1.3rem;
  font-weight: bold;
  color: #f50505;
  border-top: 2px solid #f50505;
  padding-top: 10px;
  margin-top: 10px;
}

.checkout-form { margin-top: 20px; }

.form-group { margin-bottom: 20px; position: relative; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f50505;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px rgba(245, 5, 5, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #999; }

.form-group input.invalid { border-color: #dc3545; }

.suggestions-list {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid #f50505;
  border-radius: 8px;
  margin-top: 5px;
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  z-index: 2000;
}

.suggestion-item {
  padding: 10px 12px;
  cursor: pointer;
  color: white;
}

.suggestion-item:hover { background: rgba(245, 5, 5, 0.2); }

.payment-method-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.payment-method-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  font-weight: normal;
  margin-bottom: 0;
}

.payment-method-options label:hover {
  background: rgba(245, 5, 5, 0.1);
  border-color: rgba(245, 5, 5, 0.3);
}

.payment-method-options input[type="radio"] {
  margin: 0;
  transform: scale(1.1);
  width: auto;
}

.payment-method-options input[type="radio"]:checked + span {
  color: #f50505;
  font-weight: bold;
}

#submit-checkout {
  width: 100%;
  padding: 15px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: inherit;
}

#submit-checkout:hover:not(:disabled) {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

#submit-checkout:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status-message {
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  text-align: center;
  font-weight: bold;
}

.status-waiting {
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid #ffc107;
  color: #ffc107;
}

.status-confirmed-box {
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid #28a745;
  color: #28a745;
}

.status-error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid #dc3545;
  color: #dc3545;
}

/* ---- Переваги ---- */
.features-section {
  background: rgba(0, 0, 0, 0.8);
  padding: 60px 20px;
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card { text-align: center; padding: 30px; }

.feature-icon { font-size: 3rem; color: #f50505; margin-bottom: 20px; }

.feature-title { font-size: 1.5rem; margin: 0 0 15px; color: #f50505; }

.feature-description { opacity: 0.9; line-height: 1.6; margin: 0; }

/* ---- Вкладки (Про нас / Консультація / Контакти) ---- */
.tab-section {
  position: relative;
  z-index: 1002;
  background: rgba(20, 20, 20, 0.9);
  padding: 80px 20px;
}

.about-section { background: rgba(20, 20, 20, 0.9); }

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 { font-size: 2.5rem; margin: 0 0 30px; color: #f50505; }

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  height: 200px;
  background: #333;
}

.about-image img { width: 100%; height: 100%; object-fit: cover; }

.tab-section .enter-btn { margin-top: 20px; }

.consultation-form-btn {
  background: #28a745 !important;
  border-color: #28a745 !important;
  padding: 12px 25px;
}

.consultation-form-btn:hover {
  background: #218838 !important;
  border-color: #1e7e34 !important;
}

.close-btn {
  background: #6c757d !important;
  border-color: #6c757d !important;
  padding: 12px 30px;
}

.close-btn:hover {
  background: #5a6268 !important;
  border-color: #545b62 !important;
}

/* Контакти */
.contact-info { margin: 30px 0; text-align: center; }

.contact-info .phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: bold;
  color: #f50505;
  margin-bottom: 20px;
}

.contact-info .phone a { color: inherit; text-decoration: none; }

.contact-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.phone-large {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.4rem;
  font-weight: bold;
  color: #f50505;
  padding: 15px 25px;
  background: rgba(245, 5, 5, 0.1);
  border: 2px solid rgba(245, 5, 5, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.phone-large a { color: inherit; text-decoration: none; }

.phone-large:hover {
  background: rgba(245, 5, 5, 0.15);
  border-color: #f50505;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(245, 5, 5, 0.2);
}

.phone-large i { font-size: 1.6rem; }

.email {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: white;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.email a { color: inherit; text-decoration: none; }
.email i { color: #f50505; font-size: 1.2rem; }

.social-section { margin-top: 35px; text-align: center; }

.social-section h3 { color: #f50505; margin: 0 0 20px; font-size: 1.3rem; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(245, 5, 5, 0.1);
  border: 1px solid rgba(245, 5, 5, 0.3);
  border-radius: 8px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.social-links a:hover {
  background: rgba(245, 5, 5, 0.2);
  border-color: #f50505;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 5, 5, 0.3);
}

.social-links i { font-size: 1.2rem; width: 20px; text-align: center; }

.social-links .fa-telegram { color: #0088cc; }
.social-links .fa-whatsapp { color: #25d366; }
.social-links .fa-viber { color: #7360f2; }
.social-links .fa-facebook-f { color: #1877f2; }
.social-links .fa-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Консультація — форма */
#consultation { padding: 40px 20px; background: rgba(0, 0, 0, 0.9); }

#consultation .section-content {
  max-width: 500px;
  margin: 0 auto;
  padding: 30px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  border: 2px solid #f50505;
  box-shadow: 0 10px 30px rgba(245, 5, 5, 0.2);
}

#consultation h2 {
  text-align: center;
  color: #f50505;
  margin: 0 0 20px;
  font-size: 2rem;
}

#consultation > p,
#consultation .section-content > p {
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.5;
  opacity: 0.9;
}

#consultation-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#consultation-form input[type="text"],
#consultation-form input[type="tel"],
#consultation-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#consultation-form input:focus,
#consultation-form textarea:focus {
  outline: none;
  border-color: #f50505;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px rgba(245, 5, 5, 0.3);
}

#consultation-form input::placeholder,
#consultation-form textarea::placeholder { color: #999; }

#consultation-form textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 200px;
}

#consultation-form input.invalid,
#consultation-form textarea.invalid { border-color: #dc3545; }

.contact-method { margin: 10px 0; }

.contact-method > label {
  display: block;
  margin-bottom: 15px;
  font-weight: bold;
  color: #f50505;
  font-size: 1.1rem;
  text-align: center;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-options label {
  display: flex;
  cursor: pointer;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.contact-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  justify-content: center;
}

.contact-option:hover {
  background: rgba(245, 5, 5, 0.1);
  border-color: rgba(245, 5, 5, 0.3);
  transform: translateY(-2px);
}

.contact-options input[type="radio"] { display: none; }

.contact-options input[type="radio"]:checked + .contact-option {
  background: rgba(245, 5, 5, 0.2);
  border-color: #f50505;
  color: #f50505;
  font-weight: bold;
}

.contact-option i { font-size: 1.2rem; width: 20px; text-align: center; }

#consultation-form button[type="submit"] {
  padding: 14px 30px;
  background: linear-gradient(45deg, #f50505, #d90404);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  font-family: inherit;
}

#consultation-form button[type="submit"]:hover {
  background: linear-gradient(45deg, #d90404, #b80303);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 5, 5, 0.4);
}

.close-tab {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #f50505;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10;
  transition: color 0.3s ease;
}

.close-tab:hover { color: white; }

/* ---- Мої замовлення ---- */
#success-section .section-title { font-size: 2rem; }

.orders-list-compact { max-height: 70vh; overflow-y: auto; }

.order-item-compact {
  border: 1px solid #333;
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.order-item-compact:hover {
  background: rgba(245, 5, 5, 0.1);
  border-color: #f50505;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 5, 5, 0.3);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 500;
  gap: 10px;
  flex-wrap: wrap;
}

.order-number { color: #f50505; font-weight: bold; font-size: 1.1rem; }

.order-date { color: #ccc; font-size: 0.9em; }

.order-amount { color: #28a745; font-weight: bold; font-size: 1.1rem; }

.order-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  color: #aaa;
  gap: 10px;
  flex-wrap: wrap;
}

.order-payment {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-status {
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: 500;
  text-transform: uppercase;
}

.status-pending {
  background: rgba(108, 117, 125, 0.3);
  color: #6c757d;
  border: 1px solid #6c757d;
}

.status-confirmed {
  background: rgba(40, 167, 69, 0.3);
  color: #28a745;
  border: 1px solid #28a745;
}

/* Модальне вікно деталей замовлення */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: rgba(30, 30, 30, 0.98);
  border: 3px solid #f50505;
  border-radius: 20px;
  padding: 30px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  color: white;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2.5rem;
  color: #f50505;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10;
  transition: color 0.3s ease;
}

.close-modal:hover { color: white; }

.order-details-full { line-height: 1.6; }

.order-details-full h3 {
  color: #f50505;
  margin: 0 0 25px;
  border-bottom: 3px solid #f50505;
  padding-bottom: 15px;
  font-size: 1.8rem;
  text-transform: uppercase;
  text-align: center;
}

.detail-row {
  display: flex;
  margin-bottom: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #444;
  align-items: flex-start;
  gap: 10px;
}

.detail-label {
  font-weight: bold;
  min-width: 180px;
  color: #f50505;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.detail-value { flex: 1; color: #fff; font-size: 1.1rem; font-weight: 500; }

.order-products-list { margin: 15px 0; padding-left: 0; list-style: none; }

.order-product-item {
  margin-bottom: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border-left: 4px solid #f50505;
  font-size: 1.05rem;
}

/* ---- Опис товару / перегляд фото ---- */
.modal-opus {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-opus-content {
  background: rgba(30, 30, 30, 0.95);
  border: 2px solid #f50505;
  border-radius: 15px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  color: white;
}

.modal-opus-content .item-category {
  color: #f50505;
  text-transform: uppercase;
  margin: 0 0 15px;
  font-size: 1rem;
}

.modal-opus-content h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.modal-opus-content img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
}

.modal-opus-price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #f50505;
  margin-bottom: 20px;
}

.modal-opus-description { color: white; line-height: 1.6; }
.modal-opus-description p { margin-bottom: 15px; }

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  border: 2px solid #f50505;
}

/* ---- Футер ---- */
.footer {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.95);
  border-top: 2px solid #f50505;
  padding: 40px 20px 25px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

/* ---- Адаптивність ---- */
@media (max-width: 768px) {
  .mobile-burger { display: flex; }

  .nav-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    flex-direction: column;
  }

  .nav-wrapper.active { display: flex; }

  .navigation { flex-direction: column; gap: 15px; }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .nav-link:last-child { border-bottom: none; }

  .categories-dropdown { width: 100%; }

  .categories-menu {
    position: static;
    background: transparent;
    border: none;
    padding: 10px 0 0 15px;
    display: none;
    width: 100%;
  }

  .categories-dropdown.active .categories-menu { display: block; }

  .categories-menu a {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .categories-menu a:last-child { border-bottom: none; }

  .about-content { grid-template-columns: 1fr; gap: 30px; }

  .cart-item { flex-direction: column; text-align: center; }

  .cart-item-image {
    width: 100%;
    height: 200px;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .cart-item-quantity-controls { justify-content: center; }

  .cart-summary { padding: 20px; }

  .checkout-container { margin: 20px auto; padding: 25px 20px; }

  .payment-method-options { gap: 8px; }

  #submit-checkout { padding: 12px; font-size: 1rem; }

  #consultation .section-content { margin: 20px; padding: 25px 20px; }

  .contact-options { grid-template-columns: 1fr; gap: 8px; }

  #consultation-form button[type="submit"] { padding: 12px 25px; font-size: 1rem; }

  .products-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

  .card-buttons { flex-direction: column; }

  .contact-buttons { flex-direction: column; align-items: center; }
  .contact-buttons .enter-btn { width: 100%; max-width: 250px; }
}

@media (max-width: 480px) {
  .burger-cart-counter {
    width: 16px;
    height: 16px;
    font-size: 9px;
    top: -4px;
    right: -4px;
  }

  .nav-wrapper { padding: 15px; }

  .nav-link { font-size: 1rem; padding: 10px 0; }

  .checkout-container { margin: 15px auto; padding: 20px 15px; }

  .form-group input, .form-group textarea { padding: 10px 12px; }

  #consultation .section-content { margin: 15px; padding: 20px 15px; }

  #consultation h2 { font-size: 1.7rem; }

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

  .pagination-controls { flex-wrap: wrap; gap: 10px; }
}
