/* Shop catalog page styles */

/* ════════════════════════════════════════
   REVEAL & ANIMATION
════════════════════════════════════════ */

.product-card {
  transform: translateX(-3.2rem);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card.visible {
  opacity: 1;
  transform: translateX(0);
}
.product-card:hover {
  transition-delay: 0s !important;
  transform: translateY(-1rem);
  box-shadow: var(--shadow-lift);
  border-color: var(--primary-light);
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero-inner {
  z-index: 2;
  max-width: 120rem;
}
.hero-tag {
  background: rgba(194, 98, 42, 0.15);
  border: 0.1rem solid rgba(194, 98, 42, 0.3);
  animation: fade-up 0.7s ease both;
}
.hero-tag-dot {
  width: 0.6rem;
  height: 0.6rem;
  animation: blink 1.5s infinite;
}
.hero-desc {
  color: rgba(255, 255, 255, 0.5);
  max-width: 42rem;
  animation: fade-up 0.7s 0.2s ease both;
}
.hero-btns {
  animation: fade-up 0.7s 0.3s ease both;
}
.hero-cats {
  grid-template-columns: 1fr 1fr;
  animation: fade-up 0.7s 0.35s ease both;
}
.hero-cat {
  background: rgba(255, 255, 255, 0.07);
  border: 0.1rem solid rgba(255, 255, 255, 0.1);
}
.hero-cat::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 0.2rem;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--t);
}
.hero-cat:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(194, 98, 42, 0.35);
  transform: translateY(-0.3rem);
}
.hero-cat:hover::after {
  opacity: 1;
}
.hero-cat-name {
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hero-cat-count {
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

/* ════════════════════════════════════════
   FILTER BAR
════════════════════════════════════════ */
.filter-bar {
  z-index: 10;
  box-shadow: 0 0.2rem 2rem rgba(0, 0, 0, 0.06);
}
.filter-search-icon {
  left: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
}
.filter-input {
  padding: 1rem 1.4rem 1rem 4rem;
  min-width: 18rem;
}
.filter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.3rem var(--primary-glow);
}
.filter-group::-webkit-scrollbar {
  display: none;
}
.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-pale);
}
.filter-chip.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.sort-select:focus {
  border-color: var(--primary);
}

/* ════════════════════════════════════════
   PRODUCTS GRID
════════════════════════════════════════ */
.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr));
}
.product-card {
  box-shadow: var(--shadow-sm);
}
.product-img-wrap {
  height: 20rem;
  background: linear-gradient(145deg, #fff8f5, #ffe8d6);
}
.product-img {
  transition: transform 0.5s ease;
}
.product-card:hover .product-img {
  transform: scale(1.06);
}
.product-emoji-wrap {
  width: 100%;
  height: 100%;
}
.prod-badge-tl {
  top: 1.2rem;
  left: 1.2rem;
  z-index: 2;
}
.prod-badge {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  display: inline-block;
}
.badge-sale {
  background: #ef4444;
  color: var(--white);
}
.badge-new {
  background: var(--primary);
  color: var(--white);
}
.badge-bestseller {
  background: #d97706;
  color: var(--white);
}
.badge-oos {
  background: var(--text-3);
  color: var(--white);
}
.card-slide-btn {
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 3.2rem;
  height: 3.2rem;
  background: rgba(255, 255, 255, 0.9);
}
.product-img-wrap:hover .card-slide-btn {
  opacity: 1;
}
.card-slide-btn:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.card-slide-prev {
  left: 0.8rem;
}
.card-slide-next {
  right: 0.8rem;
}
.card-dots {
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.card-dot {
  width: 0.6rem;
  height: 0.6rem;
  background: rgba(255, 255, 255, 0.6);
}
.card-dot.active {
  background: var(--white);
  transform: scale(1.3);
}
.stars {
  color: #d97706;
}
.price-old {
  text-decoration: line-through;
}
.add-to-cart-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 0.8rem 2.4rem var(--primary-glow);
  transform: translateY(-0.1rem);
}
.add-to-cart-btn.added {
  background: var(--success);
}
.add-to-cart-btn.btn-oos {
  background: var(--border);
  color: var(--text-4);
  cursor: not-allowed;
  box-shadow: none;
}
.add-to-cart-btn.btn-oos:hover {
  background: var(--border);
  box-shadow: none;
  transform: none;
}

/* ════════════════════════════════════════
   PAGINATION
════════════════════════════════════════ */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 3.2rem;
}
.pg-arrow {
  width: 3.8rem;
  height: 3.8rem;
  font-size: 2rem;
  font-weight: 700;
  background: var(--white);
  color: var(--primary);
  border-color: var(--border);
  transition: var(--t);
  line-height: 1;
}
.pg-arrow:hover:not(:disabled) {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0.4rem 1.6rem var(--primary-glow);
  transform: translateY(-0.1rem);
}
.pg-arrow-off {
  opacity: 0.32;
  cursor: not-allowed;
}
.pg-nums {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pg-num {
  width: 3.8rem;
  height: 3.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  background: var(--white);
  color: var(--text-2);
  border-color: var(--border);
  transition: var(--t);
  line-height: 1;
}
.pg-num:hover:not(:disabled):not(.pg-ellipsis) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-pale);
}
.pg-num-active {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0.4rem 1.6rem var(--primary-glow);
}
.pg-ellipsis {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--text-4) !important;
  cursor: default;
  pointer-events: none;
}

/* ════════════════════════════════════════
   FEATURED
════════════════════════════════════════ */
.featured-pattern {
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 6rem,
    rgba(194, 98, 42, 0.03) 6rem,
    rgba(194, 98, 42, 0.03) 6.1rem
  );
}
.featured-orb {
  width: 55rem;
  height: 55rem;
  background: radial-gradient(
    circle,
    rgba(194, 98, 42, 0.12) 0%,
    transparent 70%
  );
  bottom: -10rem;
  right: -6rem;
}
.featured-inner {
  z-index: 2;
  max-width: 96rem;
}
.featured-img {
  box-shadow: 0 2.4rem 6rem rgba(0, 0, 0, 0.35);
}
.featured-badge-float {
  top: -1.6rem;
  right: -1.6rem;
  box-shadow: 0 0.8rem 2.8rem var(--primary-glow);
}
.featured-title {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
}
.featured-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.featured-desc {
  color: rgba(255, 255, 255, 0.48);
}
.featured-perk {
  color: rgba(255, 255, 255, 0.65);
}
.perk-icon {
  width: 3.6rem;
  height: 3.6rem;
  background: rgba(194, 98, 42, 0.2);
  border: 0.1rem solid rgba(194, 98, 42, 0.3);
}
.featured-price {
  background: linear-gradient(135deg, var(--primary-light), #f0b080);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.featured-price-old {
  color: rgba(255, 255, 255, 0.28);
  text-decoration: line-through;
}

/* ════════════════════════════════════════
   BUNDLES
════════════════════════════════════════ */
.bundles-inner {
  max-width: 96rem;
}
.bundles-hd {
  max-width: 60rem;
}
.bundles-title {
  font-size: clamp(3rem, 8vw, 4.4rem);
}
.bundles-grid {
  grid-template-columns: 1fr;
}
.bundle-card {
  transition: all 0.36s cubic-bezier(0.34, 1.1, 0.64, 1);
}
.bundle-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.3rem;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
  opacity: 0;
  transition: var(--t);
}
.bundle-card:hover {
  transform: translateY(-0.8rem);
  box-shadow: var(--shadow-lift);
  border-color: var(--primary-light);
}
.bundle-card:hover::before {
  opacity: 1;
}
.bundle-popular {
  top: 1.6rem;
  right: 1.6rem;
}
.bundle-item::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}
.bundle-price-old {
  text-decoration: line-through;
}
.bundle-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 0.8rem 2.4rem var(--primary-glow);
}

/* ════════════════════════════════════════
   WHY SHOP
════════════════════════════════════════ */
.why-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 6rem,
    rgba(194, 98, 42, 0.03) 6rem,
    rgba(194, 98, 42, 0.03) 6.1rem
  );
  pointer-events: none;
}
.why-section::after {
  content: "";
  position: absolute;
  top: -8rem;
  left: -4rem;
  width: 50rem;
  height: 50rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(194, 98, 42, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.why-inner {
  z-index: 2;
  max-width: 96rem;
}
.why-hd {
  max-width: 60rem;
}
.why-title {
  font-size: clamp(3rem, 8vw, 4.4rem);
}
.why-grid {
  grid-template-columns: 1fr;
}
.why-card {
  transition: var(--t);
  background: rgba(255, 255, 255, 0.06);
  border: 0.1rem solid rgba(255, 255, 255, 0.09);
}
.why-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 0.2rem;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--t);
}
.why-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(194, 98, 42, 0.3);
  transform: translateY(-0.4rem);
}
.why-card:hover::after {
  opacity: 1;
}
.why-desc {
  color: rgba(255, 255, 255, 0.42);
}

/* ════════════════════════════════════════
   CTA
════════════════════════════════════════ */
.cta-inner {
  max-width: 68rem;
}
.cta-title {
  font-size: clamp(3rem, 9vw, 5.2rem);
}
.cta-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-btns .btn {
  max-width: 36rem;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
.hero-text {
  text-align: center;
}
.hero-desc {
  margin-left: auto;
  margin-right: auto;
}
.products-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 500px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 640px) {
  .hero-tag {
    margin-bottom: 2.4rem;
  }

  .hero-text {
    text-align: left;
  }
  .hero-desc {
    margin-left: 0;
    margin-right: 0;
  }

  .filter-bar {
    padding: 2.4rem;
  }
  .filter-input {
    min-width: 20rem;
  }
  .hero-btns,
  .featured-btns,
  .cta-btns {
    flex-direction: row;
  }
  .hero-btns .btn,
  .featured-btns .btn {
    width: auto;
  }
  .cta-btns .btn {
    width: auto;
    max-width: none;
  }

  .bundles-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    gap: 5rem;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-text {
    flex: 1.1;
  }
  .hero-cats {
    flex: 1;
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-bar {
    padding: 2.4rem 3.2rem;
  }
  .filter-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .filter-group {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .filter-sort {
    flex: 1;
    min-width: 13.5rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
  }
  .featured-layout {
    flex-direction: row;
    gap: 4.8rem;
    align-items: center;
  }
  .featured-img-side {
    flex: 1;
  }
  .featured-img {
    height: 50rem;
  }
  .featured-content {
    flex: 1;
  }
  .featured-btns {
    flex-direction: row;
  }
  .featured-btns .btn {
    width: auto;
  }
  .bundles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
  }
  .cta-btns {
    flex-direction: row;
    justify-content: center;
  }
}
@media (min-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .hero-cats {
    grid-template-columns: repeat(3, 1fr);
  }
  .filter-bar {
    padding: 2.4rem 4.8rem;
  }
  .filter-input {
    min-width: 30rem;
  }

  .featured-layout {
    gap: 6.4rem;
  }
  .bundles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .filter-input {
    min-width: 45rem;
  }
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
