/**
 * TANKOMOBILe 2.0 — свежий слой поверх rwd/tankomobile (additive, reversible)
 * Подключён отдельным <link> в head.phtml обёртке, кэш Magento не трогаем.
 */
:root {
  --tm-brand: #fe7201;
  --tm-brand-dark: #e8671a;
  --tm-brand-soft: #fff3e8;
  --tm-ink: #262a32;
  --tm-muted: #5c6470;
  --tm-line: #eceef1;
  --tm-card: #ffffff;
  --tm-shadow: 0 1px 3px rgba(38, 42, 50, .07);
  --tm-shadow-lg: 0 14px 28px rgba(38, 42, 50, .14);
  --tm-radius: 12px;
}

body {
  font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, "PT Sans", sans-serif;
  color: var(--tm-ink);
  /* фирменный фон темы (fon.jpg, fixed) НЕ трогаем */
  line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.01em;
}

/* ---------- Шапка: липкая, тень (фон — фирменный, не трогаем) ---------- */

@media (min-width: 771px) {
  .page-header {
    position: sticky;
    top: 0;
    z-index: 950;
    box-shadow: 0 2px 12px rgba(38, 42, 50, .08);
  }
  .main-container {
    padding-top: 18px;
  }
}

.logo {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* ---------- Меню: компактные пункты, оранжевый ховер ---------- */
#custommenu {
  border-top: 1px solid var(--tm-line);
  border-bottom: 1px solid var(--tm-line);
  background: #ffffff;
}

#custommenu .menu {
  margin: 0 4px;
}

#custommenu .menu .parentMenu > a.level0 {
  padding: 13px 12px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .35px;
  color: var(--tm-ink);
  border: 0;
}

#custommenu .menu .parentMenu > a.level0:hover,
#custommenu .menu .parentMenu > a.level0.over {
  color: var(--tm-brand-dark);
  background: var(--tm-brand-soft);
}

/* ---------- Кнопки ---------- */
button.button,
a.button,
.button {
  background: linear-gradient(180deg, #ff8a2a, #f2740e);
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .12);
  box-shadow: 0 3px 10px rgba(242, 116, 14, .32);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

button.button:hover,
a.button:hover,
.button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(242, 116, 14, .4);
  color: #ffffff;
}

button.button:active,
a.button:active {
  transform: translateY(0);
}

/* ---------- Карточки товаров ---------- */
@media (min-width: 771px) {
  .products-grid .item {
    background: var(--tm-card);
    border-radius: var(--tm-radius);
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: var(--tm-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
  }

  .products-grid .item:hover {
    transform: translateY(-4px);
    box-shadow: var(--tm-shadow-lg);
  }

  .products-grid .product-image img {
    border-radius: 8px;
  }

  .products-grid .product-name {
    font-size: 14px;
    line-height: 1.35;
    color: var(--tm-ink);
  }

  .products-grid .product-name a:hover {
    color: var(--tm-brand-dark);
  }

  .price-box .price {
    font-weight: 700;
    font-size: 1.06em;
    color: var(--tm-brand-dark);
  }

  .products-grid .actions {
    margin-top: 8px;
  }

  .products-grid .btn-cart {
    width: 100%;
    border-radius: 8px;
    font-size: 13px;
  }
}

/* Категории: белые плашки */
@media (min-width: 771px) {
  .widget-title {
    margin-top: 22px;
  }
}

/* ---------- Слайдер ---------- */
.slideshow-container {
  border-radius: var(--tm-radius);
  overflow: hidden;
  box-shadow: var(--tm-shadow);
  background: #ffffff;
}

.slideshow .cycle-slide img {
  width: 100%;
  border-radius: var(--tm-radius);
}

.slideshow-prev,
.slideshow-next {
  background: rgba(38, 42, 50, .45);
  border-radius: 50%;
  color: #fff;
  transition: background .15s;
}

.slideshow-prev:hover,
.slideshow-next:hover {
  background: var(--tm-brand-dark);
}

/* ---------- Контекстные блоки ---------- */
.main p, .std p {
  color: #3d434d;
}

a:not(.button):not(.btn-cart) {
  color: var(--tm-brand-dark);
}

a:not(.button):not(.btn-cart):hover {
  color: var(--tm-brand);
}

/* ---------- Футер: светлый, аккуратный ---------- */
.footer {
  border-top: 1px solid var(--tm-line);
  background: #ffffff;
  margin-top: 34px;
  padding-top: 26px;
  padding-bottom: 22px;
}

.footer address {
  color: var(--tm-brand-dark) !important;
}

.footer .links a {
  color: var(--tm-muted);
}

.footer .links a:hover {
  color: var(--tm-brand-dark);
}

/* ---------- Мобильные штрихи ---------- */
@media (max-width: 770px) {
  .page-header-container {
    padding: 0 10px;
  }

  .skip-link .label {
    font-size: 12px;
  }

  .products-grid .item {
    padding: 8px;
  }

  .products-grid .product-name {
    font-size: 12.5px;
  }

  .slideshow-prev, .slideshow-next {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 16px;
  }
}