/* === Кнопка корзины в шапке === */
.header-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFD700;
  color: #0a0a0a !important;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
  margin-left: 14px;
  text-decoration: none;
}
.header-cart-btn:hover { background: #fff; transform: translateY(-1px); }
.header-cart-badge {
  background: #0a0a0a;
  color: #FFD700;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 13px;
  min-width: 20px;
  text-align: center;
}

/* === Кнопки "В корзину" на карточках === */
.card-cart-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}
.btn-add-cart {
  width: 100%;
  background: #FFD700;
  color: #0a0a0a;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn-add-cart:hover { background: #fff; }
.btn-add-cart.added { background: #2ecc71; color: #fff; }

.product-buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.btn-order-outline {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 5px;
  padding: 11px 22px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-order-outline:hover { background: #FFD700; color: #0a0a0a; }

/* === Боковая панель корзины === */
.al-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 9998;
  display: none;
}
.al-cart-overlay.open { display: block; }

.al-cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #121212;
  color: #fff;
  border-left: 2px solid #FFD700;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right 0.28s ease;
  box-shadow: -8px 0 30px rgba(0,0,0,0.8);
  font-family: 'Oswald', sans-serif;
}
.al-cart-drawer.open { right: 0; }

.al-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a2a;
  background: #0a0a0a;
}
.al-cart-header h3 { margin: 0; font-size: 20px; color: #FFD700; }
.al-close-btn {
  background: none;
  border: none;
  color: #aaa;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}
.al-close-btn:hover { color: #fff; }

.al-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.al-cart-empty {
  text-align: center;
  color: #888;
  padding: 40px 10px;
  font-size: 16px;
}
.al-cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #242424;
}
.al-cart-item img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  background: #1e1e1e;
}
.al-cart-item-info { flex: 1; min-width: 0; }
.al-cart-item-title {
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.al-cart-item-sub { font-size: 13px; color: #FFD700; margin-top: 2px; }
.al-qty-box {
  display: flex;
  align-items: center;
  gap: 6px;
}
.al-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid #444;
  background: #1c1c1c;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
.al-qty-btn:hover { border-color: #FFD700; color: #FFD700; }
.al-remove-btn {
  background: none;
  border: none;
  color: #ff5555;
  font-size: 18px;
  cursor: pointer;
  margin-left: 4px;
}

.al-cart-footer {
  padding: 16px 20px;
  border-top: 1px solid #2a2a2a;
  background: #0d0d0d;
}
.al-cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}
.al-cart-total span:last-child { color: #FFD700; }

.al-form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-bottom: 9px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #181818;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}
.al-form-input:focus { outline: none; border-color: #FFD700; }

.al-submit-btn {
  width: 100%;
  padding: 12px;
  background: #FFD700;
  color: #0a0a0a;
  border: none;
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.al-submit-btn:hover { background: #fff; }
.al-submit-btn:disabled { opacity: 0.6; cursor: default; }

/* === Универсальное модальное окно быстрого заказа === */
.al-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.al-modal-backdrop.open { display: flex; }
.al-modal-card {
  width: 100%;
  max-width: 430px;
  background: #141414;
  border: 2px solid #FFD700;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  color: #fff;
  font-family: 'Oswald', sans-serif;
}
.al-modal-card h3 { margin: 0 0 6px; color: #FFD700; font-size: 22px; }
.al-modal-sub { margin: 0 0 16px; color: #aaa; font-size: 14px; }

.al-messenger-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.al-msg-link {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 9px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.al-msg-max { background: #6C43F5; }
.al-msg-tg { background: #229ED9; }
.al-msg-wa { background: #25D366; color: #0a0a0a; }
.al-msg-link:hover { opacity: 0.9; }

/* === Виджет-помощник в правом нижнем углу === */
.al-assist-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9990;
  font-family: 'Oswald', sans-serif;
}
.al-assist-fab {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #FFD700 0%, #ffb700 100%);
  color: #0a0a0a;
  border: none;
  border-radius: 999px;
  padding: 10px 18px 10px 12px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.38);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease;
}
.al-assist-fab:hover { transform: scale(1.04); }
.al-assist-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0a0a0a;
  color: #FFD700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
  flex-shrink: 0;
}
.al-online-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  border: 2px solid #0a0a0a;
}

.al-assist-popup {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 330px;
  max-width: calc(100vw - 32px);
  background: #141414;
  border: 2px solid #FFD700;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.85);
  overflow: hidden;
  display: none;
  color: #fff;
}
.al-assist-popup.open { display: block; }
.al-assist-top {
  background: #0a0a0a;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2a2a2a;
}
.al-assist-manager {
  display: flex;
  align-items: center;
  gap: 10px;
}
.al-assist-name { font-size: 16px; font-weight: 700; color: #FFD700; }
.al-assist-role { font-size: 12px; color: #9ee6b8; }
.al-assist-content { padding: 14px 16px; }
.al-assist-bubble {
  background: #1f1f1f;
  border-left: 3px solid #FFD700;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #eaeaea;
  margin-bottom: 12px;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .al-assist-label { display: none; }
  .al-assist-fab { padding: 10px; }
}
