:root {
    --bg-accent: #f5ebe1;
    --bg-card: #ffffff;
    --text-main: #222;
    --accent: #ff6600; /* Etsy default */
  
    /* Switch to Infinicom look easily */
    /* --bg-accent: #f6f0ff;
       --accent: #d400a6;
       --text-main: #001060; */
  }
  
  body {
    background: var(--bg-accent);
    color: var(--text-main);
  }
  .btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
  }

  .text-success.small {
    background: #eafaf0;
    border-radius: 8px;
    padding: 3px 8px;
    display: inline-block;
  }
  
  .bg-success-subtle {
    background: #e9f8ee;
    border-radius: 8px;
    font-weight: 500;
  }
  
  .list-group-item.active {
    background-color: #ffc4b3;
    border-color: #ffb9a6;
    color: #4a2a2a;
  }
  .list-group-item-action:hover {
    background-color: #fff1ec;
  }
  .navbar .badge {
    font-size: 0.7rem;
    padding: 4px 6px;
  }
  /* Make nested subcategories appear beside parent category */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.15rem;
  display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* Styling */
.dropdown-menu {
  background-color: #fff7f4;
  border-color: #ffd6c4;
}
.dropdown-item:hover {
  background-color: #ffe3d4;
  color: #8b3a2d !important;
}
.category-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.1);
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card .btn {
  font-size: 0.85rem;
}

.card-img-top {
  height: 240px;
  object-fit: cover;
}


.card:hover {
  border: 2px solid #ffd6c4;
  box-shadow: 0 6px 16px rgba(255, 183, 151, 0.3);
}

@media (max-width: 576px) {
  .card img {
    height: 160px;
    object-fit: cover;
  }

  .card-body {
    padding: 0.6rem;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .btn-sm {
    font-size: 0.75rem;
    padding: 2px 6px;
  }
}
.list-group-item.active {
  background-color: #ffd6c4;
  border-color: #ffd6c4;
  color: #8b3a2d;
  font-weight: 600;
}

/* === Funnel Difficulty Indicator (growing left→right) === */
.difficulty-funnel {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  position: relative;
  margin-top: 8px;
  cursor: help;
}

.funnel-segment {
  background-color: #e5e7eb;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Funnel: small (left) → big (right) */
.funnel-segment:nth-child(1) { width: 7px;  height: 9px; }
.funnel-segment:nth-child(2) { width: 9px;  height: 10px; }
.funnel-segment:nth-child(3) { width: 11px; height: 11px; }
.funnel-segment:nth-child(4) { width: 13px; height: 12px; }
.funnel-segment:nth-child(5) { width: 15px; height: 13px; }
.funnel-segment:nth-child(6) { width: 16px; height: 14px; }

.funnel-segment.filled {
  background-color: var(--diff-color);
  box-shadow: 0 0 4px var(--diff-color);
}

.difficulty-funnel:hover .funnel-segment {
  transform: scale(1.05);
}

/* Tooltip */
.difficulty-tooltip {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--diff-color);
  color: #fff;
  padding: 2px 8px;
  font-size: 0.7rem;
  border-radius: 4px;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10;
}
.difficulty-funnel:hover .difficulty-tooltip {
  opacity: 1;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .difficulty-funnel { gap: 2px; }
  .funnel-segment:nth-child(1) { width: 6px; height: 8px; }
  .funnel-segment:nth-child(6) { width: 14px; height: 12px; }
  .difficulty-tooltip { font-size: 0.65rem; }
}

/* Optional smooth fill animation */
.funnel-segment.filled {
  animation: fillSegment 0.8s ease forwards;
}
@keyframes fillSegment {
  from { transform: scaleY(0.3); opacity: 0.5; }
  to { transform: scaleY(1); opacity: 1; }
}


/* === Nana Knits Pagination === */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #555;
}

.pagination-pages {
  display: flex;
  gap: 4px;
}

.pagination-page,
.pagination-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  text-decoration: none;
  color: #555;
  background-color: #fff;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.pagination-page:hover,
.pagination-arrow:hover {
  background-color: #ffe4db;
  color: #e38a64;
  border-color: #f5c0a1;
}

.pagination-page.active {
  background-color: #ffb6a3;
  color: white;
  border-color: #ffa68d;
  font-weight: bold;
}

.pagination-arrow svg {
  width: 14px;
  height: 14px;
}

.pagination-arrow.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pagination-dots {
  padding: 0 4px;
  color: #aaa;
}

/* Responsive */
@media (max-width: 640px) {
  .pagination-container {
    gap: 4px;
  }
  .pagination-page,
  .pagination-arrow {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
}


.text-peach { color: #f4a7a1 !important; }
.btn-peach {
  background-color: #f4a7a1;
  color: white;
  border: none;
}
.btn-peach:hover {
  background-color: #e9968f;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
}
.zoom-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4);
  color: white;
  font-size: 2.2rem;
  opacity: 0;
  cursor: zoom-in;
  transition: opacity 0.25s ease;
  font-weight: 400;
}
.image-wrapper:hover .zoom-overlay {
  opacity: 1;
}

/* Modal for zoom preview */
.zoom-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.85); /* bright background */  align-items: center; justify-content: center;
  overflow: hidden;
}
.zoom-modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}
.zoom-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}
@keyframes fadeIn {
  from {opacity:0} to {opacity:1}
}
.bg-success-subtle {
  background: #e9f8ee;
  border-radius: 8px;
  font-weight: 500;
}

.wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.wishlist-btn:hover {
  background: #fff;
  transform: scale(1.1);
}
.wishlist-btn i {
  font-size: 1.3rem;
}

.btn-peach {
  background-color: #f8c7b6;
  color: #6a3e3e;
  border: none;
}
.btn-peach:hover {
  background-color: #f5b8a3;
}
