* {
    -webkit-tap-highlight-color: transparent;
    transition:0.4s;
}

.container {
    
    display: flex;
    flex-direction: column;
    padding: 16px;
    text-align: center;
    /*background-color: rgba(115,115,115, 0.7);*/
    background: none;
    border-radius:6px;
    min-height: 70vh;
}

body {
    margin: 0;
    padding: 0 5px;
    padding-top: 100px;
    background-image: url(/static/icons/bg.svg);
    background-color: #000;
    background-repeat: repeat;
    background-attachment: fixed;
    height: 90vh;
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    color:#fff;
    
}

.app-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
    position: relative;
    justify-content: space-between;
    padding:10px 10px;
    border-radius:8px;
    border:1px solid #fff;
    background-color: rgba(255,255,255,0.1);
}

.logo {
    font-weight: bold;
    font-size: 18px;
    color: #fff;
}

/* Поиск и корзина */
.search-container {
    margin-top:20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding:20px 20px;
    border-radius:8px;
    border:1px solid #fff;
    background-color: rgba(255,255,255,0.1);
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #d2d2d7;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  background-color: #f5f5f7;
}

.search-input:focus {
  border-color: #0071e3;
}

.cart-button {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: url('/static/icons/cart.svg') center no-repeat;
  background-size: 24px;
  cursor: pointer;
  background-color: transparent;
  padding: 0;
  margin: 0;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  border:1px solid #000;
  width: 18px;
  height: 18px;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  font-weight: bold;
}

/* Слайдер баннеров */
.banner-slider {
  margin-top:20px;
  border:1px solid #fff;
  border-radius:8px;
  width: 100%;
  overflow-x: auto;
  display: flex;
  max-height: 120px;
  gap: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.banner {
  min-width: 100%;
  scroll-snap-align: start;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Популярные товары */
.section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 20px 0 15px;
  padding: 0 10px;
}

.popular-grid {
  border:1px solid #fff;
  border-radius:8px;
  background-color: rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 0 10px;
}

.product-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.product-card:active {
  transform: scale(0.98);
}

.product-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.product-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-description {
  font-size: 14px;
  color: #86868b;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 16px;
  font-weight: 600;
  color: #0071e3;
}

.menu-button, .cart-button, .search-button {
    background: none;
    border:none;
    color:#fff;
    padding:5px;
    font-size: 1.5em;
}

#catalog {
    position:fixed;
    top:0;
    left:-100vw;
    width:100vw;
    height: 100%;
    transition:left 0.3s ease;
    padding-top:10px;
    z-index: 1000;
    
    background-color: rgba(0,0,0);
}
#catalog.opened {
    left:0;
}

#cart {
    position:fixed;
    top:0;
    right:-100vw;
    width:100vw;
    height: 100%;
    transition:right 0.3s ease;
    padding-top:10px;
    z-index: 1000;
    
    background-color: rgba(0,0,0);
}
#cart.opened {
    right:0;
}