.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* Mobile-first base styles (320px+) */

.featured,
.product-page,
.admin-page {
  padding: 1rem 4vw 1.75rem;
}

.section-header h2 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.section-header p {
  color: #4b5160;
  margin: 0 0 1rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Carousel styles - mobile-first */
.carousel-container {
  position: relative;
  margin-top: 0.4rem;
  padding: 1rem 0;
  overflow: visible;
  min-height: 410px;
}

.carousel-wrapper {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: visible;
}

.carousel-track {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease, visibility 0.45s ease;
  will-change: transform, opacity;
  pointer-events: none;
}

.carousel-slide.center {
  z-index: 10 !important;
  pointer-events: auto !important;
}

.carousel-slide.adjacent {
  z-index: 5 !important;
}

.carousel-slide.far {
  z-index: 3 !important;
}

.carousel-slide.hidden {
  opacity: 0 !important;
  z-index: 1 !important;
  visibility: hidden;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #ddd;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-50%) scale(1.1);
  border-color: #4CAF50;
}

.carousel-btn.prev {
  left: 10px;
  z-index: 20;
}

.carousel-btn.next {
  right: 10px;
  z-index: 20;
}

.carousel-thumbnails {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 1rem;
  position: relative;
  z-index: 15;
  margin-top: 0.75rem;
}

.carousel-thumbnails .thumbnail {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  padding: 0;
  background: #f0f0f0;
  flex-shrink: 0;
}

.carousel-thumbnails .thumbnail:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-thumbnails .thumbnail.active {
  border-color: #4CAF50;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.carousel-thumbnails .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-thumbnails .thumbnail .image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #999;
  background: #f5f5f5;
}

/* Responsive carousel card sizes */
.carousel-container .product-card {
  width: 280px;
  height: 350px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.6s ease;
}

.carousel-slide.center .product-card {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Remove the pseudo-element previews */

.carousel-container .product-card .card-image {
  height: 200px;
  flex-shrink: 0;
}

.carousel-container .product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-container .product-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow: hidden;
}

.carousel-container .product-card .card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-container .product-card .card-description {
  font-size: 0.85rem;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.carousel-container .product-card .card-meta {
  margin-top: auto;
}

/* Mobile-first Responsive Breakpoints */

/* Small phones (375px+) */
@media (min-width: 375px) {
  .carousel-container .product-card {
    width: 300px;
    height: 370px;
  }

  .carousel-thumbnails .thumbnail {
    width: 60px;
    height: 60px;
  }
}

/* Large phones (480px+) */
@media (min-width: 480px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .carousel-wrapper {
    height: 430px;
  }

  .carousel-container .product-card {
    width: 320px;
    height: 390px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .carousel-thumbnails {
    gap: 0.65rem;
    padding: 0 1.25rem;
  }

  .carousel-thumbnails .thumbnail {
    width: 65px;
    height: 65px;
    border-radius: 7px;
  }

  .size-inputs {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-quantity-inputs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
  .featured,
  .product-page,
  .admin-page {
    padding: 1.25rem 5vw 2.2rem;
  }

  .featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.35rem;
  }

  .section-header h2 {
    font-size: 1.85rem;
  }

  .section-header p {
    margin: 0 0 1.2rem;
  }

  .carousel-container {
    min-height: 440px;
    padding: 1.25rem 0;
  }

  .carousel-wrapper {
    height: 410px;
    margin-bottom: 1.2rem;
  }

  .carousel-container .product-card {
    width: 360px;
    height: 420px;
    border-radius: 18px;
  }

  .carousel-container .product-card .card-image {
    height: 230px;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 30px;
  }

  .carousel-btn.prev {
    left: 5%;
  }

  .carousel-btn.next {
    right: 5%;
  }

  .carousel-thumbnails {
    gap: 0.75rem;
    padding: 0 1.5rem;
    margin-top: 0.85rem;
  }

  .carousel-thumbnails .thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 7px;
  }

  .size-inputs {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .featured,
  .product-page,
  .admin-page {
    padding: 1.5rem 6vw 2.8rem;
  }

  .featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.4rem;
  }

  .section-header p {
    margin: 0 0 1.3rem;
  }

  .carousel-container {
    margin-top: 0.5rem;
    padding: 1.3rem 0;
    min-height: 490px;
  }

  .carousel-wrapper {
    height: 430px;
    margin-bottom: 1.2rem;
  }

  .carousel-container .product-card {
    width: 400px;
    height: 450px;
    border-radius: 20px;
  }

  .carousel-container .product-card .card-image {
    height: 250px;
  }

  .carousel-slide.adjacent {
    display: block;
  }

  .carousel-btn {
    width: 48px;
    height: 48px;
    font-size: 32px;
  }

  .carousel-btn.prev {
    left: 15%;
  }

  .carousel-btn.next {
    right: 15%;
  }

  .carousel-thumbnails {
    gap: 1rem;
    padding: 0 2rem;
    margin-top: 1rem;
  }

  .carousel-thumbnails .thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
  }

  .modal-content {
    border-radius: 24px;
    max-height: 90vh;
  }

  .modal-header {
    padding: 2rem 2rem 1rem;
  }

  .modal-header h2 {
    font-size: 1.8rem;
  }

  .modal-form {
    padding: 2rem;
  }
}

.product-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(31, 46, 77, 0.08);
  display: flex;
  flex-direction: column;
  animation: rise-in 0.6s ease-out;
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eef1f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img,
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  color: #7a7f8b;
  font-size: 0.9rem;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-description {
  color: #4b5160;
  font-size: 0.95rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: 700;
  color: #1f2f4d;
}

.text-link {
  color: var(--brand);
  font-weight: 600;
}

.product-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.product-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(31, 46, 77, 0.1);
  background: #eef1f7;
}

.product-info h2 {
  margin-top: 0;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-image {
  border-radius: 12px;
  overflow: hidden;
  background: #eef1f7;
  aspect-ratio: 1;
}

.gallery-image img,
.gallery-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details-list {
  background: #f8f9fb;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.product-details-list p {
  margin: 0.5rem 0;
  color: #2f3b52;
}

.product-details-list strong {
  color: var(--brand);
  margin-right: 0.5rem;
}

.admin-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.admin-login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.login-card {
  max-width: 420px;
  width: 100%;
}

.admin-dashboard {
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(31, 78, 161, 0.1);
}

.dashboard-header h2 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 2rem;
  margin: 0 0 0.4rem;
}

.dashboard-header p {
  color: #4b5160;
  margin: 0;
}

.dashboard-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(31, 78, 161, 0.1);
}

.tab {
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #5d6470;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.tab:hover {
  color: var(--brand);
}

.tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.dashboard-content {
  animation: float-in 0.4s ease-out;
}

.tab-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.panel-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 16px 30px rgba(31, 46, 77, 0.08);
}

.panel-section h3 {
  margin: 0 0 1.5rem;
  font-size: 1.4rem;
  color: #1f2f4d;
}

.inline-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.inline-form input {
  flex: 1;
  min-width: 280px;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #d7dbe4;
  background: #f8f9fb;
  font-size: 0.95rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #f8f9fb;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #eef1f7;
}

.stat-label {
  font-size: 0.85rem;
  color: #5d6470;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2f4d;
  margin: 0;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fb;
  border-radius: 14px;
  border: 1px solid #eef1f7;
}

.product-row-inactive {
  opacity: 0.75;
  background: #f2f4f8;
}

.product-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef1f7;
  flex-shrink: 0;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.7rem;
  color: #7a7f8b;
}

.product-details {
  flex: 1;
}

.product-details h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #1f2f4d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #5d6470;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  background: var(--brand);
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.inactive-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: #6b7280;
  color: #fff;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tab-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  margin-left: 0.45rem;
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  position: relative;
  overflow: visible;
  align-items: center;
}

.product-actions-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.button-icon.actions-menu-toggle {
  min-width: 44px;
  font-size: 1rem;
}

.button-icon.actions-menu-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(31, 78, 161, 0.08);
}

.product-actions-menu {
  position: absolute;
  top: 50%;
  left: calc(100% + 0.5rem);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 11rem;
  padding: 0.45rem;
  background: #ffffff;
  border: 1px solid #d7dbe4;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(31, 46, 77, 0.18);
  z-index: 40;
}

.product-actions-menu-item {
  border: 1px solid transparent;
  background: transparent;
  color: #1f2f4d;
  text-align: left;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.product-actions-menu-item:hover {
  background: #f8f9fb;
  border-color: #d7dbe4;
}

.product-actions-menu-item.inactive {
  color: #15803d;
}

.product-actions-menu-item.posted {
  color: #16a34a;
}

.product-actions-menu-item.danger {
  color: #b91c1c;
}

.product-actions-menu-item.danger:hover {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.14);
}

.review-management-toolbar {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.review-list-container {
  border: 1px solid #dfe6f3;
  border-radius: 12px;
  background: #f7f9fd;
  padding: 0.8rem;
  margin-bottom: 1rem;
}

.review-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.review-list-header h4 {
  margin: 0;
}

.code-list-container {
  border: 1px solid #dfe6f3;
  border-radius: 12px;
  background: #f7f9fd;
  padding: 0.8rem;
  margin-bottom: 1rem;
}

.code-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.code-list-header h4 {
  margin: 0;
}

.review-management-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.review-row {
  border: 1px solid #e6eaf2;
  border-radius: 12px;
  background: #f8f9fc;
  padding: 0.45rem 0.6rem;
}

.review-row-needs-action {
  border-color: #f0b35b;
  background: #fffaf2;
  box-shadow: 0 0 0 1px rgba(240, 179, 91, 0.2);
}

.review-row-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.review-row-toggle {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.1rem;
  margin: 0;
  cursor: pointer;
  min-width: 0;
  flex: 1;
}

.review-row-caret {
  color: #2b4f8f;
  font-size: 0.9rem;
  line-height: 1;
}

.review-row-title {
  margin: 0;
  font-size: 0.95rem;
  text-align: left;
  color: #1f2f4d;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-row-summary-right {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.review-row-rating {
  font-size: 0.82rem;
  color: #2a3e61;
  font-weight: 700;
}

.review-row-status {
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}

.review-row-status-approved {
  background: #e8f7ee;
  color: #1f7a3c;
}

.review-row-status-pending {
  background: #fff1da;
  color: #8a5204;
}

.review-row-status-hidden,
.review-row-status-rejected {
  background: #eceff4;
  color: #4a5568;
}

.review-row-flag {
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: #ffe5bf;
  color: #8a5204;
}

.review-row-flag-dirty {
  background: #dbe9ff;
  color: #214f9d;
}

.review-row-fields {
  display: grid;
  grid-template-columns: 96px minmax(240px, 1fr) 220px;
  gap: 0.45rem 0.55rem;
  align-items: end;
  margin-top: 0.55rem;
}

.review-row-actions {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  margin-top: 0.55rem;
}

.review-row-actions .button {
  padding: 0.42rem 0.95rem;
}

.review-field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  font-size: 0.82rem;
  color: #4a5670;
}

.review-field input,
.review-field select,
.review-field textarea {
  border: 1px solid #ccd4e3;
  border-radius: 8px;
  background: #fff;
  padding: 0.42rem 0.55rem;
  font-size: 0.9rem;
}

.review-field-body {
  grid-column: 1 / -1;
}

.review-field-admin-comment {
  grid-column: 1 / -1;
}

.review-field-photo {
  grid-column: 1 / -1;
}

.review-field-body textarea {
  min-height: 70px;
  resize: vertical;
}

.review-edit-photo-preview {
  margin-top: 0.35rem;
  width: min(180px, 100%);
  max-height: 130px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ccd4e3;
  background: #fff;
}

.review-photo-paste-target {
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px dashed #aac0e6;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #44516f;
  background: #f7faff;
  cursor: text;
}

.review-photo-paste-target:focus {
  outline: 2px solid #5a7fc5;
  outline-offset: 2px;
}

.review-photo-actions {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
}

.admin-star-button {
  border: none;
  background: transparent;
  color: #c8d3e7;
  font-size: 1.22rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.admin-star-button.active {
  color: #f4ba33;
}

.button-icon {
  background: linear-gradient(180deg, #f1f5fb 0%, #e4ebf7 100%);
  border: 1px solid #b8c7de;
  color: #4a6488;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(31, 78, 161, 0.08);
}

.button-icon:hover {
  background: linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
  border-color: #8ea7ca;
  transform: scale(1.1);
}

.button-icon.edit:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(31, 78, 161, 0.05);
}

.button-icon.featured-toggle {
  min-width: 44px;
  font-size: 1.05rem;
}

.button-icon.featured-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(31, 78, 161, 0.08);
}

.button-icon.featured-toggle.active {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(31, 78, 161, 0.14);
}

.button-icon.featured-toggle.active:hover {
  border-color: #183d7f;
  color: #183d7f;
  background: rgba(24, 61, 127, 0.16);
}

.button-icon.home-carousel-toggle {
  min-width: 44px;
  font-size: 1rem;
}

.button-icon.home-carousel-toggle:hover {
  border-color: #0f6abf;
  color: #0f6abf;
  background: rgba(15, 106, 191, 0.08);
}

.button-icon.home-carousel-toggle.active {
  border-color: #0f6abf;
  color: #0f6abf;
  background: rgba(15, 106, 191, 0.14);
}

.button-icon.home-carousel-toggle.active:hover {
  border-color: #0b5395;
  color: #0b5395;
  background: rgba(11, 83, 149, 0.16);
}

.button-icon.facebook:hover {
  border-color: #1877f2;
  color: #1877f2;
  background: rgba(24, 119, 242, 0.08);
}

.button-icon.facebook.posted {
  border-color: #16a34a;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
}

.button-icon.facebook.posted:hover {
  border-color: #15803d;
  color: #15803d;
  background: rgba(21, 128, 61, 0.12);
}

.button-icon.visibility {
  min-width: 54px;
  font-size: 0.82rem;
  font-weight: 700;
}

.button-icon.visibility:hover {
  border-color: #b45309;
  color: #b45309;
  background: rgba(180, 83, 9, 0.07);
}

.button-icon.visibility.inactive {
  border-color: #15803d;
  color: #15803d;
  background: rgba(22, 163, 74, 0.08);
}

.button-icon.visibility.inactive:hover {
  border-color: #166534;
  color: #166534;
  background: rgba(22, 101, 52, 0.12);
}

.button-icon.delete:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.05);
}

.checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.4rem !important;
  padding: 0.3rem 0.5rem;
  background: #f8f9fb;
  border-radius: 8px;
  border: 1px solid #d7dbe4;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  background: #eef1f7;
  border-color: var(--brand);
}

.checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--brand);
}

.checkbox-label span {
  font-weight: 600;
  color: #2f3b52;
  -webkit-user-select: none;
  user-select: none;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 16px 30px rgba(31, 46, 77, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  color: #2f3b52;
}

.card input {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #d7dbe4;
  background: #f8f9fb;
  font-size: 0.95rem;
}

.button {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: var(--brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(31, 78, 161, 0.2);
}

.button.ghost {
  border-style: dashed;
}

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

.form-note {
  color: #7a7f8b;
  font-size: 0.85rem;
  margin: 0;
}

.status-text {
  color: #1f2f4d;
  font-weight: 600;
  margin-top: 1rem;
}

.empty-state {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  color: #5d6470;
  text-align: center;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid #e9eef8;
  vertical-align: middle;
}

.admin-table thead th {
  font-size: 0.95rem;
  color: #1f2f4d;
  font-weight: 700;
}

.admin-table tbody td {
  color: #2b3445;
}

.customer-admin-table th:last-child,
.customer-admin-table td:last-child,
.customer-actions-cell {
  text-align: right;
}

.customer-admin-table td:nth-child(1) {
  min-width: 220px;
}

.customer-admin-table td:nth-child(2) {
  min-width: 220px;
}

.customer-admin-table td:nth-child(3) {
  min-width: 140px;
}


/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 46, 77, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  overflow-y: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(31, 46, 77, 0.2);
  width: 100%;
  max-width: 600px;
  max-height: 95vh;
  overflow-y: auto;
  animation: modal-slide-up 0.3s ease-out;
}

/* Generic modal scrollbar behavior (hidden until interaction) */
.modal-overlay,
.modal-content {
  -ms-overflow-style: none;
}

.modal-overlay::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.modal-overlay:hover::-webkit-scrollbar,
.modal-overlay:focus-within::-webkit-scrollbar,
.modal-overlay:active::-webkit-scrollbar,
.modal-content:hover::-webkit-scrollbar,
.modal-content:focus-within::-webkit-scrollbar,
.modal-content:active::-webkit-scrollbar {
  width: 10px;
}

.modal-overlay::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 20px;
}

.modal-overlay::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 20px;
}

.modal-overlay:hover::-webkit-scrollbar-track,
.modal-overlay:focus-within::-webkit-scrollbar-track,
.modal-overlay:active::-webkit-scrollbar-track,
.modal-content:hover::-webkit-scrollbar-track,
.modal-content:focus-within::-webkit-scrollbar-track,
.modal-content:active::-webkit-scrollbar-track {
  background: rgba(31, 78, 161, 0.14);
}

.modal-overlay:hover::-webkit-scrollbar-thumb,
.modal-overlay:focus-within::-webkit-scrollbar-thumb,
.modal-overlay:active::-webkit-scrollbar-thumb,
.modal-content:hover::-webkit-scrollbar-thumb,
.modal-content:focus-within::-webkit-scrollbar-thumb,
.modal-content:active::-webkit-scrollbar-thumb {
  background: var(--brand);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(31, 78, 161, 0.1);
}

.modal-header h2 {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 1.5rem;
  color: #1f2f4d;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #5d6470;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: rgba(31, 78, 161, 0.1);
  color: var(--brand);
}

.modal-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 600;
  color: #2f3b52;
  font-size: 0.95rem;
}

.modal-form input[type="text"],
.modal-form input[type="number"],
.modal-form input[type="file"],
.modal-form textarea,
.modal-form select {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid #d7dbe4;
  background: #f8f9fb;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
}

.modal-form textarea {
  resize: vertical;
  min-height: 100px;
}

.size-inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.price-quantity-inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.image-preview-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #eef1f7;
  aspect-ratio: 1;
}

.preview-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-media-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(31, 46, 77, 0.8);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.remove-media-btn:hover {
  background: rgba(31, 46, 77, 1);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(31, 78, 161, 0.1);
}

@media (max-width: 1024px) {
  .dashboard-header {
    gap: 1rem;
    align-items: flex-start;
  }

  .dashboard-tabs {
    flex-wrap: wrap;
    border-bottom: none;
    gap: 0.5rem;
  }

  .tab {
    flex: 1 1 calc(33.333% - 0.5rem);
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    border: 1px solid rgba(31, 78, 161, 0.15);
    border-radius: 10px;
  }

  .tab.active {
    border-color: var(--brand);
    background: rgba(31, 78, 161, 0.06);
  }

  .panel-section {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .admin-dashboard {
    width: 100%;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  .dashboard-header h2 {
    font-size: 1.55rem;
  }

  .dashboard-tabs {
    margin-bottom: 1.25rem;
  }

  .tab {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .tab-panel {
    gap: 1rem;
  }

  .panel-section {
    padding: 1rem;
    border-radius: 14px;
  }

  .panel-section h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  .product-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
  }

  .product-thumb {
    width: 52px;
    height: 52px;
  }

  .product-details {
    min-width: 0;
  }

  .product-details h4 {
    flex-wrap: wrap;
    line-height: 1.2;
  }

  .product-meta {
    overflow-wrap: anywhere;
  }

  .product-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .product-actions-menu {
    min-width: 10.5rem;
  }

  .review-management-toolbar {
    flex-wrap: wrap;
  }

  .review-row {
    padding: 0.62rem 0.68rem;
  }

  .review-row-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .review-row-toggle {
    width: 100%;
  }

  .review-row-summary-right {
    width: 100%;
    justify-content: flex-start;
  }

  .review-row-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .review-row-fields {
    grid-template-columns: 1fr;
    gap: 0.38rem;
  }

  .review-field-body {
    grid-column: auto;
  }

  .review-field-admin-comment {
    grid-column: auto;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .modal-header {
    padding: 1rem 1rem 0.75rem;
  }

  .modal-header h2 {
    font-size: 1.2rem;
    padding-right: 0.5rem;
  }

  .modal-form {
    padding: 1rem;
    gap: 1rem;
  }

  .modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .modal-actions .button {
    width: 100%;
  }

  .inline-form input {
    min-width: 0;
  }

  .customer-admin-table td:nth-child(1),
  .customer-admin-table td:nth-child(2),
  .customer-admin-table td:nth-child(3) {
    min-width: 0;
  }

  .customer-admin-table td:nth-child(4) {
    min-width: 220px;
  }

  .digital-recovery-search-row {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .digital-recovery-search {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .dashboard-header h2 {
    font-size: 1.35rem;
  }

  .tab {
    flex: 1 1 100%;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .button-icon {
    padding: 0.45rem 0.55rem;
  }

  .featured-badge {
    font-size: 0.68rem;
  }
}

@keyframes modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Mobile-first base styles (320px+) */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  margin-top: auto;
  padding: 1.5rem 4vw;
  color: #6b7280;
  border-top: 1px solid rgba(31, 78, 161, 0.08);
  font-size: 0.9rem;
  text-align: center;
  gap: 0.75rem;
}

.footer-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.footer-social-link {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(31, 78, 161, 0.35);
  color: var(--brand);
  text-decoration: none;
  background: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.footer-social-link:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.footer-social-icon-image {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
  object-fit: contain;
}

.footer-social-icon-svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.footer-legal-links a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.footer-legal-links a:hover {
  color: #163a78;
}

/* Large phones (480px+) */
@media (min-width: 480px) {
  .site-footer {
    font-size: 0.95rem;
    padding: 1.75rem 5vw;
  }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
    padding: 2rem 6vw;
    font-size: 1rem;
  }
}
/* Mobile-first base styles (320px+) */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 4vw;
  position: sticky;
  top: 0;
  background: rgba(250, 250, 252, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31, 78, 161, 0.1);
  z-index: 500;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.logo-block:hover {
  opacity: 0.8;
}

.logo-block img {
  width: 132px;
  height: auto;
  max-height: 86px;
  object-fit: contain;
  display: block;
}

.header-origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 0.15rem;
}

.header-origin-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #163058;
  letter-spacing: 0.03em;
  white-space: normal;
}

.header-origin-line-primary,
.header-origin-line-secondary {
  display: inline;
  white-space: nowrap;
}

.header-origin-flag {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 28px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(19, 40, 74, 0.16);
  background: repeating-linear-gradient(
    to bottom,
    #b22234 0,
    #b22234 2.12px,
    #ffffff 2.12px,
    #ffffff 4.24px
  );
}

.header-origin-flag-canton {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 54%;
  background:
    radial-gradient(circle at 20% 22%, #ffffff 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 50% 22%, #ffffff 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 80% 22%, #ffffff 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 35% 42%, #ffffff 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 65% 42%, #ffffff 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 20% 64%, #ffffff 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 50% 64%, #ffffff 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 80% 64%, #ffffff 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 35% 84%, #ffffff 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 65% 84%, #ffffff 0 0.7px, transparent 0.8px),
    #3c3b6e;
}

.logo-title {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 1rem;
  margin: 0;
}

.logo-subtitle {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: #5d6470;
  display: none;
}

.nav-links {
  position: absolute;
  top: 100%;
  right: 4vw;
  background: #fff;
  box-shadow: 0 4px 12px rgba(31, 78, 161, 0.12);
  border-radius: 8px;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  display: none;
  z-index: 510;
  min-width: 160px;
}

.nav-links.open {
  display: flex;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  margin-left: auto;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle-icon {
  font-size: 1.5rem;
  color: #1f2f4d;
}

.nav-cart-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 78, 161, 0.2);
  color: #1f2f4d;
  font-size: 0.95rem;
  text-decoration: none;
  background: #fff;
  padding: 0;
}

.nav-cart-inline:hover {
  color: var(--brand);
  border-color: rgba(31, 78, 161, 0.45);
}

.nav-cart-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.45rem;
  min-width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.62rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
  font-weight: 700;
}

.nav-links a {
  color: #1f2f4d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--brand);
}

/* Active page indicator */
.nav-links a.nav-active {
  color: var(--brand);
  font-weight: 700;
}

@media (min-width: 1024px) {
  .nav-links a.nav-active {
    border-bottom: 2px solid var(--brand);
    padding-bottom: 2px;
  }
}

.nav-bargin-basement {
  position: relative;
  color: #000 !important;
  font-weight: 700;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  padding: 0.15rem 0.25rem !important;
  isolation: isolate;
}

.nav-bargin-basement::before {
  content: '';
  position: absolute;
  inset: -0.22rem -0.55rem;
  z-index: -1;
  background: radial-gradient(circle at center, #ffe57a 0%, #ffcb4f 58%, #ff9241 100%);
  clip-path: polygon(
    50% 0%, 58% 16%, 74% 6%, 68% 23%,
    88% 19%, 76% 35%, 100% 40%, 79% 50%,
    100% 60%, 76% 65%, 88% 81%, 68% 77%,
    74% 94%, 58% 84%, 50% 100%, 42% 84%,
    26% 94%, 32% 77%, 12% 81%, 24% 65%,
    0% 60%, 21% 50%, 0% 40%, 24% 35%,
    12% 19%, 32% 23%, 26% 6%, 42% 16%
  );
  opacity: 0.86;
}

.nav-bargin-basement:hover,
.nav-bargin-basement.nav-active {
  color: #000 !important;
}

/* Small phones (375px+) */
@media (min-width: 375px) {
  .logo-block img {
    width: 132px;
    max-height: 86px;
  }

  .header-origin-text {
    font-size: 0.84rem;
  }
}

/* Large phones (480px+) */
@media (min-width: 480px) {
  .site-header {
    padding: 1rem 5vw;
  }
  
  .logo-block {
    gap: 1rem;
  }
  
  .logo-block img {
    width: 148px;
    max-height: 92px;
  }

  .header-origin-text {
    font-size: 0.88rem;
  }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
  .site-header {
    padding: 1.25rem 6vw;
  }
  
  .logo-block {
    gap: 1.15rem;
  }
  
  .logo-block img {
    width: 164px;
    max-height: 96px;
  }

  .header-origin-text {
    font-size: 0.92rem;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    background: transparent;
    box-shadow: none;
    padding: 0;
    min-width: auto;
  }

  .nav-links a {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    line-height: 1;
  }

  .nav-cart-inline {
    width: 2rem;
    height: 2rem;
    font-size: 1.02rem;
  }

  .nav-links {
    gap: 2rem;
  }

  .logo-block {
    gap: 1.25rem;
  }
}

@media (max-width: 1240px) {
  .header-origin-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.05;
  }
}

@media (max-width: 767px) {
  .header-origin-text {
    display: none;
  }

  .header-origin-badge {
    padding-left: 0;
    gap: 0.35rem;
  }

  .header-origin-flag {
    width: 36px;
    min-width: 36px;
    height: 24px;
  }
}
.loading-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #374151;
}

.loading-message-label {
  line-height: 1;
}

.loading-message-dots {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.35rem;
}

.loading-message-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #4f6fa8;
  animation: loadingMessageDot 1s ease-in-out infinite;
}

.loading-message-dot:nth-child(2) {
  animation-delay: 0.14s;
}

.loading-message-dot:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes loadingMessageDot {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0) scale(0.9);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
}
:root {
  --primary: #2C3E50;
  --brand: #1f4ea1;
  --brand-dark: #163a7f;
  --brand-focus: rgba(31, 78, 161, 0.16);
  --accent: #3498DB;
  --background: #ECF0F1;
  --canvas: #FFFFFF;
  --scrollbar-thumb: #3498DB;
  --scrollbar-thumb-hover: #1f6fbe;
  --scrollbar-track: rgba(52, 152, 219, 0.18);
  --pagination-gap: 0.3rem;
  --pagination-radius: 999px;
  --pagination-button-height: 2.05rem;
  --pagination-button-min-width: 2.05rem;
  --pagination-button-padding-x: 0.56rem;
  --pagination-font-size: 0.86rem;
  --pagination-font-weight: 700;
  --pagination-border: #5c8fd7;
  --pagination-background: #ffffff;
  --pagination-color: var(--brand);
  --pagination-hover-border: #2d66c3;
  --pagination-hover-background: #f4f8ff;
  --pagination-hover-color: var(--brand);
  --pagination-active-border: var(--brand);
  --pagination-active-background: linear-gradient(135deg, #2d5db3 0%, var(--brand) 100%);
  --pagination-active-color: #ffffff;
  --pagination-meta-color: #4f607f;
  --pagination-button-height-mobile: 1.92rem;
  --pagination-button-min-width-mobile: 1.92rem;
  --pagination-button-padding-x-mobile: 0.46rem;
  --pagination-font-size-mobile: 0.82rem;
}

* {
  box-sizing: border-box;
  cursor: url('/cursor-blue-glass.svg') 3 3, auto !important;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--scrollbar-thumb) 0%, var(--scrollbar-thumb-hover) 100%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--scrollbar-thumb-hover) 0%, #155a99 100%);
}

a, button, [role="button"], select, label[for],
input[type="submit"], input[type="button"], input[type="reset"],
input[type="checkbox"], input[type="radio"], input[type="range"],
[tabindex]:not([tabindex="-1"]) {
  cursor: url('/cursor-blue-glass.svg') 3 3, auto !important;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--background);
  color: var(--primary);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

#root {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

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

button {
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

/* Scale only on explicit primary CTA buttons — use .btn-scale to opt in */
.btn-scale:not(:disabled):hover {
  scale: 1.06;
}

button:focus-visible,
input:not([type='checkbox']):not([type='radio']):not([type='file']):focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--brand-focus);
}

input:not([type='checkbox']):not([type='radio']):not([type='file']),
select,
textarea {
  border-radius: 8px;
  border: 1px solid rgba(44, 62, 80, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fb 100%);
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

select {
  background-image:
    linear-gradient(180deg, #ffffff 0%, #f6f9fb 100%),
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-repeat: no-repeat;
  background-size: auto, 8px 8px, 8px 8px;
  background-position: 0 0, calc(100% - 20px) calc(50% - 2px), calc(100% - 14px) calc(50% - 2px);
  appearance: none;
}

nav {
  background: var(--primary);
  color: var(--canvas);
}

a {
  color: var(--accent);
  text-decoration: none;
}

.hamburger {
  display: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}