/* =====================================================
   МАСТЕРСКАЯ 3Д — ШАПКА / МИНИМАЛИЗМ
   Этот файл подключается ПОСЛЕ stylesheet.css
   ===================================================== */

:root {
  --m3d-milk: #F9F1E8;
  --m3d-cream: #FEFAF6;
  --m3d-beige: #ECE1D3;
  --m3d-gold: #B69D7D;
  --m3d-gold-strong: #B8832F;
  --m3d-brown: #5D472D;
  --m3d-text: #2E2A26;
}

/* ---------- ВЕРХНЯЯ СТРОКА ---------- */
#top {
  min-height: 40px !important;
  padding: 0 !important;
  background: var(--m3d-milk) !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid #E6D8C6 !important;
  box-shadow: none !important;
}

#top .m3d-topbar {
  min-height: 40px !important;
  max-width: 1170px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.m3d-top-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

.m3d-top-phone {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin-right: 4px !important;
  color: var(--m3d-text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  text-shadow: none !important;
}

.m3d-top-phone i {
  font-size: 16px !important;
  color: var(--m3d-brown) !important;
}

.m3d-top-social {
  width: 28px !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

.m3d-top-social img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
  display: block !important;
}

.m3d-max {
  background: #1688F8 !important;
  color: #fff !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  letter-spacing: .1px !important;
}

.m3d-top-utils {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

#top #top-links.m3d-top-right {
  float: none !important;
  width: auto !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
}

#top #top-links.m3d-top-right > ul.list-inline {
  display: flex !important;
  align-items: center !important;
  min-height: 40px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

#top #top-links.m3d-top-right > ul.list-inline > li {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 0 0 18px !important;
  padding: 0 !important;
}

#top #top-links.m3d-top-right > ul.list-inline > li:first-child {
  margin-right: 0 !important;
}

#top #top-links a,
#top #top-links .btn-link,
#top #top-links span,
#top #top-links i {
  color: var(--m3d-text) !important;
  text-shadow: none !important;
}

#top #top-links a {
  font-size: 14px !important;
  font-weight: 600 !important;
}

#top #top-links span.hidden-xs.hidden-sm.hidden-md {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#top #top-links a:hover {
  color: #A8742A !important;
}

/* ---------- ОСНОВНАЯ ШАПКА ---------- */
header {
  background: #fff !important;
  background-image: none !important;
  padding: 12px 0 !important;
}

header .container {
  max-width: 1170px !important;
  margin: 0 auto !important;
}

header .row {
  display: flex !important;
  align-items: center !important;
}

#logo {
  margin: 0 !important;
}

#logo img {
  max-width: 230px !important;
  max-height: 72px !important;
  width: auto !important;
  height: auto !important;
}

/* ---------- ПОИСК ---------- */
#search {
  position: relative !important;
  max-width: 470px !important;
  margin: 0 auto !important;
}

#search .input-group {
  width: 100% !important;
  position: relative !important;
}

#search input {
  width: 100% !important;
  height: 44px !important;
  padding: 0 55px 0 18px !important;
  background: #fff !important;
  border: 1px solid #DED5CA !important;
  border-radius: 24px !important;
  box-shadow: none !important;
  color: var(--m3d-text) !important;
}

#search .input-group-btn {
  position: absolute !important;
  right: 3px !important;
  top: 3px !important;
  width: 38px !important;
  z-index: 20 !important;
}

#search .btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--m3d-gold-strong) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* ---------- МЕНЮ ---------- */
.mobile-menu,
.mobile-menu #menu,
.mobile-menu #menu .container,
.mobile-menu #menu .navbar-collapse {
  background: var(--m3d-milk) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.mobile-menu { overflow: visible !important; }

.mobile-menu #menu {
  min-height: 42px !important;
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid #E9DED0 !important;
  border-bottom: 1px solid #E2D3C1 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 1000 !important;
}

.mobile-menu #menu .nav {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}

.mobile-menu #menu .nav > li {
  float: none !important;
  display: inline-block !important;
}

.mobile-menu #menu .nav > li > a {
  padding: 11px 24px 9px !important;
  background: transparent !important;
  color: var(--m3d-text) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  border-bottom: 2px solid transparent !important;
}

.mobile-menu #menu .nav > li > a:hover,
.mobile-menu #menu .nav > li.open > a {
  background: transparent !important;
  color: #A8742A !important;
  border-bottom-color: var(--m3d-gold-strong) !important;
}

.mobile-menu #menu,
.mobile-menu #menu .navbar-collapse,
.mobile-menu #menu .navbar-nav,
.mobile-menu #menu li { overflow: visible !important; }

.mobile-menu #menu li.dropdown { position: relative !important; }

.mobile-menu #menu li.dropdown:hover > .dropdown-menu,
.mobile-menu #menu li.dropdown.open > .dropdown-menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 99999 !important;
}

.mobile-menu #menu .dropdown-menu {
  min-width: 235px !important;
  padding: 6px 0 !important;
  background: #FFFDF9 !important;
  border: 1px solid #E2D3C1 !important;
  border-radius: 4px !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.10) !important;
}

.mobile-menu #menu .dropdown-menu li a {
  padding: 9px 16px !important;
  background: transparent !important;
  color: #403A35 !important;
  text-shadow: none !important;
}

.mobile-menu #menu .dropdown-menu li a:hover {
  background: #F3E8D8 !important;
  color: #A8742A !important;
}

#top .dropdown-menu {
  background: #FFFDF9 !important;
  border: 1px solid #E2D3C1 !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.10) !important;
  z-index: 99999 !important;
}

#top .dropdown-menu > li > a {
  background: transparent !important;
  color: #403A35 !important;
}

#top .dropdown-menu > li > a:hover {
  background: #F3E8D8 !important;
  color: #A8742A !important;
}

/* ---------- МОБИЛЬНАЯ ВЕРСИЯ ---------- */
@media (max-width: 767px) {
  #top .m3d-topbar {
    min-height: 40px !important;
    padding: 4px 10px !important;
    display: flex !important;
    align-items: center !important;
  }

  .m3d-top-left {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
  }

  .m3d-top-phone span { display: none !important; }
  .m3d-top-phone { margin-right: 0 !important; }

  .m3d-top-social,
  .m3d-top-social img {
    width: 26px !important;
    height: 26px !important;
  }

  .m3d-max { font-size: 7px !important; }

  #top #top-links.m3d-top-right {
    float: none !important;
    width: auto !important;
    margin-left: auto !important;
  }

  header { padding-top: 8px !important; }
}
/* ===== БАННЕР НА ВСЮ ШИРИНУ ЭКРАНА ===== */
@media (min-width: 768px) {

    html,
    body {
        overflow-x: hidden !important;
    }

    .baner_pro {
        display: block !important;

        width: 100vw !important;
        max-width: none !important;
        height: auto !important;

        position: relative !important;
        left: 50% !important;
        margin-left: -50vw !important;

        transform: none !important;

        margin-top: 0 !important;
        margin-bottom: 20px !important;

        object-fit: contain !important;
    }

    .baner_pro img {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        object-fit: contain !important;
    }
}
/* На компьютере убираем отдельную чёрную корзину над меню */
@media (min-width: 768px) {
    .mobile-cart-menu .mobile-cart {
        display: none !important;
    }

    .mobile-cart-menu {
        display: block !important;
        background: #F7F1E8 !important;
    }

    .mobile-cart-menu .mobile-menu {
        width: 100% !important;
    }
}
/* ===== ФИНАЛЬНОЕ ВЫРАВНИВАНИЕ ШАПКИ ===== */
@media (min-width: 768px) {

    /* Верхняя строка */
    .m3d-top-phone,
    #top #top-links a {
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    .m3d-top-phone {
        letter-spacing: 0 !important;
    }

    /* Логотип слева, поиск по центру */
    header .row {
        display: grid !important;
        grid-template-columns: 270px minmax(420px, 620px) 270px !important;
        align-items: center !important;
        column-gap: 30px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    header .row > .col-sm-4 {
        grid-column: 1 !important;
        width: auto !important;
        float: none !important;
        padding: 0 !important;
    }

    header .row > .col-sm-5 {
        grid-column: 2 !important;
        width: auto !important;
        float: none !important;
        padding: 0 !important;
    }

    #logo {
        text-align: left !important;
    }

    #logo img {
        max-width: 220px !important;
        max-height: 64px !important;
    }

    #search {
        width: 100% !important;
        max-width: 620px !important;
        margin: 0 !important;
    }

    /* Меню */
    .mobile-menu #menu .nav > li > a {
        font-size: 15px !important;
        font-weight: 600 !important;
        letter-spacing: .1px !important;
    }
}
/* ===== ФИНАЛЬНАЯ КОСМЕТИКА ВЕРХА ===== */
@media (min-width: 768px) {

    /* Верхняя строка */
    #top .m3d-topbar {
        min-height: 46px !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .m3d-top-phone {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #5D472D !important;
    }

    .m3d-top-phone i {
        font-size: 16px !important;
        color: #9B6C2E !important;
    }

    /* VK / Telegram / MAX */
    .m3d-top-social,
    .m3d-top-social img {
        width: 30px !important;
        height: 30px !important;
    }

    /* Кабинет / Закладки / Корзина */
    #top #top-links a {
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #5D472D !important;
    }

    #top #top-links i {
        color: #9B6C2E !important;
    }

    /* Убираем "Оформление заказа" из верхушки */
    #top #top-links > ul > li:last-child {
        display: none !important;
    }

    /* Основная строка */
    header {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    #logo img {
        max-width: 250px !important;
    }

    #search input {
        font-size: 15px !important;
    }

    /* Товары / О нас / Контакты */
    .mobile-menu #menu .nav > li > a {
        font-size: 15px !important;
        font-weight: 600 !important;
        letter-spacing: .2px !important;
        padding-left: 28px !important;
        padding-right: 28px !important;
    }
}
/* ===== ФИНАЛЬНАЯ КОСМЕТИКА ШАПКИ ===== */
@media (min-width: 768px) {

    /* Общий молочный оттенок */
    #top,
    header,
    .mobile-menu,
    .mobile-menu #menu,
    .mobile-menu #menu .container {
        background: #FEFAF6 !important;
    }

    /* Верхняя строка */
    #top .m3d-topbar {
        min-height: 44px !important;
    }

    .m3d-top-phone,
    #top #top-links a {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #5D472D !important;
    }

    .m3d-top-phone i,
    #top #top-links i {
        color: #A8742A !important;
    }

    /* VK / Telegram / MAX одинаковые */
    .m3d-top-social,
    .m3d-top-social img {
        width: 29px !important;
        height: 29px !important;
    }

    /* Поиск */
    #search {
        max-width: 580px !important;
    }

    #search input {
        font-size: 14px !important;
        color: #5D472D !important;
    }

    /* Товары / О нас / Контакты */
    .mobile-menu #menu .nav > li > a {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #4A3928 !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    .mobile-menu #menu .nav > li > a:hover {
        color: #B8832F !important;
    }
}
/* ===== ВЕРХНЯЯ СТРОКА: ФИНАЛ ===== */
@media (min-width: 768px) {

    /* Убираем "Оформление заказа" */
    #top #top-links > ul > li:last-child {
        display: none !important;
    }

    /* Телефон + VK + Telegram + MAX */
    .m3d-top-left {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .m3d-top-phone {
        display: inline-flex !important;
        align-items: center !important;
        margin-right: 8px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 30px !important;
    }

    /* Все три соцзначка одного размера */
    .m3d-top-social {
        width: 29px !important;
        height: 29px !important;
        min-width: 29px !important;
        min-height: 29px !important;
        margin: 0 !important;
        padding: 0 !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        border-radius: 50% !important;
        line-height: 29px !important;
        text-decoration: none !important;
    }

    .m3d-top-social img {
        display: block !important;
        width: 29px !important;
        height: 29px !important;
        object-fit: contain !important;
        margin: 0 !important;
    }

    /* MAX */
    .m3d-max {
        font-size: 9px !important;
        font-weight: 700 !important;
        text-align: center !important;
    }

    /* Правые пункты */
    #top #top-links > ul {
        display: flex !important;
        align-items: center !important;
        gap: 20px !important;
    }

    #top #top-links > ul > li {
        margin: 0 !important;
        padding: 0 !important;
    }
}
/* Соцсети в едином стиле */
@media (min-width: 768px) {

    .m3d-top-social {
        width: 29px !important;
        height: 29px !important;
        min-width: 29px !important;
        border-radius: 50% !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: #5D472D !important;
        color: #FFF8EE !important;

        border: 0 !important;
        text-decoration: none !important;
        box-shadow: none !important;
    }

    .m3d-top-social i {
        color: #FFF8EE !important;
        font-size: 14px !important;
    }

    .m3d-max {
        font-size: 8px !important;
        font-weight: 700 !important;
        color: #FFF8EE !important;
    }

    .m3d-top-social:hover {
        background: #B8832F !important;
        color: #FFFFFF !important;
    }
}
/* ===== СОЦСЕТИ: ФИНАЛ ===== */
@media (min-width: 768px) {

    /* телефон отдельно, соцсети плотнее друг к другу */
    .m3d-top-left {
        gap: 4px !important;
    }

    .m3d-top-phone {
        margin-right: 10px !important;
    }

    /* MAX — такой же бронзовый круг */
    .m3d-max {
        width: 29px !important;
        height: 29px !important;
        min-width: 29px !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        border-radius: 50% !important;
        background: #5D472D !important;
        color: #FFF8EE !important;
        border: none !important;
    }

    /* если внутри MAX стоит картинка-эмблема */
    .m3d-max img {
        width: 17px !important;
        height: 17px !important;
        object-fit: contain !important;
    }

    .m3d-max:hover {
        background: #B8832F !important;
    }
}
/* ===== ПОДВАЛ В СТИЛЕ НОВОЙ ШАПКИ ===== */

footer {
    background: #4B3A2D !important;
    border-top: none !important;
    color: #F7F1E8 !important;
}

footer h5 {
    color: #FFF8EE !important;
    font-weight: 600 !important;
}

footer a,
footer p,
footer li {
    color: #E8DDD0 !important;
}

footer a:hover {
    color: #D3A45F !important;
}

footer hr {
    border-color: rgba(255,255,255,.14) !important;
}

footer .container {
    max-width: 1100px !important;
}

footer .m3d-footer-copy {
    color: #CDBEAE !important;
}
/* ===== ПОДВАЛ: ФИНАЛЬНАЯ ПОДГОНКА ===== */

footer {
    background: #5A4637 !important;
    padding-top: 24px !important;
    padding-bottom: 14px !important;
}

footer h5 {
    color: #FFF7ED !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

footer a,
footer p,
footer li {
    color: #EFE3D5 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

footer a:hover {
    color: #D7AA66 !important;
}

footer hr {
    margin-top: 14px !important;
    margin-bottom: 8px !important;
    border-color: rgba(255,255,255,.14) !important;
}
/* ===== МОБИЛЬНАЯ ШАПКА ===== */
@media (max-width: 767px) {

    #top {
        min-height: 58px !important;
        padding: 0 !important;
        background: #5A4637 !important;
    }

    #top .m3d-topbar {
        min-height: 58px !important;
        height: 58px !important;
        padding: 0 14px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Левая группа */
    .m3d-top-left {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    /* На телефоне номер текстом не показываем */
    .m3d-top-phone span {
        display: none !important;
    }

    .m3d-top-phone {
        margin: 0 !important;
        width: 28px !important;
        height: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .m3d-top-phone i {
        color: #FFF8EE !important;
        font-size: 21px !important;
    }

    .m3d-top-social {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }

    /* Правая группа */
    #top #top-links {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #top #top-links > ul {
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #top #top-links > ul > li {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Прячем длинные названия */
    #top #top-links span,
    #top #top-links .caret {
        display: none !important;
    }

    #top #top-links i {
        color: #FFF8EE !important;
        font-size: 20px !important;
        margin: 0 !important;
    }

    /* Верхнюю корзину скрываем — она уже есть ниже */
    #top #top-links > ul > li:nth-last-child(1) {
        display: none !important;
    }

    /* Логотип + поиск */
    header {
        padding: 14px 12px !important;
    }

    header .row {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    #logo {
        margin: 0 !important;
    }

    #logo img {
        max-width: 220px !important;
        height: auto !important;
    }

    #search {
        margin: 0 !important;
    }

    /* Категории + корзина */
    .mobile-cart-menu {
        margin-top: 0 !important;
        padding: 10px 0 !important;
    }
}
/* ===== МОБИЛЬНЫЙ ВЕРХ — ТОЛЬКО ИКОНКИ ===== */
@media (max-width: 767px) {

    #top {
        height: 58px !important;
        min-height: 58px !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    #top .m3d-topbar {
        height: 58px !important;
        min-height: 58px !important;
        padding: 0 16px !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Телефон + VK + Telegram + MAX */
    #top .m3d-top-left {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        height: 58px !important;
    }

    #top .m3d-top-phone span {
        display: none !important;
    }

    /* Правая часть */
    #top .m3d-top-right,
    #top #top-links {
        width: auto !important;
        height: 58px !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
    }

    #top #top-links > ul {
        height: 58px !important;
        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        gap: 18px !important;
    }

    #top #top-links > ul > li {
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
    }

    /* Гарантированно убираем весь текст */
    #top #top-links > ul > li > a {
        font-size: 0 !important;
        line-height: 1 !important;
        padding: 0 !important;
    }

    #top #top-links span,
    #top #top-links .caret {
        display: none !important;
    }

    /* Оставляем только значки */
    #top #top-links i {
        display: inline-block !important;
        font-size: 22px !important;
        line-height: 1 !important;
        color: #FFF8EE !important;
        margin: 0 !important;
    }

    /* Корзину сверху скрываем — она есть отдельной кнопкой ниже */
    #top #top-links > ul > li:nth-child(3) {
        display: none !important;
    }
}
/* ===== МОБИЛЬНЫЙ ВЕРХ: УБИРАЕМ ДУБЛЬ КОРЗИНЫ ===== */
@media (max-width: 767px) {

    .mobile-cart-menu .mobile-cart {
        display: none !important;
    }

    .mobile-cart-menu {
        display: block !important;
        padding: 10px 14px !important;
    }

    .mobile-cart-menu .mobile-menu {
        width: 100% !important;
        float: none !important;
    }

    .mobile-cart-menu #menu {
        width: 100% !important;
        margin: 0 !important;
    }
}
/* ===== КАТЕГОРИИ НА ГЛАВНОЙ ===== */

.m3d-home-categories {
    background: #FEFAF6 !important;
    padding: 22px 24px 26px !important;
}

.m3d-cat-row {
    max-width: 1450px !important;
    margin: 0 auto !important;

    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.m3d-cat-card {
    min-height: 125px !important;
    padding: 14px 8px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;

    background: #FFFDF9 !important;
    border: 1px solid #E8DCCB !important;
    border-radius: 14px !important;

    color: #4A3928 !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;

    box-shadow: 0 4px 14px rgba(80, 57, 38, 0.06) !important;
    text-decoration: none !important;

    transition: transform .2s ease, box-shadow .2s ease !important;
}

.m3d-cat-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(80, 57, 38, 0.12) !important;
    color: #A8742A !important;
}

.m3d-cat-icon {
    width: 54px !important;
    height: 54px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;
    background: #F3E8D8 !important;
    color: #A8742A !important;

    font-size: 23px !important;
}

.m3d-cat-icon i {
    color: #A8742A !important;
    font-size: 23px !important;
}


/* ===== КАТЕГОРИИ НА ТЕЛЕФОНЕ ===== */

@media (max-width: 767px) {

    .m3d-home-categories {
        padding: 15px 12px 18px !important;
    }

    .m3d-cat-row {
        display: flex !important;
        gap: 10px !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        padding: 2px 2px 10px !important;

        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .m3d-cat-row::-webkit-scrollbar {
        display: none !important;
    }

    .m3d-cat-card {
        flex: 0 0 145px !important;
        min-height: 110px !important;
        padding: 12px 8px !important;

        font-size: 13px !important;

        scroll-snap-align: start !important;
    }

    .m3d-cat-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
    }

    .m3d-cat-icon i {
        font-size: 20px !important;
    }
}
/* ===== ЗАГОЛОВОК КАТЕГОРИЙ ===== */

.m3d-cat-title {
    margin: 0 auto 18px !important;
    color: #4A3928 !important;
    font-size: 25px !important;
    font-weight: 600 !important;
    text-align: center !important;
    line-height: 1.25 !important;
}

.m3d-home-categories {
    padding-top: 26px !important;
    padding-bottom: 30px !important;
}


/* Телефон */
@media (max-width: 767px) {

    .m3d-cat-title {
        margin-bottom: 14px !important;
        font-size: 21px !important;
        text-align: left !important;
        padding-left: 4px !important;
    }

    .m3d-home-categories {
        padding-top: 20px !important;
        padding-bottom: 26px !important;
    }
}
/* Заголовок блока категорий */
.m3d-home-categories .m3d-cat-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    margin: 0 0 20px !important;
    padding: 0 !important;

    color: #4A3928 !important;
    font-size: 26px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    text-align: center !important;
}

@media (max-width: 767px) {
    .m3d-home-categories .m3d-cat-title {
        font-size: 21px !important;
        margin-bottom: 14px !important;
        text-align: left !important;
    }
}
/* ===== ЗАГОЛОВОК КАТЕГОРИЙ — НАДЁЖНЫЙ ВАРИАНТ ===== */

.m3d-home-categories .m3d-cat-title {
    display: none !important;
}

.m3d-home-categories::before {
    content: "Категории товаров";
    display: block !important;
    width: 100% !important;
    margin: 0 auto 20px !important;

    color: #4A3928 !important;
    font-size: 26px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-align: center !important;
}

@media (max-width: 767px) {
    .m3d-home-categories::before {
        font-size: 21px !important;
        margin-bottom: 14px !important;
        text-align: left !important;
        padding-left: 4px !important;
    }
}
/* ===== КАТЕГОРИИ: КРУПНЕЕ ТОЛЬКО НА КОМПЬЮТЕРЕ ===== */
@media (min-width: 768px) {

    .m3d-home-categories {
        padding: 30px 28px 34px !important;
    }

    .m3d-home-categories::before {
        font-size: 27px !important;
        margin-bottom: 22px !important;
    }

    .m3d-cat-row {
        max-width: 1550px !important;
        gap: 16px !important;
    }

    .m3d-cat-card {
        min-height: 145px !important;
        padding: 18px 10px !important;
        font-size: 15px !important;
    }

    .m3d-cat-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .m3d-cat-icon i {
        font-size: 25px !important;
    }
}
/* ===== КАТЕГОРИИ ПОЧТИ НА ШИРИНУ БАННЕРА ===== */
@media (min-width: 768px) {

    .m3d-home-categories {
        width: calc(100vw - 50px) !important;
        max-width: 1500px !important;

        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        box-sizing: border-box !important;
    }

    .m3d-cat-row {
        width: 100% !important;
        max-width: none !important;
    }
}
/* Мастерская 3Д — мобильное меню */
@media (max-width: 767px) {

  #menu .navbar-collapse {
    background: #49382E !important;
    border-radius: 0 0 15px 15px;
  }

  #menu .navbar-collapse .navbar-nav > li > a {
    color: #FFF8EE !important;
    font-size: 17px;
    font-weight: 600;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  #menu .navbar-collapse .navbar-nav > li > a:hover,
  #menu .navbar-collapse .navbar-nav > li > a:focus,
  #menu .navbar-collapse .navbar-nav > li.open > a {
    color: #E9BA78 !important;
    background: #624B3A !important;
  }

}
/* ===================================
   МАСТЕРСКАЯ 3Д
   ЕДИНЫЙ ДИЗАЙН КАРТОЧЕК ТОВАРОВ
   =================================== */

/* Основа карточки */
.product-thumb {
    background: #FEFAF6;
    border: 1px solid #E8DACA;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(80, 50, 20, 0.12);
    transition: transform .25s ease,
                box-shadow .25s ease;
}

/* Объём при наведении */
.product-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(80, 50, 20, 0.20);
}

/* Изображение */
.product-thumb .image {
    padding: 12px 12px 0;
    text-align: center;
}

.product-thumb .image a {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #FFFFFF;
}

/* Одинаковая область фотографий в сетке */
.product-layout:not(.product-list)
.product-thumb .image img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: contain;
    transition: transform .3s ease;
}

.product-thumb:hover .image img {
    transform: scale(1.03);
}

/* Текстовая часть */
.product-thumb .caption {
    padding: 16px 18px 12px;
    min-height: 0;
    text-align: left;
}

/* Название товара */
.product-thumb .caption h4 {
    margin: 0 0 10px;
    line-height: 1.4;
}

.product-thumb .caption h4 a {
    color: #453326;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.product-thumb .caption h4 a:hover {
    color: #A77735;
}

/* Описание */
.product-thumb .caption > p:not(.price) {
    color: #756758;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Выравнивание карточек в сетке */
.product-layout:not(.product-list) .product-thumb {
    display: flex;
    flex-direction: column;
}

.product-layout:not(.product-list) .product-thumb .caption {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.product-layout:not(.product-list)
.product-thumb .caption h4 a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-layout:not(.product-list)
.product-thumb .caption > p:not(.price) {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Цена */
.product-thumb .price {
    color: #453326;
    font-size: 20px;
    font-weight: 700;
    margin: 12px 0 14px;
}

.product-layout:not(.product-list) .product-thumb .price {
    margin-top: auto;
}

.product-thumb .price-new {
    color: #A77735;
    font-size: 20px;
    font-weight: 700;
}

.product-thumb .price-old {
    color: #9B9085;
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
}

/* Нижние кнопки */
.product-thumb .button-group {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px 15px;
    background: transparent;
    border: none;
    overflow: visible;
}

/* Все кнопки карточки */
.product-thumb .button-group button {
    display: flex;
    align-items: center;
    justify-content: center;
    float: none !important;
    box-sizing: border-box;
    width: 42px !important;
    height: 42px;
    line-height: 1.2;
    padding: 0 8px;
    border: none !important;
    border-radius: 12px;
    background: #EDE3D5;
    color: #685038;
    text-transform: none;
    flex: 0 0 42px;
}

/* Купить — основная бронзовая кнопка */
.product-thumb .button-group button:first-child {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    background: #A77735;
    color: #FFFFFF;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
}

.product-thumb .button-group button:first-child:hover {
    background: #805825;
    color: #FFFFFF;
}

/* Избранное и сравнение */
.product-thumb .button-group button:not(:first-child):hover {
    background: #DCC9AE;
    color: #453326;
}

/* Расстояние между карточками */
.product-layout {
    margin-bottom: 24px;
}

/* Мобильная версия */
@media (max-width: 767px) {

    .product-thumb {border-radius: 17px;
    }

    .product-layout:not(.product-list)
    .product-thumb .image img {
        height: 200px;
    }

    .product-thumb .caption {
        padding: 14px 14px 10px;
    }

    .product-thumb .caption h4 a {
        font-size: 15px;
    }

    .product-thumb .price,
    .product-thumb .price-new {
        font-size: 19px;
    }

    .product-thumb .button-group {
        padding: 0 12px 14px;
        gap: 6px;
    }

    .product-thumb .button-group button {
        height: 40px;
        width: 40px !important;
        flex-basis: 40px;
    }

    .product-thumb .button-group button:first-child {
        width: auto !important;
        font-size: 13px;
    }
}
/* Мастерская 3Д — ровные карточки товаров */

/* Делаем все карточки одинаковой высоты */
#content .product-layout:not(.product-list) {
    display: flex;
}

#content .product-layout:not(.product-list) .product-thumb {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
}

/* Выровненная текстовая часть */
#content .product-layout:not(.product-list) .caption {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* Цена располагается снизу */
#content .product-layout:not(.product-list) .price {
    margin-top: auto !important;
}

/* Кнопки на одной высоте */
#content .product-layout:not(.product-list) .button-group {
    margin-top: auto !important;
}

/* Выравниваем строки товаров */
@media (min-width: 768px) {
    #content .row:has(> .product-layout:not(.product-list)) {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }

    #content .product-layout:not(.product-list) .caption h4 {
        height: 67px;
        overflow: hidden;
    }

    #content .product-layout:not(.product-list)
    .caption > p:not(.price) {
        height: 60px;
        overflow: hidden;
    }
}

/* Компьютер — 3 товара в ряд */
@media (min-width: 992px) {
    #content .row:has(> .product-layout:not(.product-list))
    > .product-layout:not(.product-list) {
        width: 33.333333% !important;
        max-width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
        float: none !important;
    }
}

/* Планшет — 2 товара в ряд */
@media (min-width: 768px) and (max-width: 991px) {
    #content .row:has(> .product-layout:not(.product-list))
    > .product-layout:not(.product-list) {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        float: none !important;
    }
}
/* Мастерская 3Д — оформление страницы товара */

/* Убираем сравнение, избранное оставляем */
.product-thumb button[onclick*="compare.add"],
#product-product button[onclick*="compare.add"] {
    display: none !important;
}

/* Большая фотография товара */
#product-product .thumbnails > li:first-child {
    float: none;
    width: 100%;
}

#product-product .thumbnails > li:first-child .thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 20px;
    background: #FEFAF6;
    border: 1px solid #E8DACA;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(80,50,20,.10);
}

#product-product .thumbnails > li:first-child img {
    width: 100%;
    max-width: 500px;
    max-height: 540px;
    height: auto;
    object-fit: contain;
}

/* Маленькие дополнительные фото */
#product-product .image-additional .thumbnail {
    background: #FEFAF6;
    border: 1px solid #E8DACA;
    border-radius: 12px;
    padding: 6px;
}

/* Блок с названием, ценой и покупкой */
#product-product #content > .row > .col-sm-4 {
    background: #FEFAF6;
    border: 1px solid #E8DACA;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(80,50,20,.10);
}

/* Название товара */
#product-product #content h1 {
    color: #453326;
    font-family: Georgia, serif;
    font-size: 29px;
    line-height: 1.25;
}

/* Цена */
#product-product #content h2 {
    color: #453326;
    font-size: 28px;
    font-weight: 700;
}

/* Поле количества */
#product-product #input-quantity {
    border: 1px solid #D8C6AE;
    border-radius: 12px;
    height: 43px;
}

/* Кнопка Купить */
#product-product #button-cart {
    background: #A77735 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 25px !important;
    min-height: 47px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 5px 13px rgba(80,50,20,.12);
}

#product-product #button-cart:hover {
    background: #805825 !important;
}

/* Избранное */
#product-product .btn-group > button {
    background: #F0E6D8;
    color: #6A5037;
    border: none;
    border-radius: 11px;
}

/* Описание */
#product-product #tab-description {
    background: #FEFAF6;
    border: 1px solid #E8DACA;
    border-radius: 16px;
    padding: 24px;
    color: #655446;
    font-size: 15px;
    line-height: 1.8;
}

/* Мобильная версия */
@media (max-width: 767px) {
    #product-product .thumbnails > li:first-child .thumbnail {
        min-height: 260px;
        padding: 12px;
    }

    #product-product .thumbnails > li:first-child img {
        max-height: 300px;
    }

    #product-product #content > .row > .col-sm-4 {
        padding: 17px;
    }

    #product-product #content h1 {
        font-size: 25px;
    }

    #product-product #tab-description {
        padding: 16px;
    }
}
/* Мастерская 3Д — популярные товары */

#content .m3d-popular-title {
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 600;
    color: #453326;
    margin: 35px 0 26px;
}

/* Увеличенные фотографии без обрезки */
@media (min-width: 768px) {
    #content .m3d-popular-title + .row
    .product-thumb .image {
        padding: 6px 6px 0;
    }

    #content .m3d-popular-title + .row
    .product-thumb .image img {
        width: 100%;
        height: 285px;
        object-fit: contain;
    }
}

/* Заголовок на телефоне */
@media (max-width: 767px) {
    #content .m3d-popular-title {
        font-size: 27px;
        margin: 25px 0 20px;
    }
}
/* Мастерская 3Д — молочный фон страницы товара */

#product-product,
#product-product #content,
#product-product #content > .row,
#product-product #content .tab-content {
    background: #F7F1E8 !important;
}
/* Тёплый фон только на страницах товаров */
body:has(#product-product) {
    background-color: #FEFAF6 !important;
    background-image: none !important;
}

body:has(#product-product) #product-product {
    background-color: #FEFAF6 !important;
    background-image: none !important;
}
@media (max-width: 767px) {

  /* Кнопка Категории */
  #menu .navbar-header {
    background: #5c4637 !important;
    border-radius: 12px !important;
  }

  #menu #category {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: none !important;
  }

  #menu .navbar-toggle,
  #menu .btn-navbar {
    background: #5c4637 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid #927965 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  #menu .navbar-toggle .fa {
    color: #ffffff !important;
  }

  /* Раскрывающееся меню */
  .mobile-menu #menu .navbar-collapse,
  #menu .navbar-collapse {
    background: #fffaf3 !important;
    background-image: none !important;
  }

  #menu .navbar-collapse .nav > li > a,
  #menu .navbar-collapse .dropdown-menu li a {
    color: #382f2a !important;
    background: transparent !important;
    text-shadow: none !important;
  }

  #menu .navbar-collapse .dropdown-menu {
    background: #fffaf3 !important;
  }

}
@media (max-width: 767px) {

  /* Фон раскрытого меню */
  .mobile-menu #menu .navbar-collapse,
  .mobile-menu #menu .nav,
  .mobile-menu #menu .navbar-nav,
  .mobile-menu #menu .nav > li,
  .mobile-menu #menu .dropdown-menu,
  #menu .navbar-collapse,
  #menu .nav,
  #menu .nav > li,
  #menu .dropdown-menu {
    background: #fffaf3 !important;
    background-image: none !important;
  }

  /* Названия разделов */
  .mobile-menu #menu .nav > li > a,
  .mobile-menu #menu .dropdown-menu li > a,
  #menu .nav > li > a,
  #menu .dropdown-menu li > a {
    color: #382f2a !important;
    background: transparent !important;
    text-shadow: none !important;
    font-weight: 600 !important;
  }

  /* Цвет при нажатии */
  .mobile-menu #menu .nav > li > a:hover,
  #menu .nav > li > a:hover {
    color: #5c4637 !important;
    background: #e9ded2 !important;
  }
}
/* TRIDEMO — ОФОРМЛЕНИЕ ЗАКАЗА НА ТЕЛЕФОНЕ */

@media (max-width: 767px) {

  #collapse-checkout-confirm .table-responsive {
    width: 100%;
    overflow: visible !important;
    border: 0 !important;
    margin: 0;
  }

  #collapse-checkout-confirm .table-responsive table,
  #collapse-checkout-confirm .table-responsive tbody,
  #collapse-checkout-confirm .table-responsive tfoot {
    display: block !important;
    width: 100% !important;
  }

  #collapse-checkout-confirm .table-responsive thead {
    display: none !important;
  }

  #collapse-checkout-confirm .table-responsive tbody tr {
    display: block !important;
    background: #fffaf3;
    border: 1px solid #e5d8c9;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
  }

  #collapse-checkout-confirm .table-responsive tbody td {
    border: 0 !important;
    padding: 9px 0 !important;
    white-space: normal !important;
    font-size: 14px;
    color: #594537;
  }

  #collapse-checkout-confirm tbody td:first-child {
    display: block !important;
    font-size: 16px;
    font-weight: 700;
    text-align: left !important;
    overflow-wrap: anywhere;
  }

  #collapse-checkout-confirm tbody td:first-child a {
    color: #382f2a !important;
  }

  #collapse-checkout-confirm tbody td:nth-child(2) {
    display: none !important;
  }

  #collapse-checkout-confirm tbody td:nth-child(n+3) {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: right !important;
  }

  #collapse-checkout-confirm tbody td:nth-child(3)::before {
    content: "Количество";
  }

  #collapse-checkout-confirm tbody td:nth-child(4)::before {
    content: "Цена";
  }

  #collapse-checkout-confirm tbody td:nth-child(5)::before {
    content: "Стоимость";
  }

  #collapse-checkout-confirm tbody td::before {
    font-weight: 500;
    color: #806d5c;
    text-align: left;
  }

  #collapse-checkout-confirm tfoot tr {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 4px;
    border-bottom: 1px solid #e5d8c9;
  }

  #collapse-checkout-confirm tfoot td {
    display: block !important;
    width: auto !important;
    border: 0 !important;
    padding: 0 !important;
    font-size: 15px;
    white-space: normal !important;
https://hosting.timeweb.ru/  }

  #collapse-checkout-confirm tfoot td:first-child {
    flex: 1;
    text-align: left !important;
    color: #594537;
  }

  #collapse-checkout-confirm tfoot td:last-child {
    text-align: right !important;
    font-weight: 700;
    color: #382f2a;
  }

  #collapse-checkout-confirm tfoot tr:last-child {
    background: #f4e9da;
    border-radius: 10px;
    padding: 16px 12px;
  }
}

/* КОНЕЦ TRIDEMO — ОФОРМЛЕНИЕ ЗАКАЗА */
/* TRIDEMO — ИСПРАВЛЕНИЕ ШИРИНЫ ЗАКАЗА */

@media (max-width: 767px) {

  #collapse-checkout-confirm .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  #collapse-checkout-confirm .table-responsive table,
  #collapse-checkout-confirm .table-responsive tbody,
  #collapse-checkout-confirm .table-responsive tfoot {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #collapse-checkout-confirm tbody tr {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #collapse-checkout-confirm tbody td {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  #collapse-checkout-confirm tbody td:nth-child(n+3) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    text-align: right !important;
    align-items: center;
  }

  #collapse-checkout-confirm tbody td::before {
    text-align: left !important;
  }

  #collapse-checkout-confirm tfoot tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #collapse-checkout-confirm tfoot td {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
    float: none !important;
  }

  #collapse-checkout-confirm tfoot td:last-child {
    white-space: nowrap !important;
    text-align: right !important;
  }
}

/* КОНЕЦ ИСПРАВЛЕНИЯ ШИРИНЫ */
/* TRIDEMO — меню личного кабинета поверх навигации */

#top,
.m3d-topbar {
  position: relative !important;
  z-index: 9999 !important;
  overflow: visible !important;
}

#top .dropdown-menu,
.m3d-topbar .dropdown-menu {
  z-index: 10000 !important;
}
/* TRIDEMO — РЕГИСТРАЦИЯ */

#account-register h1 {
  font-family: Georgia, serif;
  font-size: 36px;
  color: #382f2a;
  margin-bottom: 22px;
}

#account-register legend {
  font-size: 24px;
  color: #604a3c;
  border-bottom: 1px solid #e5d7c5;
  padding-bottom: 12px;
  margin-bottom: 25px;
}

#account-register .form-control {
  min-height: 46px;
  border: 1px solid #dfcfbb;
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: none;
  padding: 10px 14px;
}

#account-register .form-control:focus {
  border-color: #a77e40;
  box-shadow: 0 0 0 2px rgba(167,126,64,.12);
}

#account-register .btn-primary {
  background: #604a3c;
  border: 1px solid #604a3c;
  border-radius: 12px;
  color: #fff;
  text-shadow: none;
  box-shadow: none;
  padding: 13px 28px;
}

#account-register .btn-primary:hover {
  background: #49382e;
  border-color: #49382e;
}

@media (max-width: 767px) {
  #account-register h1 {
    font-size: 30px;
  }

  #account-register legend {
    font-size: 23px;
  }
}

/* КОНЕЦ TRIDEMO — РЕГИСТРАЦИЯ */
/* TRIDEMO — белая надпись Категории */
@media (max-width: 767px) {
  #menu #category,
  #menu .navbar-header,
  #menu .navbar-header .navbar-brand {
    color: #ffffff !important;
  }
}


body.account-login #content,
body.account-register #content {
    width: 100% !important;
    float: none !important;
}
/* TRIDEMO — исправление страницы авторизации */
#account-login #column-right {
    display: none !important;
}

#account-login #content {
    width: 100% !important;
    float: none !important;
}
/* TRIDEMO — текст мобильных категорий */
@media (max-width: 767px) {
  .mobile-cart-menu #menu .navbar-header,
  .mobile-cart-menu #menu .navbar-header .navbar-brand,
  .mobile-cart-menu #menu .navbar-header .navbar-toggle {
    color: #ffffff !important;
  }
}
/* TRIDEMO — цвет мобильного меню */
@media (max-width: 767px) {
  span#category {
    color: #ffffff !important;
  }
}
/* TRIDEMO — избранное на телефоне */

@media (max-width: 767px) {

  #account-wishlist .table-responsive {
    overflow: visible !important;
    border: none !important;
  }

  #account-wishlist .table {
    border: none !important;
    background: transparent !important;
  }

  #account-wishlist .table thead {
    display: none !important;
  }

  #account-wishlist .table tbody,
  #account-wishlist .table tbody tr {
    display: block !important;
    width: 100% !important;
  }

  #account-wishlist .table tbody tr {
    background: #f8f2e9 !important;
    border: 1px solid #e6d8c7 !important;
    border-radius: 22px !important;
    padding: 20px !important;
    margin-bottom: 18px !important;
  }

  #account-wishlist .table tbody td {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    border: none !important;
    padding: 7px 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  #account-wishlist .table tbody td img {
    width: 150px !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
  }

  #account-wishlist .table tbody td a {
    color: #40352e;
  }

  #account-wishlist .table tbody td:nth-child(2) a {
    font-weight: 700;
    font-size: 17px;
    line-height: 1.5;
  }

  #account-wishlist .table tbody td:last-child {
    padding-top: 15px !important;
  }

  #account-wishlist .table .btn {
    background: #604a3c !important;
    border: 1px solid #604a3c !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 18px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    margin-right: 8px;
  }

  #account-wishlist .table .btn:hover {
    background: #49382e !important;
  }
}
/* TRIDEMO — избранное на компьютере */
@media (min-width: 992px) {

  #account-wishlist .table-responsive {
    overflow: visible !important;
    border: none !important;
  }

  #account-wishlist .table {
    border: none !important;
    background: transparent !important;
  }

  #account-wishlist .table thead {
    display: none !important;
  }

  #account-wishlist .table tbody {
    display: grid !important;
    gap: 24px;
  }

  #account-wishlist .table tbody tr {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) 120px;
    grid-template-rows: repeat(3, auto);
    column-gap: 30px;
    align-items: center;
    background: #f8f2e9;
    border: 1px solid #e6d8c7;
    border-radius: 22px;
    padding: 28px;
  }

  #account-wishlist .table tbody td {
    display: block !important;
    width: auto !important;
    border: none !important;
    text-align: left !important;
    padding: 5px 0 !important;
    overflow-wrap: anywhere;
  }

  #account-wishlist .table tbody td:first-child {
    grid-column: 1;
    grid-row: 1 / 4;
  }

  #account-wishlist .table tbody td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    font-size: 20px;
    font-weight: 700;
  }

  #account-wishlist .table tbody td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  #account-wishlist .table tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
  }

  #account-wishlist .table tbody td:nth-child(5) {
    grid-column: 2;
    grid-row: 4;
    font-size: 25px;
    font-weight: 700;
    color: #604a3c;
  }

  #account-wishlist .table tbody td:last-child {
    grid-column: 3;
    grid-row: 1 / 5;
    text-align: center !important;
  }

  #account-wishlist .table tbody td img {
    width: 200px !important;
    max-width: 100%;
    height: auto !important;
    border-radius: 14px;
  }

  #account-wishlist .table .btn {
    background: #604a3c !important;
    border-color: #604a3c !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin: 5px;
    box-shadow: none !important;
    text-shadow: none !important;
  }
}
/* TRIDEMO — улучшение избранного на компьютере */
@media (min-width: 992px) {

  #account-wishlist .table tbody tr {
    grid-template-columns: 220px minmax(0, 1fr) 170px;
    grid-template-rows: repeat(4, auto);
    align-content: center;
    row-gap: 8px;
  }

  #account-wishlist .table tbody td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  #account-wishlist .table tbody td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  #account-wishlist .table tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
  }

  #account-wishlist .table tbody td:nth-child(5) {
    grid-column: 2;
    grid-row: 4;
    font-size: 26px;
    font-weight: 700;
    color: #604a3c;
  }

  #account-wishlist .table tbody td:last-child {
    grid-column: 3;
    grid-row: 1 / 5;
    align-self: center;
  }

  #account-wishlist .table tbody td:last-child .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 145px;
    min-height: 48px;
    margin: 5px 0;
    gap: 8px;
    font-size: 15px;
  }

  #account-wishlist .table tbody td:last-child .btn-info::after {
    content: "В корзину";
  }

  #account-wishlist .table tbody td:last-child .btn-danger::after {
    content: "Удалить";
  }
}
/* TRIDEMO — подпись кнопки корзины на компьютере */
@media (min-width: 992px) {
  #account-wishlist .table tbody td:last-child button::after {
    content: "В корзину";
    margin-left: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
  }
}
/* TRIDEMO — избранное на всю ширину компьютера */
@media (min-width: 992px) {

  #account-wishlist #column-right {
    display: none !important;
  }

  #account-wishlist #content {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }

  #account-wishlist .table tbody tr {
    grid-template-columns: 240px minmax(0, 1fr) 170px;
    column-gap: 35px;
  }

}