* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  /* background-image: url("https://app.lightkey.store/i/bulk-wp.webp") !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-attachment: fixed !important; */
}

h1 {
  white-space: nowrap;
}

h2 {
  position: sticky;
  top: 2.5em;
}

h3 {
  margin: 0.5em 0;
}

li {
  padding: 0.3em;
  margin-left: 20px;
}

a {
  text-decoration: none;
  color: #0064b6;
}

.qty-control {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background-color: #e0e0e0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bolder;
  font-size: large;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background-color: #c0c0c0;
}

.qty-btn.minus {
  color: #f44336;
}

.qty-btn.plus {
  color: #4caf50;
}

.qty-value {
  margin: 0 5px;
  min-width: 20px;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.logo-container h1 {
  margin: 0;
  font-size: 1.5rem;
  text-align: left;
}

#category-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 24px; /* Current gap between items */
  margin-left: 2em;
}

#category-nav a {
  display: inline-block;
  padding: 5px 10px;
  background-color: #f5f5f5;
  border-radius: 15px;
  font-size: 0.9rem;
  transition: background-color 0.2s;
  white-space: nowrap;
}

#category-nav a:hover {
  background-color: #506dee90;
  color: #fff;
}

.search-container {
  width: auto;
  margin-bottom: 0;
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
  h2 {
    top: 2px;
  }

  .header-top-row {
    display: none; /* Hide first row on mobile */
  }

  /* Show floating search button on mobile instead */
  .floating-search-container {
    display: flex;
  }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .site-header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
  }

  .header-top-row {
    border-bottom: 1px solid #333;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.footer-links a {
  display: inline-block;
  padding: 5px 10px;
  background-color: #f5f5f5;
  border-radius: 15px;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.footer-links a:hover {
  background-color: #e0e0e0;
}

.cart-summary {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  margin: 20px 0;
}

#cart-items,
#modal-cart-items {
  margin-bottom: 10px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px dashed #ddd;
}

#cart-total,
#modal-cart-total {
  font-weight: bold;
  text-align: right;
  padding-top: 10px;
  border-top: 2px solid #ddd;
}

#modal-payment-method {
  font-weight: bold;
  text-align: right;
  padding: 10px 0;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fefefe;
  margin: 3% auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.payment-section,
.agreement-section,
.contact-section,
.order-summary {
  margin: 0;
  padding: 15px;
  border-radius: 5px;
}

.payment-section {
  background-color: aliceblue;
}

.agreement-section {
  background-color: #ffa12530 !important;
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.payment-option,
.agreement-option {
  margin: 4px 0;
}

.payment-option label {
  margin-left: 5px;
}

.agreement-option label {
  margin-left: 5px;
  font-size: 0.9rem;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.contact-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.contact-btn.telegram {
  background-color: #0088cc;
}

.contact-btn.email {
  background-color: #ff4081b0;
}

.contact-btn.copy {
  background-color: #4caf50b0;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: dark) {
  body {
    color: #eee;
    background: #121212;
  }

  body a {
    color: #809fff;
  }

  th {
    background-color: black !important;
  }

  h2 {
    color: #000;
    background-color: green !important;
  }

  .header-nav a,
  .footer-links a {
    background-color: #2d2d2d;
    color: #ddd;
  }

  .header-nav a:hover,
  .footer-links a:hover {
    background-color: #3d3d3d;
  }

  .cart-summary {
    background-color: #2d2d2d;
  }

  .qty-btn {
    background-color: #3d3d3d;
    color: #ddd;
  }

  .qty-btn:hover {
    background-color: #4d4d4d;
  }

  .float-order-button {
    background: linear-gradient(45deg, #ff6b6b, #f7b733);
  }

  .modal-content {
    background-color: #222;
    color: #eee;
  }

  .close-modal {
    color: #ddd;
  }

  .close-modal:hover {
    color: #fff;
  }
  
  #cart-total > span:nth-child(4) {
    color: #72ff6b!important;
  }
}

.float-order-hint {
  z-index: 9999;
}
#cart-total > span:nth-child(4) {
    color: #21792a!important;
  }
/* Floating order button */
.float-order-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #72ff6b, #f7b733);
  color: white;
  width: 64px;
  height: 64px;
  /* padding: 12px 25px; */
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-weight: bold;
  font-size: 42px;
  z-index: 1000;
  opacity: 0.95;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.float-order-button:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.float-order-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

div.sheet {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
}

blockquote.warn {
  border-left: 5px solid #eabb00;
  padding: 10px;
  margin: 20px 0;
  background-color: rgba(234, 187, 0, 0.1);
  border-radius: 0 5px 5px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: 0 2px 10px #00000010;
  font-size: 0.9rem;
}

/* Star column and starred row highlight */
th.star-col { width: 36px; text-align: center; }
td.star-cell { width: 36px; text-align: center; user-select: none; }
tr.starred { background: rgba(255, 215, 0, 0.08); }

th,
td {
  padding: 8px;
  text-align: left;
}

th.left,
td.left {
  text-align: left;
}

th.center,
td.center {
  text-align: center;
}

th.right,
td.right {
  text-align: right;
}

th.qty,
td.qty {
  text-align: center;
  width: 70px;
}

th {
  background-color: #21792a;
  color: white;
  text-transform: uppercase;
}

tr:hover {
  background-color: #4caf5010 !important;
}

/* Brief glow to guide attention to compliant rows */
.glow-pulse-row {
  animation: glowPulse 0.9s ease-out;
}

@keyframes glowPulse {
  0% { box-shadow: inset 0 0 0 rgba(114, 255, 107, 0); background-color: transparent; }
  30% { box-shadow: inset 0 0 0 9999px rgba(114, 255, 107, 0.12); }
  60% { box-shadow: inset 0 0 0 9999px rgba(114, 255, 107, 0.18); }
  100% { box-shadow: inset 0 0 0 rgba(114, 255, 107, 0); background-color: transparent; }
}

tr:nth-child(even) {
  background-color: #55555510;
}

table {
  border: 1px solid #dddddd30;
  border-radius: 8px;
  overflow: hidden;
}

h2 {
  text-align: center;
  margin-top: 2em;
  margin-bottom: 1em;
  padding: 0.3em;
  background: linear-gradient(to bottom, rgba(50, 140, 205, 0.63), #0000f040);
  color: #fff;
  border-radius: 5px;
}

@media screen and (max-width: 600px) {
  /* .payment-section,
  .order-summary {
    background-color: aliceblue;
  } */

  .close-modal {
    display: none;
  }

  th,
  td {
    padding: 6px;
    font-size: 0.85rem;
  }

  .hide-mobile {
    display: none;
  }

  h2 {
    font-size: 1.3rem;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 400px) {
  th,
  td {
    padding: 4px;
    font-size: 0.75rem;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }
}

/* Currency display in product prices */
.price-rub {
  color: #666;
  font-size: 0.9em;
  margin-left: 5px;
}

/* Payment section styling */
.payment-currency-note {
  margin-top: 10px;
  padding: 8px;
  background-color: #f8f8f8;
  border-radius: 4px;
  font-size: 0.85em;
  color: #555;
}

/* Exchange rate information section */
.exchange-rate-info {
  margin: 15px 0;
  padding: 10px;
  background-color: #f8f8f8;
  border-radius: 4px;
  font-size: 0.9em;
}

.exchange-rate-info p {
  margin: 5px 0;
}

/* API status indicator */
.api-status {
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 0.85em;
  display: inline-block;
}

.api-status.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.api-status.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.api-status.loading {
  background-color: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
}

/* Currency warning for SBP without exchange rates */
.currency-warning {
  color: #c62828;
  font-size: 0.85em;
  margin-left: 5px;
}

/* Search filter styles */
.search-container {
  display: flex;
  width: 100%;
  margin-bottom: 10px;
  justify-content: center;
  position: sticky;
}

.search-input {
  width: 80%;
  max-width: 400px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.9rem;
  outline: none;
}

.search-input:focus {
  border-color: #2196f3;
  box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}

/* Floating search container with toggle and input */
.floating-search-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Hide floating search on desktop */
@media screen and (min-width: 769px) {
  .floating-search-container {
    display: none;
  }
}

/* Expanded state for the search container */
.floating-search-container.expanded .float-search-input-wrapper {
  width: 56%;
  opacity: 1;
  margin-left: 10px;
  pointer-events: all;
}

/* Float search button - matching the order button style */
.float-search-button {
  background: linear-gradient(45deg, #2196f3aa, #03a9f4aa);
  color: white;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-weight: bold;
  font-size: 42px;
  opacity: 0.95;
  transition: all 0.2s;
  cursor: pointer;
  width: 64px;
  height: 64px;
}

.float-search-button:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.float-search-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Floating search input wrapper */
.float-search-input-wrapper {
  position: relative;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-left: 0;
  pointer-events: none;
}

/* Floating search input */
.float-search-input {
  width: 100%;
  padding: 10px 35px 10px 15px;
  /* border: none; */
  border-radius: 20px;
  font-size: 24px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  outline: none;
}

/* Regular search input wrapper */
.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* Clear search button (both for floating and regular) */
.clear-search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: none; /* Initially hidden */
  justify-content: center;
  align-items: center;
}

.clear-search-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #666;
}

/* Regular search input */
.search-input {
  width: 100%;
  max-width: 400px;
  padding: 8px 35px 8px 15px; /* Extra padding on right for clear button */
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
}

/* Hide the regular search on small screens */
@media screen and (max-width: 768px) {
  .search-container {
    display: none !important;
  }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .float-search-button {
    background: linear-gradient(45deg, #0d47a1, #01579b);
  }

  .payment-section,
  .order-summary {
    background-color: unset !important;
  }

  .float-search-input {
    background: #333;
    color: #fff;
  }

  .clear-search-button {
    color: #aaa;
  }

  .clear-search-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ddd;
  }
  #category-nav a {
    background-color: #00000010;
    color: #00ffeed7;
  }
  #category-nav a:hover {
    background-color: #00000030;
    color: #fff;
  }
}

/* No results message */
.no-results {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}

/* Hidden products when filtered */
.hidden-product {
  display: none;
}

/* Highlight matching text */
.highlight {
  background-color: rgba(255, 255, 0, 0.3);
  padding: 0 2px;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .header-nav {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
  }

  .search-input {
    background-color: #2d2d2d;
    color: #eee;
    border-color: #444;
  }

  .search-input:focus {
    border-color: #809fff;
    box-shadow: 0 0 5px rgba(128, 159, 255, 0.3);
  }

  .highlight {
    background-color: rgba(255, 255, 0, 0.2);
  }
}

/* No results message */
.no-results {
  margin: 40px auto;
  text-align: center;
  padding: 30px 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  color: #666;
  font-style: italic;
  max-width: 500px;
}

/* Hidden product when filtered */
.hidden-product {
  display: none !important;
}

/* Highlight matching text */
.highlight {
  background-color: rgba(255, 255, 0, 0.25);
  padding: 0 2px;
  border-radius: 3px;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .search-input {
    background-color: #2d2d2d;
    color: #eee;
    border-color: #444;
  }

  .search-input:focus {
    border-color: #809fff;
    box-shadow: 0 0 8px rgba(128, 159, 255, 0.25);
  }

  .highlight {
    background-color: rgba(255, 222, 0, 0.15);
  }

  .no-results {
    background-color: #2d2d2d;
    color: #aaa;
  }
}

/* Media queries for responsive design */
@media screen and (max-width: 600px) {
  .search-input {
    max-width: 90%;
    font-size: 0.9rem;
    padding: 7px 12px;
  }
}

hide {
  display: none;
}

.qty-value {
  width: 40px;
  height: 28px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  padding: 0;
  margin: 0 5px;
}

.qty-value:focus {
  outline: none;
  border-color: #2196f3;
  box-shadow: 0 0 3px rgba(33, 150, 243, 0.3);
}

/* For dark mode */
@media (prefers-color-scheme: dark) {
  .qty-value {
    background-color: #333;
    color: #eee;
    border-color: #555;
  }

  .qty-value:focus {
    border-color: #4caf50;
    box-shadow: 0 0 3px rgba(76, 175, 80, 0.3);
  }
}

/* Payment methods dropdown for mobile */
.payment-dropdown-container {
  display: none; /* Initially hidden, shown via JS on small screens */
  margin: 15px 0;
}

.payment-dropdown {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
  .payment-dropdown {
    background-color: #2d2d2d;
    color: #eee;
    border-color: #444;
  }
}
/* Reset default button styles and fix bright/shadow effects */

/* Global button reset */
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Float order and search buttons base styles */
button.float-order-button,
button.float-search-button {
  border: none;
  outline: none;
  background-image: linear-gradient(
    45deg,
    #72ff6b,
    #f7b733
  ); /* For order button */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
  padding: 0;
  font-family: inherit;
  color: white;
  cursor: pointer;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-tap-highlight-color: transparent; /* Remove mobile tap highlight */
}

/* Remove focus outline and state */
button.float-order-button:focus,
button.float-search-button:focus {
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Keep the same shadow as normal state */
}

/* Specific styles for order button */
button.float-order-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  font-size: 42px;
  z-index: 1000;
  opacity: 0.95;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  background-image: linear-gradient(45deg, #72ff6b, #f7b733);
}

/* Specific styles for search button */
button.float-search-button {
  width: 64px;
  height: 64px;
  font-size: 42px;
  opacity: 0.95;
  transition: all 0.2s;
  background-image: linear-gradient(45deg, #2196f3aa, #03a9f4aa);
}

/* Hover states */
button.float-order-button:hover,
button.float-search-button:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Active (pressed) states */
button.float-order-button:active,
button.float-search-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Inactive state for order button */
button.float-order-button[data-active="false"] {
  background-image: linear-gradient(45deg, #b0b0b0, #d0d0d0);
  opacity: 0.7;
  cursor: default;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  button.float-search-button {
    background-image: linear-gradient(45deg, #0d47a1, #01579b);
  }

  button.float-order-button[data-active="false"] {
    background-image: linear-gradient(45deg, #505050, #606060);
  }
}

/* Fix for mobile browsers */
@media (hover: none) {
  button.float-order-button:hover,
  button.float-search-button:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
}

/* Mobile Bottom Sheet Modal Styles */
@media screen and (max-width: 768px) {
  .modal-content {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 16px 16px 0 0;
    padding-bottom: 30px;
    max-height: 90vh;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
  }

  .modal-open .modal-content {
    transform: translateY(0);
  }

  /* Modal header with drag indicator */
  .modal-header {
    text-align: center;
    padding: 12px 0;
    position: relative;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 15px;
  }

  .drag-indicator {
    width: 40px;
    height: 5px;
    background-color: #e0e0e0;
    border-radius: 3px;
    margin: 0 auto 10px;
  }

  /* Slide-down animation for contact section */
  .contact-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out,
      padding 0.3s ease-out;
    opacity: 0;
    padding: 0 15px;
    margin: 0;
  }

  .contact-section.visible {
    max-height: 300px;
    opacity: 1;
    padding: 15px;
    margin-top: 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
  }

  /* Make checkboxes more prominent */
  .agreement-option {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .agreement-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-top: 2px;
  }

  .agreement-option label {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  /* Dark mode adjustments */
  @media (prefers-color-scheme: dark) {
    .modal-content {
      background-color: #1e1e1e;
    }

    .modal-header {
      border-bottom-color: #333;
    }

    .drag-indicator {
      background-color: #555;
    }

    .agreement-option {
      background-color: #2a2a2a;
    }

    .contact-section.visible {
      background-color: #2a2a2a;
    }
  }
}

/* Additional styles for body when modal is open */
@media screen and (max-width: 768px) {
  body.modal-open {
    overflow: hidden; /* Prevent scrolling behind the modal */
    position: fixed;
    width: 100%;
    height: 100%;
  }

  /* Modal overlay styles */
  .modal.modal-open {
    display: block;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  /* Contact buttons enhanced styling */
  .contact-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 15px;
  }

  .contact-btn {
    padding: 12px 0;
    width: 100%;
    font-size: 0.95rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .contact-btn::before {
    font-size: 1.5rem;
  }

  .contact-btn.telegram::before {
    content: "👤";
  }

  .contact-btn.email::before {
    content: "📧";
  }

  .contact-btn.copy::before {
    content: "📋";
  }

  /* Cart items in modal */
  #modal-cart-items {
    max-height: 30vh;
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 15px;
  }

  #modal-cart-items .cart-item {
    padding: 8px 0;
  }

  /* Order summary section */
  .order-summary {
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    margin: 15px 0;
    padding: 15px;
  }

  /* Dark mode adjustments */
  @media (prefers-color-scheme: dark) {
    .modal.modal-open {
      background-color: rgba(0, 0, 0, 0.7);
    }

    .order-summary {
      border-top-color: #333;
      border-bottom-color: #333;
    }
  }
}
