/* Tuttolanno Theme Stylesheet */

/* Base Styles */
body {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  color: #000;
  background: #fff;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1400px;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .container {
    max-width: 1400px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 1400px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }
}

/* Header Styles */
.tuttolanno-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 25px;
}

.header-top {
  padding: 20px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #000;
}

.header-logo-image {
  max-height: 40px;
  width: auto;
  display: block;
}

.logo-icon {
  font-size: 24px;
  font-weight: bold;
  color: #000;
  line-height: 1;
}

.logo-text {
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #000;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-end;
}

.header-icon {
  color: #000;
  font-size: 18px;
  text-decoration: none;
  transition: opacity 0.3s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.header-icon:hover {
  opacity: 0.7;
}

.header-icon i {
  display: block;
}

.header-icon.icon-outline {
  position: relative;
}

.header-icon.icon-outline i {
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1.5px #000;
  text-stroke: 1.5px #000;
  display: inline-block;
}

/* Fallback for browsers that don't support text-stroke */
@supports not (-webkit-text-stroke: 1px #000) {
  .header-icon.icon-outline i {
    color: #000;
    opacity: 0.3;
  }
}

.header-icon.icon-outline i.fa-shopping-bag {
  -webkit-text-stroke: 2px #000;
  text-stroke: 2px #000;
}

.cart-icon {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #666;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
}

.header-search {
  padding: 15px 0;
  border-top: 1px solid #e0e0e0;
  background: #fff;
}

/* Navigation Styles */
.main-nav {
  background: transparent;
  border: none;
}

.main-nav.mobile-nav {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  display: none;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
}

.nav-menu li {
  margin: 0;
  position: relative;
}

.nav-menu li a {
  color: #000;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0;
  display: block;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.nav-menu li a:hover {
  opacity: 0.7;
}

/* Submenu Styles */
.nav-menu li.has-submenu {
  position: relative;
}

.nav-menu li.has-submenu .submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px 40px;
  min-width: 600px;
  display: none;
  z-index: 1000;
  margin-top: 10px;
}

.nav-menu li.has-submenu:hover .submenu {
  display: block;
}

.submenu-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 40px;
}

.submenu-content a {
  color: #000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 5px 0;
  transition: opacity 0.3s;
}

.submenu-content a:hover {
  opacity: 0.7;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #000;
  font-size: 18px;
  padding: 0;
  cursor: pointer;
}

/* Footer Styles */
.tuttolanno-footer {
  background: #000;
  color: #fff;
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-logo {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.logo-icon-wrapper {
  margin-bottom: 10px;
}

.footer-logo .logo-icon {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  display: block;
  line-height: 1;
}

.logo-divider {
  width: 100%;
  max-width: 200px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 10px 0;
}

.footer-logo .logo-text {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  display: block;
  text-align: center;
  margin-top: 5px;
}

.footer-logo-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0px;
  vertical-align: top;
}

.copyright {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  margin: 0;
  opacity: 0.8;
}

.footer-bottom {
  margin-top: 0;
}

.tuttolanno-footer h5 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0;
}

.footer-section {
  margin-bottom: 0;
}

.footer-section-toggle {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  cursor: default;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: #fff;
  min-height: 24px;
}

.footer-section-toggle h5 {
  margin: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}

.footer-chevron {
  display: none;
  color: #fff;
  font-size: 12px;
  transition: transform 0.3s;
  margin-left: 10px;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  line-height: 12px;
}

.footer-section-content {
  margin: 0;
  display: block !important;
}

.tuttolanno-footer ul.list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tuttolanno-footer ul.list-unstyled li {
  margin-bottom: 12px;
}

.tuttolanno-footer ul.list-unstyled li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: opacity 0.3s;
}

.tuttolanno-footer ul.list-unstyled li a:hover {
  opacity: 0.7;
}

.tuttolanno-footer hr {
  border-color: #333;
  margin: 40px 0 20px;
}

.privacy-link {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.privacy-link:hover {
  opacity: 1;
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: flex-end;
}

.payment-logo {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
}

.payment-image {
  max-height: 30px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 991px) {
  .header-row .main-nav {
    display: none;
  }
  
  .main-nav.mobile-nav {
    display: block;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 0;
    display: none;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .header-icons {
    gap: 15px;
  }
  
  .nav-menu li.has-submenu .submenu {
    position: static;
    transform: none;
    min-width: auto;
    width: 100%;
    margin-top: 0;
    border: none;
    box-shadow: none;
    padding: 10px 0 10px 20px;
  }
  
  .submenu-content {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .header-top {
    padding: 15px 0;
  }
  
  .logo-text {
    font-size: 14px;
  }
  
  .tuttolanno-footer {
    padding: 40px 0 20px;
  }
  
  .tuttolanno-footer .col-sm-6,
  .tuttolanno-footer .col-md-2,
  .tuttolanno-footer .col-md-3 {
    margin-bottom: 0;
    padding-bottom: 20px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
  }
  
  .tuttolanno-footer .col-sm-6:last-child,
  .tuttolanno-footer .col-md-2:last-child,
  .tuttolanno-footer .col-md-3:last-child {
    border-bottom: none;
  }
  
  .footer-chevron {
    display: inline-block !important;
  }
  
  .footer-section-toggle {
    margin-bottom: 15px;
    cursor: pointer;
    align-items: center;
    padding: 5px 0;
  }
  
  .footer-section-toggle h5 {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.04em;
  }
  
  .footer-section-content {
    padding-left: 0;
    display: none !important;
  }
  
  .footer-section-content[style*="display: block"] {
    display: block !important;
  }
  
  .footer-section[aria-expanded="true"] .footer-section-content {
    display: block !important;
  }
  
  .payment-methods {
    justify-content: flex-start;
    margin-top: 15px;
  }
  
  .footer-logo-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
  }
  
  .footer-logo {
    margin-bottom: 15px;
  }
  
  .footer-bottom {
    text-align: center;
  }
  
  .footer-bottom .col-sm-4 {
    margin-bottom: 15px;
    text-align: center !important;
  }
  
  .footer-bottom .col-sm-4:last-child {
    margin-bottom: 0;
  }
  
  .copyright {
    margin: 0;
  }
  
  .tuttolanno-footer .col-md-3:first-child {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
  }
}

/* Breadcrumb Styles */
.breadcrumb-wrapper {
  margin: 20px 0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: #000;
}

.breadcrumb-link {
  color: #000;
  text-decoration: none;
  transition: opacity 0.3s;
}

.breadcrumb-link:hover {
  opacity: 0.7;
}

.breadcrumb-separator {
  color: #000;
  opacity: 0.5;
}

.breadcrumb-current {
  color: #000;
  opacity: 0.7;
}

/* Standard Bootstrap breadcrumb override */
.breadcrumb {
  background: none;
  padding: 0;
  margin: 20px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: #000;
  border-radius: 0;
}

.breadcrumb > li {
  display: flex;
  align-items: center;
}

.breadcrumb > li + li:before {
  content: "|";
  padding: 0;
  color: #000;
  opacity: 0.5;
  margin: 0 8px;
}

.breadcrumb > li > a {
  color: #000;
  text-decoration: none;
  transition: opacity 0.3s;
}

.breadcrumb > li > a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.breadcrumb > .active {
  color: #000;
  opacity: 0.7;
}

/* Category Title */
.category-title {
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 30px 0;
  color: #000;
}

/* Sorting Styles */
.category-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
  padding-top: 20px;
}

.sorting-wrapper {
  position: relative;
}

.sorting-trigger {
  border: 1px solid #000;
  background: #fff;
  padding: 8px 30px 8px 12px;
  font-size: 15px;
  font-weight: 400;
  color: #000;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  min-width: 150px;
}

.sorting-trigger:hover {
  background-color: #f5f5f5;
}

.sorting-trigger i {
  font-size: 12px;
  transition: transform 0.3s;
  margin-left: auto;
}

.sorting-wrapper.active .sorting-trigger i {
  transform: rotate(180deg);
}

.sorting-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 5px;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
  border-radius: 4px;
  overflow: hidden;
}

.sorting-dropdown.active {
  display: block;
}

.sorting-option {
  display: block;
  width: 100%;
  padding: 12px 15px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 400;
  color: #000;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

.sorting-option:last-child {
  border-bottom: none;
}

.sorting-option:hover {
  background-color: #f5f5f5;
}

.sorting-option.active {
  background-color: #f0f0f0;
  font-weight: 600;
}

/* Product Card Styles */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.featured-products .products-grid {
    grid-template-columns: repeat(6, 1fr);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #fff;
  margin-bottom: 15px;
  overflow: hidden;
}

.product-image-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.product-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
  opacity: 0;
}

.product-card-image.active {
  opacity: 1;
}

.product-image-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}

.product-image-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.product-image-dot.active {
  background: #000;
  width: 8px;
  height: 8px;
}

.product-card-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.product-stickers {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-sticker {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.product-sticker-new {
  background: #FFD700;
  color: #000;
}

.product-sticker-discount {
  background: #FF0000;
  color: #fff;
}

.product-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s;
  padding: 0;
}

.product-wishlist-btn:hover {
  background: #fff;
  transform: scale(1.1);
}

.product-wishlist-btn i {
  color: #000;
  font-size: 16px;
}

.product-card-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-colors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.product-color-item {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
  z-index: 2;
}

.product-color-item:hover {
  transform: scale(1.2);
  border-color: #000;
}

.product-card-name {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-card-name a {
  color: #000;
  text-decoration: none;
  transition: opacity 0.3s;
}

.product-card-name a:hover {
  opacity: 0.7;
}

.product-card-price-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
}

.price-new {
  color: #000;
}

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

.price-current {
  color: #000;
}

.product-cart-btn {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 0;
}

.product-card:hover .product-cart-btn {
  opacity: 1;
}

.product-cart-btn i {
  color: #000;
  font-size: 18px;
}

.product-cart-btn:hover {
  transform: scale(1.1);
}

/* Load More Button */
.load-more-wrapper {
  text-align: center;
  margin: 40px 0;
}

.load-more-btn {
  background: transparent;
  border: 1px solid #000;
  padding: 12px 40px;
  font-size: 15px;
  font-weight: 400;
  color: #000;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: none;
}

.load-more-btn:hover {
  background: #000;
  color: #fff;
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.results-info {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-top: 20px;
}

/* Responsive Product Grid */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .category-toolbar {
    justify-content: center;
  }
  
  .sorting-dropdown {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Fast OC Filters Styles for Tuttolanno Theme */
.tuttolanno-filters {
  background: #fff;
  border: 0px solid #e0e0e0;
  padding: 0;
}

.filters-container {
  padding: 0px;
}

.filter-section {
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0;
}

.filter-section:last-of-type {
  border-bottom: none;
}

.filter-section-header {
  padding: 15px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.filter-title {
  font-size: 15px;
  font-weight: 400;
  color: #000;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  text-transform: none;
}

.filter-chevron {
  font-size: 12px;
  color: #000;
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.filter-section-header.active .filter-chevron,
.filter-section-content:not(.collapsed) ~ .filter-section-header .filter-chevron {
  transform: rotate(180deg);
}

.filter-section-content {
  padding-bottom: 15px;
  transition: all 0.3s ease;
}

.filter-section-content.collapsed {
  display: none;
}

.filter-checkbox-item,
.filter-radio-item {
  margin-bottom: 10px;
}

.filter-checkbox-item label,
.filter-radio-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  color: #000;
  margin: 0;
}

.filter-checkbox-item input[type="checkbox"],
.filter-checkbox-item input[type="radio"],
.filter-radio-item input[type="checkbox"],
.filter-radio-item input[type="radio"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  border: 1px solid #000;
  border-radius: 0;
  position: relative;
  margin-top: 2px;
}

.filter-checkbox-item input[type="checkbox"]:checked,
.filter-checkbox-item input[type="radio"]:checked,
.filter-radio-item input[type="checkbox"]:checked,
.filter-radio-item input[type="radio"]:checked {
  background: #fff;
  border: 1px solid #000;
}

.filter-checkbox-item input[type="checkbox"]:checked::after,
.filter-radio-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #000;
}

.filter-checkbox-item input[type="radio"],
.filter-radio-item input[type="radio"] {
  border-radius: 50%;
}

.filter-checkbox-item input[type="radio"]:checked::after,
.filter-radio-item input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
}

/* Стили для всех чекбоксов в фильтрах */
#fast_oc_filters input[type="checkbox"],
#fast_oc_filters input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  border: 1px solid #000;
  border-radius: 0;
  position: relative;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

#fast_oc_filters input[type="checkbox"]:checked,
#fast_oc_filters input[type="radio"]:checked {
  background: #fff;
  border: 1px solid #000;
}

#fast_oc_filters input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #000;
}

#fast_oc_filters input[type="radio"] {
  border-radius: 50%;
}

#fast_oc_filters input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
}

.checkbox-label,
.radio-label {
  flex: 1;
}

/* Price Filter */
.price-filter-wrapper {
  margin-bottom: 15px;
}

.price-input {
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 4px;
}

#slider-range {
  margin: 15px 0;
}

.price-range-display {
  text-align: center;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 400;
  color: #000;
}

.price-min,
.price-max {
  font-weight: 500;
}

/* Selected Filters Tags */
.selected-filters-tags {
  margin-top: 20px;
  margin-bottom: 15px;
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
}

.selected-filters-tags:not(:empty) {
  display: flex;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  color: #000;
  gap: 8px;
}

.filter-tag-remove {
  cursor: pointer;
  color: #666;
  font-size: 16px;
  line-height: 1;
  transition: color 0.2s;
}

.filter-tag-remove:hover {
  color: #000;
}

/* Filter Actions */
.filters-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.btn-filter-show {
  flex: 1;
  padding: 12px 24px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.3s;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
}

.btn-filter-show:hover {
  background: #333;
}

.btn-filter-reset {
  flex: 1;
  padding: 12px 24px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.btn-filter-reset:hover {
  background: #f5f5f5;
}

/* Filter Group Items */
.filter-group-items {
  margin-top: 10px;
}

.filter-group-wrapper {
  margin-bottom: 15px;
}

.filter-group-content,
.filter-option-content,
.filter-attribute-content {
  padding-bottom: 10px;
  transition: all 0.3s ease;
}

.filter-group-content.collapsed,
.filter-option-content.collapsed,
.filter-attribute-content.collapsed {
  display: none;
}

/* Image Holder */
.fast_oc_filters_image_holder {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.fast_oc_filters_image_holder label {
  margin: 0;
  cursor: pointer;
}

.fast_oc_filters_image_holder img {
  width: 40px;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.fast_oc_filters_image_holder label.selected img,
.fast_oc_filters_image_holder label:hover img {
  border-color: #000;
}

/* Range Slider */
.range-slider-container {
  position: relative;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  margin: 20px 0;
}

.range-slider-track {
  position: absolute;
  height: 100%;
  background: #000;
  border-radius: 3px;
}

.range-slider-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #000;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
}

.range-slider-values {
  text-align: center;
  margin-top: 10px;
  font-size: 15px;
  color: #000;
}

/* Responsive */
@media (max-width: 768px) {
  .filters-container {
    padding: 15px;
  }
  
  .filter-section-header {
    padding: 12px 0;
  }
  
  .filters-actions {
    flex-direction: column;
  }
  
  .btn-filter-show,
  .btn-filter-reset {
    width: 100%;
  }
}

/* Product Page Styles */
.product-page-wrapper {
  margin-top: 30px;
}

/* Product Images Grid - вертикальные, по две в ряд */
.product-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.product-image-item {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

.product-image-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.product-grid-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info {
  padding-left: 30px;
}

/* Stickers над заголовком */
.product-stickers-top {
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-sticker {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.product-sticker-new {
  background: #000;
  color: #fff;
}

.product-sticker-discount {
  background: #FF0000;
  color: #fff;
}

.product-title {
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  color: #000;
}

.product-price-block {
  margin-bottom: 30px;
}

.product-price,
.product-price-special {
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #000;
}

.product-price-special .price-new {
  color: #000;
  margin-right: 15px;
}

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

.product-tax {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.product-color-option {
  margin-bottom: 30px;
}

.product-option-label {
  display: block;
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 15px;
  color: #000;
}

.product-article {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* Color Option - квадратиками */
/* Опции цвета - квадратиками в сетке 6 колонок (только на странице товара) */
.product-color-option .product-colors-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.product-color-option .product-color-option-label {
  display: block;
  cursor: pointer;
  position: relative;
}

.product-color-option .product-color-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Переопределяем стили для .product-color-item только внутри .product-color-option */
.product-color-option .product-color-option-label .product-color-item {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  padding-bottom: 100% !important;
  border: 1px solid #e0e0e0 !important;
  background-size: cover !important;
  background-position: center !important;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  border-radius: 0 !important;
  margin: 0;
  transform: none !important;
}

.product-color-option .product-color-option-label .product-color-input:checked + .product-color-item {
  border-color: #000 !important;
  border-width: 2px !important;
  transform: scale(1.1);
}

.product-color-option .product-color-option-label:hover .product-color-item {
  border-color: #000 !important;
  transform: none !important;
}

/* Переопределяем общий hover для категорий, чтобы не применялся на странице товара */
.product-color-option .product-color-item:hover {
  transform: none !important;
}

.product-stock {
  margin-bottom: 25px;
  font-size: 15px;
}

.product-stock.in-stock {
  color: #28a745;
}

.product-option-group {
  margin-bottom: 25px;
}

.product-option-group.required .product-option-label::after {
  content: ' *';
  color: #f00;
}

.product-option-select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  font-size: 15px;
  border-radius: 0;
}

.product-option-radio-group,
.product-option-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-option-radio-item,
.product-option-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #e0e0e0;
  transition: border-color 0.3s;
}

.product-option-radio-item:hover,
.product-option-checkbox-item:hover {
  border-color: #000;
}

.product-option-radio-item input[type="radio"],
.product-option-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.product-option-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 1px solid #e0e0e0;
}

.option-price {
  color: #666;
  font-size: 14px;
}

/* All option types */
.product-option-text,
.product-option-textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  font-size: 15px;
  border-radius: 0;
  font-family: inherit;
}

.product-option-textarea {
  resize: vertical;
  min-height: 100px;
}

.product-option-file {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #000;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.product-option-file:hover {
  background: #f5f5f5;
  border-color: #000;
}

.product-option-date,
.product-option-datetime,
.product-option-time {
  width: 100%;
}

.product-option-date .form-control,
.product-option-datetime .form-control,
.product-option-time .form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  font-size: 15px;
  border-radius: 0;
}

.product-add-to-cart {
  margin-top: 30px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 15px;
  align-items: stretch;
}

.product-cart-button,
.product-oneclick-button {
  flex: 1;
  padding: 15px 20px;
  border: none;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 0;
  white-space: nowrap;
}

.product-cart-button {
  background: #000;
  color: #fff;
}

.product-cart-button:hover {
  background: #333;
}

.product-oneclick-button {
  background: #fff;
  color: #000;
  border: 1px solid #e0e0e0;
}

.product-oneclick-button:hover {
  background: #f5f5f5;
  border-color: #000;
}

.product-actions {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.product-actions .btn-link {
  color: #000;
  text-decoration: none;
  font-size: 15px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.product-actions .btn-link:hover {
  text-decoration: underline;
}

/* Description and Characteristics */
.product-description,
.product-characteristics {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #f0f0f0;
}

.product-section-title {
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  color: #000;
}

.product-description-wrapper {
  position: relative;
  max-height: 400px;
  overflow: hidden;
}

.product-description-text {
  font-size: 15px;
  line-height: 1.6;
  color: #000;
}

.product-description-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
  display: none;
}

.product-description-wrapper.has-overflow .product-description-fade {
  display: block;
}

.product-attributes-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-attribute-item {
  display: flex;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.6;
}

.attribute-name {
  font-weight: 500;
  color: #000;
  flex-shrink: 0;
}

.attribute-dots {
  flex: 1;
  border-bottom: 1px dotted #ccc;
  margin: 0 10px;
  height: 1px;
  min-width: 20px;
}

.attribute-value {
  color: #000;
  flex-shrink: 0;
}

.related-products {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #f0f0f0;
}

.related-products-title {
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 30px;
  text-align: center;
}

.related-products .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

/* Lightbox для картинок товара */
.product-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.product-lightbox-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  top: 50%;
  transform: translateY(-50%);
}

.product-lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: opacity 0.3s;
}

.product-lightbox-close:hover {
  opacity: 0.7;
}

.product-lightbox-prev,
.product-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  padding: 16px;
  user-select: none;
  transition: opacity 0.3s;
  z-index: 10000;
}

.product-lightbox-prev {
  left: 20px;
}

.product-lightbox-next {
  right: 20px;
}

.product-lightbox-prev:hover,
.product-lightbox-next:hover {
  opacity: 0.7;
}

.product-lightbox-image-wrapper {
  text-align: center;
  max-height: 90vh;
  overflow: hidden;
}

.product-lightbox-image-wrapper img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.product-lightbox-counter {
  text-align: center;
  color: #fff;
  font-size: 18px;
  margin-top: 20px;
}

/* Исправление картинок в связанных товарах */
.related-products .product-card-image {
  opacity: 1 !important;
}

.related-products .product-card-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #fff;
  margin-bottom: 15px;
  overflow: hidden;
}

.related-products .product-image-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.related-products .product-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
  opacity: 0;
}

.related-products .product-card-image.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .product-info {
    padding-left: 0;
    margin-top: 30px;
  }
  
  .product-images-grid {
    grid-template-columns: 1fr;
  }
  
  .product-colors-grid-6 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .related-products .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .product-add-to-cart {
    flex-direction: column;
  }
}

/* ============================================
   Стили для всех алертов OpenCart
   ============================================ */
.alert {
  padding: 15px 20px;
  margin-bottom: 20px;
  border: 2px solid #000;
  border-radius: 0;
  background-color: #fff;
  color: #000;
  font-size: 15px;
  line-height: 1.5;
  position: relative;
  animation: slideInDown 0.4s ease-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-success {
  border-color: #000;
  background-color: #fff;
  color: #000;
}

.alert-danger {
  border-color: #000;
  background-color: #fff;
  color: #000;
}

.alert-warning {
  border-color: #000;
  background-color: #fff;
  color: #000;
}

.alert-info {
  border-color: #000;
  background-color: #fff;
  color: #000;
}

.alert-dismissible {
  padding-right: 50px;
}

.alert-dismissible .close {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  padding: 0;
  background: none;
  border: none;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: #000;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.3s;
}

.alert-dismissible .close:hover {
  opacity: 1;
}

.alert-dismissible .close:focus {
  outline: none;
}

.alert i {
  margin-right: 10px;
  font-size: 16px;
}

.alert-success i {
  color: #000;
}

.alert-danger i {
  color: #000;
}

.alert-warning i {
  color: #000;
}

.alert-info i {
  color: #000;
}

/* Анимация появления */
@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Анимация исчезновения */
.alert.fade-out {
  animation: slideOutUp 0.3s ease-in forwards;
}

@keyframes slideOutUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-20px);
    opacity: 0;
  }
}

/* Алерты в модальных окнах и других местах */
.modal .alert,
.popup .alert {
  margin-bottom: 15px;
}

/* Алерты в формах */
.form-group .alert {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Текстовые ошибки (text-danger) */
.text-danger {
  color: #000 !important;
  font-size: 14px;
  margin-top: 5px;
  display: block;
  border-left: 3px solid #000;
  padding-left: 10px;
  background-color: #fff;
  padding: 8px 12px;
  border: 1px solid #000;
  border-radius: 0;
}

.has-error .form-control {
  border-color: #000;
}

.has-error .form-control:focus {
  border-color: #000;
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

/* Error styles for checkout */
.checkout-customer-field.has-error .checkout-input,
.checkout-shipping-field.has-error .checkout-input,
.has-error .checkout-input,
.has-error input.checkout-input,
.has-error select.checkout-input,
.has-error textarea.checkout-input {
  border-color: #d32f2f !important;
  border-width: 2px !important;
}

.checkout-agree.has-error {
  border: 2px solid #d32f2f;
  padding: 10px;
  background: #fff;
}

.checkout-agree.has-error input[type="checkbox"] {
  border-color: #d32f2f;
}

/* Buy One Click Modal */
.buy-one-click-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy-one-click-modal-content {
  background: #fff;
  border: 2px solid #000;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.buy-one-click-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.buy-one-click-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}

.buy-one-click-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #000;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy-one-click-close:hover {
  opacity: 0.7;
}

#buy-one-click-form .form-group {
  margin-bottom: 15px;
}

#buy-one-click-form .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 14px;
}

#buy-one-click-form .form-group.required label::after {
  content: ' *';
  color: #000;
}

#buy-one-click-form .form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #000;
  background: #fff;
  font-size: 14px;
  border-radius: 0;
}

#buy-one-click-form .form-control:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

#buy-one-click-submit {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
}

#buy-one-click-submit:hover {
  background: #333;
  border-color: #333;
}

@media (max-width: 767px) {
  .buy-one-click-modal-content {
    width: 95%;
    padding: 20px;
  }
}

/* Global Button Styles - All buttons in theme style */
.btn,
button.btn,
input[type="button"].btn,
input[type="submit"].btn {
  border-radius: 0;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.3s;
  border: 2px solid #000;
}

.btn-primary,
button.btn-primary,
input[type="button"].btn-primary,
input[type="submit"].btn-primary {
  background: #000;
  color: #fff;
  border-color: #000;
}

.table .input-group{
    display: table;
}
.table .input-group input{
    
    height: 36px;
    border-radius: 0px;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
button.btn-primary:hover,
button.btn-primary:focus,
button.btn-primary:active,
input[type="button"].btn-primary:hover,
input[type="submit"].btn-primary:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

.btn-secondary,
button.btn-secondary,
input[type="button"].btn-secondary,
input[type="submit"].btn-secondary {
  background: #fff;
  color: #000;
  border-color: #e0e0e0;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
button.btn-secondary:hover,
button.btn-secondary:focus,
input[type="button"].btn-secondary:hover,
input[type="submit"].btn-secondary:hover {
  background: #f5f5f5;
  border-color: #000;
  color: #000;
}

.btn-default,
button.btn-default,
input[type="button"].btn-default,
input[type="submit"].btn-default {
  background: #fff;
  color: #000;
  border-color: #e0e0e0;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active,
button.btn-default:hover,
button.btn-default:focus,
input[type="button"].btn-default:hover,
input[type="submit"].btn-default:hover {
  background: #f5f5f5;
  border-color: #000;
  color: #000;
}

.btn-success,
button.btn-success,
input[type="button"].btn-success,
input[type="submit"].btn-success {
  background: #000;
  color: #fff;
  border-color: #000;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
button.btn-success:hover,
input[type="button"].btn-success:hover,
input[type="submit"].btn-success:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

.btn-danger,
button.btn-danger,
input[type="button"].btn-danger,
input[type="submit"].btn-danger {
  background: #000;
  color: #fff;
  border-color: #000;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
button.btn-danger:hover,
input[type="button"].btn-danger:hover,
input[type="submit"].btn-danger:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

.btn-info,
button.btn-info,
input[type="button"].btn-info,
input[type="submit"].btn-info {
  background: #000;
  color: #fff;
  border-color: #000;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active,
button.btn-info:hover,
input[type="button"].btn-info:hover,
input[type="submit"].btn-info:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

.btn-warning,
button.btn-warning,
input[type="button"].btn-warning,
input[type="submit"].btn-warning {
  background: #000;
  color: #fff;
  border-color: #000;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
button.btn-warning:hover,
input[type="button"].btn-warning:hover,
input[type="submit"].btn-warning:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

.btn-link,
button.btn-link {
  color: #000;
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
}

.btn-link:hover,
.btn-link:focus,
button.btn-link:hover,
button.btn-link:focus {
  color: #000;
  text-decoration: underline;
  background: none;
  border: none;
}

/* Button sizes */
.btn-lg,
button.btn-lg,
input[type="button"].btn-lg,
input[type="submit"].btn-lg {
  padding: 15px 20px;
  font-size: 15px;
}

.btn-sm,
button.btn-sm,
input[type="button"].btn-sm,
input[type="submit"].btn-sm {
  padding: 8px 12px;
  font-size: 13px;
}

.btn-xs,
button.btn-xs,
input[type="button"].btn-xs,
input[type="submit"].btn-xs {
  padding: 5px 10px;
  font-size: 12px;
}

/* Button block */
.btn-block,
button.btn-block,
input[type="button"].btn-block,
input[type="submit"].btn-block {
  width: 100%;
  display: block;
}

/* Disabled buttons */
.btn:disabled,
.btn.disabled,
button:disabled,
button.disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.panel-group .panel{
    border-radius: 0px;
}

.panel-default>.panel-heading {
    color: #fff;
    background-color: #000;
    
}

.panel-default{
    border-color: #000;
}

/* ============================================
   CHECKOUT STYLES
   ============================================ */

.checkout-heading {
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 30px 0;
  color: #000;
}

.checkout-wrapper {
  margin-bottom: 40px;
}

.checkout-section {
  margin-bottom: 30px;
}

.checkout-section-title {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  color: #000;
}

/* Checkout Cart */
.checkout-cart {
  border: 0px solid #000;
  padding: 0px;
  background: #fff;
}

.checkout-cart-count {
  font-weight: 400;
  font-size: 16px;
}

.checkout-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.checkout-cart-item-checkbox {
  padding-top: 5px;
}

.checkout-cart-item-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkout-cart-item-image {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.checkout-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #e0e0e0;
}

.checkout-cart-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.checkout-cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

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

.checkout-cart-item-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.checkout-cart-item-name a {
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
}

.checkout-cart-item-code {
  font-size: 12px;
  color: #666;
  margin-bottom: 3px;
}

.checkout-cart-item-option {
  font-size: 12px;
  color: #666;
}

.checkout-cart-item-price {
  text-align: right;
  min-width: 120px;
  flex-shrink: 0;
}

.checkout-cart-price-current {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 3px;
}

.checkout-cart-price-old {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.checkout-cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-qty-label {
  font-size: 13px;
  color: #000;
}

.checkout-qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid #000;
}

.checkout-qty-btn {
  width: 30px;
  height: 30px;
  background: #fff;
  border: none;
  border-right: 1px solid #000;
  cursor: pointer;
  font-size: 16px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.checkout-qty-btn:last-child {
  border-right: none;
  border-left: 1px solid #000;
}

.checkout-qty-btn:hover:not(:disabled) {
  background: #f5f5f5;
}

.checkout-qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-qty-input {
  width: 50px;
  height: 30px;
  border: none;
  text-align: center;
  font-size: 14px;
  padding: 0;
}

.checkout-cart-item-actions {
  display: flex;
  gap: 10px;
}

.checkout-cart-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #000;
  padding: 5px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-cart-action-btn:hover {
  opacity: 0.7;
}

/* Checkout Customer */
.checkout-customer {
  border: 0px solid #000;
  padding: 0px;
  background: #fff;
}

.checkout-customer-info {
  margin-bottom: 20px;
}

.checkout-customer-note {
  font-size: 13px;
  color: #000;
  margin-bottom: 8px;
}

.checkout-customer-login-note,
.checkout-customer-register-note {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.checkout-customer-fields {
  margin: 0 -10px;
}

.checkout-customer-field {
  padding: 0 10px;
  margin-bottom: 15px;
}

.checkout-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #000;
}

.checkout-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #000;
  background: #fff;
  font-size: 14px;
  border-radius: 0;
}

.checkout-input:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

/* Checkout Shipping */
.checkout-shipping {
  border: 0px solid #000;
  padding: 0px;
  background: #fff;
}

.checkout-shipping-city {
  margin-bottom: 25px;
}

.checkout-city-search {
  position: relative;
  margin-bottom: 15px;
}

.checkout-city-input {
  padding-right: 40px;
}

.checkout-city-search-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 40px;
  background: none;
  border: none;
  border-left: 1px solid #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.checkout-city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-city-tag {
  padding: 8px 15px;
  background: #fff;
  border: 1px solid #000;
  color: #000;
  font-size: 13px;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s;
}

.checkout-city-tag:hover {
  background: #000;
  color: #fff;
}

.checkout-shipping-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.checkout-shipping-method {
  border: 2px solid #000;
  padding: 15px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s;
}

.checkout-shipping-method:hover,
.checkout-shipping-method.active {
  background: #f5f5f5;
}

.checkout-shipping-method input[type="radio"] {
  display: none;
}

.checkout-shipping-method-label {
  cursor: pointer;
  display: block;
  margin: 0;
}

.checkout-shipping-method-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.checkout-shipping-method-logo {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
}

.checkout-shipping-logo-boxberry {
  color: #e91e63;
}

.checkout-shipping-logo-cdek {
  color: #4caf50;
}

.checkout-shipping-logo-post {
  color: #2196f3;
}

.checkout-shipping-method-info {
  flex: 1;
}

.checkout-shipping-method-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #000;
}

.checkout-shipping-method-text {
  font-size: 12px;
  color: #666;
}

/* Checkout Payment */
.checkout-payment {
  border: 0px solid #000;
  padding: 0px;
  background: #fff;
}

.checkout-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-payment-method {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-payment-method input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkout-payment-method-label {
  font-size: 14px;
  color: #000;
  cursor: pointer;
  margin: 0;
}

/* Checkout Coupon */
.checkout-coupon-block {
  border: 2px solid #000;
  padding: 20px;
  background: #fff;
  margin-bottom: 20px;
}

/* Убираем обводку у купонов внутри total */
#tuttolanno-checkout-coupon-wrapper .checkout-coupon-block {
  border: none;
  padding: 0;
  margin: 0;
}

.checkout-coupon-inputs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.checkout-coupon-item {
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}

.checkout-coupon-item .input-group {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.checkout-coupon-item .input-group .checkout-input {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: 1px solid #000;
  background: #fff;
  font-size: 14px;
  border-radius: 0;
  border-right: none;
  box-sizing: border-box;
}

.checkout-coupon-item .input-group .input-group-btn {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
}

.checkout-coupon-item .input-group .input-group-btn .btn,
.checkout-coupon-item .input-group .input-group-btn input[type="button"],
.checkout-coupon-item .input-group .input-group-btn input[type="submit"] {
  padding: 10px 15px;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  height: 100%;
  white-space: nowrap;
  box-sizing: border-box;
}

.checkout-coupon-item .input-group .input-group-btn .btn:hover,
.checkout-coupon-item .input-group .input-group-btn input[type="button"]:hover,
.checkout-coupon-item .input-group .input-group-btn input[type="submit"]:hover {
  background: #333;
  border-color: #333;
}

/* Убеждаемся, что купоны внутри total не выходят за границы */
#tuttolanno-checkout-total .checkout-coupon-item,
#tuttolanno-checkout-coupon-wrapper .checkout-coupon-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#tuttolanno-checkout-total .checkout-coupon-item .input-group,
#tuttolanno-checkout-coupon-wrapper .checkout-coupon-item .input-group {
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

#tuttolanno-checkout-total .checkout-coupon-item .input-group .checkout-input,
#tuttolanno-checkout-coupon-wrapper .checkout-coupon-item .input-group .checkout-input {
  max-width: calc(100% - 120px);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tuttolanno-checkout-total .checkout-coupon-item .input-group .input-group-btn,
#tuttolanno-checkout-coupon-wrapper .checkout-coupon-item .input-group .input-group-btn {
  max-width: 120px;
  min-width: 100px;
  flex-shrink: 0;
}

#tuttolanno-checkout-total .checkout-coupon-item .input-group .input-group-btn .btn,
#tuttolanno-checkout-total .checkout-coupon-item .input-group .input-group-btn input[type="button"],
#tuttolanno-checkout-total .checkout-coupon-item .input-group .input-group-btn input[type="submit"],
#tuttolanno-checkout-coupon-wrapper .checkout-coupon-item .input-group .input-group-btn .btn,
#tuttolanno-checkout-coupon-wrapper .checkout-coupon-item .input-group .input-group-btn input[type="button"],
#tuttolanno-checkout-coupon-wrapper .checkout-coupon-item .input-group .input-group-btn input[type="submit"] {
  padding: 10px 12px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Checkout Total */
.checkout-total {
  border: 2px solid #666 !important;
  padding: 20px;
  background: #fff;
  position: sticky;
  top: 20px;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

#tuttolanno-checkout-total {
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

/* Переопределяем стили из checkout.css для total */
.checkout-total.tuttolanno-card {
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#tuttolanno-checkout-coupon-wrapper {
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

#tuttolanno-checkout-coupon-wrapper .checkout-coupon-block {
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

#tuttolanno-checkout-coupon-wrapper .checkout-section-title {
  font-size: 14px;
  margin-bottom: 10px;
}

#tuttolanno-checkout-coupon-wrapper .checkout-coupon-inputs {
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.checkout-total-count {
  font-weight: 400;
  font-size: 16px;
}

.checkout-total-table {
  margin-bottom: 20px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.checkout-total-row-final {
  border-top: 2px solid #000;
  padding-top: 15px;
  margin-top: 10px;
}

.checkout-total-label {
  font-size: 14px;
  color: #000;
}

.checkout-total-value {
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.checkout-total-value-final {
  font-size: 18px;
  font-weight: 700;
}

/* Discount styling in totals */
.checkout-total-value-discount {
  color: #d32f2f !important;
}

/* Checkout Order Button */
.checkout-order-btn {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Checkout Comment */
.checkout-comment {
  border: 0px solid #000;
  padding: 0px;
  background: #fff;
}

.checkout-textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
}

/* Checkout Agree */
.checkout-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #000;
  cursor: pointer;
}

.checkout-agree input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.checkout-agree span {
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 767px) {
  .checkout-left,
  .checkout-right {
    margin-bottom: 20px;
  }
  
  .checkout-total {
    position: static;
  }
  
  .checkout-cart-item {
    flex-wrap: wrap;
  }
  
  .checkout-cart-item-price {
    min-width: auto;
    width: 100%;
    text-align: left;
    margin-top: 10px;
  }
  
  .checkout-customer-field {
    margin-bottom: 15px;
  }
}

/* Home Page Styles */
.home-page {
  min-height: 100vh;
}

/* Home Hero Block */
.home-hero {
  padding: 0px 0;
  margin-bottom: 60px;
  margin-top: -25px;
}

.home-hero .container {
  background: #fff;
  margin-top: 0;
  margin-bottom: 0;
}

.home-hero .row {
  display: flex;
  align-items: stretch;
  min-height: 400px;
}

.home-hero .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.home-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  background: #f5f5f0;
  min-height: 100%;
}

.home-hero-logo {
  margin-bottom: 20px;
  width: 100%;
  text-align: center;
}

.home-hero-logo img {
  max-width: 400px;
  height: auto;
}

.home-hero-divider {
  width: 100%;
  max-width: 200px;
  border: none;
  border-top: 2px solid #000;
  margin: 20px 0;
}

.home-hero-brand {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 30px;
  font-family: 'Montserrat', sans-serif;
}

.home-hero-text {
  font-size: 16px;
  line-height: 1.8;
  color: #000;
  max-width: 600px;
}

.home-hero-right {
  position: relative;
  padding: 0;
  display: flex;
  align-items: stretch;
  min-height: 100%;
  height: 100%;
}

.home-hero-background {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-size: auto;
  background-position: top left;
  background-repeat: repeat;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.home-hero-background-placeholder {
  background: #e8e8e8;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px);
  min-height: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Home Blocks (3 blocks at bottom) */
.home-blocks {
  padding: 80px 0;
  background: #fff;
}

.home-blocks-row {
  margin: 0 -3px;
}

.home-block-col {
  padding: 0 3px;
}

.home-block-item {
  display: block;
  text-decoration: none;
  color: #000;
  transition: opacity 0.3s ease;
  width: 100%;
}

.home-block-item:hover {
  opacity: 0.8;
  text-decoration: none;
  color: #000;
}

.home-block-image-wrapper {
  width: 100%;
  padding-top: 100%; /* Square aspect ratio */
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 8px;
}

.home-block-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-block-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #d0d0d0;
}

.home-block-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  padding: 0 5px;
}

@media (max-width: 767px) {
  .home-hero {
    padding: 40px 0;
  }
  
  .home-hero-left {
    padding: 20px 15px;
    text-align: center;
    align-items: center;
  }
  
  .home-hero-brand {
    font-size: 32px;
    text-align: center;
  }
  
  .home-hero-text {
    text-align: center;
    font-size: 14px;
  }
  
  .home-hero-right {
    min-height: 300px;
  }
  
  .home-hero-background {
    min-height: 300px;
  }
  
  .home-blocks {
    padding: 40px 0;
  }
  
  .home-blocks-row {
    margin: 0 -2px;
  }
  
  .home-block-col {
    padding: 0 2px;
    margin-bottom: 4px;
  }
  
  .home-block-title {
    font-size: 12px;
  }
}