/* Шрифты: без запроса к Google Fonts (PageSpeed: сторонний код + блокировка рендера через @import) */
:root {
  --brand-blue: #2563eb;
  --brand-blue-700: #1d4ed8;
  --brand-blue-50: #eff6ff;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-50: #f8fafc;
  --radius-lg: 14px;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 18px 36px rgba(15, 23, 42, 0.14);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--slate-50);
  color: #0f172a;
}

a {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

.breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
}

#content {
  min-height: 0;
}

#header-cart #cart > button {
  border: 0;
  background: transparent;
  color: #475569;
  border-radius: .5rem;
  padding: .5rem;
  line-height: 1;
}

#header-cart #cart > button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

#header-cart #cart .dropdown-menu,
#header-cart #cart > ul {
  min-width: 320px;
  border-radius: .75rem;
  border: 1px solid var(--slate-200);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .15);
  padding: .75rem;
}

.text-danger {
  color: #dc2626;
}

.has-error select,
.has-error input,
.has-error textarea {
  border-color: #ef4444 !important;
}

.tab-pane-custom.hidden {
  display: none;
}

.tab-pane-custom {
  display: block;
}

.fa-telegram:before {
  content: "\f2c6";
}

@media (max-width: 767px) {
  #header-cart #cart .dropdown-menu,
  #header-cart #cart > ul {
    right: 0;
    left: auto;
    min-width: 280px;
  }
}

.content-bg-white {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.content-title h1,
.content-title h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-weight: 700;
}

.padding15 {
  padding: 20px;
}

.padding-lg {
  padding: 28px;
}

.form-control {
  border-radius: 10px;
  border-color: #cbd5e1;
  box-shadow: none;
  min-height: 40px;
}

.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.btn-primary {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  border-radius: 10px;
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-blue-700);
  border-color: var(--brand-blue-700);
}

.btn-default,
.btn-outline {
  border-radius: 10px;
}

.rounded-xl {
  border-radius: var(--radius-lg);
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tab-btn {
  transition: all .2s ease;
}

.tab-btn:hover {
  transform: translateY(-1px);
}

.product-card-elevated {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.product-card-elevated:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.section-title {
  color: var(--slate-900);
  font-weight: 800;
  letter-spacing: -.02em;
}

.muted-text {
  color: var(--slate-500);
}

.hero-glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.site-hero-title {
  line-height: 1.15;
}

.site-hero-section {
  padding-top: 44px;
  padding-bottom: 44px;
}

@media (min-width: 768px) {
  .site-hero-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

.clean-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.compact-card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: #fff;
}

.checkout-product-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
}

.checkout-product-inner:last-child {
  border-bottom: 0;
}

.checkout-product {
  position: relative;
}

.checkout-product-name .product-name-info {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.checkout-total-box {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checkout-orders h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.table-total .text-total {
  font-weight: 700;
}

.legal-content h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 18px;
}

/* Secondary pages visual cleanup */
.container {
  padding-left: 16px;
  padding-right: 16px;
}

header .container {
  max-width: 1200px;
}

.container > .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 14px;
  color: var(--slate-500);
  font-size: 13px;
}

.container > .breadcrumb li {
  list-style: none;
}

.container > .breadcrumb a {
  color: var(--slate-500);
}

.container > .breadcrumb a:hover {
  color: var(--brand-blue);
}

.content-title {
  margin-bottom: 12px;
}

.content-title h1,
.content-title h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0;
}

.content-bg-white,
.card.sitemap,
.card.padding-lg {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.support-list,
.sitemap ul.list-unstyled,
#content .list-unstyled {
  margin: 0;
  padding: 0;
}

.support-list li,
#content .list-unstyled li {
  list-style: none;
}

#content .list-unstyled li a {
  display: inline-block;
  padding: 5px 0;
  color: var(--slate-700);
}

#content .list-unstyled li a:hover {
  color: var(--brand-blue);
}

.alert {
  border-radius: 12px;
}

#accordion .panel {
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
}

#accordion .panel + .panel {
  margin-top: 10px;
}

#accordion .panel-heading {
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
}

#accordion .panel-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-900);
}

#accordion .panel-body {
  background: #fff;
}

.checkout-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.checkout-heading h1 {
  margin: 0;
  font-size: 28px;
}

.checkout-heading a {
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--slate-700);
  background: #fff;
}

.checkout-heading a:hover {
  color: var(--brand-blue);
}

.catalog-sort {
  margin-bottom: 14px;
}

.catalog-sort-row {
  border: 1px solid var(--slate-200);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 8px 12px;
}

.grid-box .product-layout {
  margin-bottom: 18px;
}

.product-thumb {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-thumb:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-hover);
}

.product-thumb .name {
  padding: 0 14px;
  min-height: 46px;
}

.product-thumb .name-link {
  color: var(--slate-900);
}

.product-thumb .name-link:hover {
  color: var(--brand-blue);
}

.product-thumb .rating,
.product-thumb .product-bottom {
  padding-left: 14px;
  padding-right: 14px;
}

.product-thumb .stock {
  padding: 10px 14px 6px;
  font-size: 13px;
}

.product-thumb .price {
  font-weight: 700;
  color: var(--slate-900);
}

.grid-bottom {
  border: 1px solid var(--slate-200);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 10px 14px;
}

/* Bootstrap 3 .hidden { display:none !important } перебивает Tailwind sm:/md: без !important */
@media (min-width: 640px) {
  .it-h-sm-iflex {
    display: inline-flex !important;
  }
  .it-h-sm-inl {
    display: inline !important;
  }
}
@media (min-width: 768px) {
  .it-h-md-flex {
    display: flex !important;
  }
  .it-h-md-inl {
    display: inline !important;
  }
  .it-h-md-block {
    display: block !important;
  }
}
