:root {
  --font-size-mobile: 18px;
  --font-size-desktop: 16px;
  --heading-mobile: 24px;
  --heading-desktop: 32px;
  --icon-color: #ff9500;
  --icon-scale: 1;
}

/* No default selection outline */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus,
*:focus {
    outline: none !important;
}

a, button, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  font-family: Montserrat, sans-serif;
  font-size: var(--font-size-mobile);
  background-color: #121212;
  color: #E0E0E0;
  width: 100%;
  box-sizing: border-box;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

body.popup-open {
  overflow: hidden;
}

main { flex: 1 0 auto; }

*, *::before, *::after { 
  font-family: inherit;
  box-sizing: border-box;
}

button, input, select, textarea { font-family: inherit; }

/* ===== Z-INDEX ORGANIZATION ===== */
.header { z-index: 999; }
.bottom-nav { z-index: 1001; }
.products-header { z-index: 998; }
.favorites-popup-overlay,
.product-popup-overlay,
.suggestions-popup-overlay { z-index: 10000; }
.faq-popup-overlay { z-index: 20000; }
.gallery-zoom-overlay { z-index: 20000; }
.confirmation-modal-overlay { z-index: 10001; }
.toast-notification { z-index: 10003; }

/* ===== SVG ICONS - ALL ORANGE ===== */
svg {
  color: var(--icon-color);
}

svg path,
svg circle,
svg rect {
  fill: var(--icon-color);
  stroke: var(--icon-color);
}

.header-logo,
.header-logo-compact,
.header-logo-compact-small {
  color: var(--icon-color);
  fill: var(--icon-color);
}

/* ===== BUTTON CLASSES (btn to be renamed to button) ===== */
.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s;
}

@media (hover: hover) {
  .btn-icon:hover svg {
    color: #fff;
    transform: scale(1.1);
  }
  
  .btn-icon:hover svg path,
  .btn-icon:hover svg circle,
  .btn-icon:hover svg rect {
    fill: #fff;
    stroke: #fff;
  }
}

.btn-icon svg {
  color: #818181;
  transition: color 0.2s;
}

.btn-icon svg path,
.btn-icon svg circle,
.btn-icon svg rect {
  fill: #818181;
  stroke: #818181;
  transition: fill 0.2s, stroke 0.2s;
}

.btn-carousel {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  padding: 0;
}

@media (hover: hover) {
  .btn-carousel:hover {
    background: rgba(0, 0, 0, 0.8);
  }
}

.btn-filter {
  background-color: #1e1e1e;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 7px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) {
  .btn-filter:hover {
    background-color: #2b2b2b;
    border: 1px solid #8f8f8f;
  }
}

.btn-favorite {
  background: transparent;
  border: 1px solid #414141;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
  position: relative;
}

@media (hover: hover) {
  .btn-favorite:hover {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #8f8f8f;
  }

  .btn-favorite:hover svg:not(.favorite-hover) {
    display: none;
  }

  .btn-favorite:hover svg.favorite-hover {
    display: block;
  }
}

.btn-favorite svg {
  width: 16px;
  height: 16px;
  color: #818181;
  fill: #818181;
}

.btn-favorite.is-favorite svg {
  color: #e91e63;
  fill: #e91e63;
}

.btn-favorite.is-favorite svg.favorite-hover {
  display: none;
}

/* ===== RESPONSIVE TOGGLES ===== */
.desktop-only { display: flex; }
.mobile-only { display: none; }

@media (max-width: 1024px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
}

@media (min-width: 768px) {
  body { font-size: var(--font-size-desktop); }
  h1 { font-size: var(--heading-desktop); }
}

@media (min-width: 1025px) {
  body {
    padding-top: 60px;
  }
}

.products-loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  color: #818181;
}

.products-loading-indicator .spinner {
  margin: 0 15px 0 0;
}

/* Mobile: show back button only when popup open, FAQ button when no popup */
@media (max-width: 768px) {
  .header-back-button {
    display: none;
  }

  .header-faq-button {
    display: flex;
  }

  body.popup-open .header-back-button {
    display: flex;
    padding-left: 20px;
  }

  body.popup-open .header-faq-button {
    display: none;
  }
}

.button-text {
  font-size: 13px;
  color: #818181;
  white-space: nowrap;
  transition: color 0.2s;
}

@media (max-width: 900px) {
  .button-text { display: none; }
}

/* ===== FAQ POPUP (to be renamed to introduction popup) ===== */

.faq-popup-content {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 20px;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.faq-popup-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 15px; 
}

.faq-popup-title { 
  font-size: 18px; 
  font-weight: 600; 
  color: #E0E0E0; 
}

.faq-popup-close {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (hover: hover) {
  .faq-popup-close:hover svg { color: #fff; }
  .faq-popup-close:hover svg path { fill: #fff; }
}

.faq-popup-close svg { 
  color: #818181; 
  transition: color 0.2s; 
}

.faq-popup-close svg path {
  fill: #818181;
  transition: fill 0.2s;
}

.faq-textbox {
  background-color: rgba(30, 30, 30, 0.6);
  color: #a3a3a3;
  font-size: 13px;
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 12px;
  padding: 10px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.faq-open-button {
  font-size: 14px;
  font-weight: normal;
  background-color: rgba(30, 30, 30, 0.6);
  color: #818181;
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 40px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

@media (hover: hover) {
  .faq-open-button:hover {
    background-color: rgba(43, 43, 43, 0.6);
    border: 1px solid rgba(143, 143, 143, 0.5);
    color: #a3a3a3;
  }
}

/* ===== FULL FAQ POPUP (contents to be moved to FAQ page) ===== */

  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 10000;
}

  display: flex;
}

  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 20px;
  padding: 20px;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(65, 65, 65, 0.5);
}

  font-size: 20px;
  font-weight: 600;
  color: #E0E0E0;
}

  background: transparent;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (hover: hover) {
}

  color: #818181;
  transition: color 0.2s;
}

  fill: #818181;
  transition: fill 0.2s;
}

  color: #a3a3a3;
  font-size: 14px;
  line-height: 1.6;
}

.faq-section,
.info-section {
  margin-bottom: 25px;
}

.faq-section h3,
.info-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--icon-color);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-item {
  margin-bottom: 15px;
  padding: 15px;
  background-color: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 12px;
}

.faq-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: #E0E0E0;
  margin-bottom: 8px;
}

.faq-item p,
.info-section p {
  font-size: 13px;
  color: #a3a3a3;
  line-height: 1.6;
  margin: 0;
}

.info-section p {
  padding: 12px;
  background-color: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 12px;
}

.catalog-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

/* ===== REVIEWS POPUP ===== */
.reviews-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 10000;
}

.reviews-popup-overlay.active {
  display: flex;
}

.reviews-popup-content {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 20px;
  padding: 20px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.reviews-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(65, 65, 65, 0.5);
}

.reviews-popup-title {
  font-size: 18px;
  font-weight: 600;
  color: #E0E0E0;
}

.reviews-popup-close {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (hover: hover) {
  .reviews-popup-close:hover svg {
    color: #fff;
  }
  .reviews-popup-close:hover svg path {
    fill: #fff;
  }
}

.reviews-popup-close svg {
  color: #818181;
  transition: color 0.2s;
}

.reviews-popup-close svg path {
  fill: #818181;
  transition: fill 0.2s;
}

.reviews-popup-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.review-item {
  background-color: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  gap: 12px;
}

.review-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 15px;
  background-color: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 12px;
  padding: 15px;
  align-items: flex-start;
}

.review-item-product-image {
  position: relative;
  width: 120px;
  height: 144px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1e1e1e;
  flex-shrink: 0;
}

.review-item-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.review-item-avatar {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #121212;
  object-fit: cover;
}

.review-item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
}

.review-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.review-item-product {
  font-size: 14px;
  font-weight: 600;
  color: #E0E0E0;
  cursor: pointer;
}

@media (hover: hover) {
  .review-item-product:hover {
    color: #a3a3a3;
  }
}

.review-item-user {
  font-size: 12px;
  color: #a3a3a3;
}

.review-item-rating {
  display: flex;
  gap: 4px;
  margin: 4px 0;
}

.review-item-star {
  font-size: 14px;
}

.review-item-text {
  font-size: 13px;
  color: #a3a3a3;
  line-height: 1.5;
}

.review-item-date {
  font-size: 11px;
  color: #666;
}

.review-item-response {
  background-color: rgba(0, 0, 0, 0.3);
  border-left: 3px solid #ff9500;
  padding: 10px 12px;
  margin-top: 10px;
  border-radius: 6px;
}

.review-item-response-author {
  font-size: 12px;
  font-weight: 600;
  color: #ff9500;
  margin-bottom: 5px;
}

.review-item-response-text {
  font-size: 12px;
  color: #a3a3a3;
  line-height: 1.4;
}

.review-item-delete {
  background: transparent;
  border: none;
  color: #818181;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 0;
  transition: color 0.2s;
}

@media (hover: hover) {
  .review-item-delete:hover {
    color: #ff6666;
  }
}

.no-reviews {
  text-align: center;
  color: #818181;
  padding: 40px 20px;
}

.product-reviews-section {
  border-top: 1px solid rgba(65, 65, 65, 0.5);
  padding-top: 20px;
  margin-top: 20px;
}

.product-reviews-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #E0E0E0;
  margin: 0 0 15px 0;
}

.review-form {
  background-color: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  margin-bottom: 15px;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.review-form-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
}

.review-form-stars {
  display: flex;
  gap: 4px;
}

.review-star-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  color: #666;
  transition: all 0.2s ease;
  user-select: none;
}

.review-star-btn:hover {
  color: #FFD700;
  transform: scale(1.2);
}

.review-star-btn.selected {
  color: #FFD700;
}

@media (hover: none) and (pointer: coarse) {
  .review-star-btn:active {
    transform: scale(1.3);
  }
}

@media (max-width: 600px) {
  .review-form-controls {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .review-form-stars {
    justify-content: center;
    margin-bottom: 10px;
  }
}

.review-form-textarea {
  width: 100%;
  min-height: 60px;
  max-height: 200px;
  background-color: #1e1e1e;
  border: 1px solid #414141;
  border-radius: 8px;
  color: #E0E0E0;
  padding: 10px;
  font-family: inherit;
  font-size: 13px;
  resize: none;
  overflow-y: auto;
}

.review-form-textarea::placeholder {
  color: #666;
}

@media (hover: hover) {
  .review-form-textarea:hover {
    border-color: #8f8f8f;
  }
}

.review-form-textarea:focus {
  outline: none;
  border-color: #16a6ed;
  box-shadow: 0 0 0.2rem #0088CC;
}

.review-form-button {
  background-color: #066fa3;
  color: #9cddfd;
  border: 1px solid #16a6ed;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
}

@media (hover: hover) {
  .review-form-button:hover {
    background-color: #0d88cc;
  }
}

.review-form-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-review-item {
  background-color: rgba(30, 30, 30, 0.3);
  border: 1px solid rgba(65, 65, 65, 0.3);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.product-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.product-review-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.product-review-user {
  font-size: 13px;
  font-weight: 500;
  color: #E0E0E0;
}

.product-review-rating {
  display: flex;
  gap: 3px;
}

.product-review-star {
  font-size: 12px;
}

.product-review-date {
  font-size: 11px;
  color: #666;
}

.product-review-text {
  font-size: 12px;
  color: #a3a3a3;
  line-height: 1.5;
}

.product-review-response {
  background-color: rgba(0, 0, 0, 0.3);
  border-left: 3px solid #ff9500;
  padding: 8px 10px;
  margin-top: 8px;
  border-radius: 4px;
}

.product-review-response-author {
  font-size: 11px;
  font-weight: 600;
  color: #ff9500;
  margin-bottom: 3px;
}

.product-review-response-text {
  font-size: 11px;
  color: #a3a3a3;
}

/* Product comment item (in product popup) */
.product-comment-item {
  background-color: rgba(30, 30, 30, 0.3);
  border: 1px solid rgba(65, 65, 65, 0.3);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.product-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.product-comment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.product-comment-user {
  font-size: 13px;
  font-weight: 500;
  color: #E0E0E0;
}

.product-comment-text {
  font-size: 12px;
  color: #a3a3a3;
  line-height: 1.5;
}

.product-comment-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 4px;
}

.product-comment-date {
  font-size: 11px;
  color: #666;
}

.product-comment-like {
  background: transparent;
  border: none;
  color: #a3a3a3;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.product-comment-like.liked {
  color: var(--icon-color);
}

@media (hover: hover) {
  .product-comment-like:hover {
    background: rgba(255, 149, 0, 0.1);
    color: var(--icon-color);
  }
}

.product-comment-like svg {
  width: 14px;
  height: 14px;
}

.product-comment-delete {
  background: transparent;
  border: none;
  color: #818181;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 0;
  transition: color 0.2s;
}

@media (hover: hover) {
  .product-comment-delete:hover {
    color: #ff6666;
  }
}

/* ===== GALLERY CAROUSEL (to be used as module) ===== */

.gallery-carousels-container { 
  display: flex; 
  flex-direction: column; 
  gap: 30px; 
}

.gallery-carousel-section { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
}

.gallery-carousel-title {
  font-size: 14px;
  font-weight: 600;
  color: #a3a3a3;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #1e1e1e;
}

.gallery-carousel-track {
  display: flex;
  height: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  padding: 0;
}

.gallery-carousel-track::-webkit-scrollbar {
  display: none;
}

.gallery-carousel-slide {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.gallery-carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-carousel-arrow.hidden {
  display: none;
}

.gallery-carousel-arrow.prev { left: 10px; }
.gallery-carousel-arrow.next { right: 10px; }

@media (hover: hover) {
  .gallery-carousel-wrapper:hover .gallery-carousel-arrow:not(.hidden) {
    opacity: 0.7;
  }
}

.gallery-carousel-indicators { 
  display: flex; 
  gap: 8px; 
  justify-content: center; 
  flex-wrap: wrap; 
}

.gallery-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #414141;
  cursor: pointer;
  transition: background 0.2s;
  animation: none;
}

.gallery-carousel-indicator.active {
  background: #E0E0E0;
  animation: pulse-indicator 2s infinite;
}

@keyframes pulse-indicator {
  0%, 100% { background: #E0E0E0; }
  50% { background: #a3a3a3; }
}

/* ===== GALLERY ZOOM (to be ranamed to zoom and made modular) ===== */

.gallery-zoom-content {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 20px;
  padding: 20px;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
}

.gallery-zoom-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 0;
}

@media (hover: hover) {
  .gallery-zoom-close:hover svg { color: #fff; }
  .gallery-zoom-close:hover svg path { fill: #fff; }
}

.gallery-zoom-close svg { 
  color: #818181; 
  transition: color 0.2s; 
}

.gallery-zoom-close svg path {
  fill: #818181;
  transition: fill 0.2s;
}

.gallery-zoom-wrapper {
  position: relative;
  width: 100%;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-zoom-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-zoom-prev,
.gallery-zoom-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

@media (hover: hover) {
  .gallery-zoom-prev:hover,
  .gallery-zoom-next:hover { background: rgba(0, 0, 0, 0.8); }
}

.gallery-zoom-prev { left: 20px; }
.gallery-zoom-next { right: 20px; }

/* Hide zoom arrows on mobile, make wrapper scrollable */
@media (hover: none) {
  .gallery-zoom-prev,
  .gallery-zoom-next {
    display: none;
  }

  .gallery-zoom-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-zoom-image {
    scroll-snap-align: center;
  }
}

.gallery-zoom-indicators {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.gallery-zoom-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #414141;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  padding: 0;
}

.gallery-zoom-indicator.active {
  background: #E0E0E0;
  transform: scale(1.3);
}

@media (hover: hover) {
  .gallery-zoom-indicator:hover {
    background: #818181;
  }
}

/* ===== FAVORITES POPUP (contents to be moved to favorites page, but product grid is a module now) ===== */

.favorites-popup-content {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 20px;
  padding: 20px;
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.favorites-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(65, 65, 65, 0.5);
}

.favorites-popup-title { 
  font-size: 18px; 
  font-weight: 600; 
  color: #E0E0E0; 
}

.favorites-count-header { 
  font-size: 14px; 
  color: #a3a3a3; 
}

.favorites-popup-close {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (hover: hover) {
  .favorites-popup-close:hover svg { color: #fff; }
  .favorites-popup-close:hover svg path { fill: #fff; }
}

.favorites-popup-close svg { 
  color: #818181; 
  transition: color 0.2s; 
}

.favorites-popup-close svg path {
  fill: #818181;
  transition: fill 0.2s;
}

.favorites-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.favorite-item {
  position: relative;
  background-color: transparent;
  margin: 0;
  padding: 6px;
  border: 1px solid #292929;
  text-align: left;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

@media (hover: hover) {
  .favorite-item:hover {
    background-color: #1c1c1c;
    border: 1px solid #6b6b6b;
    animation: pulse-grey-glow 3s infinite alternate;
  }
  .favorite-item.special-product:hover {
    background-color: #2b2620;    
    border: 1px solid #ff8c00;
    animation: pulse-orange-glow 3s infinite alternate;
  }
}

@keyframes pulse-orange-glow {
  0% { box-shadow: 0 0 5px rgba(255, 165, 0, 0.1); }
  100% { box-shadow: 0 0 15px rgba(255, 165, 0, 0.2); }
}

@keyframes pulse-grey-glow {
  0% { box-shadow: 0 0 5px rgba(201, 201, 201, 0.1); }
  100% { box-shadow: 0 0 15px rgba(201, 201, 201, 0.2); }
}

@media (hover: hover) and (pointer: fine) {
  .favorite-item {
    flex: 0 0 200px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
  }
}

@media (max-width: 1024px) {
  .favorite-item {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    max-width: 100%;
  }
  @media (min-width: 650px) {
    .favorite-item {
      flex: 1 1 calc(33.333% - 11px);
      max-width: calc(33.333% - 11px);
    }
  }
  @media (min-width: 900px) {
    .favorite-item {
      flex: 1 1 calc(25% - 12px);
      max-width: calc(25% - 12px);
    }
  }
  .favorite-item h3 { font-size: 14px !important; }
  .favorite-item .price { font-size: 13px !important; }
}

.favorite-item-image-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
}

.favorite-item-image-carousel .slides {
  position: relative;
  width: 100%;
  display: flex;
  transition: transform 0.3s ease;
}

.favorite-item-image-carousel .slide {
  flex: 0 0 100%;
  width: 100%;
}

.favorite-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 5/6;
  object-fit: cover;
  margin-bottom: 5px;
}

.favorite-item-image-carousel .indicators {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  padding-left: 4px;
  padding-right: 4px;
}

.favorite-item-image-carousel .indicators > * { flex: auto; }

.favorite-item-image-carousel .indicator {
  width: 25px;
  height: 2px;
  border-radius: 2px;
  background: #414141;
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}

.favorite-item-image-carousel .indicator.active { background: #828282; width: 35px; }

@media (hover: hover) {
  .favorite-item:hover .favorite-item-image-carousel .indicator.active { background: white; }
  .favorite-item.special-product:hover .favorite-item-image-carousel .indicator.active { background: #ff8c00; }
}

@media (hover: hover) {
  .favorite-item .hover-zone {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    height: calc(100% - 102px);
    z-index: 2;
  }
}

.favorite-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 3px 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.favorite-item .price { 
  font-weight: 400; 
  margin: 5px 0 5px 3px; 
}

.favorite-item .disabled {
  opacity: 0.3;
  text-decoration: line-through;
  font-size: 12px;
  margin-left: 3px;
}

/* Product Status Badges */
.product-status-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  user-select: none;
}

.product-status-badge.coming-soon {
  background: linear-gradient(135deg, rgba(251, 233, 138, 0.95) 0%, rgba(245, 217, 99, 0.95) 100%);
  color: #1a1a1a;
}

.product-status-badge.test-product {
  background: rgba(255, 140, 0, 0.95);
  color: #ffffff;
}

/* ===== PRODUCT POPUP (contents to be moved to product page) ===== */



@media (hover: hover) {
}



@media (min-width: 1025px) {
}


@media (min-width: 1025px) {
}

@media (max-width: 1024px) {
}


@media (min-width: 1025px) {
}


.product-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #1e1e1e;
}

.product-carousel-track {
  display: flex;
  height: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: auto;
  padding: 0;
}

.product-carousel-track::-webkit-scrollbar {
  display: none;
}

.product-carousel-slide {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  cursor: pointer;
}

.product-carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 0;
  pointer-events: none;
  z-index: 5;
}

.product-carousel-prev,
.product-carousel-next {
  pointer-events: all;
  opacity: 0.5;
  transition: opacity 0.2s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.product-carousel-prev {
  left: 10px;
}

.product-carousel-next {
  right: 10px;
}

.product-carousel-prev.hidden,
.product-carousel-next.hidden {
  display: none;
}

@media (hover: hover) {
  .product-carousel-wrapper:hover .product-carousel-prev:not(.hidden),
  .product-carousel-wrapper:hover .product-carousel-next:not(.hidden) {
    opacity: 0.9;
  }
}

@media (hover: none) {
  .product-carousel-prev,
  .product-carousel-next {
    display: none;
  }
}

.product-carousel-indicators {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-carousel-indicator {
  min-width: 50px;
  height: 24px;
  border-radius: 4px;
  background: #414141;
  color: #818181;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #414141;
}

.product-carousel-indicator.active {
  background: #066fa3;
  color: #9cddfd;
  border-color: #16a6ed;
}

.product-carousel-indicator.simple {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: #414141;
  border: none;
  padding: 0;
}

.product-carousel-indicator.simple.active {
  background: #E0E0E0;
}


@media (hover: hover) {
}



@media (min-width: 1025px) {
}



@media (max-width: 1024px) {
}







@media (max-width: 1024px) {
}







@media (hover: hover) {
}




@media (hover: hover) {
}



.in-cart-count {
  font-size: 11px;
  color: #9cddfd;
  font-weight: 400;
  white-space: nowrap;
}





@media (hover: hover) {
}


@media (hover: hover) {
}




@media (hover: hover) {
}



@media (hover: hover) {
}


@media (hover: hover) {
}






.product-additional-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #1e1e1e;
}

.product-additional-carousel-track {
  display: flex;
  height: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: auto;
  padding: 0;
}

.product-additional-carousel-track::-webkit-scrollbar {
  display: none;
}

.product-additional-carousel-slide {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  cursor: pointer;
}

.product-additional-carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-additional-carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 0;
  pointer-events: none;
  z-index: 5;
}

.product-additional-carousel-prev,
.product-additional-carousel-next {
  pointer-events: all;
  opacity: 0;
  transition: opacity 0.2s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.product-additional-carousel-prev {
  left: 10px;
}

.product-additional-carousel-next {
  right: 10px;
}

.product-additional-carousel-prev.hidden,
.product-additional-carousel-next.hidden {
  display: none;
}

@media (hover: hover) {
  .product-additional-carousel-wrapper:hover .product-additional-carousel-prev:not(.hidden),
  .product-additional-carousel-wrapper:hover .product-additional-carousel-next:not(.hidden) {
    opacity: 0.7;
  }
}

.product-additional-carousel-indicators {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-additional-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #414141;
  cursor: pointer;
  transition: background 0.2s;
}

.product-additional-carousel-indicator.active {
  background: #E0E0E0;
  animation: pulse-indicator 2s infinite;
}

/* Profile Popup (contents to be moved to profile page) */

.profile-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 10000;
}

.profile-popup-overlay.active {
  display: flex;
}

.profile-btn-login-text {
  display: inline-block;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #E0E0E0;
  background: linear-gradient(135deg, rgba(6, 111, 163, 0.9), rgba(8, 88, 120, 0.9));
  border-radius: 8px;
  white-space: nowrap;
}

.profile-btn-icon {
  width: 20px;
  height: 20px;
}

.profile-popup-content {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 20px;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.profile-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.profile-popup-title {
  font-size: 18px;
  font-weight: 600;
  color: #E0E0E0;
}

.profile-popup-close {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (hover: hover) {
  .profile-popup-close:hover svg {
    color: #fff;
  }
  .profile-popup-close:hover svg path {
    fill: #fff;
  }
}

.profile-popup-close svg {
  color: #818181;
  transition: color 0.2s;
}

.profile-popup-close svg path {
  fill: #818181;
  transition: fill 0.2s;
}

.profile-popup-body {
  min-height: 200px;
}

.header-profile-button {
  background-color: transparent;
  border: none;
  padding: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
  position: relative;
}

@media (hover: hover) {
  .header-profile-button:hover {
    opacity: 0.7;
  }
}

.header-profile-button svg {
  width: 20px;
  height: 20px;
  color: var(--icon-color);
  fill: var(--icon-color);
}

/* Order Status Badge */
.order-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff9800;
  color: white;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid var(--background-color);
  padding: 0 4px;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  user-select: none;
}

.order-badge.pending {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.order-badge.active {
  background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

#telegram-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#telegram-login-button svg {
  width: 16px;
  height: 16px;
  color: #9cddfd;
  fill: #9cddfd;
}

#profile-avatar {
  box-shadow: 0 0 0 3px rgba(6, 111, 163, 0.3);
}

.profile-popup-body {
  min-height: auto;
}

#profile-name {
  word-break: break-word;
}

#profile-username {
  word-break: break-all;
}

#sync-favorites,
#sync-cart,
#sync-picker {
  transition: color 0.3s ease;
}

@keyframes syncPulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.syncing {
  animation: syncPulse 1s infinite;
}

#profile-logout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px !important;
}

#profile-logout-button svg {
  width: 14px;
  height: 14px;
}

/* ===== CATALOGS (used as module for main and catalog) ===== */

.catalogs-background {
  position: relative;
  width: auto;
  background-color: black;
  border-bottom: 1px solid #414141;
}

.catalogs-container {
  position: relative;
  max-width: 1041px;
  margin: 0 auto;
  padding: 20px 0 15px 0;
  background-color: black;
  text-align: center;
  overflow: hidden;
}

.catalogs-wrapper {
  max-width: 1106px;
  margin: 0 auto;
  position: relative;
  z-index: 0;
}

.catalogs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 60px 0 20px;
  margin: 0 auto;
  transition: transform 0.3s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
}

.catalog {
  flex: 0 0 auto;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
}

.catalog img {
  width: 150px;
  border-radius: 8px;
  border: 1px solid black;
}

@media (hover: hover) {
  .catalog img:hover { border: 1px solid #6b6b6b; }
}

.catalogs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: auto;
  z-index: 2;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  padding: 20px;
  text-shadow: 0 0 0.2rem black, 0 0 1rem black, 0 0 2rem black;
  user-select: none;
}

.catalogs-left-arrow { left: 10px; }
.catalogs-right-arrow { right: 10px; }

.catalogs-arrow.hidden { display: none; }

@media (hover: hover) {
  .catalogs-container:hover .catalogs-arrow:not(.hidden) { opacity: 0.7; }
}

.catalogs::-webkit-scrollbar { display: none; }

.catalogs-gradient {
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

@media (hover: none) and (pointer: coarse) {
  .catalogs-gradient { width: 40px; }
}

.catalogs-gradient.left { left: 0; background: linear-gradient(to right, rgba(0,0,0), transparent); }
.catalogs-gradient.right { right: 0; background: linear-gradient(to left, rgba(0,0,0), transparent); }

/* ===== PRODUCTS HEADER ===== */

.products-header {
  position: -webkit-sticky;
  position: sticky;
  top: 60px; /* Stick to bottom of header */
  justify-content: center;
  align-items: flex-start;
  padding: 15px;
  background-color: #121212;
  border-bottom: 1px solid #414141;
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
  width: 100%;
  z-index: 998;
}

.collapsible-content {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: visible;
  max-height: none !important;
  opacity: 1 !important;
}

.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

/* Filter Groups Styling */
.filters-group,
.types-group,
.sort-dropdown-wrapper,
.collapse-arrow-group,
.search-toggle-group,
.reset-group {
  display: flex;
  background-color: black;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 7px;
  gap: 3px;
  box-shadow:
    0 1px 0.01em #414141;
}

.gift-group {
  display: flex;
  background-color: black;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 7px;
  gap: 3px;
  box-shadow:
    0 1px 0.01em #414141;
}

.search-toggle-group { gap: 5px; }

.search-inline-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-icon {
  width: 12px;
  color: var(--icon-color);
  fill: var(--icon-color);
  transform: scale(var(--icon-scale));
}

.search-inline-wrapper input {
  padding: 5px 0 5px 10px;
  min-width: 120px;
  max-width: 200px;
  width: auto;
  background-color: black;
  border: 1px solid #414141;
  color: white;
  border-radius: 40px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, width 0.2s ease;
}

@media (hover: hover) {
  .search-inline-wrapper input:hover {
    border: 1px solid #8f8f8f;
    color: #8f8f8f;
  }
}

.search-inline-wrapper input.has-value {
  box-shadow: 0 0 0.2rem #666, 0 0 1.5rem #666;
  border: 1px solid #848484;
  background: #313131;
  color: #c8c8c8;
}

.search-clear-inline {
  position: absolute;
  right: 5px;
  background: transparent;
  border: none;
  padding-bottom: 1px;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 0;
}

.customers-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 10000;
}

.customers-popup-overlay.active {
  display: flex;
}

.customers-popup-content {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 20px;
  padding: 20px;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.customers-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(65, 65, 65, 0.5);
}

.customers-popup-title {
  font-size: 18px;
  font-weight: 600;
  color: #E0E0E0;
}

.customers-popup-close {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (hover: hover) {
  .customers-popup-close:hover svg { color: #fff; }
  .customers-popup-close:hover svg path { fill: #fff; }
}

.customers-popup-close svg {
  color: #818181;
  transition: color 0.2s;
}

.faq-gallery-carousels-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
  border-top: 1px solid rgba(65, 65, 65, 0.5);
  padding-top: 20px;
}

.customers-popup-close svg path {
  fill: #818181;
  transition: fill 0.2s;
}

.customers-gallery-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== CUSTOMERS TABS ===== */

.customers-tabs-wrapper {
  border-bottom: 1px solid rgba(65, 65, 65, 0.5);
  padding-bottom: 10px;
}

.tab-group-description {
  font-size: 12px;
  color: #818181;
  margin-bottom: 10px;
  font-weight: 400;
}

.customers-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.tab-group-icon {
  fill: #818181;
  flex-shrink: 0;
  margin-right: 4px;
}

.customers-tab-btn {
  background-color: #1e1e1e;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #818181;
  font-size: 14px;
  font-weight: normal;
}

.customers-tab-btn.active {
  background-color: #2b2b2b;
  border: 1px solid #8f8f8f;
  color: #a3a3a3;
}

.customers-tab-btn::after {
  content: '▼';
  font-size: 9px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.customers-tab-btn.collapsed::after {
  transform: rotate(-90deg);
}

@media (hover: hover) {
  .customers-tab-btn:hover {
    background-color: #2b2b2b;
    border: 1px solid #8f8f8f;
  }
}

.customers-tab-content {
  display: none;
}

.customers-tab-content.active {
  display: block;
  margin-top: 20px;
}

.tab-counter {
  opacity: 0.6;
  font-size: 0.9em;
}

/* Product Popup Tabs */
.product-popup-tabs,
.product-additional-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(65, 65, 65, 0.5);
  margin: 20px 0 0 0;
  padding-bottom: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.product-tab-btn {
  background-color: #1e1e1e;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #818181;
  font-size: 13px;
  font-weight: normal;
}

.tab-icon {
  fill: currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}

.product-tab-btn::after {
  content: '▼';
  font-size: 9px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.product-tab-btn.collapsed::after {
  transform: rotate(-90deg);
}

.product-tab-btn.active {
  background-color: #2b2b2b;
  border: 1px solid #8f8f8f;
  color: #a3a3a3;
}

@media (hover: hover) {
  .product-tab-btn:hover {
    background-color: #2b2b2b;
    border: 1px solid #8f8f8f;
  }
}

.product-tab-content {
  display: none;
}

.product-tab-content.active {
  display: block;
  margin-top: 15px;
}

/* ===== PROFILE TABS ===== */

.profile-tabs-wrapper {
  border-bottom: 1px solid rgba(65, 65, 65, 0.5);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.profile-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.profile-tab-btn {
  background-color: #1e1e1e;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #818181;
  font-size: 13px;
  font-weight: normal;
}

.profile-tab-btn::after {
  content: '▼';
  font-size: 9px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.profile-tab-btn.collapsed::after {
  transform: rotate(-90deg);
}

.profile-tab-btn.active {
  background-color: #2b2b2b;
  border: 1px solid #8f8f8f;
  color: #a3a3a3;
}

@media (hover: hover) {
  .profile-tab-btn:hover {
    background-color: #2b2b2b;
    border: 1px solid #8f8f8f;
  }
}

.profile-tab-content {
  display: none;
  margin-bottom: 20px;
}

.profile-tab-content.active {
  display: block;
  margin-top: 15px;
}

/* ===== COMMENTS SECTION ===== */

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 15px;
  background-color: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 12px;
  padding: 15px;
  align-items: flex-start;
}

.comment-item-product-image-wrapper {
  position: relative;
  width: 120px;
  height: 144px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1e1e1e;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-item-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.comment-item-avatar {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #121212;
  object-fit: cover;
}

/* When avatar is the only child (no product image) */
.comment-item-product-image-wrapper > .comment-item-avatar:only-child {
  position: static;
  width: 64px;
  height: 64px;
  border: none;
}

.comment-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.comment-item-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-item-user {
  font-size: 14px;
  font-weight: 600;
  color: #E0E0E0;
}

.comment-item-product {
  font-size: 12px;
  color: #a3a3a3;
  cursor: pointer;
}

@media (hover: hover) {
  .comment-item-product:hover {
    color: #E0E0E0;
  }
}

.comment-item-text {
  font-size: 13px;
  line-height: 1.5;
  color: #E0E0E0;
  word-wrap: break-word;
}

.comment-item-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 4px;
}

.comment-item-date {
  font-size: 11px;
  color: #818181;
}

.comment-item-like {
  background: transparent;
  border: none;
  color: #a3a3a3;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.comment-item-like.liked {
  color: var(--icon-color);
}

@media (hover: hover) {
  .comment-item-like:hover {
    background: rgba(255, 149, 0, 0.1);
    color: var(--icon-color);
  }
}

.comment-item-like svg {
  width: 14px;
  height: 14px;
}

.comment-item-delete {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #FF3B30;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

@media (hover: hover) {
  .comment-item-delete:hover {
    background: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.5);
  }
}

/* ===== FORM COMMON STYLES ===== */
.form-header {
  font-size: 14px;
  margin-bottom: 10px;
  color: #E0E0E0;
}

.login-prompt {
  padding: 20px;
  text-align: center;
  color: #a3a3a3;
  display: none;
}

.login-prompt.active {
  display: block;
}

.form-content {
  display: block;
}

.form-content.hidden {
  display: none;
}

.sort-wrapper {
  margin-bottom: 15px;
}

.sort-label {
  font-size: 12px;
  color: #a3a3a3;
  margin-right: 8px;
}

.sort-select {
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 8px;
  padding: 6px 10px;
  color: #E0E0E0;
  font-size: 12px;
}

/* ===== COMMENT FORM (all forms should be unified and used as modules) ===== */

.comment-form {
  background-color: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
}

.comment-form-textarea {
  width: 100%;
  min-height: 80px;
  max-height: 200px;
  background-color: #1e1e1e;
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 8px;
  padding: 12px;
  color: #E0E0E0;
  font-size: 13px;
  resize: none;
  overflow-y: auto;
  font-family: inherit;
  transition: border-color 0.2s;
}

.comment-form-textarea::placeholder {
  color: #818181;
}

@media (hover: hover) {
  .comment-form-textarea:hover {
    border-color: rgba(255, 149, 0, 0.3);
  }
}

.comment-form-textarea:focus {
  outline: none;
  border-color: var(--icon-color);
}

.comment-form-button {
  margin-top: 10px;
  background: var(--icon-color);
  color: #121212;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

@media (hover: hover) {
  .comment-form-button:hover {
    background: #ffaa33;
    transform: translateY(-1px);
  }
}

.comment-form-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== SUGGESTIONS POPUP ===== */

.suggestions-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 10000;
}

.suggestions-popup-overlay.active {
  display: flex;
}

.suggestions-popup-content {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 20px;
  padding: 20px;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.suggestions-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(65, 65, 65, 0.5);
}

.suggestions-popup-title {
  font-size: 18px;
  font-weight: 600;
  color: #E0E0E0;
}

.suggestions-popup-close {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (hover: hover) {
  .suggestions-popup-close:hover svg {
    color: #fff;
  }
  .suggestions-popup-close:hover svg path {
    fill: #fff;
  }
}

.suggestions-popup-close svg {
  color: #818181;
  transition: color 0.2s;
}

.suggestions-popup-close svg path {
  fill: #818181;
  transition: fill 0.2s;
}

.suggestions-popup-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.suggestion-item {
  background-color: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.suggestion-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.suggestion-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggestion-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.suggestion-item-user {
  font-size: 14px;
  font-weight: 600;
  color: #E0E0E0;
}

.suggestion-item-text {
  font-size: 13px;
  line-height: 1.5;
  color: #E0E0E0;
  word-wrap: break-word;
}

.suggestion-item-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 4px;
}

.suggestion-item-date {
  font-size: 11px;
  color: #818181;
}

.suggestion-item-upvote {
  background: transparent;
  border: none;
  color: #a3a3a3;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.suggestion-item-upvote.upvoted {
  color: var(--icon-color);
}

@media (hover: hover) {
  .suggestion-item-upvote:hover {
    background: rgba(255, 149, 0, 0.1);
    color: var(--icon-color);
  }
}

.suggestion-item-upvote svg {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

.suggestion-item-delete {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #FF3B30;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

@media (hover: hover) {
  .suggestion-item-delete:hover {
    background: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.5);
  }
}

/* ===== SUGGESTION FORM (all forms should be unified and used as modules) ===== */

.suggestion-form {
  background-color: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
}

.suggestion-form-textarea {
  width: 100%;
  min-height: 80px;
  max-height: 200px;
  background-color: #1e1e1e;
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 8px;
  padding: 12px;
  color: #E0E0E0;
  font-size: 13px;
  resize: none;
  overflow-y: auto;
  font-family: inherit;
  transition: border-color 0.2s;
}

.suggestion-form-textarea::placeholder {
  color: #818181;
}

@media (hover: hover) {
  .suggestion-form-textarea:hover {
    border-color: rgba(255, 149, 0, 0.3);
  }
}

.suggestion-form-textarea:focus {
  outline: none;
  border-color: var(--icon-color);
}

.suggestion-form-button {
  margin-top: 10px;
  background: var(--icon-color);
  color: #121212;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

@media (hover: hover) {
  .suggestion-form-button:hover {
    background: #ffaa33;
    transform: translateY(-1px);
  }
}

.suggestion-form-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.customers-reviews-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ===== PRODUCTS HEADER (remains on main) ===== */

.search-inline-wrapper input:not(:placeholder-shown) ~ .search-clear-inline,
.search-inline-wrapper input.has-value ~ .search-clear-inline {
  opacity: 1;
  pointer-events: auto;
}

.search-clear-inline svg { 
  width: 9px; 
  height: 9px; 
  color: var(--icon-color); 
  fill: var(--icon-color);
  transform: scale(var(--icon-scale));
}

@media (hover: hover) {
  .search-clear-inline:hover svg { transform: scale(1.1); }
}

.search-clear-inline:active { transform: scale(0.95); }

.search-toggle-panel { transition: opacity 0.2s ease; }

.search-toggle-panel.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.search-toggle-panel:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.search-toggle-button,
.sort-toggle-button {
  background-color: #1e1e1e;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) {
  .search-toggle-button:hover,
  .sort-toggle-button:hover {
    background-color: #2b2b2b;
    border: 1px solid #8f8f8f;
  }
}

.search-toggle-button.active-glow,
.sort-toggle-button.active-glow {
  box-shadow: 0 0 0.2rem #666, 0 0 1.5rem #666;
  border: 1px solid #848484;
  background: #313131;
}

.sort-dropdown-wrapper {
  display: flex;
  gap: 5px;
  align-items: center;
}

.sort-dropdown-wrapper.hidden { display: none; }

.filter-button, 
.type-button, 
.faq-toggle-button-products {
  font-size: 14px;
  font-weight: normal;
  background-color: #1e1e1e;
  color: #818181;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 5px 10px;
  margin: 0 1px;
  cursor: pointer;
  transition: background-color 0.2s;
}

@media (hover: hover) {
  .filter-button:hover {
    background-color: #0d2e3f;
    border: 1px solid #0088CC;
    color: #0088CC;
  }
  .type-button:hover {
    background-color: #2d1f0e;
    border: 1px solid #ff8c00;
    color: #ff8c00;
  }
  .type-button[data-type="оригинал"]:hover {
    background-color: #2b2b2b;
    border: 1px solid #8f8f8f;
    color: #8f8f8f;
  }
  .faq-toggle-button-products:hover {
    background-color: #2b2b2b;
    border: 1px solid #8f8f8f;
  }
  .reset-button:hover {
    background-color: #522525;
    border: 1px solid #B51010;
  }

  .gift-button:hover {
    background-color: #2d3d2d;
    border: 1px solid #4a7c59;
  }
}

.filter-button.active {
  color: #9cddfd;
  background-color: #066fa3;
  border: 1px solid #16a6ed;
  box-shadow: 0 0 0.2rem #0088CC, 0 0 1.5rem #0088CC;
}

.type-button.active {
  color: #ffb366;
  background-color: #994d00;
  border: 1px solid #ff8c00;
  box-shadow: 0 0 0.2rem #ff8c00, 0 0 1.5rem #ff8c00;
}

.type-button[data-type="оригинал"].active {
  color: #c8c8c8;
  background-color: #313131;
  border: 1px solid #848484;
  box-shadow: 0 0 0.2rem #666, 0 0 1.5rem #666;
}

.sort-toggle-panel { 
  display: flex; 
  gap: 5px; 
}

.sort-toggle-panel.hidden { display: none; }

.sort-dropdown { position: relative; display: flex; }

.sort-dropdown button {
  text-align: left;
  text-wrap: nowrap;
  background-color: #1e1e1e;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 5px 10px;
  cursor: pointer;
  color: #818181;
  line-height: 1.2;
  transition: box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (hover: hover) {
  .sort-dropdown button:hover {
    background-color: #2b2b2b;
    border: 1px solid #8f8f8f;
    color: #a3a3a3;
  }
}

.sort-dropdown button.has-sort {
  box-shadow: 0 0 0.2rem #666, 0 0 1.5rem #666;
  border: 1px solid #848484;
  background: #313131;
  color: #c8c8c8;
}

.sort-direction-arrow {
  width: 10px;
  height: 10px;
  color: currentColor;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.sort-direction-arrow.asc {
  transform: rotate(180deg);
}

.sort-direction-arrow.desc {
  transform: rotate(0deg);
}

.sort-dropdown ul {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: black;
  border-radius: 20px;
  padding: 7px;
  margin-top: 12px;
  list-style: none;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
  border: 1px solid #414141;
  outline: 10px solid #121212;
}

.sort-dropdown ul li {
  font-size: 14px;
  font-weight: normal;
  background-color: #1e1e1e;
  color: #818181;
  padding: 5px 10px;
  border: 1px solid #414141;
  border-radius: 40px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
  line-height: 1.2;
}

.sort-dropdown ul.hidden { display: none; }

@media (hover: hover) {
  .sort-dropdown ul li:hover {
    background-color: #2b2b2b;
    border: 1px solid #8f8f8f;
    color: #a3a3a3;
  }
}

@media (hover: none) and (pointer: coarse), (pointer: coarse) {
  .sort-dropdown {
    position: static;
  }
  .sort-dropdown ul {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 105%;
    right: auto;
    z-index: 10000;
  }
}

.reset-button,
.gift-button {
  background-color: #1e1e1e;
  border: 1px solid #414141;
  outline: 1px solid #414141;
  border-radius: 40px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 0 0 5px #2c2c2c,
    inset 0 1px 0 #d0ff00,
    inset 0 -1px 0 #e40606,
    inset 0 0 2px 0 #2814db;
}

.faq-toggle-button-products {
  background-color: #1e1e1e;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 7px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collapse-arrow-button {
  background-color: #1e1e1e;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) {
  .collapse-arrow-button:hover {
    background-color: #2b2b2b;
    border: 1px solid #8f8f8f;
  }
}

.collapse-arrow-icon {
  height: 12px;
  width: 12px;
  color: var(--icon-color);
  fill: var(--icon-color);
  transform: scale(var(--icon-scale)) rotate(0deg);
  transition: transform 0.3s ease;
}

.collapse-arrow-icon.up { transform: scale(var(--icon-scale)) rotate(180deg); }
.collapse-arrow-icon.down { transform: scale(var(--icon-scale)) rotate(0deg); }

/* ===== PRODUCTS GRID (to be used as module on main, favorites, catalog) ===== */

.products {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  box-sizing: border-box;
  margin: 12px auto 0;
  max-width: 1300px;
  padding: 0 10px 15px 10px;
  width: 100%;
  min-height: 400px;
}

.no-results { 
  width: 100%; 
  text-align: center; 
  padding: 60px 20px; 
  color: #818181; 
}

.no-results p { 
  font-size: 18px; 
  font-weight: 500; 
  margin: 0; 
}

.product {
  box-sizing: border-box;
  background-color: transparent;
  margin: 0;
  padding: 6px;
  border: 1px solid #292929;
  text-align: left;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product a.product-card-inner {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

@media (hover: hover) {
  .product:hover {
    background-color: #1c1c1c;
    border: 1px solid #6b6b6b;
    animation: pulse-grey-glow 3s infinite alternate;
  }
  .product.special-product:hover {
    background-color: #2b2620;    
    border: 1px solid #ff8c00;
    animation: pulse-orange-glow 3s infinite alternate;
  }
}

@media (hover: hover) and (pointer: fine) {
  .product {
    flex: 0 0 200px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
  }
}

@media (max-width: 1024px) {
  .product {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    max-width: 100%;
  }
  @media (min-width: 650px) {
    .product {
      flex: 1 1 calc(33.333% - 11px);
      max-width: calc(33.333% - 11px);
    }
  }
  @media (min-width: 900px) {
    .product {
      flex: 1 1 calc(25% - 12px);
      max-width: calc(25% - 12px);
    }
  }
  .product h3 { font-size: 14px !important; }
  .product .price { font-size: 13px !important; }
}

.image-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
}

.image-carousel .slides {
  position: relative;
  width: 100%;
  display: flex;
  transition: transform 0.3s ease;
}

.image-carousel .slide {
  flex: 0 0 100%;
  width: 100%;
}

.product img {
  width: 100%;
  height: auto;
  aspect-ratio: 5/6;
  object-fit: cover;
  margin-bottom: 5px;
}

.image-carousel .indicators {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  padding-left: 4px;
  padding-right: 4px;
}

.image-carousel .indicators > * { flex: auto; }

.image-carousel .indicator {
  width: 25px;
  height: 2px;
  border-radius: 2px;
  background: #414141;
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}

.image-carousel .indicator.active { background: #828282; width: 35px; }

@media (hover: hover) {
  .product:hover .image-carousel .indicator.active { background: white; }
  .product.special-product:hover .image-carousel .indicator.active { background: #ff8c00; }
}

@media (hover: hover) {
  .product .hover-zone {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    height: calc(100% - 102px);
    z-index: 2;
  }
}

.product h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 3px 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.price { 
  font-weight: 400; 
  margin: 5px 0 5px 3px; 
}

.disabled {
  opacity: 0.3;
  text-decoration: line-through;
  font-size: 12px;
  margin-left: 3px;
}

/* Context-specific favorite buttons */
.product .favorite-button {
  width: 28px;
  height: 28px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid #414141;
  opacity: 0;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.product .favorite-button svg {
  width: 14px;
  height: 14px;
}

.product .favorite-button.is-favorite {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid #414141;
  opacity: 1;
}

@media (hover: hover) {
  .product:hover .favorite-button {
    opacity: 1;
  }
  .product .favorite-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #8f8f8f;
  }
}

@media (max-width: 1024px) {
  .product .favorite-button {
    opacity: 1;
  }
}

.favorite-item .favorite-button {
  width: 28px;
  height: 28px;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  opacity: 1;
}

.favorite-item .favorite-button svg {
  width: 14px;
  height: 14px;
}

@media (hover: hover) {
  .favorite-item .favorite-button:hover {
    background-color: rgba(181, 16, 16, 0.8);
  }
}

/* ===== FOOTER (to be used as module on all pages) ===== */

.footer {
  background-color: #121212;
  padding: 20px;
  border-top: 1px solid #414141;
  margin-top: auto;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-left-group {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: normal;
  background-color: black;
  color: #818181;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 5px 5px;
  margin: 0 1px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.footer-left-link {
  color: #818181;
  text-decoration: none;
  font-size: 14px;
  font-weight: normal;
  background-color: #1e1e1e;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 5px 10px;
  margin: 0 1px;
  cursor: pointer;
  transition: background-color 0.2s;
}

@media (hover: hover) {
  .footer-left-link:hover {
    background-color: #2b2b2b;
    border: 1px solid #8f8f8f;
    color: #a3a3a3;
  }
}

.footer-right { 
  display: flex; 
}

.footer-socials-list.hidden { 
  display: none; 
}

.footer-right-group {
  display: flex;
  position: relative;
  margin: 0 4px;
  flex-wrap: nowrap;
  gap: 5px;
  bottom: 100%;
  left: 0;
  background-color: black;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 5px;
  list-style: none;
  align-items: center;
}

.footer-socials-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.footer-logo-icon {
  width: 20px;
  height: 20px;
  color: var(--icon-color);
  fill: var(--icon-color);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.footer-logo-icon-full {
  display: block;
}

.footer-logo-icon-compact {
  display: none;
}

.footer-logo-icon-mini {
  display: none;
}

@media (max-width: 550px) {
  .footer-logo-icon-full {
    display: none;
  }
  .footer-logo-icon-compact {
    display: block;
  }
  .footer-logo-icon-mini {
    display: none;
  }
}

@media (max-width: 350px) {
  .footer-logo-icon-full {
    display: none;
  }
  .footer-logo-icon-compact {
    display: none;
  }
  .footer-logo-icon-mini {
    display: block;
  }
}

@media (hover: hover) {
  .footer-socials-button:hover .footer-logo-icon {
    opacity: 0.75;
  }
}

.footer-socials-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  left: 0;
  background-color: #1e1e1e;
  border: 1px solid #414141;
  border-radius: 40px;
  padding: 5px;
  list-style: none;
  align-items: center;
  margin: 0;
  z-index: 100;
}

@media (hover: hover) and (pointer: fine) {
  .footer-socials-list { display: flex !important; }
  .footer-socials-list.hidden { display: flex !important; }
  .footer-right-group > button {
    pointer-events: none;
    cursor: default;
  }
}

.footer-socials-list a.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 17px;
  width: 17px;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 3px;
}

.footer-socials-list a.footer-social svg {
  width: 100%;
  height: 100%;
  color: var(--icon-color);
  fill: var(--icon-color);
  transform: scale(var(--icon-scale));
}

@media (hover: hover) {
  a.footer-social:hover { opacity: 1; }
}

@media (max-width: 413px) {
  .footer-content { 
    flex-direction: column; 
    text-align: center; 
  }
  .footer-right { justify-content: center; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #0088CC;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

/* ============ BENTO GRID LAYOUT (to be used on FAQ page and info page) ============ */

/* Modern card-based grid layout for FAQ and Info popups */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 16px;
  padding: 20px;
  max-width: 100%;
}

.bento-item {
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(10px);
}

.bento-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #E0E0E0;
  position: relative;
  z-index: 1;
}

.bento-item p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: rgba(224, 224, 224, 0.85);
  position: relative;
  z-index: 1;
}

/* Size variants */
.bento-item.bento-large {
  grid-column: span 2;
  min-height: 200px;
}

.bento-item.bento-medium {
  grid-column: span 2;
  min-height: 160px;
}

/* Background image support */
.bento-item[data-bg-image] {
  background-size: cover;
  background-position: center;
  color: white;
}

.bento-item[data-bg-image]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 0;
}

.bento-item[data-bg-image] h3,
.bento-item[data-bg-image] p {
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Hover effects for desktop */
@media (hover: hover) {
  .bento-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .bento-item.bento-large,
  .bento-item.bento-medium {
    grid-column: span 1;
  }

  .bento-item {
    min-height: 120px;
    padding: 20px;
  }

  .bento-item h3 {
    font-size: 16px;
  }

  .bento-item p {
    font-size: 13px;
  }
}

/* ===== ORDER FORM POPUP (to be moved to cart page) ===== */

.order-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 10000;
}

.order-popup-overlay.active {
  display: flex;
}

.order-popup-content {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 20px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.order-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(65, 65, 65, 0.5);
}

.order-popup-title {
  font-size: 18px;
  font-weight: 600;
  color: #E0E0E0;
}

.order-popup-close {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.order-popup-close svg {
  color: #818181;
  transition: color 0.2s;
}

.order-popup-close svg path {
  fill: #818181;
  transition: fill 0.2s;
}

@media (hover: hover) {
  .order-popup-close:hover svg {
    color: #fff;
  }
  .order-popup-close:hover svg path {
    fill: #fff;
  }
}

.order-popup-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.order-form-group {
  margin-bottom: 16px;
}

.order-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #a3a3a3;
  margin-bottom: 6px;
}

.order-form-group input,
.order-form-group textarea {
  width: 100%;
  background-color: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  color: #E0E0E0;
  font-family: inherit;
  transition: border-color 0.2s;
}

.order-form-group input:focus,
.order-form-group textarea:focus {
  outline: none;
  border-color: #066fa3;
}

.order-form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.order-form-group input::placeholder,
.order-form-group textarea::placeholder {
  color: #606060;
}

.order-form-summary {
  background-color: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: #a3a3a3;
}

.order-summary-row:last-of-type {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(65, 65, 65, 0.3);
}

.order-summary-row span:last-child {
  font-weight: 600;
  color: #E0E0E0;
}

.order-summary-note {
  font-size: 12px;
  color: #606060;
  line-height: 1.4;
}

.order-submit-button {
  width: 100%;
  background: linear-gradient(135deg, #066fa3 0%, #0a5478 100%);
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) {
  .order-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 111, 163, 0.4);
  }
}

.order-submit-button:active {
  transform: translateY(0);
}

.order-submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.order-submit-button svg {
  flex-shrink: 0;
}

/* ===== ORDER CARDS ON PROFILE POPUP (to be moved to profile page) ===== */

.order-card {
  background-color: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.2s;
}

@media (hover: hover) {
  .order-card:hover {
    border-color: rgba(143, 143, 143, 0.5);
  }
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(65, 65, 65, 0.3);
}

.order-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #E0E0E0;
}

.order-card-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.order-card-status.pending-review {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.order-card-status.awaiting-payment {
  background-color: rgba(33, 150, 243, 0.1);
  color: #2196f3;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.order-card-status.paid {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.order-card-status.shipped {
  background-color: rgba(103, 58, 183, 0.1);
  color: #673ab7;
  border: 1px solid rgba(103, 58, 183, 0.3);
}

.order-card-status.completed {
  background-color: rgba(76, 175, 80, 0.15);
  color: #66bb6a;
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.order-card-status.cancelled {
  background-color: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.order-card-status.returned {
  background-color: rgba(156, 39, 176, 0.1);
  color: #9c27b0;
  border: 1px solid rgba(156, 39, 176, 0.3);
}

.order-card-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.order-card-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.order-card-item-image {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.order-card-item-details {
  flex: 1;
  min-width: 0;
}

.order-card-item-title {
  font-size: 13px;
  color: #E0E0E0;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-card-item-property {
  font-size: 12px;
  color: #a3a3a3;
}

.order-card-item-price {
  font-size: 13px;
  color: #E0E0E0;
  font-weight: 500;
  white-space: nowrap;
}

.order-card-total {
  padding-top: 12px;
  border-top: 1px solid rgba(65, 65, 65, 0.3);
  margin-bottom: 12px;
}

.order-card-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #a3a3a3;
  margin-bottom: 4px;
}

.order-card-total-row:last-child {
  font-size: 15px;
  font-weight: 600;
  color: #E0E0E0;
  margin-bottom: 0;
}

.order-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.order-card-button {
  flex: 1;
  background-color: rgba(6, 111, 163, 0.1);
  border: 1px solid rgba(6, 111, 163, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #66b3db;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

@media (hover: hover) {
  .order-card-button:hover {
    background-color: rgba(6, 111, 163, 0.15);
    border-color: rgba(6, 111, 163, 0.4);
  }
}

.order-card-date {
  font-size: 12px;
  color: #606060;
  text-align: right;
  margin-top: 8px;
}

.order-card-tracking {
  background-color: rgba(103, 58, 183, 0.1);
  border: 1px solid rgba(103, 58, 183, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 12px;
}

.order-card-tracking-label {
  font-size: 11px;
  color: #a3a3a3;
  margin-bottom: 2px;
}

.order-card-tracking-number {
  font-size: 13px;
  font-weight: 500;
  color: #9575cd;
  font-family: monospace;
}

/* Empty state */

.orders-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #818181;
}

.orders-empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.orders-empty-state p {
  font-size: 14px;
  margin-bottom: 8px;
}

/* Mobile responsive */

@media (max-width: 768px) {
  .order-popup-content {
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
  }

  .order-card-item-image {
    width: 40px;
    height: 40px;
  }
}

/* ===== CONFIRMATION MODAL (to be used as modules on several pages) ===== */

.confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.confirmation-modal-content {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(65, 65, 65, 0.5);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 340px;
  width: 85%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

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

.confirmation-modal-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.confirmation-modal.success .confirmation-modal-icon {
  color: #4CAF50;
}

.confirmation-modal.error .confirmation-modal-icon {
  color: #f44336;
}

.confirmation-modal.info .confirmation-modal-icon {
  color: #2196F3;
}

.confirmation-modal-message {
  color: #E0E0E0;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.confirmation-modal-button {
  background: linear-gradient(135deg, #fbe98a 0%, #f5d963 100%);
  color: #1a1a1a;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.confirmation-modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 233, 138, 0.3);
}

.confirmation-modal-button:active {
  transform: translateY(0);
}

.confirmation-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.confirmation-modal-overlay.active {
  display: flex;
}

.confirmation-modal {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 20px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.confirmation-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #E0E0E0;
  margin-bottom: 12px;
}

.confirmation-modal-text {
  font-size: 14px;
  color: #a3a3a3;
  margin-bottom: 20px;
  line-height: 1.5;
}

.confirmation-modal-buttons {
  display: flex;
  gap: 10px;
}

.confirmation-modal-button {
  flex: 1;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #414141;
  background-color: #1e1e1e;
  color: #818181;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.confirmation-modal-button.confirm {
  background-color: #B51010;
  border: 1px solid #ff6666;
  color: #ff6666;
}

@media (hover: hover) {
  .confirmation-modal-button:hover {
    background-color: #2b2b2b;
    border: 1px solid #8f8f8f;
    color: #a3a3a3;
  }
  .confirmation-modal-button.confirm:hover {
    background-color: #d91e1e;
  }
}

/* ===== DISABLING SCROLLBARS ===== */

.faq-popup-content,
.gallery-popup-content,
.gallery-zoom-content,
.favorites-popup-content,
.picker-popup-content,
.product-popup-content,
.customers-popup-content,
.suggestions-popup-content {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.faq-popup-content::-webkit-scrollbar,
.gallery-popup-content::-webkit-scrollbar,
.gallery-zoom-content::-webkit-scrollbar,
.favorites-popup-content::-webkit-scrollbar,
.picker-popup-content::-webkit-scrollbar,
.product-popup-content::-webkit-scrollbar,
.customers-popup-content::-webkit-scrollbar,
.suggestions-popup-content::-webkit-scrollbar {
  display: none;
}

/* ===== @MEDIA QUERIES ===== */
@media (max-width: 1024px) {
  body {
    padding-top: 0;
  }
}

/* ===== MOBILE STYLES ===== */

/* Mobile: Header and bottom nav stay on top */
@media (max-width: 768px) {
  .header {
    z-index: 10002;
  }

  .bottom-nav {
    z-index: 10002;
  }

  .products-header {
    top: 70px;
  }

  /* Lower popup z-index so header/nav stay on top (except zoom and FAQ popups) */
  .favorites-popup-overlay,
  .picker-popup-overlay,
  .product-popup-overlay,
  .customers-popup-overlay,
  .suggestions-popup-overlay,
  .order-popup-overlay {
    z-index: 1002;
  }

  /* Fullscreen popups on mobile (excluding zoom popups) */
  .product-popup-overlay.active .product-popup-content,
  .customers-popup-overlay.active .customers-popup-content,
  .favorites-popup-overlay.active .favorites-popup-content,
  .profile-popup-overlay.active .profile-popup-content,
  .active   .active   .order-popup-overlay.active .order-popup-content {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 70px);
    max-width: 100%;
    max-height: none;
    border-radius: 0;
    transform: none;
    padding-bottom: 60px;
    box-sizing: border-box;
    background: #121212;
    backdrop-filter: none;
    border: none;
  }

  /* Opaque popups on mobile */
  .product-popup-content,
  .customers-popup-content,
  .favorites-popup-content,
  .faq-popup-content,
  .profile-popup-content,
  .order-popup-content {
    background: #121212;
    backdrop-filter: none;
  }

  /* Zoom popups: above everything, no frame on mobile */
  .gallery-zoom-content {
    padding: 0;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
  }

  .gallery-zoom-image {
    width: 100%;
    height: 100%;
  }

  /* Hide popup close buttons on mobile (excluding zoom) */
  .product-popup-close,
  .customers-popup-close,
  .favorites-popup-close,
  .profile-popup-close,
  .order-popup-close {
    display: none;
  }

  /* Make header sticky when popup is open */
  body.popup-open .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* ============ TOUCH DEVICE FEEDBACK ============ */
/* Visual feedback for all buttons on touch devices */
@media (hover: none) and (pointer: coarse) {
  button:active,
  .btn-filter:active,
  .btn-icon:active,
  .btn-carousel:active,
  .btn-favorite:active,
  .bottom-nav-button:active,
  .header-icon-button:active,
  .header-back-button:active,
  .header-faq-button:active,
  .header-profile-button:active,
  .header-logo-button:active,
  .review-star-btn:active,
  .review-form-button:active,
  .comment-form-button:active,
  .suggestion-form-button:active,
  .picker-control-button:active,
  .picker-start-button:active {
    transform: scale(0.95);
    opacity: 0.8;
    transition: transform 0.1s ease, opacity 0.1s ease;
  }

  /* Ensure smooth return to normal state */
  button,
  .btn-filter,
  .btn-icon,
  .btn-carousel,
  .btn-favorite,
  .bottom-nav-button,
  .header-icon-button,
  .header-back-button,
  .header-faq-button,
  .header-profile-button,
  .header-logo-button,
  .review-star-btn,
  .review-form-button,
  .comment-form-button,
  .suggestion-form-button,
  .picker-control-button,
  .picker-start-button {
    transition: transform 0.1s ease, opacity 0.1s ease;
  }
}

/* ============================================================
   TOAST NOTIFICATIONS
   Unified toast styling with CSS variables for easy customization
   ============================================================ */

/* Toast CSS Variables (Global Defaults) */
:root {
  --toast-bg: rgba(18, 18, 18, 0.95);
  --toast-border: rgba(65, 65, 65, 0.5);
  --toast-text: #E0E0E0;
  --toast-padding: 15px 20px;
  --toast-border-radius: 12px;
  --toast-max-width: 320px;
  --toast-font-size: 14px;
  --toast-gap: 12px;
  --toast-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  --toast-icon-color: #E0E0E0;
}

.toast-notification {
  position: fixed;
  padding: var(--toast-padding);
  background-color: var(--toast-bg);
  border: 1px solid var(--toast-border);
  border-radius: var(--toast-border-radius);
  backdrop-filter: blur(20px);
  box-shadow: var(--toast-shadow);
  display: flex;
  align-items: center;
  gap: var(--toast-gap);
  font-size: var(--toast-font-size);
  color: var(--toast-text);
  max-width: var(--toast-max-width);
  right: 20px;
  will-change: transform;
  transform: translateZ(0);
  z-index: 10003;
  opacity: 1;
  transition: none;
}

/* Toast icon styling */
.toast-notification svg {
  flex-shrink: 0;
  color: var(--toast-icon-color);
  fill: var(--toast-icon-color);
}

/* Toast type variants */
.toast-notification.success {
  --toast-icon-color: #26de81;
}

.toast-notification.removed,
.toast-notification.error {
  --toast-icon-color: #ff6b6b;
}

.toast-notification.info {
  --toast-icon-color: #16a6ed;
}

/* Toast Positioning */
@media (max-width: 1024px) {
  .toast-notification {
    top: 20px;
    bottom: auto;
  }
}

@media (min-width: 1025px) {
  .toast-notification {
    bottom: 20px;
    top: auto;
  }
}

/* Toast animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* ============================================================
   CERTIFICATE CARD STYLES
   ============================================================ */

.certificate-card .certificate-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, rgba(227, 185, 111, 0.1) 0%, rgba(227, 185, 111, 0.05) 100%);
  border: 2px dashed rgba(227, 185, 111, 0.3);
  border-radius: 8px;
}

.certificate-card .certificate-placeholder svg {
  filter: drop-shadow(0 2px 8px rgba(227, 185, 111, 0.3));
}

.certificate-card:hover .certificate-placeholder {
  background: linear-gradient(135deg, rgba(227, 185, 111, 0.15) 0%, rgba(227, 185, 111, 0.08) 100%);
  border-color: rgba(227, 185, 111, 0.5);
}

.certificate-card:hover .certificate-placeholder svg {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}
/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */

.scroll-to-top-btn {
  position: fixed;
  width: 48px;
  height: 48px;
  background-color: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(65, 65, 65, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top-btn svg {
  color: var(--primary);
  stroke: var(--primary);
}

.scroll-to-top-btn:hover {
  transform: translateY(-2px);
  background-color: rgba(18, 18, 18, 1);
  border-color: rgba(251, 233, 138, 0.5);
}

.scroll-to-top-btn:active {
  transform: translateY(0);
}

/* Desktop: bottom right, to the side of products grid */
@media (min-width: 1025px) {
  .scroll-to-top-btn {
    bottom: 40px;
    right: 40px;
  }
}

/* Mobile: above bottom nav, to the right */
@media (max-width: 1024px) {
  .scroll-to-top-btn {
    bottom: calc(var(--bottom-nav-height, 60px) + 20px);
    right: 20px;
  }
}
