/* ===== SHARED COMPONENTS ===== */
/* Reusable component styles: carousels, modals, toasts, tabs, dropdowns, forms, lists */

/* ===== FAQ POPUP ===== */

.faq-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);
}

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

.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);
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-popup-content::-webkit-scrollbar {
  display: none;
}

/* Mobile bottom sheet style */
@media (max-width: 768px) {
  .faq-popup-overlay {
    align-items: flex-end;
  }

  .faq-popup-content {
    width: 100%;
    max-width: none;
    border-radius: 20px 20px 0 0;
    min-height: 30vh;
    max-height: 75vh;
    transform: translateY(0);
  }

  .faq-popup-overlay:not(.active) .faq-popup-content {
    transform: translateY(100%);
  }

  .faq-popup-overlay.active .faq-popup-content {
    animation: slideUpFromBottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

@keyframes slideUpFromBottom {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.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-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-textbox p {
  margin-bottom: 10px;
}

.faq-textbox ul {
  margin: 10px 0;
  padding-left: 20px;
}

.faq-textbox li {
  margin-bottom: 5px;
}

.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(65, 65, 65, 0.6);
  }
}

/* Page FAQ Button (appears next to page titles) */
.page-faq-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 10px;
  flex-shrink: 0;
  padding: 0;
}

.page-faq-button svg {
  color: #8f8f8f;
  stroke: #8f8f8f;
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .page-faq-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
  }

  .page-faq-button:hover svg {
    color: #E0E0E0;
    stroke: #E0E0E0;
  }
}

.page-faq-button:active {
  transform: scale(0.95);
}

/* Make page titles flexbox containers to accommodate FAQ button */
.page-header-title,
.page-title,
.picker-title,
.catalog-title,
h1.title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== 1. CAROUSEL COMPONENTS ===== */

/* Product Carousel */
.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 (max-width: 768px) {
  .product-carousel-wrapper {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .product-carousel-wrapper {
    height: 280px;
  }
}

/* Product Additional Carousel */
.product-additional-carousel {
  border-top: 1px solid rgba(65, 65, 65, 0.5);
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.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;
}

@media (max-width: 768px) {
  .product-additional-carousel-wrapper {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .product-additional-carousel-wrapper {
    height: 200px;
  }
}

/* Gallery Carousel */
.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; }
}

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

/* Mobile: add top padding to prevent header overlap */
@media (max-width: 1024px) {
  .catalogs-background {
    padding-top: 70px; /* Match header height */
  }
}

.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); }

/* ===== 2. IMAGE ZOOM POPUP ===== */

.zoom-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10002;
  align-items: center;
  justify-content: center;
}

.zoom-overlay.active {
  display: flex;
}

.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;
}

.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) {
  .zoom-close:hover svg { color: #fff; }
  .zoom-close:hover svg path { fill: #fff; }
}

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

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

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

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

.zoom-prev,
.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) {
  .zoom-prev:hover,
  .zoom-next:hover { background: rgba(0, 0, 0, 0.8); }
}

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

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

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

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

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

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

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

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

/* ===== 3. TAB COMPONENTS ===== */

.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;
}

/* ===== 4. FORM COMPONENTS ===== */

/* Common Form 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;
}

/* Review Form */
.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-rating {
  display: flex;
  gap: 8px;
  align-items: center;
}

.review-form-rating label {
  font-size: 12px;
  color: #a3a3a3;
}

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

.review-star-btn {
  opacity: 0.3;
  transition: opacity 0.2s;
}

.review-star-btn.selected,
.review-star-btn:hover {
  opacity: 1;
}

@media (hover: none) {
  .review-star-btn {
    opacity: 1;
  }
}

.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;
}

/* Comment Form */
.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;
}

/* Suggestion Form */
.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;
}

/* ===== 5. LIST COMPONENTS ===== */

/* Reviews List */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.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-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 {
  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;
  }
}

/* Comments List */
.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);
  }
}

/* Suggestions List */
.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);
  }
}

/* ===== 6. DROPDOWN COMPONENTS ===== */

/* Format Dropdown */
.format-wrapper {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.format-dropdown {
  position: relative;
  flex: 1;
}

.format-button {
  font-size: 14px;
  font-weight: 500;
  background-color: #1e1e1e;
  color: #E0E0E0;
  border: 1px solid #414141;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  text-align: left;
  display: block;
}

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

.format-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: black;
  border: 1px solid #414141;
  border-radius: 8px;
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.format-dropdown-menu.hidden {
  display: none;
}

.format-option {
  padding: 10px 12px;
  cursor: pointer;
  background-color: #1e1e1e;
  color: #818181;
  border: none;
  text-align: left;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
}

@media (hover: hover) {
  .format-option:hover {
    background-color: #2b2b2b;
    color: #a3a3a3;
  }
}

.format-option.active {
  background-color: #066fa3;
  color: #9cddfd;
  border-left: 3px solid #16a6ed;
  box-shadow: inset 0 0 10px rgba(22, 166, 237, 0.3);
}

.format-option.in-cart {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

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

.format-option.in-cart.active .in-cart-count {
  color: #9cddfd;
}

.format-dimensions {
  font-size: 12px;
  color: #818181;
  text-align: center;
  padding: 10px 12px;
  background-color: #1e1e1e;
  border: 1px solid #414141;
  border-radius: 8px;
  min-width: 80px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .format-wrapper {
    flex-direction: column;
  }

  .format-dimensions {
    width: 100%;
    text-align: left;
  }
}

/* ===== 7. MODAL COMPONENTS ===== */

.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;
  }
}

/* ===== 8. TOAST NOTIFICATIONS ===== */

.toast-notification { z-index: 10003; }

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

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