/* ????? ? ??????? ????? */
html, body {
  overflow-x: hidden !important;
  height: 100%;
  margin: 0;
  padding: 0;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f4f4f4;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ??????? ?????? */
.top-bar {
  display: none !important;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ????? */
.main-header {
  background-color: #fafafa;
  padding: 20px 0;
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease;
  position: relative; /* ������� stacking context ��� header */
  z-index: 2000;      /* ����� mega-menu ���� ���� �������� */
}

.main-header:hover {
  background-color: #f4f4f4;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.nav-link {
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-link:hover {
  color: #b6002c;
  background-color: rgba(182, 0, 44, 0.05);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #b6002c;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.icons img {
  height: 24px;
  margin-left: 15px;
  cursor: pointer;
  filter: invert(1);
}

/* ?????? */
.banner img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  margin-bottom: 30px;
}

/* ??????? */
.products-section {
  display: flex;
  align-items: flex-start;
  width: 100%;
  position: relative;
  margin-top: 10px;  /* reduced spacing below header */
  margin-bottom: 40px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 30px;
  text-align: left;
}

.products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 300px)) !important;
  gap: 30px !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

.product-card {
  width: 300px;
  min-height: 420px;
  background: #fff;
  border-radius: 1px;
  padding: 14px;
  border: 0 solid #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  text-decoration: none;
}

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

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.product-card h2 {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  min-height: 36px;
}

.product-card .price {
  font-size: 14px;
  font-weight: bold;
  color: #c1121f;
  margin-bottom: 6px;
  min-height: 48px;
}

.product-card .stock {
  font-size: 12px;
  color: #2a9d8f;
  margin-bottom: 8px;
}

.product-card .code {
  font-size: 11px;
  color: #888;
  margin-top: 8px;
}

.product-card .buy-btn {
  background: #b6002c;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 3px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  margin: 8px 0 12px;
  transition: background 0.2s;
}

.product-card .buy-btn:hover {
  background: #900021;
}

/* ???????? ???????? */
.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  align-items: flex-start;
}

.product-gallery {
  flex: 1 1 500px;
  text-align: center;
}

.product-gallery .main-img {
  width: 100%;
  height: 500px; /* ????????????? ?????? */
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.thumbnails {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 15px;
}

.thumb {
  width: 80px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: 0.3s;
}

.thumb:hover {
  border-color: #e3002d;
}

.thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  object-position: center;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.product-info {
  flex: 1 1 400px;
}

.product-info h1 {
  font-size: 26px;
  margin-bottom: 15px;
  text-transform: uppercase;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  overflow: visible !important;
}

.product-info .price {
  font-size: 22px;
  color: #e3002d;
  margin-bottom: 0;
}

.product-info p {
  margin-bottom: 0;
  color: #555;
}

.buy-button {
  background: #000000;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.buy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Tabs */
.tabs {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
  gap: 20px;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-weight: bold;
  color: #333;
  transition: border-color 0.3s;
}

.tab-btn.active {
  color: #e3002d;
  border-bottom-color: #e3002d;
}

.tab-content {
  display: none;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.tab-content.active {
  display: block;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(5px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}



/* ????? ? ?????? */
.home-link {
  display: flex;
  align-items: center;
}

.home-icon {
  width: 20px;
  height: 20px;
  transition: filter 0.3s;
}

.home-link:hover .home-icon {
  filter: brightness(0) saturate(100%) invert(15%) sepia(88%) saturate(4861%) hue-rotate(349deg) brightness(85%) contrast(110%);
}

/* ��������� ����-���� */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.dropdown-toggle:hover {
  color: #b6002c;
  background-color: rgba(182, 0, 44, 0.05);
}

.dropdown-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* ����-���� ��������� */
.mega-menu .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 40% !important;
  transform: translateX(-40%) translateY(10px) !important;
  width: 1200px;           /* ��������� ������ */
  max-width: 95vw;
  background-color: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  z-index: 1500 !important;
  padding: 20px; /* �������� � 30px �� 40px */
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-x: hidden; /* ������� �������������� ������ */
  box-sizing: border-box; /* �������� padding � ������, ����� �������� ������� ��������� */
}

.mega-menu:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateX(-40%) translateY(0) !important;    /* ��� ������ ���� ������� */
}

.mega-menu-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px; /* �������� � 45px �� 55px */
  max-height: 750px;
  overflow-y: auto;
  overflow-x: hidden; /* ������� �������������� ������ */
}

/* ������� ��������� */
.category-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.category-group {
  position: relative;
}

.category-title {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
}

.category-title a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.category-title a:hover {
  color: #b6002c;
}

.category-icon {
  font-size: 18px;
  width: 20px;
  color: #b6002c;
}

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

.subcategory-list a {
  padding: 8px 12px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
  margin-left: 30px;
}

.subcategory-list a::before {
  content: ">";
  position: absolute;
  left: -20px;
  color: #b6002c;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.subcategory-list a:hover {
  background-color: rgba(182, 0, 44, 0.05);
  color: #b6002c;
  transform: translateX(5px);
}

.subcategory-list a:hover::before {
  opacity: 1;
}

/* ������� � �������������� �������� */
.featured-column {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #e9ecef;
}

.featured-content h3 {
  margin: 0 0 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.featured-products {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.featured-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.featured-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  background: #f8f9fa;
}

.featured-title {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  flex: 1;
}

.featured-price {
  font-size: 14px;
  font-weight: 600;
  color: #b6002c;
}

.view-all-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #b6002c 0%, #d32f2f 100%);
  color: #fff;
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: linear-gradient(135deg, #a50029 0%, #c62828 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(182, 0, 44, 0.3);
}

/* ������� dropdown ���� ��� ������������� */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1000;
  flex-direction: column;
  border-radius: 8px;
  padding: 8px 0;
  border: 1px solid rgba(0,0,0,0.08);
}

.dropdown-menu a {
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background-color: rgba(182, 0, 44, 0.05);
  color: #b6002c;
}

.dropdown:hover > .dropdown-menu {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes pulseHighlight {
  0%   { color: inherit; }
  40%  { color: #587ee6; }
  100% { color: inherit; }
}

.contacts.highlight p {
  animation: pulseHighlight 0.8s ease-in-out;
}

.contacts p {
  transition: color 0.3s ease;
}

.search-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  height: 32px;
  width: fit-content;
  margin-left: auto;
  margin-top: -1px; /* ???????????? */
}

.search-wrapper input[type="text"] {
  width: 140px;
  height: 100%;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 0;
  outline: none;
  transition: width 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.search-wrapper input[type="text"]:focus {
  width: 200px;
  border-color: #cccccc; /* ??????? ??? ?????? ???? ??????? */
}

.search-bar {
  margin-bottom: 20px;
  width: 100% !important;
  margin-left: 20px !important;
}

/* Breadcrumb title styling above the showcase, matching search bar layout */
.section-header {
  display: flex;
  align-items: center;
  width: 100% !important;
  margin-left: 20px !important;
  margin-bottom: 10px;
  position: relative;
  left: 300px;
  top: 50px;
}

.section-header .section-title {
  font-size: 18px;
  font-weight: normal;
  color: #666;
  margin: 0;
}

.product-gallery .main-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.product-gallery .main-img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.product-page {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  flex-direction: row;
  padding: 40px 20px;
  flex-shrink: 0;
  flex-grow: 1;
}

.product-gallery {
  flex: 0 0 auto;
  max-width: 500px;
  width: 100%;
}

.product-info {
  flex: 1 1 0;
  min-width: 0;
  max-width: 600px;
}

.product-title {
  font-size: 24px;
  font-weight: 500; /* ????? ???????? */
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inter', sans-serif;
}

.product-availability {
  color: #28a745;
  font-size: 14px;
  margin-bottom: 4px;
}

.product-code {
  font-size: 13px;
  color: #888;
}

.product-price {
  font-size: 26px;
  color: #e60023;
  font-weight: 600;
  margin-bottom: 20px;
}

.buy-btn.large {
  font-size: 160px;
  padding: 12px 26px;
  background-color: #e60023;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.buy-btn.large:hover {
  background-color: #c4001c;
}

.product-info h1 {
  font-weight: normal;
  font-size: 1.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.5em;
}

.availability {
  color: green;
  font-size: 0.9em;
  margin-bottom: 0.3em;
}

#productCode {
  color: #666;
  font-size: 0.85em;
}

.price {
  font-size: 1.6em;
  color: #e53935;
  font-weight: bold;
  margin-bottom: 1em;
}

.buy-button {
  background-color: #e53935;
  color: white;
  font-size: 1.1em;
  padding: 0.8em 2em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.buy-button:hover {
  background-color: #c62828;
}

.product-container {
  display: flex;
  gap: 40px;
  padding: 40px;
  flex-wrap: wrap;
}

.product-gallery {
  flex: 1;
  min-width: 300px;
}

.product-details {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.product-info h1 {
  font-weight: normal;
  font-size: 1.5em;
  margin-bottom: 0.5em;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  overflow: visible !important;
}

.product-info h1 {
  font-weight: normal;
  font-size: 1.5em;
  margin-bottom: 1.5em; /* ?? ?????? ????? ???????? */
  white-space: normal;
}

.availability {
  color: green;
  font-size: 0.9em;
  margin-bottom: 0.3em;
}

#productCode {
  color: #666;
  font-size: 0.85em;
}

.price {
  font-size: 1.6em;
  color: #e53935;
  font-weight: bold;
  margin-bottom: 1em; /* ?? ?????? ????? ???? */
}

.buy-button {
  background-color: #000000;
  color: white;
  font-size: 1.1em;
  padding: 0.8em 2em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 1em; /* ?? ?????? ????? ??????? */
}

.tabs {
  margin-top: 90px; /* ?? ???????? ???? */
}

.buy-button {
  background-color: #b60015; /* ?????????-??????? */
  color: #fff;
  font-size: 1em;
  font-weight: 500;
  padding: 0.8em 2em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.3s, transform 0.2s;
}

.buy-button:hover {
  background-color: #b71c1c; /* ???? ?????? ??? ????????? */
  transform: translateY(-2px);
}

.buy-button img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1); /* ??????? ?????? ????? */
}

.read-more-arrow {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  margin-top: 0.5em;
  color: #555;
  transition: transform 0.3s ease;
}

.read-more-arrow.rotated {
  transform: rotate(180deg);
}

.tab-text {
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.read-more-arrow {
  display: block;
  margin: 10px 0 0 auto;
}

.read-more-arrow.rotated {
  transform: rotate(180deg);
}
.read-more-arrow {
  font-size: 1.2em;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  color: #393939;
  user-select: none;
  display: inline-block; /* ????? transform ????????? ??????? */
}

.read-more-arrow.rotated {
  transform: rotate(180deg);
}

/* ???? "??????? ??????" */
.related-products {
  border: 0 dashed #aaa;
  border-radius: 8px;
  padding: 40px 20px;
  margin: 60px auto;
  background-color: #fafafa;
  max-width: 1280px;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* ????????? ????? */
.related-products h2 {
  font-size: 14px;           /* ??????? ?????? ?????? */
  font-weight: 500;          /* ?????? ?????? ??????? (???????? ??????? ???????) */
  color: #222;               /* ???? ?????? */
  margin: 0 0 12px 0;        /* ?????? ????? (????? ??????) */
  padding-left: 10px;        /* ?????? ????? (????? ????????) */
  text-align: left;          /* ???????????? (????? left/center/right) */
}

/* ??????? ???????? */
.slider-wrapper {
  position: relative;
  overflow: hidden;
}

/* ????????? ? ?????????? */
.related-items {
  display: flex;
  gap: 0;
  transition: transform 0.3s ease;
}

/* ???????? ?????? */
.related-item {
  flex: 0 0 192px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px;
  background-color: #fff;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.related-item:hover {
  background-color: #f2f2f2;
}

.related-item img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* ???????? ? ???? */
.related-item .name {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  margin-bottom: 4px;
  line-height: 1.3;
  word-break: break-word;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  overflow: visible !important;
}

.related-item .price {
  font-size: 25px;
  font-weight: 600;
  color: #111;
}

/* ?????? ???????? */
/* ??????? */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

/* ????? ?????? ? ??? ????? */
.slider-btn.left {
  left: -50px;
}

/* ?????? ?????? ? ??? ????? */
.slider-btn.right {
  right: -50px;
}

/* ??? ????????? ? ?????? ?????????? */
.slider-btn:hover {
  background-color: #f0f0f0;
}

.slider-wrapper {
  position: relative;
  overflow: visible; /* ?????! */
}

.related-item {
  min-width: 160px; /* ?????? ???????? ?????? ???????? */
  margin: 0 10px; /* ???????? ?? ?????? */
}

.related-image-wrapper {
  position: relative;
}

.slider-container {
  overflow: hidden;
  position: relative;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  font-size: 14px;
  margin-right: 8px;
}

.new-price {
  color: #e53935;
  font-weight: bold;
  font-size: 22px;
}

.product-card {
  position: relative;
}

.product-card .price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 8px;
  margin-bottom: 6px;
}

.product-card .old-price {
  font-size: 13px;
  color: #888;
  text-decoration: line-through;
  margin-bottom: 2px;
}

.product-card .new-price {
  font-size: 16px;
  font-weight: bold;
  color:  #e53935;
}

.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #e53935;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 6px;
  border-radius: 4px;
  z-index: 1;
}

.cart-wrapper {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 24px;
  right: 22px;
  background-color: #b6002c;
  color: white;
  font-size: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  line-height: 1;
}

/* ????? ??? ?????? "? ???????" */
.buy-btn.in-cart {
  background-color: #999;
  color: #fff;
  cursor: pointer;
}

.buy-btn.in-cart:hover {
  background-color: #777;
}

/* UI-UX Enhancements */

/* 5) Skeleton loader for images */
.skeleton {
  background-color: #eee;
  background-image: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  color: transparent !important;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
img.loaded {
  background: none !important;
}

/* ?? index.html ????????? ????????? ????????? ?????? ????????? */
.page-index .nav a.active {
  border-bottom: none !important;
  color: inherit !important;
  padding-bottom: 0 !important;
}

/* Cart panel overlay and container */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 2000;
}
#cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 500px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  border-radius: 0 8px 8px 0;
  padding: 0 16px;
  overflow-y: auto;
}
#cart-panel.open {
  transform: translateX(0);
}
#cart-panel header {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  position: relative;
}
#cart-panel header h2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}
#cart-panel .cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  position: relative;
}
#cart-panel .cart-item {
  display: flex;
  align-items: flex-start;
  background-color: #fff;
  box-shadow: none;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px 56px 16px 16px;  /* ?????? ?????? ??? ?????? ???????? */
  margin-bottom: 12px;
  transition: background-color 0.3s ease;
  position: relative;
  max-width: none;
  width: auto;
}
#cart-panel .cart-item:hover {
  background-color: #fff;
}
#cart-panel .cart-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-right: 8px;
}
#cart-panel .cart-item .details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 48px;  /* ?????? ?????? ??? ?????? ???????? */
}
#cart-panel .cart-item .details .name {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 4px;
}
#cart-panel .cart-item .details .controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
#cart-panel .cart-item .details .controls button {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ccc;
  color: #333;
  transition: background-color 0.2s ease;
}
#cart-panel .cart-item .details .controls button.decrease:hover {
  background-color: #f0f0f0;
}
#cart-panel .cart-item .details .controls button.decrease.active {
  border-color: #b6002c;
  color: #b6002c;
}
#cart-panel .cart-item .details .controls button.decrease.active:hover {
  background-color: rgba(182,0,44,0.1);
}
#cart-panel .cart-item .details .controls button.increase {
  border-color: #b6002c;
  color: #b6002c;
}
#cart-panel .cart-item .details .controls button.increase:hover {
  background-color: rgba(182,0,44,0.1);
}
#cart-panel .cart-item .details .controls button.remove {
  margin-left: auto;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #999;
  padding: 0;
}
#cart-panel .cart-item .details .stock {
  font-size: 12px;
  color: #2a9d8f;
  margin: 4px 0;
}
#cart-panel .cart-item .details .unit-price {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}
#cart-panel .cart-item .details .cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
#cart-panel .cart-item .details .price {
  font-size: 14px;
  font-weight: 600;
  color: #000;
}
#cart-panel footer {
  padding: 16px;
  border-top: 1px solid #ddd;
}
#cart-panel footer .total {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
#cart-panel footer .checkout-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: #b6002c;
  color: #fff;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.3s, transform 0.2s;
}
#cart-panel footer .checkout-btn:hover {
  transform: translateY(-2px);
}
#cart-panel .close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
#cart-panel .cart-item .details .controls button.decrease:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#cart-panel .cart-item .details .controls button.remove img {
  width: 30px;
  height: 30px;
}

/* Move trash icon to top right of cart item */
#cart-panel .cart-item > button.remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  padding: 4px;
}
#cart-panel .cart-item > button.remove img {
  width: 30px;
  height: 30px;
}

/* Responsive styles for mobile and tablets */
@media (max-width: 768px) {
.container { width: 95%; }
.products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
.product-card { width: 100%; height: auto; padding: 12px; }
.product-card img { height: 120px; }
.main-header .header-inner { flex-direction: row !important; justify-content: space-between !important; align-items: center !important; }
.nav { flex-direction: column; gap: 10px; margin-top: 10px; }
.search-bar { margin-top: 20px; width: 100%; justify-content: flex-start; }
#cart-panel { width: 100%; max-width: none; }
#cart-panel .cart-item { flex-direction: column; align-items: stretch; padding: 12px; }
#cart-panel .cart-item .cart-row { flex-direction: column; gap: 8px; }
#cart-panel .cart-item .controls { justify-content: flex-start; gap: 8px; margin-bottom: 8px; }
.mobile-menu-btn {
  display: block !important;
}
.main-header .nav {
  display: none !important;
  flex-direction: column;
  background-color: #fafafa;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}
/* Show nav when body has nav-open */
body.nav-open .main-header .nav {
  display: flex !important;
}
/* Tablet responsive product page stacking */
.product-container {
  flex-direction: column !important;
  align-items: center !important;
  padding: 10px !important;
  gap: 20px !important;
}
.product-gallery, .product-info {
  width: 100% !important;
}
.product-gallery .main-img {
  max-width: 100% !important;
  height: auto !important;
}
}
@media (max-width: 480px) {
/* Ensure product names wrap on mobile */
.product-card h2,
.related-item .name,
.product-info h1 {
  white-space: normal !important;
  overflow-wrap: break-word !important;
  overflow: visible !important;
}
.products-grid { grid-template-columns: 1fr; gap: 10px; }
.product-card h2 { font-size: 14px; }
.product-card .price { font-size: 14px; }
.product-card .buy-btn { font-size: 12px; padding: 6px 10px; }
/* Make mobile logo bigger */
.main-header .logo img { height: 60px !important; }
/* Allow absolute positioning context */
.main-header {
  padding-top: 0 !important;
  padding-bottom: 60px !important;
  position: relative !important;
}
.search-wrapper input { width: 100px; }
.section-title { font-size: 18px; }
#cart-panel header h2 { font-size: 18px; }
#cart-panel .details .name { font-size: 14px; }
#cart-panel .details .price { font-size: 14px; }
#cart-panel footer .checkout-btn { padding: 10px; font-size: 14px; }
/* Enable scroll on related products */
.related-products .slider-wrapper,
.slider-container {
  overflow-x: auto !important;
}
.related-items {
  display: flex !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
}
.related-item {
  flex: 0 0 140px !important;
  max-width: 140px !important;
  scroll-snap-align: start !important;
  margin-right: 10px !important;
}
.slider-btn { display: none !important; }
.product-container, .product-page { flex-direction: column; }
.product-gallery, .product-info {
  width: 100% !important;
}
.product-gallery .main-img { max-width: 100%; height: auto; }
/* Show and fix mobile bottom bar at bottom of header */
.mobile-bottom-bar {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
}
/* Remove home button from hamburger nav and show mobile home button */
.main-header .nav .home-link { display: none !important; }
.mobile-home-btn { display: block !important; }
/* Center logo in header on phones */
.main-header .header-inner { justify-content: center !important; }
/* Product page mobile enhancements */
.product-container {
  flex-direction: column !important;
  margin: 0 !important;
  padding: 10px !important;
  gap: 20px !important;
}
.product-gallery, .product-info {
  width: 100% !important;
}
.thumbnails {
  display: flex !important;
  overflow-x: auto !important;
  gap: 8px !important;
  padding: 0 10px !important;
}
.thumb {
  flex: 0 0 auto !important;
  width: 60px !important;
  height: auto !important;
}
.product-info h1 {
  font-size: 20px !important;
  margin-bottom: 10px !important;
  text-align: center !important;
}
.buy-button {
  width: 100% !important;
  padding: 12px !important;
  font-size: 16px !important;
  text-align: center !important;
}
.tabs {
  margin: 20px 0 !important;
  padding: 0 !important;
}
.tab-buttons {
  display: flex !important;
  overflow-x: auto !important;
  gap: 8px !important;
  padding: 0 10px !important;
}
.tab-btn {
  flex: 0 0 auto !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
}
.tab-content {
  padding: 0 10px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}
/* Related products mobile styling */
.related-products h2 {
  font-size: 16px !important;
  padding: 0 10px !important;
}
.slider-wrapper {
  padding: 10px 0 !important;
}
.slider-container {
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
}
.related-items {
  display: flex !important;
  gap: 10px !important;
}
.slider-btn {
  display: none !important;
}
.section-header .mobile-sort-btn {
  order: 2;
  margin-right: 20px !important;
}
}

.product-card .card-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Hide placeholder old-price to remove stray line-through */
.product-card .price .old-price.placeholder {
  visibility: hidden;
}

/* ????? ??? ??????????? ??????? */
.product-card.unavailable {
  opacity: 0.6;
  filter: grayscale(50%);
  pointer-events: none;
  cursor: default;
}

.product-card.unavailable .buy-btn {
  pointer-events: none;
}

.buy-btn:disabled {
  background-color: #ccc;
  color: #fff;
  cursor: not-allowed;
}

.product-card.unavailable .stock {
  color: #ff8c00;
}

/* Empty cart message styling */
#cart-panel .empty-cart {
  position: absolute;
  top: calc(50% - 40px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
  padding: 40px 20px;
}
#cart-panel .empty-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}
#cart-panel .empty-text {
  font-size: 14px;
  color: #555;
  margin-bottom: 24px;
}
#cart-panel .empty-btn {
  display: inline-block;
  width: auto;
  min-width: 200px;
  padding: 12px 24px;
  background-color: #b6002c;
  color: #fff;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s;
}
#cart-panel .empty-btn:hover {
  background-color: #900021;
}

/* Language selector in top-bar */
.top-bar .right-text select#lang-select {
  background: transparent;
  border: 1px solid #555;
  color: #b8b8b8;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  appearance: none;
  cursor: pointer;
}
.top-bar .right-text {
  position: relative;
}
.top-bar .right-text::after {
  content: "?";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #b8b8b8;
}

/* ??????? ??????? ?????? */
.dropdown-menu .dropdown {
  position: relative;
}

.dropdown-menu .dropdown .dropdown-menu {
  top: 0;
  left: 100%;
  /* ??????????? display: none ?? .dropdown-menu */
}

.dropdown-menu .dropdown:hover > .dropdown-menu {
  display: flex;
}

/* ?????????? ????? ??? pop-up ???? ??????? */
#cart-overlay {
  backdrop-filter: blur(2px);
  transition: opacity 0.3s ease;
}
#cart-panel {
  border-radius: 0 8px 8px 0;
  padding: 0 16px;
  overflow-y: auto;
}
#cart-panel header {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
#cart-panel .checkout-btn {
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.3s, transform 0.2s;
}
#cart-panel .checkout-btn:hover {
  transform: translateY(-2px);
}

/* === Boxed nav links === */
/* remove old boxed nav block */
/* === end tweaks === */
/* === Flex nav links === */
.main-header .nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
}

.main-header .nav > a,
.main-header .nav > .dropdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 0;
  text-decoration: none;
  height: var(--nav-cell-height);
}

.main-header .nav > .dropdown .dropdown-toggle {
  padding: 8px 16px;
}

/* Hover border and text color */
.main-header .nav > a:hover,
.main-header .nav > .dropdown:hover {
  border-color: #b6002c;
  color: #b6002c;
}

/* Disable old underline pseudo-element */
.main-header .nav a::after {
  content: none !important;
}
/* === end flex nav === */

:root {
  --nav-cell-height: 50px; /* uniform nav item height */
  --primary-color: #b6002c;
  --secondary-color: #d51920;
  --accent-color: #FFCF26;
  --text-dark: #2c2c2c;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --border-light: #e9ecef;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Bootstrap override */
  --bs-primary: #d51920;
  --bs-primary-rgb: 213, 25, 32;
  --bs-link-color: #b6002c;
  --bs-link-hover-color: #d51920;
}

/* Restore full border for active nav links on index page */
.page-index .main-header .nav > a.active {
  border-bottom: 1px solid #b6002c !important;
}

/* Style first-level dropdown under Products & Services */
.main-header .nav > .dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-top: 4px solid #b6002c;
  border-radius: 0 0 4px 4px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}
.main-header .nav > .dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-header .nav > .dropdown .dropdown-menu a {
  padding: 12px 20px;
  color: #333;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}
.main-header .nav > .dropdown .dropdown-menu a:last-child {
  border-bottom: none;
}
.main-header .nav > .dropdown .dropdown-menu a:hover {
  background-color: #f8f8f8;
  color: #b6002c;
}

/* More specific second-level submenu open to the right */
.main-header .nav > .dropdown .dropdown-menu .dropdown {
  position: relative;
}
.main-header .nav > .dropdown .dropdown-menu .dropdown .dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin: 0;
  border: none;
  box-shadow: 4px 0 12px rgba(0,0,0,0.15);
  border-left: none;
  border-radius: 0 4px 4px 0;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}
.main-header .nav > .dropdown .dropdown-menu .dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

/* Removed obsolete category panel styles - filter panel has been removed */

/* Mobile responsive layout */
@media (max-width: 768px) {
  .catalog-body {
    flex-direction: column;
    gap: 10px;
  }
  
  .main-content-area {
    width: 100%;
  }
  
  .search-bar {
    margin-left: 0 !important;
  }
}

@media (max-width: 480px) {
  .catalog-body {
    gap: 0;
  }
  
  .main-content-area {
    width: 100%;
    padding: 0 10px;
  }
  
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding: 0 !important;
  }
}

/* Layout: use flex for sidebar + main content */
.products-section .container {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
}

/* Catalog body layout with proper sidebar */
.catalog-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Removed obsolete category panel styles - filter panel has been completely removed */

/* Main content area */
.main-content-area {
  flex: 1;
  min-width: 0;
}

.search-bar {
  margin-bottom: 20px;
  width: 100% !important;
}

.products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 260px)) !important;
  gap: 10px !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

/* Removed obsolete category menu styles */

/* New wrapper inside products-section */
.products-section .wrapper {
  position: relative;
  margin: 40px auto 0;
  max-width: 1000px;
  /* no padding, keep container centered */
}

/* Container centered within wrapper */
.products-section .wrapper .container {
  max-width: 100%;
  margin: 0;
  display: block;
}

/* Products grid spacing */
.products-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* Removed obsolete category layout styles */

/* Center products grid */
.products-grid {
  margin: 0 auto !important;
}

/* Removed obsolete price filter styles - filter panel has been completely removed */

/* Removed obsolete responsive category styles */

/* Removed obsolete category grid adjustments */

/* Override default grid/card size on index page to match screenshot */
body.page-index .products-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 260px)) !important;
  gap: 30px !important;
}
body.page-index .product-card {
  max-width: 260px !important;
}

/* Removed obsolete category highlight styles - cleaning up broken styles */

/* Load More button styles */
.load-more-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #e0e0e0;
  color: #333333;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  border-radius: 4px;
  transition: background-color 0.2s;
}

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

#menu-load-more-btn {
  transform: translateX(100px);
}

/* Shift search bar left by 30px */
.search-bar.shifted {
  margin-left: -40px !important;
}

/* Content text styling for about and delivery pages */
.content-text {
  width: 60vw;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 4px;
}
.content-text h1 {
  font-size: 2em;
  margin-bottom: 16px;
}
.content-text p {
  margin-bottom: 16px;
  line-height: 1.6;
}
.content-text ul {
  list-style: disc inside;
  margin-bottom: 20px;
}
.content-text li {
  margin-bottom: 8px;
}

/* Mobile Navigation Toggle */
.mobile-menu-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  margin-left: 20px;
}
@media (max-width: 768px) {
  .mobile-menu-btn {
      display: block !important;
  }
  .main-header .nav {
      display: none !important;
      flex-direction: column;
      background-color: #fafafa;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      z-index: 1000;
  }
  .main-header .nav a,
  .main-header .nav .dropdown {
      width: 100%;
      padding: 12px 20px;
  }
  body.nav-open .main-header .nav {
      display: flex !important;
  }
}

/* Full mobile off-canvas menu */
@media (max-width: 768px) {
.main-header {
  position: relative;
}
/* Ensure header-inner remains horizontal */
.header-inner {
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
}
.main-header .nav {
  display: flex !important;
  flex-direction: column !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 100% !important;
  max-height: calc(100vh - 60px) !important;
  transform: translateX(-100%) !important;
  transition: transform 0.3s ease !important;
  background-color: #fafafa !important;
  overflow-y: auto !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
  z-index: 1000 !important;
}
/* Show nav when open */
body.nav-open .main-header .nav {
  transform: translateX(0) !important;
}
/* Ensure mobile toggle visible */
.mobile-menu-btn {
  display: block !important;
}
/* Nav links full width */
.main-header .nav a,
.main-header .nav .dropdown-toggle,
.main-header .nav .dropdown-menu a {
  display: block !important;
  width: 100% !important;
  padding: 12px 20px !important;
  border-bottom: 1px solid #e0e0e0 !important;
  box-sizing: border-box !important;
}
.main-header .nav .dropdown-menu {
  position: static !important;
  box-shadow: none !important;
  background: none !important;
  display: none !important;
}
/* Allow submenu toggle open */
.main-header .nav .dropdown.open > .dropdown-menu {
  display: block !important;
}
}

/* Hide mobile home button by default */
.mobile-home-btn { display: none; }

/* Hide mobile bottom bar by default */
.mobile-bottom-bar { display: none; }

/* Product page specific overrides */
@media (max-width: 480px) {
/* Center product gallery and limit width */
.product-container { align-items: center !important; }
.product-gallery {
  width: auto !important;
  max-width: 300px !important;
  margin: 0 auto !important;
}
.product-gallery .main-img {
  width: 100% !important;
  height: auto !important;
}
.product-info { width: 100% !important; }
/* Fix buy button width */
.product-info .buy-button,
.buy-button {
  width: auto !important;
  display: inline-block !important;
  margin: 0 auto 20px auto !important;
}
/* Hide desktop cart icon on mobile */
.main-header .header-inner > .icons { display: none !important; }
/* Enable scroll on related products */
.related-products .slider-wrapper,
.slider-container {
  overflow-x: auto !important;
}
.related-items {
  display: flex !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
}
.related-item {
  flex: 0 0 140px !important;
  max-width: 140px !important;
  scroll-snap-align: start !important;
  margin-right: 10px !important;
}
.slider-btn { display: none !important; }
}
/* Restore desktop cart icon visibility */
.main-header .header-inner > .icons {
display: flex !important;
}

/* Mobile specific fixes */
@media (max-width: 480px) {
/* Center main product image */
.product-gallery .main-img {
  display: block !important;
  margin: 0 auto !important;
}
/* Show and reposition slider arrows */
.slider-btn {
  display: flex !important;
  top: 10px !important;
  transform: translateY(0) !important;
}
.slider-btn.left {
  left: 10px !important;
}
.slider-btn.right {
  right: 10px !important;
}
/* Enlarge buy button on product page */
.buy-button {
  padding: 14px 24px !important;
  font-size: 18px !important;
}
}

/* Mobile tiny tweaks */
@media (max-width: 480px) {
/* Center product-gallery container */
.product-gallery { display: flex !important; justify-content: center !important; }
/* Position right arrow after second card */
.slider-btn.right { right: auto !important; left: calc(2 * 140px + 10px) !important; }
/* Rectangular buy button */
.buy-button { border-radius: 0 !important; }
}

/* Image modal styles */
.image-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #fff;
display: none;
justify-content: center;
align-items: center;
z-index: 3000;
}
.image-modal-img {
max-width: 100%;
max-height: 100%;
}
.image-modal-close {
position: absolute;
top: 10px;
right: 10px;
font-size: 32px;
color: #000;
cursor: pointer;
z-index: 3001;
}

/* Mobile thumbnail and buy-button tweaks */
@media (max-width: 480px) {
/* Horizontal thumbnails below main image */
.product-gallery {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.thumbnails {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  margin-top: 15px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  justify-content: flex-start !important;
}
.thumb {
  width: 60px !important;
  height: 60px !important;
  flex-shrink: 0 !important;
}
.product-gallery .main-img {
  width: 100% !important;
  max-width: 100% !important;
}
/* Buy button like main site, expanded */
.buy-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #b6002c !important;
  padding: 16px 24px !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  font-weight: bold !important;
  white-space: nowrap !important;
  width: 100% !important;
  max-width: 300px !important;
  margin: 20px auto !important;
}
.buy-button img {
  width: 24px !important;
  height: 24px !important;
  filter: brightness(0) invert(1) !important;
}
/* Tabs horizontal scroll */
.tab-buttons {
  overflow-x: auto !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  padding: 4px 0 !important;
}
.tab-btn {
  flex: 0 0 auto !important;
  padding: 6px 8px !important;
}
.tabs {
  margin: 8px 0 !important;
  padding: 0 !important;
}
/* Disable page scroll when swiping on main image */
.product-gallery .main-img {
  touch-action: none !important;
}
}

/* Reduce tabs panel height */
.tabs {
  margin: 10px 0 !important;
  padding: 0 !important;
}
.tab-buttons {
  gap: 8px !important;
}

/* Highlight current thumbnail */
.thumb.active-thumb {
border: 2px solid #b6002c !important;
}
/* Swipe animation for main image */
.main-img.swipe-animate {
opacity: 0.6 !important;
transition: opacity 0.2s ease !important;
}

@media (min-width: 769px) {
#cart-panel .cart-item .details .controls button.remove img,
#cart-panel .cart-item > button.remove img {
  width: 20px;
  height: 20px;
}
}

/* Force word-wrap for long product names everywhere */
.product-card h2,
.related-item .name,
.product-info h1 {
white-space: normal !important;
overflow-wrap: break-word !important;
word-wrap: break-word !important;
hyphens: auto;
}

/* Align mobile sort button in section header */
.mobile-sort-btn {
  margin-left: auto;
}

/* Align breadcrumb text left and sort button right on mobile */
@media (max-width: 480px) {
.section-header {
  display: flex !important;
  align-items: center !important;
}
.section-header .section-title {
  order: 1;
  margin-right: auto;
  text-align: left;
}
.section-header .mobile-sort-btn {
  order: 2;
}
}

/* Arrow navigation buttons for desktop image gallery */
.product-gallery {
  position: relative;
}

.product-gallery .image-nav {
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  opacity: 0.75;
  transition: background 0.3s, opacity 0.3s;
  border-radius: 50%;
  z-index: 10;
}
.product-gallery .image-nav-left { left: 10px; }
.product-gallery .image-nav-right { right: 10px; }
.product-gallery .image-nav:hover {
  background: rgba(0, 0, 0, 0.7);
  opacity: 1;
}

@media (min-width: 481px) {
  .product-gallery .image-nav {
      display: block;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255, 255, 255, 0.9);
      color: #333;
      border: 2px solid #ccc;
      width: 60px;
      height: 60px;
      font-size: 30px;
      line-height: 60px;
      text-align: center;
      cursor: pointer;
      opacity: 1;
      transition: background 0.3s, color 0.3s, opacity 0.3s;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      border-radius: 50%;
      z-index: 10;
  }
  .product-gallery .image-nav-left { left: -30px; }
  .product-gallery .image-nav-right { right: -30px; }
  .product-gallery .image-nav:hover {
      background: rgba(255, 255, 255, 1);
      color: #000;
      opacity: 1;
  }
}

@media (max-width: 480px) {
  .product-gallery .image-nav {
      display: none;
  }
}

/* Override for product-gallery arrows to ensure correct positioning and style */
@media (min-width: 769px) {
.product-gallery > .image-nav {
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 24px !important;
  line-height: 40px !important;
  text-align: center !important;
  background: rgba(0,0,0,0.5) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50% !important;
  opacity: 0.75 !important;
  transition: background 0.3s, opacity 0.3s !important;
  z-index: 9999 !important;
}
.product-gallery > .image-nav-left {
  left: 10px !important;
}
.product-gallery > .image-nav-right {
  right: 10px !important;
}
.product-gallery > .image-nav:hover {
  background: rgba(0,0,0,0.7) !important;
  opacity: 1 !important;
}
}

/* Mobile thumbnails horizontal layout */
@media (max-width: 480px) {
.thumbnails {
  display: flex !important;
  flex-direction: row !important;
  overflow-x: auto !important;
  gap: 8px !important;
  margin: 15px 0 !important;
  max-height: none !important;
  overflow-y: hidden !important;
  justify-content: flex-start !important;
  padding: 0 !important;
}
.thumb {
  width: 60px !important;
  height: 60px !important;
  max-width: 60px !important;
  flex-shrink: 0 !important;
}
/* Hide desktop navigation arrows on mobile */
.main-image-wrapper > button {
  display: none !important;
}
}  
/* ???????? override ??? flex-???????? ?????? ?? ????????? ??????????? */
@media (max-width: 480px) {
.thumbnails {
  display: flex !important;
  overflow-x: auto !important;
  gap: 8px !important;
  padding: 0 10px !important;
}
.thumb {
  flex: 0 0 auto !important;
  width: 60px !important;
  height: auto !important;
}
}

/* Desktop: horizontal thumbnails below main image */
@media (min-width: 769px) {
.product-gallery {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.thumbnails {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 10px !important;
  margin-top: 20px !important;
}
.thumb {
  width: 80px !important;
  margin: 5px !important;
}
}

/* Option 3: hide thumbnails for product page */
.product-gallery .thumbnails {
display: none !important;
}

/* Force hide all thumbnails on product page and center main image */
#thumbnails,
.product-gallery .thumbnails {
display: none !important;
}
.product-gallery .main-image-wrapper {
margin: 0 auto !important;
max-width: 600px !important;
}

/* Reposition thumbnails: horizontal scroll below main image */
.product-gallery {
display: flex !important;
flex-direction: column !important;
align-items: center !important;
}
.product-gallery .main-image-wrapper {
order: 1 !important;
margin: 0 auto !important;
}
.product-gallery .thumbnails {
order: 2 !important;
display: flex !important;
flex-wrap: nowrap !important;
overflow-x: auto !important;
justify-content: center !important;
gap: 8px !important;
margin: 20px auto 0 !important;
width: 100% !important;
max-width: 600px !important;
}
.product-gallery .thumb {
flex: 0 0 auto !important;
margin: 0 5px !important;
width: 80px !important;
border: 2px solid transparent !important;
}

/* === FINAL OVERRIDE: horizontal thumbnails under main image === */
#thumbnails {
display: flex !important;
flex-wrap: nowrap !important;
justify-content: flex-start !important;
overflow-x: auto !important;
gap: 8px !important;
margin: 20px auto 0 !important;
width: 100% !important;
max-width: 600px !important;
order: 2 !important;
}
.product-gallery .main-image-wrapper {
order: 1 !important;
margin: 0 auto !important;
}
#thumbnails .thumb {
flex: 0 0 auto !important;
width: 80px !important;
margin: 0 5px !important;
}

#cart-panel .cart-item > button.remove {
  right: 16px !important;  /* ???????? ?????? ?????? */
}
#cart-panel .cart-item > button.remove img {
  width: 20px !important;   /* ????????? ?????? ??? ?? */
  height: 20px !important;
}

/* Desktop override: ????????? ?????? ??????? ??? ???????, ????? ?????? ?? ????????? ????? */
@media (min-width: 769px) {
#cart-panel .cart-item {
  padding: 16px 80px 16px 16px !important;  /* ????????? ?????? ?????? */
}
#cart-panel .cart-item .details {
  padding-right: 80px !important;  /* ?????????? ?????? ?????? details */
}
}

/* ????????? override ??? ?????? ???????? ??????? ?? ???????? */
@media (min-width: 769px) {
#cart-panel .cart-item {
  padding: 16px 80px 16px 16px !important;
}
#cart-panel .cart-item .details {
  padding-right: 80px !important;
}
#cart-panel .cart-item > button.remove {
  right: 16px !important;
}
#cart-panel .cart-item > button.remove img {
  width: 20px !important;
  height: 20px !important;
}
}

/* Ensure product names in cart break to avoid overlap with delete icon */
@media (min-width: 769px) {
#cart-panel .cart-item .details .name {
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  hyphens: auto !important;
}
}

/* Desktop override: prevent product name overlapping delete icon */
@media (min-width: 769px) {
#cart-panel .cart-item {
  padding-right: 96px !important; /* ????????? ????? ??? ?????? ???????? */
}
#cart-panel .cart-item .details {
  padding-right: 96px !important;
}
#cart-panel .cart-item .details .name {
  white-space: normal !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
}
}

@media (min-width: 769px) {
#cart-panel .cart-item .details .name {
  margin-right: 40px !important;
}
}

/* Desktop override: prevent product name overlapping delete icon */
@media (min-width: 769px) {
#cart-panel .cart-item .details .name {
  max-width: calc(100% - 96px) !important;
  display: inline-block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
}

/* Override: allow wrapping for cart item names */
#cart-panel .cart-item .details .name {
white-space: normal !important;
overflow-wrap: break-word !important;
word-wrap: break-word !important;
hyphens: auto !important;
}

/* Override: increase space between controls and price */
#cart-panel .cart-item .details .cart-row {
justify-content: flex-start !important;
gap: 24px !important;
}

/* Final override: enforce single-line cart row and prevent price wrap */
#cart-panel .cart-item .details .cart-row {
display: flex !important;
flex-wrap: nowrap !important;
align-items: center !important;
justify-content: flex-start !important;
gap: 16px !important;
}
#cart-panel .cart-item .details .price {
white-space: nowrap !important;
flex-shrink: 0 !important;
}

/* Preloader Styles удалены */

.product-images img {
  width: 100%;
  height: 400px; /* ????????????? ?????? */
  object-fit: contain; /* ???????? ????????? ??????????? */
  object-position: center; /* ?????????? ??????????? */
  margin-bottom: 15px;
  border-radius: 8px;
}



.product-gallery .main-img {
  width: 100% !important;
  height: 500px !important;
  object-fit: contain !important;
  object-position: center !important;
}

.thumbnails .thumb,
.thumbnails img {
  width: 80px !important;
  height: 80px !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* ����� ��� �������� ������ */
.rating {
font-size: 14px;
color: #555;
margin: 8px 0;
}

/* ��������������� ������������ �������� */
.rating-display {
--rating-color: #f1c40f !important;
--rating-text-color: #fff !important;
display: flex !important;
align-items: center !important;
gap: 4px !important;
margin: 8px 0 !important;
}
.rating-stars {
color: var(--rating-color) !important;
font-size: 18px !important;
}
.rating-badge {
background-color: var(--rating-color) !important;
color: var(--rating-text-color) !important;
}
@media only screen and (max-width: 480px) {
.rating-display {
  flex-direction: row !important;
  gap: 8px !important;
  justify-content: flex-start !important;
  align-items: center !important;
}
.rating-stars {
  font-size: 24px !important;
}
.rating-badge {
  font-size: 12px !important;
  width: 24px !important;
  height: 24px !important;
}
}

/* ========== Final override: gradient rating styling ========== */
.rating-display {
--rating-color: #f1c40f !important;
--rating-text-color: #fff !important;
display: flex !important;
align-items: center !important;
gap: 4px !important;
margin: 8px 0 !important;
}
.rating-stars {
color: var(--rating-color) !important;
font-size: 18px !important;
}
/* �������� ����� .rating-badge ��� ����������� � ���� ����� */
.rating-badge {
background-color: var(--rating-color) !important;
color: var(--rating-text-color) !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
width: 28px !important;
height: 28px !important;
border-radius: 50% !important;
font-size: 14px !important;
line-height: 28px !important;
padding: 0 !important;
}
@media only screen and (max-width: 480px) {
.rating-display {
  flex-direction: row !important;
  gap: 8px !important;
  justify-content: flex-start !important;
  align-items: center !important;
}
.rating-stars {
  font-size: 24px !important;
}
/* �������� ����� .rating-badge ��� ��������� ��������� */
.rating-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  font-size: 12px !important;
  line-height: 24px !important;
  padding: 0 !important;
}
}

/* ����� ��� ��������� �������� � ������������ ������ */
.rating-stars .star {
margin-right: 2px;
color: inherit !important;
}
.rating-stars .star.half {
position: relative;
display: inline-block;
color: #ccc !important;
}
.rating-stars .star.half::before {
content: '?';
position: absolute;
top: 0;
left: 0;
width: 50%;
overflow: hidden;
color: var(--rating-color) !important;
}

/* ���������� ����� ������������ ������ */
.rating-stars .star.half::before {
display: none !important;
}
.rating-stars .star.half {
display: inline-block !important;
background: linear-gradient(90deg, var(--rating-color) 50%, #ccc 50%) !important;
background-clip: text !important;
-webkit-background-clip: text !important;
-webkit-text-fill-color: transparent !important;
margin-right: 2px !important;
}

/* ����� ��� ��������� �������� */
.rating-stars .star.partial {
display: inline-block !important;
background: linear-gradient(90deg, var(--rating-color) var(--fill), #ccc var(--fill)) !important;
background-clip: text !important;
-webkit-background-clip: text !important;
-webkit-text-fill-color: transparent !important;
margin-right: 2px !important;
}

.tab-text {
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.tab-text p {
  margin: 0 0 1em;
}

.tab-text ul,
.tab-text ol {
  margin: 0 0 1em 1.5em;
  padding-left: 0;
}

.tab-text li {
  margin-bottom: 0.5em;
}

.tab-text h1,
.tab-text h2,
.tab-text h3,
.tab-text h4,
.tab-text h5,
.tab-text h6 {
  margin: 1em 0 0.5em;
  font-weight: bold;
}

.tab-text img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
}

/* ����� ��� ������ �� CKEditor */
.tab-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
.tab-text th,
.tab-text td {
  border: 1px solid #ddd;
  padding: 0.5em;
}
.tab-text th {
  background-color: #f8f8f8;
  text-align: left;
}
.tab-text caption {
  caption-side: bottom;
  font-size: 0.9em;
  color: #666;
}
.tab-text thead {
  background-color: #f0f0f0;
}
.tab-text tbody tr:nth-child(even) {
  background-color: #fbfbfb;
}

/* Rating styles for product cards */
.product-card .rating {
display: inline-flex;
align-items: center;
font-size: 0.9rem;
margin: 0.5em 0;
}
.product-card .rating .rating__icon {
margin-right: 0.25em;
}
.product-card .rating.rating--high {
color: #4caf50;
}
.product-card .rating.rating--medium {
color: #ff9800;
}
.product-card .rating.rating--low {
color: #f44336;
}

/* Enhanced card layout */
.product-card .card-image {
position: relative;
width: 100%;
height: 180px; /* uniform image container height */
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
.product-card .card-image img {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
object-fit: contain;
transition: transform 0.3s ease;
}
.product-card:hover .card-image img {
transform: scale(1.05);
}
.product-card .card-body {
width: 100%;
padding: 12px;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.product-card .card-body h2 {
font-size: 14px;
margin-bottom: 8px;
}
.product-card .price-row {
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
align-items: flex-start;
width: 100%;
margin: 8px 0;
}
.product-card .price-row .price {
flex-grow: 1;
white-space: nowrap;
}
.product-card .price-row .buy-btn {
display: inline-flex;
align-items: center;
justify-content: center;
margin: 0;
margin-left: 12px;
white-space: nowrap;
min-width: 100px;
text-align: center;
}
.product-card .card-body .stock {
font-size: 12px;
margin-bottom: 8px;
}
.product-card .card-body .code {
font-size: 11px;
color: #888;
}

/* Sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1999;
}
.sidebar-overlay.active {
  display: block;
}

/* Removed obsolete category panel styles - filter panel has been completely removed */

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.main-categories {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-categories > li > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-categories > li:hover > a {
    color: #007bff;
}

.submenu {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    padding: 1rem;
    min-width: 200px;
}

.has-submenu:hover .submenu {
    display: block;
}


.main-header .nav > .dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.main-header .nav > .dropdown.mega-menu > .dropdown-menu {
  left: 40%;
  width: 1200px;
  transform: translateX(-40%) translateY(5px);
}
.main-header .nav > .dropdown.mega-menu:hover > .dropdown-menu {
  transform: translateX(-40%) translateY(0);
}


/* Override z-index: ensure mega-dropdown overlays filters */
.dropdown-menu.mega-dropdown {
  z-index: 3000 !important;
}
/* Removed obsolete category panel z-index override - filter panel has been completely removed */

@media (max-width: 480px) {
  /* Hide the slider navigation buttons on mobile */
  .related-products .slider-btn,
  .slider-wrapper .slider-btn {
    display: none !important;
  }
  
  /* Enhance the slider for touchscreen swiping */
  .related-products .slider-wrapper,
  .slider-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    position: relative !important;
    padding: 0 10px !important;
  }
  
  .related-items {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 10px !important;
    width: auto !important;
  }
  
  .related-item {
    flex: 0 0 140px !important;
    max-width: 140px !important;
    scroll-snap-align: start !important;
    margin-right: 10px !important;
  }
}

/* Mobile tweaks: full-width buy button and rating text alignment */
@media (max-width: 480px) {
  .product-info .buy-button,
  .buy-button {
    display: flex !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 8px 16px !important;
    gap: 4px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .rating-display {
    display: flex !important;
    align-items: center !important;
  }
  .rating-display .rating-badge {
    align-self: center !important;
  }
}

@media (max-width: 768px) {
  .navbar.d-md-none .container { position: relative !important; }
  .navbar.d-md-none .btn.btn-link.p-2.me-2 { display: none !important; }
  .navbar.d-md-none .navbar-toggler {
    position: absolute !important;
    left: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
  .navbar.d-md-none .cart-wrapper {
    position: absolute !important;
    right: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
  .navbar.d-md-none .navbar-brand {
    display: block !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
  /* Overlay mobile menu without pushing header */
  .navbar.d-md-none .navbar-collapse {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background: #fff !important;
    z-index: 1000 !important;
  }
}

/* ����� ��� ���������� ����� � ������ */
.social-links {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #b6002c;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #900021;
  transform: translateY(-3px);
}

.social-links a i {
  font-size: 18px;
}

@media (max-width: 768px) {
  .social-links {
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  .social-links a {
    width: 32px;
    height: 32px;
  }
  
  .social-links a i {
    font-size: 16px;
  }
}

/* ������������� ������ � ����������� ������ */
.social-panel-trigger {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: #b6002c;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.social-panel-trigger:hover {
  background-color: #900021;
}

.social-panel {
  position: fixed;
  bottom: 85px; /* ���������� ��� ������� */
  right: 30px;
  display: flex;
  flex-direction: column; /* ������������ ������������ */
  gap: 10px;
  opacity: 0;
  transform: translateY(30px); /* �������� � translateX �� translateY ��� ������������ �������� */
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
  width: 40px; /* ������������� ������, ��������������� ������� ������ */
  align-items: center; /* ������������� ������ �� ����������� */
}

.social-panel.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.social-panel a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #b6002c;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.social-panel a:hover {
  background-color: #900021;
  transform: translateY(-3px);
}

.social-panel a i {
  font-size: 18px;
}

@media (max-width: 768px) {
  .social-panel-trigger, .social-panel a {
    width: 42px; /* ����������� ������ */
    height: 42px; /* ����������� ������ */
  }
  
  .social-panel-trigger i, .social-panel a i {
    font-size: 18px; /* ����������� ������ ������ */
  }
  
  .social-panel {
    width: 42px; /* ������������� ������� ������ */
    right: 15px; /* ����� ��� �������� ������� */
    bottom: 90px;
  }
  
  .social-panel-trigger {
    right: 15px; /* ����� � ������� ���� */
    bottom: 15px; /* ����� � ������� ���� */
  }
}

@media (max-width: 480px) {
  .social-panel-trigger, .social-panel a {
    width: 40px; /* ����������� ������ */
    height: 40px; /* ����������� ������ */
  }
  
  .social-panel-trigger i, .social-panel a i {
    font-size: 16px;
  }
  
  .social-panel {
    width: 40px; /* ������������� ������� ������ */
    right: 12px; /* ����� ��� �������� ������� */
    bottom: 85px;
  }
  
  .social-panel-trigger {
    right: 12px; /* ����� � ������� ���� */
    bottom: 12px; /* ����� � ������� ���� */
  }
}

/* Sticky footer styles */
html {
    height: 100%;
}
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#footer-container {
    margin-top: auto;
    flex-shrink: 0;
}
main {
    flex: 1 0 auto;
}
