html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #fafafa;
}

/* Header Styles */
.catalog-header {
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.3s, transform 0.2s;
}

.logo:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.logo-image {
  height: 10vh;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.logo-text {
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .logo-text {
    display: none;
  }
}

@media (max-width: 576px) {
  .logo-text {
    display: none;
  }
}

.header-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: #333;
}

.mobile-nav-backdrop {
  display: none;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #d23669;
}

.marketplace-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.marketplace-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.marketplace-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  font-weight: 700;
}

.marketplace-link:hover .marketplace-badge {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.marketplace-badge-ebay {
  letter-spacing: -0.04em;
  font-size: 1.45rem;
  font-family: Arial, sans-serif;
}

.ebay-letter-e {
  color: #e53238;
}

.ebay-letter-b {
  color: #0064d2;
}

.ebay-letter-a {
  color: #f5af02;
}

.ebay-letter-y {
  color: #86b817;
}

.marketplace-badge-etsy {
  color: #f1641e;
  font-size: 1.05rem;
  font-family: Georgia, 'Times New Roman', serif;
}

.marketplace-badge-homepage {
  color: #333;
  font-size: 0.96rem;
}

.marketplace-badge-youtube {
  gap: 0.45rem;
  min-width: 116px;
  color: #fff;
  background: #ff0000;
  border-color: #ff0000;
  font-size: 0.98rem;
}

.marketplace-badge-icon {
  flex-shrink: 0;
}

body.modal-open {
  overflow: hidden;
}

.youtube-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
}

.youtube-modal.is-open {
  display: block;
}

.youtube-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.youtube-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  padding: 1.25rem;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.youtube-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #333;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.youtube-modal-close:hover {
  background: rgba(210, 54, 105, 0.12);
  color: #d23669;
  transform: rotate(90deg);
}

.youtube-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-right: 3.25rem;
  margin-bottom: 1rem;
}

.youtube-modal-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d23669;
}

.youtube-modal-title {
  margin: 0;
  font-size: 1.7rem;
  color: #222;
}

.youtube-modal-channel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: #ff0000;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.youtube-modal-channel-link:hover {
  color: #fff;
  opacity: 0.94;
}

.youtube-modal-status {
  padding: 1rem 0.25rem 0.25rem;
  color: #555;
  font-size: 1rem;
}

.youtube-modal-content {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 1.25rem;
  align-items: start;
  max-height: calc(100vh - 11rem);
}

.youtube-player-shell {
  min-width: 0;
}

.youtube-player-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.youtube-player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-player-title {
  margin: 0.95rem 0 0.35rem;
  font-size: 1.2rem;
  line-height: 1.45;
  color: #222;
}

.youtube-player-date {
  margin: 0;
  color: #777;
  font-size: 0.92rem;
}

.youtube-video-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: calc(100vh - 11rem);
  padding-right: 0.25rem;
  overflow-y: auto;
}

.youtube-video-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 0.85rem;
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.youtube-video-item:hover,
.youtube-video-item.active {
  border-color: #d23669;
  box-shadow: 0 8px 18px rgba(210, 54, 105, 0.1);
  transform: translateY(-1px);
}

.youtube-video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: #f3f3f3;
}

.youtube-video-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.youtube-video-item-title {
  color: #222;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.youtube-video-item-date {
  color: #777;
  font-size: 0.88rem;
}

/* Main Content */
.catalog-main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 110px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sidebar-close {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #333;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.sidebar-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #ececec;
  padding: 1rem;
}

.sidebar-title {
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-gutter: stable;
}

.category-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border: 1px solid #ececec;
  background-color: #fff;
  color: #333;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s;
}

.category-chip:hover {
  border-color: #d23669;
  color: #d23669;
  transform: translateY(-1px);
}

.category-chip.active {
  border-color: #d23669;
  background-color: #fff0f5;
  color: #b82a5a;
}

.category-count {
  font-size: 0.85rem;
  color: #777;
}

.catalog-content {
  min-width: 0;
}

.mobile-categories-bar,
.mobile-categories-backdrop {
  display: none;
}

.mobile-categories-toggle {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #d23669;
  border-radius: 12px;
  background: #d23669;
  color: #fff;
  font-weight: 700;
  text-align: left;
  box-shadow: 0 6px 16px rgba(210, 54, 105, 0.22);
}

.new-products-section {
  margin-top: 4rem;
  margin-bottom: 3rem;
}

.section-divider {
  height: 1px;
  width: 100%;
  margin: 0.75rem 0 0;
  background: linear-gradient(90deg, transparent, #d7d7d7 12%, #d7d7d7 88%, transparent);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  color: #222;
}

.new-products-grid {
  margin-bottom: 0;
}

.new-products-grid .product-card {
  position: relative;
  border: 2px solid #f1c6d5;
  box-shadow: 0 6px 18px rgba(210, 54, 105, 0.12);
}

.new-products-grid .product-card::before {
  content: "NEW";
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background-color: #d23669;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  box-shadow: 0 4px 10px rgba(210, 54, 105, 0.25);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .catalog-layout {
    grid-template-columns: 1fr;
    padding-top: 6.5rem;
    margin-bottom: 7rem;
  }

  .catalog-sidebar {
    position: static;
  }

  .mobile-categories-bar {
    display: block;
    position: fixed;
    top: 118px;
    left: 1rem;
    right: 1rem;
    z-index: 98;
    margin-bottom: 0;
  }

  .mobile-categories-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1198;
    background: rgba(0, 0, 0, 0.45);
  }

  .mobile-categories-backdrop.is-open {
    display: block;
  }

  .catalog-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1199;
    width: min(360px, calc(100vw - 2rem));
    height: 100vh;
    padding: 1rem;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .catalog-sidebar.is-open {
    transform: translateX(0);
  }

  .catalog-sidebar .sidebar-card {
    height: 100%;
    border-radius: 18px;
    padding: 1rem;
  }

  .catalog-sidebar .category-list {
    max-height: calc(100vh - 130px);
  }

  .sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Product Card */
.product-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background-color: #f5f5f5;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s, opacity 0.3s;
}

.product-card:hover .product-image {
  transform: scale(1.05);
  opacity: 0.9;
}

.product-info {
  padding: 1rem;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #d23669;
  margin: 0;
}

/* Pagination */
.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
}

.load-more-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f0d3de;
  border-top-color: #d23669;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.load-more-btn {
  background-color: #d23669;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.load-more-btn:hover {
  background-color: #b82a5a;
  transform: translateY(-2px);
}

.load-more-btn:active {
  transform: translateY(0);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: #fff;
  margin: 2% auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideDown 0.3s;
  position: relative;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: fixed;
  right: max(1rem, calc((100vw - min(900px, 90vw)) / 2 + 1rem));
  top: calc(2vh + 1rem);
  color: #aaa;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1301;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.9);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: all 0.3s;
}

.modal-close:hover,
.modal-close:focus {
  color: #d23669;
  background-color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 15px;
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 15px;
  }
  
  .modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .modal-close {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 1rem);
    right: 1rem;
    z-index: 1301;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  }

  .modal-left {
    position: static;
    top: auto;
  }
}

.modal-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  position: sticky;
  top: 1rem;
  align-self: start;
}

@media (max-width: 768px) {
  .modal-left {
    position: static;
    top: auto;
    align-self: auto;
  }
}

.main-image-container {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background-color: #f5f5f5;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.image-gallery {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gallery-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, opacity 0.3s;
}

.gallery-thumbnail:hover {
  border-color: #d23669;
  opacity: 0.8;
}

.gallery-thumbnail.active {
  border-color: #d23669;
}

.modal-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.modal-description {
  color: #333;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  text-align: left;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.modal-description p {
  margin: 0 0 1rem;
  text-align: left !important;
}

.modal-description h1,
.modal-description h2,
.modal-description h3,
.modal-description h4,
.modal-description h5,
.modal-description h6 {
  line-height: 1.3;
  margin: 1rem 0 0.75rem;
  text-align: left !important;
}

.modal-description h1,
.modal-description h2 {
  font-size: 1.5rem;
}

.modal-description h3 {
  font-size: 1.2rem;
}

.modal-description ul,
.modal-description ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  text-align: left !important;
}

.modal-description li {
  margin-bottom: 0.4rem;
  text-align: left !important;
}

.modal-description strong,
.modal-description b {
  color: inherit;
}

.modal-description div,
.modal-description span,
.modal-description font,
.modal-description table,
.modal-description tbody,
.modal-description tr,
.modal-description td {
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.modal-description * {
  max-width: 100% !important;
  box-sizing: border-box;
}

.modal-description table {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
  border-collapse: collapse;
  overflow-x: auto;
}

.modal-description td,
.modal-description th {
  width: auto !important;
}

.modal-description img,
.modal-description video,
.modal-description iframe {
  max-width: 100% !important;
  height: auto !important;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #d23669;
}

.modal-buybar {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding: 1rem 0 0;
  background: linear-gradient(to top, #fff 80%, rgba(255, 255, 255, 0.92) 92%, rgba(255, 255, 255, 0));
}

.etsy-buy-btn {
  background-color: #d23669;
  color: #fff;
  text-decoration: none;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.2s;
  display: inline-block;
  margin-top: 0;
}

.etsy-buy-btn:hover {
  background-color: #b82a5a;
  transform: translateY(-2px);
  color: #fff;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background-color: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.lightbox-close,
.lightbox-nav {
  border: none;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background-color: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .lightbox {
    padding: 1rem;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }
}

/* Footer Styles */
.catalog-footer {
  background-color: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.copyright {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.etsy-shop-link {
  color: #d23669;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.etsy-shop-link:hover {
  opacity: 0.8;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icon {
  color: #666;
  transition: color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  color: #d23669;
  transform: translateY(-2px);
}

.videos-main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0 4rem;
}

.videos-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.videos-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid #ececec;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #fff7fa 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.videos-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d23669;
}

.videos-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: #222;
}

.videos-subtitle {
  margin: 0.65rem 0 0;
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.videos-channel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  background: #ff0000;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(255, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.videos-channel-link:hover {
  color: #fff;
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(255, 0, 0, 0.25);
}

.videos-status-card {
  padding: 1.35rem 1.5rem;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.videos-status-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #222;
}

.videos-status-text {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-card {
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 1px solid #ececec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f3f3f3;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.03);
}

.video-play-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.92);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.video-card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.video-date {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #d23669;
}

.video-card-title {
  margin: 0;
  color: #222;
  font-size: 1.02rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scroll-nav {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scroll-nav-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background-color: rgba(210, 54, 105, 0.95);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s, background-color 0.2s, opacity 0.2s;
}

.scroll-nav-btn:hover {
  background-color: #b82a5a;
  transform: translateY(-2px);
}

.scroll-nav-btn:active {
  transform: translateY(0);
}

/* Loading State */
.loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .header-container {
    padding: 0 1rem;
  }

  .logo-image {
    max-width: 132px;
  }
  
  .container {
    padding: 0 1rem;
  }

  .videos-shell {
    padding: 0 1rem;
  }

  .videos-hero {
    padding: 1.25rem;
  }

  .youtube-modal-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    margin: 0.5rem auto;
    padding: 1rem;
    border-radius: 18px;
  }

  .youtube-modal-header {
    padding-right: 2.75rem;
  }
  
  .catalog-main {
    padding: 1rem 0;
  }
  
  .products-grid {
    gap: 1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .footer-container {
    padding: 0 1rem;
  }

  .scroll-nav {
    right: 0.75rem;
    bottom: 1rem;
  }

  .scroll-nav-btn {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 900px) {
  .youtube-modal-content {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 11rem);
    overflow-y: auto;
  }

  .youtube-video-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .header-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    z-index: 1201;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: min(280px, calc(100vw - 2rem));
    padding: 1rem;
    border: 1px solid #ececec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  }

  .catalog-header.mobile-menu-open .header-nav {
    display: flex;
  }

  .catalog-header.mobile-menu-open .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.3);
  }

  .header-nav .marketplace-link,
  .header-nav .marketplace-button {
    width: 100%;
  }

  .header-nav .marketplace-badge {
    width: 100%;
    min-width: 0;
  }
}

.admin-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.admin-login-card,
.admin-card,
.admin-metric-card {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.admin-login-card {
  width: min(100%, 460px);
  padding: 2rem;
}

.admin-topbar,
.admin-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.admin-topbar {
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.admin-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c2410c;
}

.admin-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #111827;
}

.admin-subtitle,
.admin-card-text {
  margin: 0.5rem 0 0;
  color: #4b5563;
}

.admin-alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-weight: 600;
}

.admin-alert-success {
  background: #ecfdf5;
  color: #166534;
}

.admin-alert-error {
  background: #fef2f2;
  color: #b91c1c;
}

.admin-metrics-grid,
.admin-content-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.admin-content-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.admin-metric-card,
.admin-card {
  padding: 1.25rem;
}

.admin-metric-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.admin-metric-value {
  font-size: 2rem;
  color: #111827;
}

.admin-metric-value-small {
  font-size: 1.1rem;
  line-height: 1.4;
}

.admin-card-title {
  margin: 0;
  font-size: 1.25rem;
  color: #111827;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-form-group {
  display: grid;
  gap: 0.45rem;
}

.admin-label {
  font-weight: 600;
  color: #111827;
}

.admin-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font: inherit;
}

.admin-input:focus {
  outline: none;
  border-color: #c2410c;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12);
}

.admin-button {
  padding: 0.85rem 1.1rem;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.admin-button-secondary {
  background: #f3f4f6;
  color: #111827;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 0.65rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.admin-status-list {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}

.admin-status-list dt {
  font-weight: 700;
  color: #6b7280;
}

.admin-status-list dd {
  margin: 0.25rem 0 0;
  word-break: break-word;
  color: #111827;
}

.admin-chart-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.admin-chart-card {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fafafa;
}

.admin-chart-header {
  margin-bottom: 0.75rem;
}

.admin-chart-title {
  margin: 0;
  font-size: 1rem;
  color: #111827;
}

.admin-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  color: #4b5563;
  font-size: 0.9rem;
}

.admin-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.admin-legend-total {
  background: #111827;
}

.admin-legend-unique {
  background: #ea580c;
}

.admin-legend-ip {
  background: #0284c7;
}

.admin-chart-canvas {
  display: block;
  width: 100%;
  min-height: 280px;
}

@media (max-width: 768px) {
  .admin-shell {
    padding-top: 1.25rem;
  }

  .admin-topbar,
  .admin-card-header {
    flex-direction: column;
    align-items: stretch;
  }
}
