@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0,0,0,0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
}

body {
  font-family:'Inter', sans-serif;
  /*background-color: #f8f9fa;*/
  background: url('../images/Gemini_Generated_Image_yw4k9oyw4k9oyw4k.cleaned.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  line-height: 1.5;
  margin: 0;
}

.header {
  background: rgba(30, 34, 43, 0.55);
  backdrop-filter: blur(1px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  border-bottom: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  column-gap: 20px;
  position: relative;
  z-index: 990;
}

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

.header-left p {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 1.2em;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 0;

  background: linear-gradient(to bottom, #FFD700 20%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8));

  transition: filter 0.3s ease;
}

.logo-link:hover p {
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
}


.header-right {
  display: flex;
  justify-content: flex-end;
}

.search-container {
  position: relative;
  margin-right: 15px;
}

#search-input {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
  border-radius: 20px;
  padding: 8px 15px;
  color: white;
  backdrop-filter: blur(5px);
  width: 180px;
  transition: width 0.3s;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 20px;
  padding-left: 40px;
}

#search-input:hover {
  border-color: rgba(255, 215, 0, 0.5);
}

#search-input:focus {
  width: 250px;
  outline: none;
  border-color: #FFD700;
}


#search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-results-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: rgba(30, 34, 43, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 9999 !important;
}

.search-item {
  display: flex;
  align-items: center;
  padding: 10px;
  text-decoration: none;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.search-item:hover {
  background: rgba(255, 215, 0, 0.1);
}

.search-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 4px;
}

.fav-header-link {
  margin-right: 15px;
  font-size: 20px;
  transform: translateY(2px);
}

.header .logo {
  font-size: 1.2em;
  font-weight: bold;
}

.logo img {
  padding: 5px 15px;
  max-height: 80px;
  max-width: 100%;
}

.logo-link {
  text-decoration: none; /
  color: inherit;
  display: contents;
}

.logo-link:visited,
.logo-link:active,
.logo-link:hover {
  color: inherit;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(2px);
  padding: 10px 20px;
}

.header .nav a {
  font-size: 0.9em;
  margin: 0;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.header .nav a:hover {
  color: #FFD700;
}

.cart {
  display: block;
  font-size: 22px;
}

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

.burger {
  color: #ffffff;
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100%;
  background: rgba(30, 34, 43, 0.95);
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
  padding: 20px;
  transition: 0.3s;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu a {
  text-decoration: none;
  color: #ffffff;
  font-size: 18px;
}

.mobile-menu a:hover {
  color: #FFD700;
}

.mobile-menu hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  margin: 10px 0;
}

.mobile-menu-brand {
  padding: 10px 0 20px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  margin-bottom: 15px;
}

.mobile-menu-brand p {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 1.2em;
  font-weight: bold;
  letter-spacing: 3px;
  margin: 0;

  background: linear-gradient(to bottom, #FFD700 20%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart,
.cart-mobile,
.fav-header-link,
.fav-mobile {
  position: relative;
}

.cart-count, .fav-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: red;
  color: white;
  font-size: 12px;
  border-radius: 50%;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
  font-weight: bold;
  transition: 0.2s;
}

.fav-count {
  background: transparent;
  color: #ffd700;
  border: 1px solid #ffd700;
  padding: 1px 5px;
}

.search {
  width: 220px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 5px rgba(0, 86, 179, 0.5);
  transition: 0.2s;
}

.main {
  display: flex;
  gap: 40px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
  margin-right: 20px;
  font-size: 1em;
}

.cart-box {
  /*background: white;*/
  border: 1px solid var(--border);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.catalog {
  border: 1px solid #ccc;
  /*background: white;*/
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.cart-box, .catalog {
  background: rgba(30, 34, 43, 0.75);
  backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

.catalog ul {
  list-style: none;
  padding: 0;
}

.catalog li {
  margin: 8px 0;
}

.catalog li a {
  color: #e0e0e0;
  text-decoration: none;
}

.catalog li a:hover {
  color: #FFD700;
}

.about-page {
  max-width: 900px;
  margin: 0 auto;
}

.about-hero {
  text-align: center;
  margin-bottom: 40px;
  background: rgba(30, 34, 43, 0.75);
  backdrop-filter: blur(1px);
  padding: 40px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

  .about-hero h1 {
    color: #FFD700;
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }

.about-hero p {
  font-size: 1.2em;
  color: #e2e8f0;
  max-width: 700px;
  margin: 0 auto;
}

.about-description {
  margin-bottom: 40px;
}

.about-description > p {
  font-size: 1.1em;
  line-height: 1.7;
  color: #f8fafc;
  background: rgba(30, 34, 43, 0.75);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #2563eb;
  margin-bottom: 30px;
}

.about-highlight {
  font-size: 1.2em;
  font-weight: 500;
  color: #FFD700;
  text-align: center;
  padding: 25px;
  background: rgba(30, 34, 43, 0.75);
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  margin-bottom: 40px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.about-card {
  background: rgba(30, 34, 43, 0.75);
  backdrop-filter: blur(3px);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.4);
}

.delivery-title {
  display: flex;
  align-items: center;
  gap: 0;
}

.delivery-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.about-card h3 {
  color: #FFD700;
  font-size: 1.3em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-card p {
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 1em;
}

.about-features {
  background: rgba(30, 34, 43, 0.75);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-features h2  {
  color: #ffffff !important;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.8em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-size: 1.1em;
  line-height: 1.6;
  color: #e2e8f0;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #28a745;
  font-weight: bold;
  font-size: 1.2em;
}

.features-list strong {
  color: #FFD700;
}

#special-products-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
  max-width: 800px;
  justify-content: flex-start;
  margin: 0 auto;
}

.special-banner {
  background: linear-gradient(to right, rgba(26, 29, 35, 0.8), transparent),
  url("../images/AdobeStock_384574746-2048x1366.jpg");
  width: 100%;
  height: 350px;
  /*background-image: url("images/AdobeStock_384574746-2048x1366.jpg");*/
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 40px;
}

.special-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
}

.special-banner-content {
  position: relative;
  color: white;
  text-align: center;
  max-width: 600px;
}

.special-banner h1 {
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-size: 32px;
  margin-bottom: 10px;
}

.special-banner p {
  font-size: 18px;
  margin-bottom: 20px;
}

.banner-btn {
  background: #2563eb;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: 0.3s;
}

.banner-btn:hover {
  background: #1d4ed8;
    transform: translateY(-2px);
}

.content {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Відстань між блоками */
}

.content h1 {
  color: #FFD700;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  text-align: center;
  font-size: 28px;
  font-weight: 600;
}

.content h2 {
  color: #FFD700;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  text-align: center;
  font-size: 24px;
  font-weight: 600;
}

.old-price {
  text-decoration: line-through;
  color: gray;
  margin-right: 8px;
}

.available {
  color: #28a745;
}

.product-card, .catalog-item {
  background: rgba(30, 34, 43, 0.75);
  backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  width: 250px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-card a, .catalog-item a {
  color: #ffffff;
}

.product-card:hover, .catalog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 215, 0, 0.4);
}

.product-card img, .catalog-item img {
  border-radius: 8px;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-description-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.catalog-preview {
  margin-top: 20px;
}

.catalog-preview h2 {
  text-align: center;
}
.catalog-grid {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

/*.catalog-item {*/
/*  width: 250px;*/
/*  text-align: center;*/
/*  border: 1px solid var(--border);*/
/*  border-radius: 12px;*/
/*  background: white;*/
/*  box-shadow: var(--shadow);*/
/*  padding: 15px;*/
/*  transition: all 0.3s ease;*/
/*}*/

/*.catalog-item:hover {*/
/*  transform: translateY(-5px);*/
/*  box-shadow: 0 10px 30px rgba(0,0,0,0.08);*/
/*}*/

.catalog-item img {
  width: 100%;
}

.catalog-item,
.product-card {
  position: relative;
}

.catalog-item a::before,
.product-card a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.catalog-item:hover,
.product-card:hover {
  cursor: pointer;
}

.fav-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  user-select: none;
  transition: transform 0.2s ease;
  background: rgba(30, 34, 43, 0.6);
  border-radius: 50%;
  width: 33px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fav-btn:hover {
  transform: scale(1.1);
  background: rgba(30, 34, 43, 0.9);
}

.footer {
  background: rgba(30, 34, 43, 0.55);
  backdrop-filter: blur(1px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  padding: 30px 20px;
  font-size: 0.9em;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 200px;
}

.footer-column h4 {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.footer-column a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 5px;
  transition: color 0.3s;
}

.footer-column a:hover {
    color: #FFD700;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  font-size: 0.85em;
  color: #ffffff;
}

#category-products-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
  max-width: 800px;
  justify-content: flex-start;
  margin: 0 auto;
}

.category-header {
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
}

.category-header-content {
  position: relative;
  color: white;
  text-align: center;
}

.category-header h2 {
  font-size: 28px;
}


.out-of-stock {
  color: red;
}

#manufacturer-tables {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.manufacturer-block {
  flex: 1 1 calc(50% - 10px);
  /*background: rgba(30, 34, 43, 0.75);*/
  /*backdrop-filter: blur(1px);*/
  border-radius: 12px;
  padding: 15px;
}

.manufacturer-block h3 {
  margin-bottom: 10px;
  color: #FFD700;
  text-align: center;
}

.manufacturer-block table {
  width: 100%;
  font-size: 14px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.manufacturer-block th {
  background-color: #0056b3;
  color: white;
  padding: 8px;
  text-align: center;
}

.manufacturer-block td {
  padding: 8px;
  text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.manufacturer-block td:nth-child(n + 3) {
  font-weight: bold;
  color: #28a745;
}

#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2),
  0 0 10px rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  animation: slideIn 0.3s ease-out forwards;
}

.toast.success {
  border-left: 6px solid #00ff88;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.9); }
}

.toast.hiding {
  animation: fadeOut 0.3s ease-in forwards;
}

.cart-box button, .order-button, .add-to-cart {
  font-size: 15px;
  background-color: #0056b3;
  color: white;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 8px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: 0.3s;
}

.cart-box button:hover, .order-button:hover, .add-to-cart:hover {
  background-color: #003f88;
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.add-to-cart:disabled {
  background-color: #a0a0a0;
  color: #ffffff;
  cursor: not-allowed;
}

.product-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 10px auto;
    background: rgba(30, 34, 43, 0.75);
    backdrop-filter: blur(1px);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-header,
.product-prices,
.product-description {
  width: 100%;
  max-width: 850px;
  margin: 0 auto 20px auto;

  background: rgba(30, 34, 43, 0.75);
  backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;

  padding: 25px;
  box-sizing: border-box;
}

.product-prices.is-empty {
  background: none !important;
  border: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#product-image {
  width: 250px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.product-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.product-info h1 {
  margin-bottom: 10px;
  font-size: 24px;
}

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

.product-description {
  margin-top: 20px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    background: rgba(30, 34, 43, 0.75);
    backdrop-filter: blur(1px);
}

.price-cell {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  position: relative;
}

.price-cell:hover {
    background-color: rgba(37, 99, 235, 0.2);
    color: #FFD700;
}

.price-cell.active {
    background-color: rgba(37, 99, 235, 0.4);
    color: #ffffff;
    border: 1px solid #FFD700;
  border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  transform: translateY(-1px);
}

.price-cell.active::after {
    content: '✓';
    position: absolute;
    top: -4px;
    right: -4px;
    background: #FFD700;
    color: #1e222b;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cart-section {
  padding: 20px;
  flex: 1;
  background: rgba(30, 34, 43, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.empty-state-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 20px;
}

.empty-message {
  max-width: 500px;
  width: 100%;
  padding: 40px 20px;
  background: rgba(30, 34, 43, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  border-radius: 12px;
  text-align: center;
}

.empty-message h2 {
  color: #FFD700;
  margin-bottom: 15px;
}

.btn-back {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.cart-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}


.btn-outline-danger {
  background: transparent;
  color: #dc3545;
  border: 1px solid #dc3545;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  background: #dc3545;
  color: white;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

#cart-table {
  width: 100%;
  border-collapse: collapse;
  background-color: transparent;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

#cart-table th {
  background-color: rgba(0, 86, 179, 0.5);
  color: #ffffff;
  text-align: left;
  padding: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

#cart-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: middle;
  color: #e2e8f0;
  background: rgba(30, 34, 43, 0.4);
}

#cart-table tr:hover td {
  background: rgba(37, 99, 235, 0.1);
}

#cart-table td a {
  color: #ffffff;
  font-weight: 500;
  transition: color 0.2s;
}

#cart-table td a:hover {
  color: #FFD700;
}

.out-of-stock-row {
  opacity: 0.5;
}

.cart-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 2px solid #FFD700;
  border-radius: 0 0 12px 12px;
}

.cart-summary h3 {
  color: #ffffff;
  margin: 0;
}

#cart-page-total {
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.qty-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: 0.2s;
}

.qty-value {
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

.qty-input {
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  width: 50px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  height: 25px;
  -moz-appearance: textfield; /* Прибирає стандартні стрілочки в Firefox */
}

.qty-input:focus {
  outline: none;
  border-color: #2563eb;
}

/* Прибирає стандартні стрілочки в Chrome/Safari */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.delete-btn {
  background: none;
  border: none;
  color: #ff4d4d;
  cursor: pointer;
  font-size: 1.2em;
  transition: 0.3s;
}

#cart-table td:nth-child(7) {
  font-weight: bold;
  color: #FFD700;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  display: none;
  opacity: 0;
}

.modal-content {
  background-color: #1e222b;
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
  color: #FFD700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}

.close-modal:hover {
  color: red;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #cbd5e1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  transition: 0.3s;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  /* Цей хак замінює колір фону на дуже повільну анімацію внутрішньої тіні */
  -webkit-box-shadow: 0 0 0px 1000px rgba(30, 34, 43, 0.9) inset !important;
  /* Колір тексту */
  -webkit-text-fill-color: #ffffff !important;
  /* Плавність переходу */
  transition: background-color 5000s ease-in-out 0s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #64748b;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2563eb;
  background: rgba(0, 0, 0, 0.4);
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.modal-footer {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submit-order-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.submit-order-btn:hover {
  background-color: #218838;
}

/* Контейнер віджета */
.contact-widget {
  position: fixed;
  bottom: 50px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* Меню з іконками (сховане за замовчуванням) */
.contact-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Ефект пружності */
  pointer-events: none; /* Щоб не клікалося, коли сховане */
}

/* Коли віджет активний (відкритий) */
.contact-widget.active .contact-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Круглі кнопочки месенджерів */
.contact-item {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: 0.2s;
}

.contact-item:hover {
  transform: scale(1.1);
}

/* Фірмові кольори месенджерів */
.contact-item.telegram { background: #0088cc; }
.contact-item.viber { background: #665CAC; }
.contact-item.phone { background: #25d366; }

/* Головна кнопка чату */
.contact-main-btn {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: rgba(30, 34, 43, 0.85);
  backdrop-filter: blur(10px);
  border: 2px solid #FFD700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: 0.3s;
  animation: pulse-border 2s infinite;
}

.main-btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.main-btn-content span {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 4px;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.5px;
}

.contact-widget.active .main-btn-content span {
  display: none;
}

/* Анімація перетворення кнопки при відкритті меню (хрестик) */
.contact-widget.active .contact-main-btn {
  background: #FFD700;
  border-color: transparent;
  transform: rotate(90deg); /* Крутимо іконку */
  animation: none; /* Вимикаємо пульсацію, коли меню відкрите */
}

/* Анімація пульсації золотої рамки */
@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}


.product-image-wrapper {
  position: relative;
  display: inline-block; /* Щоб рамка облягала фото, а не розтягувалась на весь екран */
  margin-top: 15px;
  max-width: 100%;
}

.product-info .fav-btn {
  position: absolute;
  top: 5px;
  bottom: auto;
  right: 5px;
  width: 38px;
  height: 38px;
  font-size: 22px;
  z-index: 9999;

  background: rgba(30, 34, 43, 0.95);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === СТИЛІ ДЛЯ ЦІНИ В КАРТЦІ ТОВАРУ === */

.price-wrapper {
  margin-top: auto;
  padding: 10px;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: #10b981;
}

.product-price span {
  font-size: 1rem;
  font-weight: 500;
  color: #94a3b8;
  margin-left: 2px;
}

.product-price-empty {
  font-size: 1.1rem;
  font-weight: 500;
  color: #f59e0b;
  font-style: italic;
}

.product-card .add-to-cart-btn {
  width: 100%;
  margin-top: 10px;
  position: relative;
  z-index: 2;
  padding: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.product-card .add-to-cart-btn:hover:not(:disabled):not(.added) {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Якщо товару немає в наявності або немає ціни */
.product-card .add-to-cart-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  box-shadow: none;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Анімація при успішному додаванні в кошик */
.product-card .add-to-cart-btn.added {
  background: #10b981;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.wholesale-info {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
  border-radius: 4px;
}

.wholesale-info .price-val {
  font-weight: 700;
  color: #10b981;
}

.wholesale-info .threshold-text {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
}

.opt-badge {
  color: #10b981;
}

.opt-price {
  color: #10b981;
  font-weight: bold;
}

.opt-hint {
  font-size: 0.85em;
  color: #f59e0b;
  padding: 3px 8px;
  margin-top: 6px;
  white-space: nowrap;
  font-weight: 500;
}

.search-view-all {
  padding: 10px;
  text-align: center;
  background: rgba(37, 99, 235, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.search-view-all a {
  color: #2563eb;
  font-weight: 500;
  font-size: 14px;
  display: block;
  transition: color 0.2s ease;
}

.search-view-all a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.search-loading,
.search-empty-msg,
.search-error-msg {
  color: #aaa;
  font-size: 16px;
}

.no-results-box {
  text-align: center;
  padding: 40px;
  background: rgba(30, 34, 43, 0.85);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  grid-column: 1 / -1; /* Щоб блок розтягувався на всю ширину сітки каталогу */
}

.no-results-title {
  font-size: 18px;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.no-results-title strong {
  color: #2563eb;
}

.no-results-hint {
  font-size: 14px;
  color: #aaa;
  margin: 0;
}

.search-page-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sort-container {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.sort-container select {
  background: #1e222b;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.sort-container select:focus {
  border-color: #2563eb;
}

@media (max-width: 576px) {
  .search-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .sort-container {
    width: 100%;
    justify-content: space-between;
  }
}


/* Адаптація для телефонів */
@media (max-width: 480px) {
  .contact-widget {
    bottom: 50px;
    right: 15px;
  }
  .contact-main-btn {
    width: 70px;
    height: 70px;
  }
  .contact-item {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 768px) {

  body {
    background: #1a1d23;
    margin: 0;
    padding: 0;
    min-height: 100vh;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* 110% створює запас під панеллю браузера */
    height: 110%;

    background-image: url('../images/Gemini_Generated_Image_rzheumrzheumrzhe.webp');
    background-repeat: no-repeat;

    /* Відправляємо фон за весь контент */
    z-index: -1;

    /* Запобігає смиканню картинки при зміні висоти */
    transform: translateZ(0);
    will-change: transform;
  }

  .header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .header-left p {
    display: none;
  }

  .logo-link {
    gap: 0;
  }

  .logo {
    transform: translateY(3px);
  }

  .search-container {
    flex-grow: 1;
  }

  #search-input {
    width: 100%;
  }

  #search-input:focus {
    width: 100%;
  }

  .search-results-dropdown {
    position: fixed;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    top: 80px;
  }

  .fav-header-link {
    font-size: 21px;
    margin-right: 17px;
  }

  .header-right {
     display: flex;
     justify-content: flex-end;
  }

  .burger {
    display: block;
  }

  .mobile-contacts {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
  }

  .mobile-contacts h4 {
    margin-bottom: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
  }

  .mobile-contacts a,
  .mobile-contacts div {
    display: block;
    margin-bottom: 12px;
    color: #cbd5e1;
    font-size: 17px;
    text-decoration: none;
  }

  .nav {
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .main {
    display: flex;
    padding-top: 0;
    flex-direction: column;
  }

  .cart-section {
    padding-top: 0;
  }

  .catalog-grid, #special-products-container, #category-products-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
  }

.catalog-grid > *,
#special-products-container > *,
#category-products-container > * {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 10px;
}

  .catalog-grid img,
  #special-products-container img,
  #category-products-container img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 8px;
  }

  .product-card, .catalog-item {
    font-size: 14px;
  }

  .manufacturer-block {
    flex: 1 1 100%;
  }

  .cart-container {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cart-box, .catalog {
    display: none;
  }

  .active-mobile h3::after {
    transform: rotate(180deg);
  }

  .active-mobile p,
  .active-mobile a,
  .active-mobile ul {
    display: block !important;
  }

  .product-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #product-image {
    width: 100%;
    max-width: 300px;
  }

  #manufacturer-tables table,
  #manufacturer-tables tbody {
    display: block;
    width: 100%;
  }

  #manufacturer-tables thead {
    display: none;
  }

  #manufacturer-tables tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
      background: rgba(30, 34, 43, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
      color: #ffffff;
  }

  #manufacturer-tables td:nth-child(1),
  #manufacturer-tables td:nth-child(2) {
    width: 50%;
    margin-bottom: 15px;
      border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
  }

  #manufacturer-tables td:nth-child(3),
  #manufacturer-tables td:nth-child(4),
  #manufacturer-tables td:nth-child(5) {
    width: 33.33%;
    margin-bottom: 10px;
  }

  #manufacturer-tables td:last-child {
    width: 100%;
    margin-top: 15px;
    padding: 0;
  }

  #manufacturer-tables .add-to-cart {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 6px;
  }

  #manufacturer-tables td {
    display: flex;
    flex-direction: column;
    border: none;
    font-size: 16px;
  }

  #manufacturer-tables td::before {
    font-size: 14px;
      color: #aaa;
    margin-bottom: 4px;
  }

  #manufacturer-tables td:nth-child(1)::before { content: "Діаметр"; }
  #manufacturer-tables td:nth-child(2)::before { content: "Вага"; }
  #manufacturer-tables td:nth-child(3)::before { content: "Роздріб"; }
  #manufacturer-tables td:nth-child(4)::before { content: "ФОП"; }
  #manufacturer-tables td:nth-child(5)::before { content: "Опт"; }

  .about-highlight {
    font-size: 1.1em;
    padding: 15px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .fav-btn {
    width: 30px;
    height: 30px;

    top: 8px;
    right: 8px;

    font-size: 18px;
  }

  .product-image-wrapper .fav-btn {
    touch-action: manipulation;
  }
}
