:root {
  --primary-color: #2ecc71;      /* Ярко-зеленый */
  --dark-color: #27ae60;         /* Темно-зеленый */
  --light-color: #a8e6cf;        /* Мягкий мятный */
  --accent-color: #1abc9c;       /* Бирюзовый */
  --background-color: #f8f9fa;   /* Светлый серый фон */
  --text-color: #2c3e50;         /* Темно-синий текст */
  --white-color: #ffffff;        /* Белый */
  --gray-light: #e9ecef;
  --gray-dark: #6c757d;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1400px;
  padding: 0 15px;
  margin: 0 auto;
}

.btn {
  font-weight: 500;
  border-radius: var(--border-radius);
  padding: 10px 20px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  color: white;
}

.btn-primary:hover {
  background-color: var(--dark-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-accent {
  background-color: var(--accent-color);
  border: none;
  color: white;
}

.btn-accent:hover {
  background-color: #16a085;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background-color: white;
  border: 1px solid var(--gray-light);
  color: var(--text-color);
}

.btn-light:hover {
  background-color: var(--light-color);
  border-color: var(--light-color);
}

.badge {
  border-radius: 50px;
  padding: 5px 10px;
  font-size: 0.85rem;
  font-weight: 500;
}

.badge-primary {
  background-color: var(--primary-color);
  color: white;
}

.badge-accent {
  background-color: var(--accent-color);
  color: white;
}

.badge-light {
  background-color: var(--gray-light);
  color: var(--text-color);
}

.badge-success {
  background-color: #28a745;
  color: white;
}

.badge-warning {
  background-color: #ffc107;
  color: var(--text-color);
}

.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background-color: white;
  overflow: hidden;
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.card-img-top {
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.section-title p {
  color: var(--gray-dark);
  max-width: 700px;
  margin: 0 auto;
}

/* Header styles */
.header {
  position: relative;
  z-index: 1000;
  transition: var(--transition);
}

.header-scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.95);
}

.progress-container {
  width: 100%;
  height: 3px;
  background-color: var(--gray-light);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1001;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  width: 0%;
  transition: width 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-text {
  color: var(--text-color);
}

.logo-text .text-accent {
  color: var(--accent-color);
}

.nav-link {
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.dropdown-menu {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: none;
  padding: 10px 0;
  animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  padding: 8px 20px;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--light-color);
  color: var(--dark-color);
  transform: translateX(5px);
}

/* Footer styles */
.footer {
  background: linear-gradient(135deg, #1a523d 0%, #27ae60 100%);
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer a:hover {
  color: var(--light-color) !important;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.payment-methods img {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: var(--transition);
}

.payment-methods img:hover {
  opacity: 1;
  transform: scale(1.05);
}

#backToTop {
  width: 50px;
  height: 50px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  transform: rotate(-90deg);
}

/* Toast notifications */
.toast {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 10px;
  border: none;
  animation: toastSlideIn 0.3s ease forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-header {
  padding: 10px 15px;
  border-bottom: 1px solid var(--gray-light);
}

.toast-body {
  padding: 15px;
}

.toast-success .toast-header {
  background-color: #d4edda;
  color: #155724;
}

.toast-error .toast-header {
  background-color: #f8d7da;
  color: #721c24;
}

.toast-info .toast-header {
  background-color: #d1ecf1;
  color: #0c5460;
}

/* Skeleton loaders */
.skeleton {
  background: linear-gradient(90deg, var(--gray-light) 25%, rgba(255, 255, 255, 0.5) 50%, var(--gray-light) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--border-radius);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Product card styles */
.product-card {
  position: relative;
  overflow: hidden;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-actions {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

.product-actions button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  box-shadow: var(--shadow-sm);
}

.product-actions button:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.product-rating {
  color: #ffc107;
  font-size: 0.9rem;
}

.product-price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.product-old-price {
  text-decoration: line-through;
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin-left: 5px;
}

/* Carousel styles */
.carousel-item {
  height: 500px;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 40px;
  text-align: left;
}

.carousel-caption h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: white;
  max-width: 600px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 5px;
}

.carousel-indicators .active {
  background-color: white;
}

/* Breadcrumb styles */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 30px;
}

.breadcrumb-item a {
  color: var(--gray-dark);
}

.breadcrumb-item.active {
  color: var(--primary-color);
  font-weight: 500;
}

/* Form styles */
.form-control {
  border-radius: var(--border-radius);
  padding: 10px 15px;
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(46, 204, 113, 0.25);
}

.input-group {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.form-label {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.form-check-label {
  font-weight: 400;
}

/* Table styles */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.table th {
  background-color: var(--dark-color);
  color: white;
  font-weight: 600;
  text-align: left;
  padding: 15px;
}

.table td {
  padding: 15px;
  border-bottom: 1px solid var(--gray-light);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table-hover tbody tr:hover {
  background-color: var(--light-color);
}

/* Badge styles */
.badge {
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 50px;
}

.badge-primary {
  background-color: var(--primary-color);
  color: white;
}

.badge-accent {
  background-color: var(--accent-color);
  color: white;
}

.badge-light {
  background-color: var(--gray-light);
  color: var(--text-color);
}

.badge-success {
  background-color: #28a745;
  color: white;
}

.badge-warning {
  background-color: #ffc107;
  color: var(--text-color);
}

/* Дизайн элементы */
.banner {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.widget {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.widget:hover {
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}

.widget ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.widget ul li {
    margin-bottom: 0.5rem;
}

.widget ul li a {
    color: var(--gray-dark);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    margin-left: 0;
    border-radius: var(--border-radius);
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.submenu-arrow {
    float: right;
    margin-top: 0.3rem;
}