/* ---------------- HEADER E NAV ---------------- */
@media (max-width: 768px) {
  .header .right ul {
    display: block;
    padding: 0;
    margin: 0;
  }

  .header .right ul li {
    display: block;
    margin-bottom: 8px;
  }

  .header .right ul li a,
  .header .right ul li {
    font-size: 16px;
    padding: 8px 0;
    display: block;
  }
}

/* ---------------- USER SIDEBAR ---------------- */
@media (max-width: 768px) {
  .user-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .user-sidebar ul a {
    flex: 1 1 calc(50% - 10px);
    text-decoration: none;
  }

  .user-sidebar ul a button {
    width: 100%;
  }
}

/* ---------------- CART E CHECKOUT ---------------- */
@media (max-width: 768px) {
  .cart table,
  .cart thead,
  .cart tbody,
  .cart th,
  .cart td,
  .cart tr {
    display: block;
    width: 100%;
  }

  /* nasconde intestazione tabella */
  .cart thead {
    display: none;
  }

  .cart tr {
    border: 1px solid #ddd;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  .cart td {
    border: none !important;
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    text-align: left;
    white-space: normal;
    word-break: break-word;
  }

  .cart td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #333;
    flex: 0 0 40%;
    max-width: 40%;
    padding-right: 10px;
    text-align: left;
  }

  .cart td > * {
    flex: 1;
    text-align: right;
  }

  .cart td[colspan],
  .cart th[colspan] {
    display: block;
    padding: 10px;
    font-weight: bold;
    text-align: right;
    background: #f8f8f8;
    border-radius: 6px;
  }

  .cart td img {
    max-width: 80px;
    height: auto;
    margin: 0 auto;
  }
}

/* ---------------- TOP BAR ---------------- */
@media only screen and (max-width: 767px) {
  .top {height: auto; overflow: hidden;}
  .top .left {float: none;}
  .top .left ul {margin-bottom: 0; margin-top: 10px;}
  .top .left ul li {float: none; text-align: center;}
  .top .right {float: none;}
  .top .right ul {text-align: center; margin-bottom: 20px;}
  .top .right ul li {float: none; display: inline-block;}
}

/* ---------------- HEADER RESPONSIVE ---------------- */
@media only screen and (max-width: 991px) {
  .header .inner {display: block;}
  .header .logo {display: block; width: 100%; text-align: center;}
  .header .search-area {display: block;}
  .header .right {display: block;}
  .header .navbar-left {text-align: center; margin-bottom: 20px;}
  .navbar-form .form-group {display: inline-block;}
  .navbar-form button {display: inline-block;}
  .header .right ul {float: none; text-align: center; margin: 40px 0;}
  .header .right ul li {float: none; display: inline-block;}
  .header form {margin: 0;}
}

/* ---------------- SLIDER ---------------- */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .bx-controls a.bx-prev,
  .bx-controls a.bx-next {padding-top: 215px!important;}
}

@media only screen and (min-width: 501px) and (max-width: 700px) {
  ul.bxslider li,
  ul.bxslider li .text {height: 300px;}
  .bx-controls a.bx-prev,
  .bx-controls a.bx-next {font-size: 36px;}
  ul.bxslider li .text .inner h2 {font-size: 30px;}
  ul.bxslider li .text .inner h3 {font-size: 20px;}
  .bx-controls a.bx-prev,
  .bx-controls a.bx-next {padding-top: 120px!important;}
}

@media only screen and (max-width: 500px) {
  ul.bxslider li,
  ul.bxslider li .text {height: 250px;}
  .bx-controls a.bx-prev,
  .bx-controls a.bx-next {font-size: 30px;}
  ul.bxslider li .text .inner h2 {font-size: 24px;}
  ul.bxslider li .text .inner h3 {font-size: 16px;}
  .bx-controls a.bx-prev,
  .bx-controls a.bx-next {padding-top: 100px!important;}
}

/* ---------------- DESKTOP HEADER ---------------- */
@media only screen and (min-width: 992px) {
  .product .text {min-height: 190px;}
  .header .inner {width: 100%;}
  .header .search-area {padding-right: 0;}
  .header .search-area form {padding-right: 0;}
  .header .container {padding-right: 0;}
}

/* ---------------- PRODUCT ---------------- */
.product .item .thumb .photo {
  display: block;
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
}

/* ---------------- SLIDER TRANSITION ---------------- */
#bootstrap-touch-slider {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
#bootstrap-touch-slider.loaded {
  opacity: 1;
}
