/* ==================== STORE NAV ==================== */
.store-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.store-back-link {
  font-weight: 800;
  color: #7b2d8b;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border: 2px solid #ffb3d9;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.store-back-link:hover {
  background: rgba(255, 179, 217, 0.35);
  border-color: #ff6eb4;
  transform: translateY(-1px);
}

.cart-btn {
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, #ff2d78, #c9a0ff);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(255, 45, 120, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(255, 45, 120, 0.45);
}

/* ==================== STORE NAV AUTH ==================== */
.store-auth-area {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.store-signin-link {
  font-weight: 800;
  font-size: 0.82rem;
  color: #7b2d8b;
  text-decoration: none;
  padding: 0.38rem 0.85rem;
  border: 2px solid #ffb3d9;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.store-signin-link:hover {
  border-color: #ff6eb4;
  background: rgba(255, 179, 217, 0.3);
}

.store-auth-user {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem 0.3rem 0.4rem;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #ffb3d9;
  border-radius: 50px;
  max-width: 160px;
}

.store-auth-avatar {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.store-auth-email-text {
  font-size: 0.75rem;
  font-weight: 800;
  color: #7b2d8b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== ORDER HISTORY ==================== */
.order-history-section {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.order-status {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: rgba(201, 160, 255, 0.2);
  border: 1.5px solid #c9a0ff;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #7b2d8b;
}

.order-status--paid {
  background: rgba(45, 139, 90, 0.12);
  border-color: rgba(45, 139, 90, 0.4);
  color: #1a6640;
}

/* ==================== STORE SECTIONS ==================== */
.store-section {
  margin-bottom: 2.2rem;
}

.store-section-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.5rem;
  color: #ff2d78;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #ffb3d9;
}

/* ==================== PRODUCT GRID ==================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

/* Cat Trees only has 2 items — show as 2 centered columns */
#treesGrid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 680px;
  margin-inline: auto;
}

@media (max-width: 700px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  #treesGrid { max-width: 100%; }
  .store-section-title { font-size: 1.25rem; }
  .product-name { font-size: 0.88rem; }
  .product-desc { font-size: 0.78rem; }
  .product-img  { height: 100px; }
  .product-emoji { font-size: 2.8rem; }
  .product-body { padding: 0.75rem 0.75rem 0.85rem; gap: 0.35rem; }
}

@media (max-width: 480px) {
  .store-nav { gap: 0.35rem; }
  .store-back-link { font-size: 0.8rem; padding: 0.38rem 0.7rem; }
  .cart-btn { font-size: 0.8rem; padding: 0.38rem 0.75rem; }

  .store-auth-area { flex: 1; }
  .store-auth-user { max-width: 100px; }
  .store-auth-email-text { font-size: 0.68rem; }
  .store-signin-link { font-size: 0.78rem; padding: 0.35rem 0.65rem; }

  .product-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .product-img  { height: 85px; }
  .product-emoji { font-size: 2.2rem; }
  .product-name { font-size: 0.82rem; }
  .product-desc { font-size: 0.75rem; line-height: 1.4; }
  .product-price { font-size: 1rem; }
  .add-to-cart-btn { font-size: 0.75rem; padding: 0.4rem 0.65rem; }
  .product-footer { gap: 0.3rem; }

  /* Cart sidebar full width on small screens */
  .cart-sidebar { width: 100vw; }
  .cart-item-name { font-size: 0.82rem; }

  .order-history-section { margin-top: 1rem; }
}

/* ==================== PRODUCT CARDS ==================== */
.product-card {
  background: rgba(255, 250, 253, 0.95);
  border: 2.5px solid #ffb3d9;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  opacity: 0;
  transform: translateY(24px);
  animation: card-rise 0.5s ease forwards;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(201, 160, 255, 0.45);
  border-color: #c9a0ff;
}

/* Staggered animation delays */
.product-card:nth-child(1) { animation-delay: 0ms; }
.product-card:nth-child(2) { animation-delay: 50ms; }
.product-card:nth-child(3) { animation-delay: 100ms; }
.product-card:nth-child(4) { animation-delay: 150ms; }
.product-card:nth-child(5) { animation-delay: 200ms; }
.product-card:nth-child(6) { animation-delay: 250ms; }

@keyframes card-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== PRODUCT IMAGE PLACEHOLDER ==================== */
.product-img {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-emoji {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* Unique gradients per product */
.product-img--moonbeam {
  background: linear-gradient(135deg, #c9a0ff 0%, #87ceeb 50%, #7fffd4 100%);
}

.product-img--rainbow {
  background: linear-gradient(135deg, #ff6eb4 0%, #ffb347 35%, #fff176 65%, #7fffd4 100%);
}

.product-img--starfish {
  background: linear-gradient(135deg, #fff176 0%, #ffb347 50%, #ff6eb4 100%);
}

.product-img--mushroom {
  background: linear-gradient(135deg, #ffb3d9 0%, #c9a0ff 50%, #7fffd4 100%);
}

.product-img--feather {
  background: linear-gradient(135deg, #87ceeb 0%, #c9a0ff 50%, #ffb3d9 100%);
}

.product-img--cloud {
  background: linear-gradient(135deg, #d4b8ff 0%, #b3ecff 50%, #fff9fb 100%);
}

.product-img--pompom {
  background: linear-gradient(135deg, #ff2d78 0%, #ff6eb4 25%, #c9a0ff 50%, #7fffd4 75%, #87ceeb 100%);
}

.product-img--catnip {
  background: linear-gradient(135deg, #7fffd4 0%, #87ceeb 40%, #c9a0ff 100%);
}

/* ==================== PRODUCT BODY ==================== */
.product-body {
  padding: 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.45rem;
}

.product-name {
  font-family: 'Pacifico', cursive;
  font-size: 0.95rem;
  color: #7b2d8b;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.82rem;
  font-weight: 600;
  color: #a06bb0;
  line-height: 1.5;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ff2d78;
  font-family: 'Nunito', sans-serif;
}

.add-to-cart-btn {
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, #ff6eb4, #c9a0ff);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(255, 110, 180, 0.3);
  transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(255, 110, 180, 0.45);
}

.add-to-cart-btn.added {
  background: linear-gradient(135deg, #7fffd4, #87ceeb);
  color: #1a4a5a;
  box-shadow: 0 3px 10px rgba(127, 255, 212, 0.4);
}

/* ==================== CART SIDEBAR ==================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(90, 45, 110, 0.35);
  z-index: 100;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: overlay-in 0.25s ease;
}

@keyframes overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100vw);
  background: rgba(255, 250, 253, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 3px solid #ffb3d9;
  box-shadow: -8px 0 40px rgba(201, 160, 255, 0.4);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.cart-sidebar--open {
  transform: translateX(0);
}

.cart-sidebar[aria-hidden="false"] {
  transform: translateX(0);
}

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.3rem;
  border-bottom: 2.5px solid #ffb3d9;
  background: linear-gradient(135deg, rgba(255,179,217,0.4), rgba(201,160,255,0.3));
}

.cart-sidebar-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.2rem;
  color: #ff2d78;
}

.cart-close-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid #c9a0ff;
  border-radius: 50%;
  font-size: 0.85rem;
  color: #7b2d8b;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-family: 'Nunito', sans-serif;
}

.cart-close-btn:hover {
  background: rgba(201, 160, 255, 0.3);
  transform: rotate(90deg);
}

/* ==================== CART ITEMS ==================== */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.3rem;
}

.cart-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #c9a0ff;
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-empty-icon {
  display: block;
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1.5px dashed rgba(201, 160, 255, 0.4);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-name {
  flex: 1;
  font-weight: 700;
  color: #7b2d8b;
  font-size: 0.88rem;
  line-height: 1.3;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.cart-qty-btn {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 160, 255, 0.2);
  border: 1.5px solid #c9a0ff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: #7b2d8b;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.cart-qty-btn:hover {
  background: rgba(201, 160, 255, 0.4);
}

.cart-qty-num {
  font-weight: 800;
  color: #7b2d8b;
  min-width: 1.2rem;
  text-align: center;
  font-size: 0.9rem;
}

.cart-item-price {
  font-weight: 800;
  color: #ff2d78;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #c9a0ff;
  font-size: 1rem;
  padding: 0.15rem;
  transition: color 0.15s ease;
  flex-shrink: 0;
  font-family: 'Nunito', sans-serif;
}

.cart-item-remove:hover {
  color: #ff2d78;
}

/* ==================== CART FOOTER ==================== */
.cart-sidebar-footer {
  padding: 1.1rem 1.3rem;
  border-top: 2.5px solid #ffb3d9;
  background: linear-gradient(135deg, rgba(255,179,217,0.25), rgba(201,160,255,0.2));
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.cart-total-label {
  font-weight: 800;
  color: #7b2d8b;
  font-size: 0.95rem;
}

.cart-total-amount {
  font-family: 'Pacifico', cursive;
  font-size: 1.3rem;
  color: #ff2d78;
}

.checkout-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #ff2d78 0%, #ff6eb4 50%, #c9a0ff 100%);
  background-size: 200% auto;
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(255, 45, 120, 0.4);
  transition: all 0.25s ease;
}

.checkout-btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 45, 120, 0.55);
}

/* ==================== SHOP PILL BUTTON (inside top-bar) ==================== */
.shop-pill-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, #ff6eb4, #c9a0ff);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(255, 110, 180, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.shop-pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(255, 110, 180, 0.45);
}

/* ==================== HISTORY SECTION ==================== */
.history-section {
  margin-top: 1.5rem;
}

.history-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: linear-gradient(135deg, rgba(255,179,217,0.45), rgba(201,160,255,0.35));
  border: 2.5px solid #ffb3d9;
  border-radius: 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #7b2d8b;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.history-toggle-btn::after {
  content: '▸';
  margin-left: auto;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.history-toggle-btn--open::after {
  transform: rotate(90deg);
}

.history-toggle-btn:hover {
  border-color: #c9a0ff;
  background: linear-gradient(135deg, rgba(201,160,255,0.4), rgba(127,255,212,0.25));
}

.history-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.history-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #c9a0ff;
  font-weight: 700;
  font-size: 0.95rem;
}

.history-empty-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.history-card {
  background: rgba(255, 250, 253, 0.92);
  border: 2.5px solid #ffb3d9;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.history-card:hover {
  border-color: #c9a0ff;
  box-shadow: 0 4px 16px rgba(201, 160, 255, 0.25);
}

.history-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.history-cat-name {
  font-weight: 800;
  color: #7b2d8b;
  font-size: 0.95rem;
}

.history-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c9a0ff;
}

.history-complaints {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a06bb0;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.history-view-btn {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(135deg, #ff6eb4, #c9a0ff);
  color: white;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(255, 110, 180, 0.3);
  transition: all 0.2s ease;
}

.history-view-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 110, 180, 0.45);
}

/* ==================== REPORT PAGE ENHANCEMENTS ==================== */
.report-cat-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.5rem;
  color: #ff2d78;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.report-header-text {
  flex: 1;
  min-width: 0;
}

.report-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.report-meta-pills span {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: rgba(201, 160, 255, 0.18);
  border: 1.5px solid rgba(201, 160, 255, 0.5);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #7b2d8b;
  white-space: nowrap;
}

.report-complaints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.75rem 0 1.2rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 179, 217, 0.18);
  border: 2px dashed #ffb3d9;
  border-radius: 14px;
}

.report-complaints-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #c9a0ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.25rem;
}

.complaint-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: linear-gradient(135deg, rgba(255,110,180,0.2), rgba(201,160,255,0.2));
  border: 1.5px solid #ffb3d9;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ff2d78;
  text-transform: capitalize;
}

.report-recs-title {
  font-family: 'Pacifico', cursive;
  color: #ff2d78;
  margin-bottom: 1rem;
  font-size: 1.35rem;
}
