/* DeadTime — EasyDonate / Lullaby Dark, v1.1
   Replace the existing custom CSS with this file.
   Upload hero-deadtime.webp in the shop's background settings.
   Layout selectors were checked against deadtimes.easydonate.ru on 2026-10-13.
   Native AJAX cart and payment handlers are preserved. */

:root {
  --accent-color: #bccd91 !important;
  --accent-muted: #bccd9175 !important;
  --accent-neutral: #bccd9130 !important;
  --dt-bg: #10130f;
  --dt-panel: #191f15;
  --dt-line: #39442f;
  --dt-text: #e6e8d9;
  --dt-muted: #a4ac99;
  --dt-accent: #bccd91;
}
html { background: var(--dt-bg); scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--dt-bg) !important;
  color: var(--dt-text) !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  line-height: 1.65;
}
body::before, body::after { content: none !important; }
main.bg-elegant-dark, .bg-elegant-dark { background-color: var(--dt-bg) !important; }
.bg-elegant { background-color: var(--dt-panel) !important; }
.bg-elegant-night { background-color: #13190f !important; }
.fill-elegant-dark { fill: var(--dt-bg) !important; }
::selection { background: #bccd9155; color: #f7f8ed; }
a { color: var(--dt-accent); }
a:hover { color: #e0edc6; }
p { color: var(--dt-muted); }
.text-danger, .text-primary { color: var(--dt-accent) !important; }
.container { max-width: 1240px; }

/* Header */
.navbar-main {
  background: #10130ff2 !important;
  border-bottom: 1px solid #54614466;
  padding-top: 18px;
  padding-bottom: 18px;
  box-shadow: none !important;
}
.navbar-main .navbar-brand img { max-height: 54px; width: auto; object-fit: contain; }
.navbar-main .nav-link {
  color: #cdd4bf !important;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 18px !important;
  border-radius: 4px;
}
.navbar-main .nav-link:hover { background: #bccd9110; color: var(--dt-accent) !important; }
.navbar-main .nav-link i { color: var(--dt-accent); }
.navbar-main .navbar-collapse-header { background: #171e12; }

/* Hero: keep the real background image configured in EasyDonate. */
#welcome-section {
  position: relative;
  isolation: isolate;
  min-height: 570px;
  padding: 110px 0 95px !important;
  background-position: center !important;
  background-size: cover !important;
  border-bottom: 1px solid #52623b44;
}
#welcome-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg,#10130ff0 0%,#10130fc9 42%,#10130f38 100%),
              linear-gradient(0deg,#10130f 0%,transparent 75%) !important;
  opacity: 1 !important;
}
#welcome-section .container { position: relative; z-index: 2; }
#welcome-section .shop-title {
  text-align: left !important;
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}
#welcome-section .shop-name {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(48px, 7.2vw, 94px) !important;
  line-height: 1.08 !important;
  font-weight: 400 !important;
  letter-spacing: -.045em;
  color: #eef0e3 !important;
  margin-top: 22px;
  text-shadow: 0 4px 32px #0008;
}
#welcome-section p { max-width: 590px; color: #c3cbb7 !important; font-size: 17px; }
#welcome-section .general-online { color: var(--dt-accent); font-size: 12px; letter-spacing: .06em; }
#welcome-section .pattern.bottom { display: none; }

/* Section headings and search */
main > .section:not(#welcome-section) { padding-top: 64px !important; padding-bottom: 56px !important; }
main h2.h1, #help h2 {
  color: #e6e8d9;
  font: 400 clamp(28px,3vw,42px)/1.2 Georgia,"Times New Roman",serif !important;
  letter-spacing: -.025em;
}
.form-control {
  color: var(--dt-text) !important;
  background: #141b10 !important;
  border: 1px solid #49573a !important;
  border-radius: 5px;
  min-height: 46px;
  box-shadow: none !important;
}
.form-control::placeholder { color: #97a286; opacity: 1; }
.form-control:focus { border-color: var(--dt-accent) !important; box-shadow: 0 0 0 3px #bccd9120 !important; }
.input-group-text { background: #1b2414 !important; color: var(--dt-accent) !important; border-color: #49573a !important; }

/* Product cards: only target the shop; don't alter server or checkout grids. */
#shop { margin-top: 30px; }
#shop > .row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin: 0; }
#shop > .row > [class*="col-"] { width: 100%; max-width: 100%; padding: 0; }
#shop .profile-card { height: 100%; }
#shop .profile-card > .card {
  height: 100%;
  margin-top: 0 !important;
  border: 1px solid var(--dt-line) !important;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(145deg,#222a1b,#171d13 75%) !important;
  box-shadow: 0 8px 28px #00000026 !important;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
#shop .profile-card > .card:hover {
  border-color: #839662 !important;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px #00000045 !important;
}
#shop .profile-card > .card > .row { display: flex; flex-direction: column; height: 100%; margin: 0; }
#shop .profile-card > .card > .row > [class*="col-"] { width: 100%; max-width: 100%; flex: none; padding: 0; }
#shop .profile-card > .card > .row > .col-sm-7 { flex: 1; }
#shop .profile-card .col-sm-7 > .card { border-radius: 0; box-shadow: none !important; background: transparent !important; }
#shop .card-image {
  height: 164px !important;
  min-height: 164px !important;
  border-bottom: 1px solid #4a5b3655;
  /* EasyDonate stores each product picture in its inline background.
     Do not set background or background-image here: that would erase it. */
  background-color: #151c11 !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
#shop .product-image { width: 125px; max-width: 80%; max-height: 140px; object-fit: contain; }
#shop .card-header { padding: 20px 20px 4px !important; background: transparent !important; }
#shop .card-body { padding: 10px 20px 17px !important; }
#shop .card-title {
  color: #eef0e3 !important;
  font: 400 27px/1.2 Georgia,"Times New Roman",serif !important;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
#shop .card-body p { font-size: 13px; line-height: 1.7; }
#shop .card-footer {
  margin-top: auto;
  padding: 17px 20px 20px !important;
  border-top: 1px solid #52643b55 !important;
  background: #17201055 !important;
}
#shop .card-footer h6 { color: #e4edce; font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
#shop .card-footer .btn { width: 100%; margin-top: 12px; min-height: 44px; }
#shop .badge:not(.cart-counter) { background: #2b3721 !important; color: #c8d8aa !important; border: 1px solid #52663a; box-shadow: none; }
#shop .sale { box-shadow: none; }
#shop .sale__size { background: #374727; color: #e0eccb; }
#shop .sale__timer { background: #26331d; color: #c9d7b2; }
.filter, .badge-active { background: #25321c !important; color: #d2e2b7 !important; }

/* Native buttons, basket and modals */
.btn-primary, .btn-danger, .bg-danger, .bg-primary, .progress-bar:not(.skeleton-box) {
  background-color: var(--dt-accent) !important;
  border-color: var(--dt-accent) !important;
  color: #1b2414 !important;
}
.btn-primary, .btn-danger { font-weight: 600; border-radius: 4px; }
.btn-primary:hover, .btn-danger:hover { background-color: #d1dfad !important; border-color: #d1dfad !important; }
.btn-outline-primary, .btn-outline-danger { color: var(--dt-accent) !important; border-color: #697e4c !important; background: transparent !important; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--dt-accent); outline-offset: 3px; }
.basket-button { background: var(--dt-accent) !important; color: #1a2512 !important; border-radius: 8px; box-shadow: 0 10px 30px #0008; }
.cart-counter { background: #314125 !important; color: #e0edc7 !important; border: 1px solid #8ea969; }
.modal-content { background: #181f13 !important; border: 1px solid #65794a; border-radius: 9px; color: var(--dt-text); }
.modal-header, .modal-footer { border-color: #465837; }
.modal-body { color: var(--dt-text); }
.modal-content .card { background: #20291a !important; border-color: var(--dt-line); }
.modal-content .close { color: #dbe6c7; opacity: .85; text-shadow: none; }
.modal-content label { color: #d5dfc4; }
.modal-content .table { color: #d5dfc4; }
.modal-content .table td, .modal-content .table th { border-color: #455335; }
.modal-backdrop { background-color: #050803; }
.progress { background: #283221 !important; border-radius: 3px; }
.skeleton-box { background-color: #33402a !important; }

/* Purchase instructions and footer remain available. */
#help { background: #171e12; border-top: 1px solid var(--dt-line); }
#help .font-weight-bolder { color: #dbe5c6; margin-top: 22px; }
footer.footer { background: #10150d !important; border-top: 1px solid var(--dt-line); padding-top: 32px !important; padding-bottom: 35px !important; }
footer.footer p { color: #a2ad93 !important; font-size: 12px; }
footer.footer a { color: var(--dt-accent) !important; }
.footer-brand img { max-height: 50px; max-width: 90px; object-fit: contain; }

@media(max-width:1199px) { #shop > .row { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:991px) {
  #shop > .row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .navbar-collapse { background: #171e12 !important; border: 1px solid #485b34; }
  #welcome-section { min-height: 460px; padding: 80px 0 !important; }
}
@media(max-width:575px) {
  .container { padding-left: 20px; padding-right: 20px; }
  #welcome-section { min-height: 390px; padding: 55px 0 !important; }
  #welcome-section .shop-name { font-size: 52px !important; }
  #welcome-section p { font-size: 15px; }
  main > .section:not(#welcome-section) { padding-top: 40px !important; padding-bottom: 40px !important; }
  main > .section > .container > .d-flex.justify-content-between { flex-direction: column; gap: 20px; }
  main > .section > .container > .d-flex.justify-content-between .form-group { width: 100%; }
  #shop > .row { grid-template-columns: 1fr; gap: 18px; }
  #shop .card-image { height: 160px !important; }
  #shop .card-title { font-size: 30px !important; }
  .modal-dialog { margin: 10px; }
  .fixed-bottom-right { right: 16px; bottom: 18px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  #shop .profile-card > .card { transition: none; }
  #shop .profile-card > .card:hover { transform: none; }
}
