body {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  color: #2c5530;
  font-weight: 600;
}

legend {
  padding: 12px 0;
  margin-bottom: 25px;
  border-bottom: 2px solid #e8f4ea;
  color: #2c5530;
  font-weight: 600;
}

label {
  font-size: 14px;
  font-weight: 500;
  color: #4a6741;
}

/* Анимационные элементы */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

/* Chrome border line */
button:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3) !important;
}

/* container */
#container {
  width: 100%;
  min-height: 100%;
  position: absolute;
  margin-bottom: 300px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">🐾</text></svg') repeat;
  background-size: 40px 40px;
  opacity: 0.03;
}

/* content */
#content, #column-left, #column-right {
  padding-bottom: 730px;
  position: relative;
}

@media (min-width: 576px) {
  #content, #column-left, #column-right {
    padding-bottom: 400px;
  }
}

/* Alert стили с анимациями */
#alert {
  z-index: 9999;
  position: fixed;
  top: 30%;
  left: 50%;
  width: 400px;
  margin-left: -200px;
  animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#alert .alert {
  margin-bottom: 15px;
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

#alert .alert::before {
  content: '🐾';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.3;
}

#alert .alert-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

#alert .alert-success {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  color: white;
}

#alert .alert-warning {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  color: #2c5530;
}

#alert .alert-danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
}

/* Top section */
#top {
  background: linear-gradient(135deg, #2c5530 0%, #4a6741 100%);
  border-bottom: none;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 5px;
  box-shadow: 0 4px 20px rgba(44, 85, 48, 0.2);
}

#top::after {
  content: '🐶🐱🐰🐠';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 16px;
  opacity: 0.1;
}

#top ul.list-inline {
  margin-bottom: 0;
}

#top .list-inline-item > a, #top .list-inline-item .dropdown > a {
  font-size: 1.1em;
  color: #e8f4ea;
  line-height: 40px;
  vertical-align: middle;
  padding: 10px 15px 5px 15px;
  transition: all 0.3s ease;
  border-radius: 20px;
}

#top .list-inline-item > a:hover, #top .list-inline-item .dropdown > a:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Logo */
#logo {
  text-align: center;
  margin: 15px 0;
  position: relative;
}

#logo::before {
  content: '🐕‍🦺';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  opacity: 0.7;
}

#logo img {
  max-width: 200px;
  transition: transform 0.3s ease;
}

#logo:hover img {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  #logo {
    text-align: left;
  }
}

/* Search */
#search {
  margin-bottom: 10px;
  position: relative;
}

#search::before {
  content: '🔍';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  opacity: 0.5;
}

#search .form-control-lg {
  height: 50px;
  font-size: 14px;
  line-height: 20px;
  padding: 0 45px;
  border: 2px solid #e8f4ea;
  border-radius: 25px;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.9);
}

#search .form-control-lg:focus {
  border-color: #4ecdc4;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  transform: translateY(-2px);
}

#search .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 0.75rem 35px;
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  border: none;
  border-radius: 25px;
  color: white;
  transition: all 0.3s ease;
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
}

#search .btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Cart */
#cart {
  margin-bottom: 10px;
}

#cart .img-thumbnail {
  min-width: 100px;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

#cart .img-thumbnail:hover {
  transform: scale(1.05);
}

#cart .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 16px 35px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  border: none;
  border-radius: 25px;
  color: white;
  transition: all 0.3s ease;
}

#cart .btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

#cart .dropdown-menu {
  background: white;
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
}

#cart .dropdown-menu li {
  min-width: 300px;
  transition: background 0.3s ease;
}

#cart .dropdown-menu li:hover {
  background: #f8f9fa;
}

@media (max-width: 768px) {
  #cart .dropdown-menu li {
    min-width: 100%;
  }
}

/* Menu */
#menu {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  min-height: 60px;
  border-radius: 15px;
  padding: 0 1rem;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(76, 175, 80, 0.2);
  position: relative;
  overflow: hidden;
}

#menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

#menu:hover::before {
  left: 100%;
}

#menu .navbar-nav > li > a {
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  padding: 15px 20px;
  background-color: transparent;
  border-radius: 10px;
  margin: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

#menu .navbar-nav > li > a:hover {
  background-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

#menu .dropdown-menu {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background: white;
  overflow: hidden;
}

#menu .dropdown-inner {
  display: flex;
  flex-direction: column;
}

#menu .dropdown-inner ul {
  width: 100%;
  min-width: 200px;
}

@media (min-width: 960px) {
  #menu .dropdown:hover .dropdown-menu {
    display: block;
    animation: slideInUp 0.3s ease-out;
  }
  
  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  #menu .dropdown-inner {
    flex-direction: row;
  }
}

#category {
  float: left;
  font-size: 18px;
  font-weight: 700;
  line-height: 60px;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#menu .navbar-toggler i {
  color: white;
  border-color: white;
  font-size: 1.2em;
}

/* Form styles */
div.required .col-form-label:before, div.required .form-label:before {
  content: "* ";
  color: #ff6b6b;
  font-weight: bold;
}

.form-switch-lg {
  font-size: 20px;
  min-height: 30px;
  line-height: 30px;
}

.nav-tabs {
  margin-bottom: 20px;
  border-bottom: 2px solid #e8f4ea;
}

.nav-tabs .nav-link {
  border: none;
  color: #6c757d;
  font-weight: 500;
  padding: 12px 25px;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
  border-radius: 10px 10px 0 0;
  transform: translateY(-2px);
}

.form-check .form-check-input {
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .col-form-label {
    text-align: right;
  }
}

/* Footer */
footer {
  border: none;
  position: absolute;
  bottom: -1px;
  width: 100%;
  padding-top: 50px;
  background: linear-gradient(135deg, #2c5530 0%, #1e3a24 100%);
  color: #e8f4ea;
  position: relative;
}

footer::before {
  content: '🐾🐾🐾🐾';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 24px;
  opacity: 0.1;
  letter-spacing: 20px;
}

footer hr {
  border-top: none;
  border-bottom: 1px solid #4a6741;
}

footer a {
  color: #a8d5ba;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

footer a:hover {
  color: #4ecdc4;
  transform: translateX(5px);
}

footer h5 {
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #4ecdc4;
  margin-top: 15px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: #4ecdc4;
  transition: width 0.3s ease;
}

footer h5:hover::after {
  width: 100%;
}

/* Breadcrumb */
.breadcrumb {
  margin: 0 0 25px 0;
  padding: 12px 20px;
  border: none;
  border-radius: 15px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.breadcrumb i {
  font-size: 16px;
  color: #4ecdc4;
}

.breadcrumb > li.breadcrumb-item {
  text-shadow: none;
  padding: 0 25px;
  position: relative;
  white-space: nowrap;
  font-weight: 500;
}

.breadcrumb > li.breadcrumb-item > a {
  text-decoration: none;
  color: #4a6741;
  transition: color 0.3s ease;
}

.breadcrumb > li.breadcrumb-item > a:hover {
  color: #4ecdc4;
}

.breadcrumb > li.breadcrumb-item:after {
  content: "";
  display: block;
  position: absolute;
  top: -3px;
  right: -5px;
  width: 29px;
  height: 29px;
  border-right: 2px solid #e8f4ea;
  border-bottom: 2px solid #e8f4ea;
  transform: rotate(-45deg);
}

.breadcrumb > li.breadcrumb-item + li:before {
  content: "";
  padding: 0;
}

/* Cookie */
#cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 9999;
  opacity: 0.98;
  color: #e8f4ea;
  background: linear-gradient(135deg, #2c5530 0%, #4a6741 100%);
  padding: 20px;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.2);
  animation: slideInUp 0.5s ease-out;
}

#cookie div {
  font-size: 16px;
  color: #FFFFFF;
}

#cookie::before {
  content: '🍪';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  opacity: 0.3;
}

/* Анимации для всех интерактивных элементов */
.btn, .form-control, .card, .product-thumb, .nav-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Плавная прокрутка */
html {
  scroll-behavior: smooth;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #3dbdb4, #33907d);
}