:root {
  --color: #be9e61;
  --color-hl: #D7B56D;
  --color-success: #c1d07b;
  --color-danger: #881d18;
}

*, ::after, ::before {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: Montserrat;
  font-size: 1rem;
  margin: 0;
  min-width: 340px;
}

[v-cloak] {
  display: none;
}

button, input, optgroup, select, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

header a, footer a {
  text-decoration: none;
}

ul {
  margin: 0;
}

a:hover {
  text-decoration: underline;
}

input[type="number"] {
  appearance: textfield;
}

header a:any-link, footer a:any-link {
  color: #000;
}

main a:any-link {
  color: var(--color);
}

h1, h2, h3, h4 {
  font-weight: normal;
}

.noscroll { 
  overflow: hidden; 
}

.text-danger, .text-danger:any-link {
  color: var(--color-danger);
}

.table {
  border-collapse: collapse;
}

.table td, th {
  padding: .5rem .8rem;
  text-align: center;
}

.table td {
  border-bottom: 1px solid #e9e9e9;
}

.table th {
  border-bottom: 2px solid #e9e9e9;
}

.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}


/* ГЛАВНАЯ */

.splide__track {
  background-clip: padding-box;
  border: 3px solid var(--color);
  border-radius: 1.5rem; 
}

.splide__arrow {
  background: transparent;
  opacity: 0.4;
}

.splide__pagination {
  left: auto;
  right: 1em;
  bottom: 1em;
}

.splide__pagination__page.is-active {
  background: var(--color);
}

.splide__arrow--prev svg {
  transform: scaleX(-1);
}

.splide__arrow svg {
  height: 1.5rem;
  width: 1.5rem;
}

.banner {
  position: relative;
}

.banner-text {
  position: absolute;
  z-index: 2;
  right: 2rem;
  bottom: 2.2rem;
  font-size: 1.8rem;
  max-width: 15rem;
  color: #333;
  text-align: right;
}

.home-text {
  font-size: 1.4rem;
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.home-text p {
  margin: .5rem 0;
}

.home-logo {
  max-width: 450px;
  margin-bottom: 1rem;
}

.home-hero {
  color: var(--color);
  font-weight: bold;
  margin-top: 2rem;
}


/* КАТАЛОГ */

.frame {
  display: flex;
  gap: 0 5%;
}

.left {
  width: 30%;
}

.main {
  width: 70%;
}

.main.favorites {
  width: 100%;
}

.icon {
  max-width: 1.2rem;
  margin-right: 8px;
}

header {
  border-bottom: 6px solid var(--color);
  padding: 15px 0;
  margin-bottom: 20px;
}

.topnav-wrap {
  display: flex;
  gap: 0 5%;
  padding-top: 25px;
  justify-content: space-between;
}

.topnav {
  padding-left: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  gap: 15px;
}

.topnav-item.active {
  color: var(--color);
}

.topnav {
  padding-left: 0;
  list-style: none;
}

.account {
  display: flex;
  align-items: center;
  height: 100%;
}

.accountnav {
  text-align: right;
  padding-left: 0;
  list-style: none;
}

.accountnav li {
  padding-bottom: .4rem;
}

.accountnav .active {
  color: var(--color);
}

.form-control {
  display: block;
  width: 100%;
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  background-clip: padding-box;
  border: 3px solid var(--color);
  appearance: none;
  border-radius: .3rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group > :not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group > :not(:first-child) {
  margin-left: -1px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group > .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.input-group .btn {
  position: relative;
  z-index: 2;
}

.btn {
  display: inline-block;
  font-weight: 400;
  color: #fff;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: var(--color);
  border: 3px solid var(--color);
  padding: .375rem .75rem;
  font-size: 1rem;
  border-radius: .3rem;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.btn:hover {
  background-color: var(--color-hl); 
  border-color: var(--color-hl); 
}

.btn-secondary {
  background-color: #fff;
  border: 3px solid #fff;
  color: #000;
}

.btn-secondary:hover {
  background-color: #fff;
}

.btn img {
  max-width: 24px;
}

.btn-secondary:hover {
  border: 3px solid var(--color);
}

.btn-lg {
  padding: .4rem .9rem;
  font-size: 1.15rem; 
}

.form-footer {
  margin-top: 1.5rem;
}

.pricefilter {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.checkbox {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.checkbox+label {
  display: inline-flex;
  align-items: center;
  user-select: none;
  gap: .2rem;
  cursor: pointer;
}

.checkbox+label::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  flex-grow: 0;
  border: 3px solid var(--color);
  border-radius: 0.3rem;
  margin-right: 0.5rem;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 90% 90%;
  cursor: pointer;
}
.checkbox:checked+label::before {
  background-image: url("/images/check.svg");
}
.checkbox:not(:disabled)+label:hover::before {
  border-color: var(--color-hl);
}

.filterhead {
  margin: 1rem 0 0.3rem;
  font-size: 1.2rem;
}

.filter {
  list-style: none;
}

.hamburger {
  display: none;
}

.filterprice {
  display: flex;
  gap: 10px;
}

.filterpriceval {
  width: 50%;
}

footer {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.footer {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.footer-column {

}

.column-header {
  font-weight: bold;
}

.footer-nav {
  list-style: none;
  padding-left: 0;
}

.footer-copyright {
  text-align: right;
  font-size: .8rem;
  align-self: flex-end;
}

.footer-copyright a {
  text-decoration: underline;
}

.shopbuttons {
  margin-top: 2em;
  gap: 15px;
}

.shopbuttons a {
  margin-right: 6px;
}

.shopbutton {
  max-width: 40px;
}

.filters-head {
  display: none
}

.gallery {
  display: grid;
  grid-gap: 30px;
}

.card {
  cursor: pointer;
}

.item-img img {
  width: 100%;
  border: 3px solid var(--color);
  border-radius: 1rem;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.card:hover img {
  border-color: var(--color-hl);
}

.item-name {
  margin-top: .4rem;
}

.item-purchase {
  display: flex;
  justify-content: space-between;
  margin-top: .2rem;
}

.icon-cart {
  width: 22px;
  margin-left: 6px;
}

.item-price span {
  font-weight: bold;
  font-size: 1.2rem;
}

.item-cart {
  font-size: .9rem;
}

.item-cart:hover, .in-cart {
  color: var(--color);
}

.pagination {
  padding-left: 0;
  list-style: none;
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 6px;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.pagination-wrap-bottom {
  margin-top: 1.5rem;
}

.page-link img {
  width: 10px;
}

.page-item:not(.disabled) .page-link {
  padding: 2px 4px;
  vertical-align: middle;
  cursor: pointer;
}

.page-item.disabled {
  opacity: .3;
}
.page-link:hover, .active .page-link {
  color: var(--color);
}

.viewitem-frame {
  display: flex;
  gap: 0 1.5rem;
}

.viewitem-img {
  width: 50%;
}

.viewitem-text {
  width: 50%;
}

.breadcrumbs {
  margin-bottom: 1rem;
}

.breadcrumbs img {
  width: 10px;
  margin: 0 10px;
}

.viewitem-actions {
  display: flex;
  gap: 0 10%;
  margin-bottom: 2rem;
}

.viewitem-sizes {
  width: 55%;
}

.viewitem-buttons {
  width: 45%;
  text-align: right;
}

.viewitem-img img {
  width: 100%;
  border: 3px solid var(--color);
  border-radius: 1.3rem;
  aspect-ratio: 1 / 1;
}

.viewitem-ximg {
  text-align: center;
  margin-top: .5rem;
  aspect-ratio: 1 / 1;
}

.viewitem-ximg img {
  width: 25%;
  border-radius: .5rem;
  cursor: pointer;
}

.viewitem-ximg img:hover {
  border-color: var(--color-hl);
}

.viewitem-price {
  font-size: 1.5rem;
  text-align: right;
  margin-bottom: 1rem;
}

.viewitem-price span{
  font-size: 2rem;
  font-weight: bold;
}

.viewitem-size, .btn-plusminus, .cart-size-btn {
  width: 2.5rem;
  height: 2.5rem;
  text-align: center;
  border: 3px solid var(--color);
  background: #fff;
  border-radius: 0.3rem;
  cursor: pointer;
  display: table-cell;
  vertical-align: middle;
}

.viewitem-size {
  margin: 0.3rem;
}

.viewitem-size, .cart-size-btn {
  font-size: .8rem;
}

.viewitem-size.active {
  border: 3px solid var(--color);
  background:  var(--color);
  color: #fff;
}

.viewitem-size:hover, .btn-plusminus:hover, .cart-size-btn:hover {
  background:  var(--color-hl);
}

.viewitem-specs {
  font-size: .8rem;
  width: 100%;
}

.viewitem-specs tr {
  height: 1.5rem;
  vertical-align: bottom;
}

.btn-favorites {
  margin-top: .4rem;
  font-size: .8rem;
}

.specname::after {
  content: '';
  position: absolute;
  bottom: .1rem;
  width: 100%;
  height: 0;
  line-height: 0;
  border-bottom: 2px dotted var(--color);
}

.specname {
  padding-right: .2rem;
  position: relative;
  overflow: hidden;
}

.alert-warning {
  padding: .8rem 1.2rem;
  border-radius: 0.3rem; 
  background:  var(--color-hl);
  margin: 1rem 0;
}

.alert-success {
  padding: .8rem 1.2rem;
  border-radius: 0.3rem; 
  background:  var(--color-success);
  margin: 1rem 0;
}

.alert-danger {
  padding: .8rem 1.2rem;
  border-radius: 0.3rem; 
  background:  var(--color-danger);
  color: #fff;
  margin: 1rem 0;
}

.alert-warning a:any-link {
  color: rgb(61, 46, 24);
}

.number {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.5rem;
  justify-content: right;
}

.number-value {
  width: 1rem;
  text-align: center;
}

.cart-size {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.cart-item {
  display: flex;
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.cart-img {
  width: 30%;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.cart-img img {
  width: 100%;
  border: 3px solid var(--color);
  border-radius: 1.3rem;
}

.cart-img:hover img {
  border-color: var(--color-hl);
}

.cart-text {
  width: 70%; 
  display: flex;
  gap: 1.8rem; 
}

.cart-center {
  width: 70%;
  padding-top: 1em;
}

.cart-right {
  width: 30%;
  padding-top: 1em;
  text-align: right;
}

.cart-name {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.cart-price {
  font-size: 1.3rem;
  text-align: right;
  margin-bottom: 1rem;
}

.cart-price span {
  font-size: 1.6rem;
  font-weight: bold;
}

.btn-plusminus[disabled] {
  border-color: #aaa;
  color: #666;
  cursor: not-allowed;
}

.btn-plusminus:hover[disabled] {
  background-color: #fff;
}

.cart-delete {
  color: var(--color-danger);
  margin-top: 1rem;
}

.cart-delete a {
  text-decoration: underline;
  cursor: pointer;
}

.right {
  text-align: right;
  width: 30%;
}

.cart-order {
  position: sticky;
  top: 1rem; 
}

.text-help {
  font-size: .8rem;
  margin-top: .3rem;
  text-align: left;
}

.cart-total {
  font-size: 1.6rem;
  text-align: right;
  margin-bottom: 1.25rem;
  margin-top: 1rem;
}

.cart-total span {
  font-weight: bold;
}

.form-group {
  margin-top: 1rem;
  max-width: 500px;
}

.form-group-100 {
  margin-top: 1rem;
}

.tabset > input[type="radio"] {
  position: absolute;
  left: -200vw;
}

.tabset .tab-panel {
  display: none;
}

.tabset > input:first-child:checked ~ .tab-panels > .tab-panel:first-child,
.tabset > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2)
{
  display: block;
}

.tabset > label {
  position: relative;
  display: inline-block;
  padding: 15px 20px;
  border: 3px solid transparent;
  border-bottom: 0;
  cursor: pointer;
  border-radius: .3em .3em 0 0;
}

.tabset > label:hover
{
  color: var(--color);
}

.tabset > input:checked + label {
  border-color: var(--color);
  border-bottom: 3px solid #fff;
  margin-bottom: -3px;
}

.tab-panel {
  padding: 20px 0;
  border-top: 3px solid var(--color);
}

.gallery {
  grid-template-columns: repeat(3, 1fr); 
}

.favorites .gallery {
  grid-template-columns: repeat(4, 1fr); 
}


@media (min-width: 641px) {
  .filterpriceval {
    display: flex;
    gap: 5px;
    align-items: center;
  }
}


@media (max-width: 991.98px) {
  html {
    font-size: 15px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .favorites .gallery {
    grid-template-columns: repeat(3, 1fr); 
  }

  .viewitem-actions {
    flex-wrap: wrap;
  }

  .viewitem-sizes, .viewitem-buttons {
    width: 100%;
    text-align: left;
  }

  .viewitem-price {
    text-align: left;
    margin-top: 1rem;
  }

  .cart-img, .cart-text {
    width: 50%;
  }

  .cart-text {
    flex-wrap: wrap;
    gap: .5rem;
  }

  .cart-center, .cart-right, .cart-price {
    width: 100%;
    text-align: left;
    padding-top: 0;
  }

  .number {
    justify-content: left;
  }

  .main {
    width: 65%;
  }
 
  .right {
    width: 35%;
  }

  .cart-item {
    gap: 1.5rem;
  }

  .topnav {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;  
  }

  .topnav-wrap {
    padding-top: 0;
  }

  .banner-text {
    font-size: 1.5rem;
    max-width: 13rem;
  }  
}


@media (max-width: 767px) {
  header .left {
    width: 35%;
    min-width: 240px;
  }

  .footer-catalog {
    display: none;
  }
  
  .banner-text {
    display: none;
  }  
}


@media (max-width: 640px) {
  html {
    font-size: 14px;
  }

  .frame {
    justify-content: space-between;
  }

  .filter {
    padding-left: 0;
  }

  .viewitem-frame {
    flex-wrap: wrap;
  }

  .viewitem-img, .viewitem-text {
    width: 100%;
  }

  .frame {
    flex-wrap: wrap;
  }

  .main, .right, .cart-total {
    text-align: left;
    width: 100%;
  } 

  .filters, #nav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 3;
    top: 0;
    left: 0;
    overflow-x: hidden; 
    transition: 0.5s;
    background-color: #fff;
    overflow-y: scroll;
    overscroll-behavior: contain;
  }

  .filters-head {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;  
    align-items: center;
  }

  .filters-close {
    font-size: 2rem;
    border: 0;
    background-color: #fff;
    cursor: pointer;
  }

  .filters-close:hover {
    color: #444;
  }

  .filters-wrap, .topnav-wrap {
    padding: 1rem;
    display: block;
  }

  .catalog-main {
    width: 100%;
  }
 
  .hamburger {
    display: block;
  }

  #overlay, #overlay2 {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 2;
    cursor: pointer;
  }

  .topnav {
    justify-content: start;
    gap: .6rem;
  }

  .accountnav {
    text-align: left;
  }

  .account {
    align-items: top;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--color)
  }

  .hamburger-bar {
    width: 35px;
    height: 5px;
    background-color: #fff;
    margin: 6px auto;
  }

  .footer-info {
    display: none;
  }
}




@media (max-width: 480px) {
  .home-logo {
    max-width: 95%;
  }

  .gallery {
      grid-template-columns: repeat(1, 1fr);
  }
}


@media (max-width: 400px) {
  html {
    font-size: 13px;
  }

  .cart-item {
    flex-wrap: wrap;
  }

  .cart-img, cart-text {
    width: 100%;
  }
}
