* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #160A03;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Noto Sans', sans-serif;
}

button, input, select, textarea, optgroup {
  font-family: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  background: #1a0f0a;
  font-family: 'Noto Sans', sans-serif;
  height: 100px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 100px;
  width: auto;
  display: block;
}

.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 25px;
  font-family: 'Noto Sans', sans-serif;
}

.nav-item {
  color: rgb(255, 255, 255);
  cursor: pointer;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  
}

.see-all-link {
    color: #e8b96a;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Noto Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.see-all-link:hover {
    color: #f0e6d8;
    transform: translateY(-4px);
}

.see-all-link:visited {
    color: #e8b96a;
}



.nav-item:hover {
  color: #e8b96a;
  box-shadow: #160A03;
  transform: translateX(-4px);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-burger {
  display: none;
}

.nav-icons svg {
  width: 22px;
  height: 22px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-icons a:hover svg,
.nav-icons a:focus-visible svg,
.search-wrapper:hover svg {
  transform: translateY(-2px);
  color: #e8b96a;
}

.main_page_welcome_block {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;    
  gap: 30px;                  
  padding: 40px;
  max-width: 1400px;           
  margin: 0 auto;                
}

.hero-image {
  width: 120%;
  max-width: 900px;
  margin-right: 50px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 85%);
  mask-image: radial-gradient(ellipse at center, black 50%, transparent 85%);
}

.hero-title {
  color: white;
  font-size: 90px;
}

.welcome-text {
  display: block;
  width: 100%;
  max-width: 700px;
  flex-shrink: 0;
}

.welcome-text h1 {
  font-family: 'Noto Sans', sans-serif;
  font-size: 72px;
  line-height: 1.1;
  background: linear-gradient(90deg, #f5e6c8, #e8b96a, #d9333f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.welcome-text h2 {
  font-family: 'Noto Sans', sans-serif;
  background: #ff0011;
  color: white;
  font-weight: bold;
  font-size: 20px;
  padding: 14px 26px;
  border-radius: 30px;
  display: inline-block;
  transform: rotate(-4deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  margin-top: 20px;
  line-height: 1.3;
  max-width: 100%;
  margin-left: 15px;
}

.badge-tag {
  animation: flicker 5s infinite;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(217, 51, 63, 0.6);
  }
  20%, 22%, 24%, 55% {
    opacity: 0.3;
    text-shadow: none;
  }
}

.features {
  font-family: 'Noto Sans', sans-serif;
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.feature-text h3 {
  color: #e8b96a;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.feature-text p {
  color: #ccc;
  font-size: 12px;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;              
  justify-content: flex-end;  
}

.catalog-btn {
  margin-top: 30px;
  background: #e8b96a;              
  color:#1a0f0a;                    
  font-family: 'Noto Sans', sans-serif;
  font-weight: bold;
  padding: 16px 32px;                 
  border: none;
  border-radius: 12px;                 
  display: inline-flex;
  align-items: center;
  gap: 12px;                            
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); 
  cursor: pointer;
  transition: all 0.2s ease;    
  font-size: 15px;         
}

.catalog-btn:hover {
  background: rgba(232, 185, 106, 0.9);   
  transform: translateX(4px);              
}

.btn-arrow {
  transition: transform 0.2s ease;         
}

.catalog-btn:hover .btn-arrow {
  transform: translateX(4px);               
}

.katalog_main {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.katalog_main img{
  max-width: 90px;
  flex-shrink: 0;
}

.katalog_main h1{
  font-family: 'Noto Sans', sans-serif;
  font-size: 30px;
  line-height: 1.1;
  background: linear-gradient(90deg, #f5e6c8, #e8b96a, #d9333f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.katalog_main h2{
  font-family: 'Noto Sans', sans-serif;
  font-size: 10px;
  line-height: 1.1;
  color: white;
}

.katalog_item_main {
  display: flex;
  text-decoration: none;
  color: inherit;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  text-align: left;
  border: #e8b96a 2px solid;
  border-radius: 30px;
  background: #1a0f0a;
  padding: 20px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.katalog_item_main:hover {
  background: #e8b96a;
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
} 


.katalog_item_text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.katalog_item_text h1,
.katalog_item_text h2 {
  min-width: 0;
  overflow-wrap: break-word;
}

.popular_text h1{
  font-family: 'Noto Sans', sans-serif;
  font-size: 40px;
  line-height: 1.1;
  color: white;
}

.popular_text h2{
  font-family: 'Noto Sans', sans-serif;
  font-size: 15px;
  line-height: 1.1;
  color: #e8b96a;
  cursor: pointer;
}

.popular_text h2:hover {
  transform: translateX(4px)
}


.popular_text {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.main_page_stocks {
  background-image: url('/images/stocks_bg.jpg');
  background-size: cover;  
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  max-width: 1400px;     
  margin: 0 auto;              
  display: flex;
  align-items: center;   
  min-height: 400px;     
  position: relative;
  border-radius: 60px;
}

.main_page_stocks_title{
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.main_page_stocks_title h1 {
  font-family: 'Noto Sans', sans-serif;
  font-size: 80px;
  line-height: 1.1;
  color: rgb(0, 0, 0);
  text-align: left;
  margin-left: 70px;
  padding-top: 40px;
}

.main_page_stocks_title h2 {
  font-family: 'Noto Sans', sans-serif;
  font-size: 40px;
  line-height: 1.1;
  color: rgb(10, 10, 10);
  text-align: left;
  margin-left: 70px;
  padding-top: 40px;
}

.stocks_btn {
  margin-top: 25px;
  margin-bottom: 40px;
  margin-left: 170px;
  background: #1a0f0a;
  color: #e8b96a;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  width: 250px;
  height: 60px;
  cursor: pointer;
  font-family: 'Noto Sans', sans-serif;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stocks_btn:hover {
  background: #ff0000;
  color:#1a0f0a;
  transform: translateX(4px);
  transform: scale(1.2);
}

.trust-block {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.trust-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.trust-text h3 {
  font-family: 'Noto Sans', sans-serif;
  color: white;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 2px;
}

.trust-text p {
  font-family: 'Noto Sans', sans-serif;
  color: #999;
  font-size: 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(232, 185, 106, 0.2);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  height: 100px;
  width: auto;
  margin-bottom: 10px;
}

.footer-brand p {
  font-family: 'Noto Sans', sans-serif;
  color: #999;
  font-size: 16px;
  line-height: 1.4;
}

.footer-col h3 {
  font-family: 'Noto Sans', sans-serif;
  color: white;
  font-size: 15px;
  margin-bottom: 5px;
}

.footer-col a {
  font-family: 'Noto Sans', sans-serif;
  color: #ccc;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #e8b96a;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-socials img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.footer-socials a:hover img {
  filter: invert(72%) sepia(28%) saturate(573%) hue-rotate(357deg) brightness(93%) contrast(90%);
}

.search-wrapper {
  position: relative;
}

.search-dropdown {
  position: absolute;
  top: 130%;
  right: 0;
  left: auto;
  background: #1a0f0a;
  border: 1px solid #e8b96a;
  border-radius: 12px;
  padding: 12px;
  width: 260px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1001;
}

.search-dropdown .search-panel-close {
  display: none;
}

.search-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-dropdown form {
  display: flex;
  gap: 8px;
}

.search-dropdown input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e8b96a;
  background: #2a1810;
  color: #e8b96a;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  outline: none;
}

.search-dropdown input::placeholder {
  color: rgba(232, 185, 106, 0.5);
}

.search-dropdown input:focus {
  border-color: #f5e6c8;
}

.search-dropdown button {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #e8b96a;
  color: #1a0f0a;
  font-weight: bold;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.search-suggestions.has-items {
  display: block;
}

.search-suggestions .suggestion-item,
.search-suggestions .suggestion-empty {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
}

.search-suggestions .suggestion-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f0e6d8;
  text-decoration: none;
}

.search-suggestions .suggestion-item img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.search-suggestions .suggestion-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.search-suggestions .suggestion-price {
  color: #e8b96a;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.search-suggestions .suggestion-empty {
  color: #999;
  font-size: 13px;
}

.search-dropdown button:hover {
  background: rgba(232, 185, 106, 0.8);
}




.auth-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 10, 3, 0.55);
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.auth-overlay.auth-modal {
  opacity: 0;
  pointer-events: none;
}

.auth-overlay.auth-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.auth-overlay.auth-modal.closing {
  opacity: 0;
  pointer-events: none;
}



.auth-overlay.closing {
  opacity: 0;
}




.auth-box {
  position: relative;
  background: #1a0f0a;
  border: 1px solid #e8b96a;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  font-family: 'Noto Sans', sans-serif;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease, opacity 0.25s ease;
  
}

.auth-overlay.closing .auth-box {
  transform: scale(0.92);
  opacity: 0;
}

.auth-box h1 {
  color: #e8b96a;
  font-size: 28px;
  margin-bottom: 25px;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form label {
  color: #ccc;
  font-size: 13px;
  margin-top: 10px;
}

.auth-form input {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(232, 185, 106, 0.3);
  background: #2a1810;
  color: white;
  font-family: 'Noto Sans', sans-serif;
  outline: none;
}

.auth-form input:focus {
  border-color: #e8b96a;
}

.auth-btn {
  margin-top: 25px;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: #e8b96a;
  color: #1a0f0a;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-btn:hover {
  background: rgba(232, 185, 106, 0.85);
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

.auth-switch a {
  color: #e8b96a;
  text-decoration: none;
}

.delivery-text {
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 14px;
  text-align: center;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #e8b96a;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.auth-close:hover {
  background: rgba(232, 185, 106, 0.15);
  color: #f5e6c8;
}

.auth-error {
  color: #ff6b6b;
  font-size: 13px;
  text-align: center;
  margin-bottom: 10px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 25px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(232, 185, 106, 0.15);
}

.profile-label {
  color: #999;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-value {
  color: #f5e6c8;
  font-size: 16px;
  font-family: 'Noto Sans', sans-serif;
}

.logout-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 25px;
  background: transparent;
  border: 1px solid #e8b96a;
  color: #e8b96a;
}

.logout-btn:hover {
  background: rgba(232, 185, 106, 0.1);
}
/*
.blurred-bg {
  filter: blur(10px);
  transform: scale(1.02);
  pointer-events: none;
  user-select: none;
}*/

.profile-box {
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
}

.profile-stats {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.stat-card {
  background: #2a1810;
  border: 1px solid rgba(232, 185, 106, 0.2);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stat-number {
  color: #e8b96a;
  font-size: 28px;
  font-weight: bold;
}

.stat-label {
  color: #999;
  font-size: 12px;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-section {
  margin-top: 28px;
}

.profile-section h2 {
  color: #e8b96a;
  font-size: 16px;
  margin-bottom: 12px;
  font-family: 'Noto Sans', sans-serif;
}

.empty-state {
  color: #999;
  font-size: 13px;
  text-align: center;
  padding: 20px;
  background: rgba(232, 185, 106, 0.05);
  border-radius: 10px;
  border: 1px dashed rgba(232, 185, 106, 0.2);
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-card {
  background: #2a1810;
  border: 1px solid rgba(232, 185, 106, 0.15);
  border-radius: 10px;
  padding: 12px 14px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-date {
  color: #ccc;
  font-size: 12px;
}

.order-status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: capitalize;
}

.status-pending {
  background: rgba(232, 185, 106, 0.15);
  color: #e8b96a;
}

.status-completed {
  background: rgba(80, 200, 120, 0.15);
  color: #50c878;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.order-item-name {
  color: #f5e6c8;
  font-size: 13px;
}

.order-total {
  color: #e8b96a;
  font-size: 13px;
  font-weight: bold;
  text-align: right;
}

.catalog-btn {
  text-decoration: none;
}

.recent-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.catalog-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
}

.catalog-title {
  color: #e8b96a;
  font-family: 'Noto Sans', sans-serif;
  font-size: 36px;
  margin-bottom: 30px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #1a0f0a;
  border: 1px solid rgba(232, 185, 106, 0.2);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 350px;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #030303; 
}

.product-image-wrap .product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.product-image-wrap .favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;   
  object-position: center;
  display: block;
}

.product-info {
  padding: 14px 16px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.product-name {
  color: #f5e6c8;
  font-family: 'Noto Sans', sans-serif;
  font-size: 15px;
  margin-bottom: 4px;
}

.product-category {
  display: flex;
  align-items: center;
  gap: 6px;
  color:#fffefd;
}

.category-icon {
  width: 13px;
  height: 13px;
}

.product-stock {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.in-stock .stock-dot {
  background: #50c878;
}

.out-of-stock .stock-dot {
  background: #ff6b6b;
}

.product-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 16px 16px;
  flex-shrink: 0;
}

.product-actions .add-to-cart-btn,
.product-actions .cart-control {
  flex: 1;
  margin-top: 0;
}

.product-actions .qty-stepper {
  margin-top: 0;
  flex: 1;
}

.cart-icon {
  width: 15px;
  height: 15px;
  margin-right: 6px;
  vertical-align: -2px;
}

.product-price {
  color: #e8b96a;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}

.product-stock {
  font-size: 12px;
}

.low-stock {
  color: #e8973a;
}
.low-stock .stock-dot {
  background: #e8973a;
}

.in-stock {
  color: #50c878;
}

.out-of-stock {
  color: #ff6b6b;
}

.admin-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #1a0f0a;
  border: 1px solid rgba(232, 185, 106, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
}

.admin-form input,
.admin-form textarea {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(232, 185, 106, 0.3);
  background: #2a1810;
  color: white;
  font-family: 'Noto Sans', sans-serif;
  outline: none;
}

.admin-form textarea {
  resize: vertical;
  min-height: 60px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a0f0a;
  border: 1px solid rgba(232, 185, 106, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  color: #f5e6c8;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
}

.admin-delete-btn {
  background: transparent;
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.admin-delete-btn:hover {
  background: rgba(255, 107, 107, 0.1);
}

.admin-file-label {
  color: #ccc;
  font-size: 13px;
  margin-top: 4px;
}

.admin-file-input {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(232, 185, 106, 0.3);
  background: #2a1810;
  color: #ccc;
  font-family: 'Noto Sans', sans-serif;
  cursor: pointer;
}

.admin-current-image {
  max-width: 200px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(232, 185, 106, 0.2);
}

.admin-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #2a1810;
  border-radius: 6px;
  padding: 4px;
}

.admin-item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-edit-btn {
  background: transparent;
  border: 1px solid #e8b96a;
  color: #e8b96a;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
}

.admin-edit-btn:hover {
  background: rgba(232, 185, 106, 0.1);
}

.admin-back-link {
  display: inline-block;
  margin-top: 20px;
  color: #e8b96a;
  text-decoration: none;
  font-size: 14px;
}

.admin-back-link:hover {
  text-decoration: underline;
}

.admin-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 14px;
  cursor: pointer;
}

.admin-checkbox-label input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.admin-page {
  max-width: 1400px;
}

.admin-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.admin-left {
  flex: 1;
  min-width: 0;
}

.admin-right {
  width: 380px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
}

.admin-right .admin-form {
  margin-bottom: 0;
}

.admin-search-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(232, 185, 106, 0.3);
  background: #2a1810;
  color: white;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  outline: none;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.admin-search-input::placeholder {
  color: #a08c72;
}

.admin-search-input:focus {
  border-color: #e8b96a;
}

.admin-empty-state {
  color: #a08c72;
  text-align: center;
  padding: 24px;
  font-family: 'Noto Sans', sans-serif;
}

.product-card {
  position: relative;
}

.product-card .product-price,
.product-card .product-price-row {
  margin-top: auto;
}


.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 16px 0;
}

.product-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 20px;
  font-family: 'Noto Sans', sans-serif;
  width: fit-content;
}

.badge-icon {
  width: 12px;
  height: 12px;
}

.badge-new {
  background: #e8b96a;
  color: #1a0f0a;
}

.badge-sale {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #ff0011;
  color: white;
}

.favorite-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(26, 15, 10, 0.7);
  border: 1px solid rgba(232, 185, 106, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #e8b96a;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, color 0.2s ease;
}

.favorite-btn:hover {
  background: #e8b96a;
  color: #1a0f0a;
}

.favorite-btn svg {
  width: 17px;
  height: 17px;
}

.favorite-btn.active {
  background: #e0202a;
  border-color: #e0202a;
  color: #fff;
}

.favorite-btn.active svg {
  fill: #fff;
  stroke: #fff;
}

.fav-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.fav-nav-link svg {
  cursor: pointer;
}

.fav-nav-link:hover svg,
.fav-nav-link:focus-visible svg {
  color: #e8b96a;
  transform: translateY(-2px);
}

.fav-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #e8b96a;
  color: #1a0f0a;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #e8b96a;
  color: #1a0f0a;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;

}

.product-old-price {
  color: #999;
  font-size: 14px;
  text-decoration: line-through;
}

.product-price-sale {
  color: #ff6b6b;
  margin-bottom: 0;
}

.telegram-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #2AABEE;
    border-radius: 50%;

    color: #fff;
    text-decoration: none;

    transition: .25s ease;
}

.telegram-btn:hover {
    background: #229ED9;
    transform: translateY(-2px) scale(1.05);
}

.telegram-icon {
    width: 24px;
    height: 24px;
}

.addProduct {
  background: #e8b96a;
  color: #1a0f0a;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Noto Sans', sans-serif;
  font-size: 12px;
  width: 100%;
}

.addProduct:hover {
  transform: translateY(-2px) scale(1.05);
  
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 40px;
}

@media (max-width: 1000px) {
  .popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cart-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  min-height: 60vh;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #1a0f0a;
  border: 1px solid rgba(232, 185, 106, 0.15);
  border-radius: 14px;
  padding: 14px 18px;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #2a1810;
  border-radius: 10px;
  padding: 8px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  color: #f5e6c8;
  font-size: 15px;
  font-family: 'Noto Sans', sans-serif;
  margin-bottom: 4px;
}

.cart-item-price {
  color: #999;
  font-size: 13px;
}

.cart-item-warning {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 4px;
}

.cart-item-qty-form {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cart-qty-input {
  width: 60px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(232, 185, 106, 0.3);
  background: #2a1810;
  color: white;
  text-align: center;
}

.cart-qty-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e8b96a;
  background: transparent;
  color: #e8b96a;
  cursor: pointer;
  font-size: 12px;
}

.cart-qty-btn:hover {
  background: rgba(232, 185, 106, 0.1);
}

.cart-item-subtotal {
  color: #e8b96a;
  font-weight: bold;
  font-size: 15px;
  min-width: 80px;
  text-align: right;
}

.cart-remove-btn {
  background: transparent;
  border: none;
  color: #ff6b6b;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.cart-remove-btn:hover {
  color: #ff3b3b;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a0f0a;
  border: 1px solid #e8b96a;
  border-radius: 14px;
  margin-bottom: 20px;
}

.cart-total-label {
  color: #ccc;
  font-size: 16px;
}

.cart-total-value {
  color: #e8b96a;
  font-size: 24px;
  font-weight: bold;
}

.cart-checkout-btn {
  width: 100%;
}

.add-to-cart-btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #e8b96a;
  color: #1a0f0a;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.add-to-cart-btn:hover {
  background: rgba(232, 185, 106, 0.85);
}

.add-to-cart-btn.disabled {
  background: rgba(232, 185, 106, 0.2);
  color: #999;
  cursor: not-allowed;
}

.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  background: #2a1810;
  border: 1px solid rgba(232, 185, 106, 0.3);
  border-radius: 8px;
  padding: 6px 10px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: #e8b96a;
  color: #1a0f0a;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.qty-btn:hover {
  background: rgba(232, 185, 106, 0.85);
}

.qty-btn:disabled {
  background: rgba(232, 185, 106, 0.2);
  color: #999;
  cursor: not-allowed;
}

.qty-value {
  color: #f5e6c8;
  font-size: 15px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

.checkout-summary {
  background: #1a0f0a;
  border: 1px solid rgba(232, 185, 106, 0.15);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.checkout-subtitle {
  color: #e8b96a;
  font-size: 15px;
  margin-bottom: 12px;
  font-family: 'Noto Sans', sans-serif;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  color: #f5e6c8;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(232, 185, 106, 0.08);
}

.checkout-row:last-child {
  border-bottom: none;
}

.contact-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f5e6c8;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 14px;
}

.contact-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #e8b96a;
  cursor: pointer;
}

.contact-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.contact-input {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(232, 185, 106, 0.3);
  background: #2a1810;
  color: white;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  outline: none;
}

.contact-input:focus {
  border-color: #e8b96a;
}

.contact-platform-row {
  display: flex;
  gap: 10px;
}

.contact-platform-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid rgba(232, 185, 106, 0.3);
  background: #2a1810;
  color: #f5e6c8;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-platform-btn:hover {
  border-color: #e8b96a;
}

.contact-platform-btn.active {
  background: #e8b96a;
  color: #1a0f0a;
  border-color: #e8b96a;
}

/* ===== Планшеты ===== */
@media (max-width: 1024px) {
  .main_page_welcome_block {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .welcome-text h1 {
    font-size: 48px;
  }

  .hero-image {
    width: 100%;
    max-width: 500px;
    margin: 0;
  }

  .features {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .katalog_main {
    flex-wrap: wrap;
  }

  .katalog_item_main {
    min-width: 45%;
  }

  .katalog_main h1 {
    font-size: 24px;
  }

  .popular-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px 30px;
  }

  .main_page_stocks_title h1 {
    font-size: 48px;
    margin-left: 30px;
  }

  .main_page_stocks_title h2 {
    font-size: 24px;
    margin-left: 30px;
  }

  .stocks_btn {
    margin-left: 30px;
  }
}

/* ===== Телефоны ===== */
@media (max-width: 768px) {
  .nav {
    padding: 10px 16px;
    height: auto;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .nav-logo img {
    height: 80px;
  }

  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(232, 185, 106, 0.4);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #e8b96a;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.open .nav-burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav.open .nav-burger span:nth-child(2) {
    opacity: 0;
  }

  .nav.open .nav-burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: none;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 16px;
    background: #1a0f0a;
    border-bottom: 1px solid rgba(232, 185, 106, 0.25);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
  }

  .nav.open .nav-menu {
    opacity: 1;
    visibility: visible;
  }

  .nav-item {
    padding: 13px 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(232, 185, 106, 0.08);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-item:hover {
    transform: none;
  }

  .nav-icons {
    gap: 8px;
  }

  .nav-icons a,
  .search-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    border-radius: 10px;
  }

  .nav-icons svg,
  .search-wrapper svg {
    width: 24px;
    height: 24px;
  }

  .nav-icons img {
    width: 20px;
    height: 20px;
  }

  .search-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: none;
    border: none;
    border-radius: 0;
    padding: 24px 20px;
    background: #1a0f0a;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    overscroll-behavior: none;
  }

  .search-dropdown .search-panel-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #e8b96a;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    font-family: 'Noto Sans', sans-serif;
  }

  .search-dropdown::before {
    content: 'Поиск по каталогу';
    display: block;
    color: #e8b96a;
    font-family: 'Noto Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-right: 48px;
  }

  .search-dropdown form {
    flex-direction: column;
    gap: 10px;
  }

  .search-dropdown input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
  }

  .search-dropdown button {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
  }

  .search-suggestions {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  input, select, textarea {
    font-size: 16px;
  }

  .welcome-text h1 {
    font-size: 32px;
  }

  .welcome-text h2 {
    font-size: 14px;
    padding: 10px 16px;
  }

  .catalog-btn {
    padding: 12px 20px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }

  .katalog_main {
    padding: 20px;
    gap: 12px;
  }

  .katalog_main img {
    max-width: 48px;
  }

  .katalog_item_main {
    min-width: 100%;
    padding: 14px;
    gap: 12px;
  }

  .katalog_main h1 {
    font-size: 18px;
  }

  .katalog_main h2 {
    font-size: 12px;
  }
.catalog-page,
.cart-page,
.admin-page {
  padding: 20px;
}

.admin-layout {
  flex-direction: column;
}

.admin-right {
  width: 100%;
  position: static; 
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
  .popular_text {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    text-align: center;
  }

  .popular_text h1 {
    font-size: 26px;
  }

  .see-all-link {
    align-self: center;
    margin-top: 4px;
  }

  .popular-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px 24px;
  }

  .main_page_stocks {
    border-radius: 24px;
    min-height: 280px;
  }

  .main_page_stocks_title h1 {
    font-size: 28px;
    margin-left: 20px;
    padding-top: 20px;
  }

  .main_page_stocks_title h2 {
    font-size: 16px;
    margin-left: 20px;
  }

  .stocks_btn {
    width: 180px;
    height: 48px;
    font-size: 14px;
    margin-left: 20px;
    margin-bottom: 20px;
  }

  .trust-block {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .footer {
    flex-direction: column;
    padding: 30px 20px;
    gap: 24px;
  }

  .catalog-page,
  .cart-page,
  .admin-page {
    padding: 20px;
  }

  .catalog-title {
    font-size: 26px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cart-item {
    flex-wrap: wrap;
    gap: 10px;
  }

  .cart-item-info {
    width: 100%;
    flex: 1 1 100%;
    order: 1;
    min-width: 0;
  }

  .cart-item-image {
    order: 0;
  }

  .cart-item .qty-stepper {
    order: 2;
    flex: 1;
    margin-top: 0;
  }

  .cart-item-subtotal {
    order: 3;
    min-width: auto;
  }

  .cart-remove-btn {
    order: 4;
    font-size: 20px;
    padding: 8px 10px;
  }

  .cart-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .search-dropdown {
    left: -60px;
    right: -20px;
    width: auto;
  }

  .product-card {
    min-height: 300px;
  }

  .product-image-wrap {
    height: 160px;
  }

  .product-info {
    padding: 12px 12px 4px;
    gap: 6px;
  }

  .product-name {
    font-size: 14px;
  }

  .product-actions {
    padding: 0 12px 12px;
  }

  .filters-panel {
    padding: 14px;
  }

  .filters-row {
    gap: 10px;
  }

  .filter-group {
    flex: 1 1 100%;
  }

  .filter-group select {
    width: 100%;
  }

  .price-inputs input {
    flex: 1;
    width: auto;
  }

  .filters-checkboxes .filter-checkbox {
    flex: 1 1 auto;
  }

  .btn-filter-apply {
    margin-left: 0;
  }

  .trust-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .checkout-row {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .order-success-box {
    padding: 32px 20px;
  }

  .admin-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .auth-box {
    padding: 24px;
    max-width: 100%;
    margin: 0 16px;
  }

  .profile-box {
    max-height: 90vh;
  }
}

/* ===== Маленькие телефоны ===== */
@media (max-width: 400px) {
  .welcome-text h1 {
    font-size: 26px;
  }

  .popular-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nav-logo img {
    height: 38px;
  }

  .nav {
    padding: 10px 12px;
    gap: 6px;
  }

  .nav-burger {
    width: 40px;
    height: 40px;
  }

  .nav-icons {
    gap: 4px;
  }

  .nav-icons a,
  .search-wrapper {
    min-width: 36px;
    min-height: 36px;
  }

  .nav-icons svg,
  .search-wrapper svg {
    width: 22px;
    height: 22px;
  }

  .main_page_stocks_title h1 {
    font-size: 22px;
  }

  .katalog_item_main {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
    gap: 10px;
  }

  .katalog_item_main img {
    max-width: 64px;
  }

  .favorite-btn {
    width: 40px;
    height: 40px;
  }

  .error-404-code {
    font-size: 90px;
  }

  .order-success-box h1 {
    font-size: 22px;
  }
}

.error-404-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #160A03;
  text-align: center;
  gap: 16px;
}

.error-404-code {
  font-family: 'Noto Sans', sans-serif;
  font-size: 140px;
  font-weight: 900;
  color: #ff0011;
  text-shadow: 0 0 30px rgba(255, 0, 17, 0.6);
  line-height: 1;
}

.error-404-text {
  color: #ccc;
  font-family: 'Noto Sans', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.error-404-btn {
  margin-top: 10px;
  padding: 14px 32px;
  border: 1px solid #ff0011;
  border-radius: 10px;
  color: #ff0011;
  text-decoration: none;
  font-family: 'Noto Sans', sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.error-404-btn:hover {
  background: #ff0011;
  color: #160A03;
}

.btn-admin {
    display: inline-block;
    background-color:#e8b96a;
    color:#160A03;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.2s;
    font-family: 'Noto Sans', sans-serif;
}

.vk-verify-block{
  color: #e8b96a;
  font-family: 'Noto Sans', sans-serif;
}

.filters-panel {
    background: #24160e;
    border: 1px solid rgba(232, 185, 106, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filters-row + .filters-row {
    margin-top: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 13px;
    color: #e8b96a;
    opacity: 0.85;
}

.filter-group select,
.price-inputs input {
    background: #1a0f0a;
    border: 1px solid rgba(232, 185, 106, 0.3);
    color: #f0e6d8;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'Noto Sans', sans-serif;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs input {
    width: 80px;
}

.price-inputs span {
    color: #e8b96a;
    opacity: 0.6;
}

.filters-checkboxes {
    align-items: center;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f0e6d8;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 14px;
    border: 1px solid rgba(232, 185, 106, 0.2);
    border-radius: 8px;
    background: #1a0f0a;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-checkbox:hover {
    border-color: rgba(232, 185, 106, 0.5);
    background: rgba(232, 185, 106, 0.06);
}

.filter-checkbox:has(input:checked) {
    border-color: #e8b96a;
    background: rgba(232, 185, 106, 0.12);
    color: #e8b96a;
    box-shadow: 0 0 0 1px rgba(232, 185, 106, 0.2), 0 0 12px rgba(232, 185, 106, 0.1);
}

.filter-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid rgba(232, 185, 106, 0.5);
    border-radius: 6px;
    background: #24160e;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin: 0;
}

.filter-checkbox input[type="checkbox"]:hover {
    border-color: #e8b96a;
}

.filter-checkbox input[type="checkbox"]:checked {
    background: #e8b96a;
    border-color: #e8b96a;
}

.filter-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #160a03;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.filter-checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid #e8b96a;
    outline-offset: 2px;
}

.btn-filter-apply {
    background: #e8b96a;
    color: #1a0f0a;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
}

.btn-filter-reset {
    color: #e8b96a;
    opacity: 0.7;
    text-decoration: underline;
    font-size: 14px;
}

.nav-logo a {
    display: block;
}

.order-success-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.order-success-box {
  text-align: center;
  background: #1a0f0a;
  border: 1px solid rgba(232, 185, 106, 0.2);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 420px;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.order-success-box h1 {
  color: #e8b96a;
  font-size: 28px;
  margin-bottom: 12px;
}

.order-success-box p {
  color: #ccc;
  font-size: 15px;
  margin-bottom: 24px;
}

.product-attribute {
    font-size: 0.85rem;
    color: #b8a082;
    margin: 2px 0 8px;
}

.admin-attribute-label {
    display: block;
    margin-top: 4px;
    font-size: 0.9rem;
    color: #b8a082;
}

.admin-checkbox-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #4a2f1f;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.product-set-contents {
    font-size: 0.85rem;
    color: #b8a082;
    margin: 2px 0 8px;
}

.product-set-contents .set-item {
    display: block;
}

.admin-field-group {
    border: 1px solid #4a2f1f;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 4px 0;
    background: rgba(232, 185, 106, 0.04);
}

.admin-field-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e8b96a;
    margin-bottom: 6px;
}

.admin-field-group input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.admin-field-hint {
    font-size: 0.78rem;
    color: #8a7560;
    margin: 6px 0 0;
}

.admin-checkbox-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #4a2f1f;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    background: #1a0f0a;
}

.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    color: #ccc;
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}

.auth-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: #e8b96a;
    cursor: pointer;
}

.auth-consent a {
    color: #e8b96a;
    text-decoration: none;
}

.auth-consent a:hover {
    text-decoration: underline;
}

.auth-consent + .auth-consent {
    margin-top: 10px;
}

.policy-page {
    display: flex;
    justify-content: center;
    padding: 60px 20px 80px;
    background: #160A03;
    min-height: 100vh;
}

.policy-box {
    max-width: 820px;
    width: 100%;
    background: #1a0f0a;
    border: 1px solid rgba(232, 185, 106, 0.35);
    border-radius: 20px;
    padding: 48px 56px;
    font-family: 'Noto Sans', sans-serif;
    color: #f0e6d8;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.policy-box h1 {
    color: #e8b96a;
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.policy-box h2 {
    color: #e8b96a;
    font-size: 18px;
    margin: 32px 0 12px;
}

.policy-box p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.policy-list {
    margin: 0 0 14px 22px;
}

.policy-list li {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 4px;
}

.policy-date {
    color: #9a8570;
    font-size: 14px;
}

@media (max-width: 640px) {
    .policy-box {
        padding: 32px 22px;
    }
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 18px;
    width: calc(100% - 32px);
    max-width: 680px;
    background: #1a0f0a;
    border: 1px solid #e8b96a;
    border-radius: 16px;
    padding: 20px 24px;
    font-family: 'Noto Sans', sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner.closing {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
    pointer-events: none;
}

.cookie-banner-text p {
    color: #f0e6d8;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-text a {
    color: #e8b96a;
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.cookie-btn-accept {
    margin-top: 0;
    padding: 12px 22px;
    font-size: 14px;
}

.cookie-btn-reject {
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(232, 185, 106, 0.35);
    background: transparent;
    color: #e8b96a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Noto Sans', sans-serif;
}

.cookie-btn-reject:hover {
    background: rgba(232, 185, 106, 0.12);
}

@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        left: 16px;
        right: 16px;
        transform: none;
        width: auto;
    }

    .cookie-banner.closing {
        transform: translateY(12px);
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-btn-accept, .cookie-btn-reject {
        flex: 1;
    }
}

/* ===== Отключение ховеров на тач-устройствах (телефоны, планшеты) ===== */
@media (hover: none) and (pointer: coarse) {
  .see-all-link:hover {
    color: #e8b96a;
    transform: none;
  }

  .nav-item:hover {
    color: rgb(255, 255, 255);
    box-shadow: none;
    transform: none;
  }

  .nav-icons a:hover svg,
  .search-wrapper:hover svg {
    transform: none;
    color: inherit;
  }

  .catalog-btn:hover {
    background: #e8b96a;
    transform: none;
  }

  .catalog-btn:hover .btn-arrow {
    transform: none;
  }

  .katalog_item_main:hover {
    background: #1a0f0a;
    transform: none;
    box-shadow: none;
  }

  .popular_text h2:hover {
    transform: none;
  }

  .stocks_btn:hover {
    background: #1a0f0a;
    transform: none;
  }

  .footer-col a:hover {
    color: #ccc;
  }

  .footer-socials a:hover img {
    filter: brightness(0) invert(1);
  }

  .search-dropdown button:hover {
    background: #e8b96a;
  }

  .auth-btn:hover {
    background: #e8b96a;
  }

  .auth-close:hover {
    background: transparent;
    color: #e8b96a;
  }

  .logout-btn:hover {
    background: transparent;
  }

  .product-card:hover {
    transform: none;
    box-shadow: none;
  }

  .favorite-btn:hover {
    background: rgba(26, 15, 10, 0.7);
    color: #e8b96a;
  }

  .fav-nav-link:hover svg {
    color: #fff;
    transform: none;
  }

  .telegram-btn:hover {
    background: #2AABEE;
    transform: none;
  }

  .addProduct:hover {
    transform: none;
  }

  .cart-qty-btn:hover {
    background: transparent;
  }

  .cart-remove-btn:hover {
    color: #ff6b6b;
  }

  .add-to-cart-btn:hover {
    background: #e8b96a;
  }

  .qty-btn:hover {
    background: #e8b96a;
  }

  .error-404-btn:hover {
    background: transparent;
    color: #ff0011;
  }

  .filter-checkbox:hover {
    border-color: rgba(232, 185, 106, 0.2);
    background: #1a0f0a;
  }

  .filter-checkbox input[type="checkbox"]:hover {
    border-color: rgba(232, 185, 106, 0.5);
  }

  .auth-consent a:hover {
    text-decoration: none;
  }

  .cookie-banner-text a:hover {
    text-decoration: none;
  }

  .cookie-btn-reject:hover {
    background: transparent;
  }
}