/* TradeTime: custom appearance for EasyDonate Lullaby. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --tt-bg: #08120f;
  --tt-panel: #10231b;
  --tt-green: #46dd87;
  --tt-line: rgba(119, 219, 159, .16);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--tt-bg) !important;
  color: #edf7f0;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, input, select, textarea, button, .btn {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
main.bg-elegant-dark, main.main-instruction {
  background: var(--tt-bg) !important;
}
.navbar-main {
  position: relative !important;
  top: auto !important;
  width: calc(100% - 48px) !important;
  max-width: 1200px;
  margin: 24px auto !important;
  padding: 16px 20px !important;
  background: rgba(16, 35, 27, .94) !important;
  border: 1px solid var(--tt-line);
  border-radius: 26px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .16);
  z-index: 20;
}
.navbar-main .container { width: 100%; padding: 0; }
.navbar-main .nav-link {
  color: #e0eee5 !important;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  transition: background .2s, color .2s;
}
.navbar-main .nav-link:hover { color: var(--tt-green) !important; background: rgba(70,221,135,.08); }
.navbar-main .navbar-brand img { max-height: 52px; width: auto; border-radius: 12px; }
.navbar-main .navbar-brand { display: inline-flex; align-items: center; gap: 12px; }
.navbar-main .navbar-brand::after { content: 'TradeTime'; font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: #edf7f0; }
#welcome-section {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 110px !important;
  min-height: 430px;
  border: 1px solid var(--tt-line);
  border-radius: 32px !important;
  overflow: hidden;
  clip-path: inset(0 round 32px);
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
}
#welcome-section.overlay-dark::before {
  background: linear-gradient(105deg, rgba(4,19,13,.77), rgba(4,19,13,.38)) !important;
  opacity: 1 !important;
}
#welcome-section .pattern { display: none; }
#welcome-section .shop-title { padding: 20px 15px !important; }
#welcome-section .shop-name {
  font-size: clamp(40px, 5.2vw, 68px) !important;
  line-height: 1.12;
  font-weight: 800 !important;
  letter-spacing: -.045em;
  color: #f3fff7;
  text-shadow: 0 4px 24px rgba(0,0,0,.3);
}
#welcome-section .shop-description {
  max-width: 710px;
  margin: 0 auto !important;
  font-size: clamp(16px, 1.7vw, 21px) !important;
  line-height: 1.65;
  font-weight: 500;
  color: #d4e7dc;
}
main > .section-md { padding-top: 60px !important; padding-bottom: 56px !important; }
main > .section-md h2 { font-size: 32px !important; font-weight: 800 !important; letter-spacing: -.035em; }
.form-control {
  border-radius: 14px !important;
  font-size: 15px;
  min-height: 46px;
}
.form-control.bg-elegant, .form-control.bg-elegant-dark {
  background: #14271f !important;
  border: 1px solid var(--tt-line) !important;
  color: #edf7f0 !important;
}
.form-control:focus { box-shadow: 0 0 0 3px rgba(70,221,135,.16) !important; border-color: #46dd87 !important; }
.filter-button-group { margin-top: 28px !important; margin-bottom: 20px; }
.filter-button-group .btn { border-radius: 14px !important; padding: 11px 20px; margin: 4px; }
#shop .card.bg-elegant {
  background: linear-gradient(145deg,#152b21,#0e1d17) !important;
  border: 1px solid var(--tt-line) !important;
  border-radius: 24px !important;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.14) !important;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
#shop .card.bg-elegant:hover {
  transform: translateY(-5px);
  border-color: rgba(70,221,135,.45) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.25) !important;
}
#shop .card-title { font-size: 22px; letter-spacing: -.025em; font-weight: 800 !important; }
#shop .card-footer { padding-bottom: 22px; }
.btn { font-weight: 700; border-radius: 14px; transition: background .2s, transform .2s; }
.btn-primary, .btn-secondary, .bg-primary, .bg-secondary {
  background: #20a867 !important;
  border-color: #20a867 !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-secondary:hover { background: #168653 !important; border-color: #168653 !important; }
.text-primary, .text-secondary { color: var(--tt-green) !important; }
.footer.bg-elegant-night {
  background: #0c1c14 !important;
  border-top: 1px solid var(--tt-line);
  margin-top: 24px;
  padding-top: 34px !important;
  padding-bottom: 34px !important;
}
.footer a { color: #94c9ac; }
.footer a:hover { color: #e8fff0; }
.main-instruction #help { padding-top: 30px !important; padding-bottom: 30px !important; }
.modal-content { border-radius: 24px; overflow: hidden; }
@media (max-width: 767px) {
  .navbar-main { width: calc(100% - 24px) !important; margin: 12px auto !important; padding: 12px 14px !important; border-radius: 19px; }
  #welcome-section { width: calc(100% - 24px); padding: 72px 16px 76px !important; min-height: 340px; border-radius: 24px !important; clip-path: inset(0 round 24px); }
  main > .section-md { padding-top: 36px !important; }
  main > .section-md h2 { font-size: 27px !important; }
  #shop .card-title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #shop .card.bg-elegant, .btn, .navbar-main .nav-link { transition: none; }
  #shop .card.bg-elegant:hover { transform: none; }
}

/* Limbo-style shop controls and vertical product cards. */
.navbar-main { padding-right: 180px !important; }
#widgets {
  position: absolute !important;
  top: 44px !important;
  bottom: auto !important;
  right: max(48px, calc((100vw - 1200px) / 2 + 24px)) !important;
  z-index: 25 !important;
}
#widgets .basket-button {
  width: auto !important;
  height: 50px !important;
  min-width: 140px;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  border-radius: 14px !important;
  background: #20a867 !important;
  color: #fff;
  box-shadow: none !important;
  font-size: 18px;
}
#widgets .basket-button::after { content: 'Корзина'; font-size: 14px; font-weight: 800; }
#widgets .cart-counter {
  position: static !important;
  order: 2;
  margin: 0;
  padding: 3px 6px;
  background: rgba(0,0,0,.18) !important;
  font-size: 12px;
}
#widgets .corner { display: none; }
body.modal-open #widgets { z-index: 25 !important; }
main > .section-md > .container > .row:first-child { align-items: center; }
main > .section-md h2::after { content: ''; display: block; width: 112px; height: 4px; margin-top: 12px; background: #20a867; border-radius: 4px; }
main > .section-md .input-group {
  position: relative;
  padding: 6px;
  border: 1px solid var(--tt-line);
  background: #10231b;
  border-radius: 16px;
  flex-wrap: nowrap;
}
main > .section-md .input-group::before { content: 'Поиск по товарам'; position: absolute; top: -25px; left: 0; font-size: 13px; font-weight: 600; color: #b7cebf; }
main > .section-md .input-group .form-control { border: 0 !important; background: transparent !important; box-shadow: none !important; }
main > .section-md .input-group-append { order: -1; }
main > .section-md .input-group-text { border-radius: 11px !important; background: #20a867 !important; width: 42px; justify-content: center; }
.filter-button-group { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 38px !important; }
.filter-button-group .filter-button {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 14px 22px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  background: #173c2b !important;
  color: #a4e6c0 !important;
  border: 1px solid rgba(70,221,135,.12);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none !important;
  transition: background .18s, border-color .18s;
}
.filter-button-group .filter-button.active, .filter-button-group .filter-button:hover { background: #20a867 !important; color: #fff !important; border-color: #20a867; }
.filter-button-group .filter-button i { font-size: 20px; margin-right: 12px !important; }
#shop .filter-items { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; height: auto !important; margin: 0 !important; }
#shop .filter-item { position: relative !important; left: auto !important; top: auto !important; width: 100% !important; max-width: none !important; padding: 0 !important; transform: none !important; }
#shop .profile-card, #shop .profile-card > .card { height: 100%; }
#shop .profile-card > .card { margin-top: 0 !important; border-radius: 22px !important; }
#shop .profile-card > .card > .d-flex { display: none !important; }
#shop .profile-card > .card > a { display: block; height: 100%; cursor: pointer; color: #edf7f0; }
#shop .profile-card > .card > a > .row { display: flex; flex-direction: column; margin: 0; padding: 24px; gap: 0; height: 100%; }
#shop .profile-card .col-sm-7, #shop .profile-card .col-sm-7 > .card { display: contents !important; }
#shop .profile-card .col-sm-5 { order: 2; width: 100%; max-width: none; padding: 0; margin: 12px 0 20px; }
#shop .profile-card .card-header { display: none; }
#shop .profile-card .card-body { order: 1; flex: none; padding: 0 !important; text-align: center; }
#shop .profile-card .card-title { margin-bottom: 0; font-size: 21px; }
#shop .profile-card .card-image { min-height: 205px !important; height: 205px !important; background-size: contain !important; background-color: transparent !important; border-radius: 14px; }
#shop .profile-card .card-footer { order: 3; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 !important; margin-top: auto; }
#shop .profile-card .card-footer h6 { font-size: 15px; white-space: nowrap; }
#shop .profile-card .card-footer::after { content: 'Подробнее'; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 18px; border-radius: 12px; background: #20a867; color: #fff; font-size: 14px; font-weight: 800; }

/* Spirit-inspired descriptions and social links. */
.modal:has(.product-modal) .modal-dialog {
  transform: none !important;
  transition: none !important;
}
.modal:has(.product-modal) .modal-dialog-centered {
  align-items: flex-start !important;
}
.product-modal .collapsing {
  transition: height .18s ease-out !important;
}
@media (prefers-reduced-motion: reduce) {
  .modal:has(.product-modal), .product-modal .collapsing { transition: none !important; }
}
.modal-dialog:has(.product-modal) { max-width: 1040px; }
.product-modal.bg-elegant { background: #10231b !important; border: 1px solid var(--tt-line); border-radius: 28px; }
.product-modal .modal-header, .product-modal .modal-footer { background: #0e1d17 !important; padding: 22px 28px; }
.product-modal .modal-title { font-size: 27px; font-weight: 800; letter-spacing: -.03em; }
.product-modal .modal-body { padding: 28px; }
.product-modal .groupped-product { border: 1px solid var(--tt-line); border-radius: 20px; padding: 18px; background: #142b20; margin-bottom: 16px; }
.product-modal .groupped-product.selected { border-color: #46dd87; box-shadow: 0 0 0 2px rgba(70,221,135,.16); }
.product-modal .groupped-product h4 { font-size: 17px; font-weight: 700; line-height: 1.4; }
.product-modal .groupped-product .card-image { padding: 12px !important; }
.product-modal .groupped-product img { max-height: 100px; width: auto; border-radius: 12px; }
.product-modal :is(.collapse, .collapsing) .card-body { background: #0b1912; border: 1px solid var(--tt-line); border-radius: 20px; padding: 28px; font-size: 15px; line-height: 1.9; color: #d8e9df; }
.product-modal :is(.collapse, .collapsing) .card-body::before { content: 'Описание товара'; display: block; font-size: 25px; font-weight: 800; color: #f0fff5; margin-bottom: 16px; letter-spacing: -.025em; }
.product-modal .modal-footer { justify-content: flex-end !important; }
.product-modal .onAdd { min-width: 220px; border-radius: 15px; padding: 15px 24px; }
.modal-backdrop.show { opacity: .75; }
#footer-social-links { display: flex !important; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-bottom: 0; }
#footer-social-links .list-inline-item { margin: 0; }
#footer-social-links a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; min-height: 44px; border-radius: 13px; background: #152c20; border: 1px solid var(--tt-line); text-decoration: none; font-size: 14px; color: #dceee3 !important; }
#footer-social-links a:hover { background: #205437; border-color: #46dd87; }
#footer-social-links a::after { font-weight: 600; }
#footer-social-links a:has(.fa-vk)::after { content: 'ВКонтакте'; }
#footer-social-links a:has(.fa-telegram)::after { content: 'Telegram'; }
#footer-social-links a:has(.fa-discord)::after { content: 'Discord'; }
#footer-social-links a:has(.fa-youtube)::after { content: 'YouTube'; }
#footer-social-links a:has(.fa-tiktok)::after { content: 'TikTok'; }
#footer-social-links a i { font-size: 19px; }
@media (max-width: 991px) {
  #shop .filter-items { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .navbar-main { padding-right: 120px !important; }
  .navbar-main .navbar-toggler { margin-right: 0; }
  #widgets { top: 35px !important; right: 75px !important; }
  #widgets .basket-button { min-width: 0; padding: 0 12px !important; height: 44px !important; }
  #widgets .basket-button::after { display: none; }
}
@media (max-width: 767px) {
  .navbar-main { padding-right: 14px !important; }
  .navbar-main .navbar-brand::after { font-size: 15px; }
  .navbar-main .navbar-brand img { max-height: 40px; }
  .navbar-main .navbar-brand { gap: 8px; }
  .navbar-main .navbar-toggler { margin-left: auto !important; }
  #widgets { top: 24px !important; right: 66px !important; }
  #widgets .basket-button { height: 38px !important; gap: 5px; font-size: 16px; }
  .navbar-main .navbar-brand { margin-right: 70px; }
  #shop .filter-items { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  #shop .profile-card > .card > a > .row { padding: 14px; }
  #shop .profile-card .card-image { height: 145px !important; min-height: 145px !important; }
  #shop .profile-card .card-title { font-size: 17px; }
  #shop .profile-card .card-footer { flex-direction: column; gap: 10px; }
  #shop .profile-card .card-footer::after { width: 100%; padding: 10px; }
  .filter-button-group { gap: 8px; margin: 28px 0 !important; }
  .filter-button-group .filter-button { padding: 12px 14px !important; min-height: 44px; font-size: 13px; }
  .filter-button-group .filter-button i { font-size: 16px; margin-right: 7px !important; }
  main > .section-md .form-group { margin-top: 32px !important; width: 100%; }
  #footer-social-links { justify-content: flex-start; margin-top: 20px; }
  .product-modal .modal-header, .product-modal .modal-footer, .product-modal .modal-body { padding: 18px; }
  .product-modal .groupped-product { display: flex; padding: 12px; }
  .product-modal .groupped-product > div { display: flex; align-items: center; gap: 12px; width: 100%; }
  .product-modal .groupped-product h4 { font-size: 14px; flex: 1; margin: 0; }
  .product-modal .groupped-product .card-image { order: -1; padding: 0 !important; }
  .product-modal .groupped-product img { width: 48px; height: 48px; object-fit: contain; }
  .product-modal .groupped-product h5 { font-size: 15px; }
  .product-modal :is(.collapse, .collapsing) .card-body { padding: 18px; font-size: 14px; }
  .product-modal .onAdd { width: 100%; }
}

/* Compact mobile navigation in the TradeTime palette. */
@media (max-width: 991px) {
  .navbar-main #navbar-soft {
    position: absolute !important;
    top: -1px !important;
    left: -1px !important;
    right: -1px !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    padding: 18px !important;
    background: #10231b !important;
    color: #edf7f0 !important;
    border: 1px solid rgba(70, 221, 135, .3);
    border-radius: 18px !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .55) !important;
    z-index: 30 !important;
  }
  #navbar-soft .navbar-collapse-header {
    padding-bottom: 14px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid var(--tt-line);
  }
  #navbar-soft .collapse-brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #edf7f0 !important;
  }
  #navbar-soft .collapse-brand a::after {
    content: 'TradeTime';
    font-size: 15px;
    font-weight: 800;
  }
  #navbar-soft .collapse-brand img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
    border-radius: 10px;
  }
  #navbar-soft .collapse-close [role='button'] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #1b3c2b;
    color: #edf7f0 !important;
    border-radius: 12px;
    cursor: pointer;
    opacity: 1 !important;
  }
  #navbar-soft .navbar-nav { gap: 8px; }
  .navbar-main #navbar-soft .nav-link {
    padding: 14px 16px !important;
    min-height: 48px;
    background: #173c2b;
    color: #edf7f0 !important;
    font-size: 16px;
    opacity: 1 !important;
  }
  #navbar-soft .nav-link i { color: #46dd87 !important; }
  .navbar-main:has(#navbar-soft.show),
  .navbar-main:has(#navbar-soft.collapsing) { z-index: 40 !important; }
  body:has(#navbar-soft.show) #widgets,
  body:has(#navbar-soft.collapsing) #widgets {
    visibility: hidden;
    pointer-events: none;
  }
}

/* Typography aligned with Limbo. */
#shop .profile-card .card-title, main > .section-md h2 { font-weight: 600 !important; letter-spacing: normal; }
#welcome-section .shop-name { font-weight: 700 !important; }
.filter-button-group .filter-button, #shop .profile-card .card-footer::after { font-weight: 600; }

/* Override typography that Lullaby sets on individual text elements. */
body, body h1, body h2, body h3, body h4, body h5, body h6,
body p, body a, body label, body input, body select, body textarea,
body button, body .btn, body .tooltip, body .popover {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}
#help, #help p, #help h2, #help strong,
.product-modal .card-body, .product-modal .card-body p,
.product-modal .groupped-product h4, .product-modal .groupped-product h5 {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}
#help p { font-size: 16px; line-height: 1.75; font-weight: 400; }
#help .font-weight-bolder { font-weight: 700 !important; }
#shop .profile-card .card-footer h6 {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.4;
}
.product-modal .groupped-product h5 { font-size: 20px !important; font-weight: 800 !important; }
@media (max-width: 767px) {
  #shop .profile-card .card-footer h6 { font-size: 16px !important; }
}
