/* ============================================================
   TRENDARYO — SHOP PAGE PREMIUM STYLES
   Clean, product-focused design inspired by Nike/SSENSE/ASOS
   ============================================================ */

/* ── Body & Page ── */
body {
  background: linear-gradient(180deg, #0a0a2a, #1a1a40);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.store-header {
  background: rgba(10, 10, 42, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.store-header.scrolled {
  background: rgba(10, 10, 42, 0.88) !important;
}
.store-header .store-logo {
  background: linear-gradient(135deg, #00f0ff, #ff00aa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent !important;
}
.store-header .store-nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}
.store-header .store-nav-link:hover {
  color: #ffffff !important;
}
.store-header .store-icon-btn {
  color: rgba(255, 255, 255, 0.9) !important;
}
.store-header .store-search input {
  color: #ffffff !important;
}
.store-header .store-search input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

.page-offset {
  padding-top: var(--page-offset, 52px);
}

.page-offset:has(> .shop-hero:first-child) {
  padding-top: 0;
}

/* ── Hero Section ── */
.shop-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.shop-hero-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}
.shop-hero-content {
  position: relative;
  background: transparent;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: center;
}
.shop-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.shop-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* ── Category Navigation ── */
.category-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.category-nav-orb {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
}
.category-nav-orb:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.5);
  color: #00f0ff;
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.3),
    inset 0 0 20px rgba(0, 240, 255, 0.05);
  transform: translateY(-2px);
}
.category-nav-orb.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.5);
  color: #00f0ff;
  box-shadow:
    0 0 25px rgba(0, 240, 255, 0.35),
    inset 0 0 20px rgba(0, 240, 255, 0.05);
}

/* ── Shop Container ── */
.shop-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 992px) {
  .shop-container {
    max-width: 1400px;
    padding: 0 2rem;
  }
}

/* ── Category Section ── */
.category-section {
  margin-bottom: 4rem;
}
.category-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.category-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #00f0ff;
}
.category-section-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.3rem;
}
.category-section-link {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #00f0ff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
  white-space: nowrap;
}
.category-section-link:hover {
  color: #ffffff;
}

/* ── Products Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 8px 0;
}

.products-grid .holo-card {
  width: 100%;
  --card-w: 100%;
  max-width: 100%;
}

.products-grid .holo-card .holo-image-zone {
  height: 180px;
  padding: 1rem;
}

.products-grid .holo-card .holo-product-img {
  max-width: 150px;
  max-height: 160px;
}

.products-grid .holo-card .holo-info {
  padding: 1rem 1rem 1.1rem;
}

.products-grid .holo-card .holo-price-row {
  margin-bottom: 0.75rem;
}

/* ── Product Card ── */
.product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.product-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
}

/* ── Product Image ── */
.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #12122a;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}
.product-card:hover .product-image img {
  opacity: 0.9;
}

/* ── Product Badge ── */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 4px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 30px;
}
.product-badge.hot {
  background: #ff00aa;
  color: #fff;
}
.product-badge.trending {
  background: #00f0ff;
  color: #0a0a2a;
}
.product-badge.premium {
  background: #ffd700;
  color: #0a0a2a;
}
.product-badge.new {
  background: #00ff88;
  color: #0a0a2a;
}
.product-badge.deal {
  background: #ff6600;
  color: #fff;
}

/* ── Wishlist Button ── */
.btn-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 10, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}
.btn-wishlist:hover {
  background: rgba(255, 0, 102, 0.2);
  border-color: rgba(255, 0, 102, 0.5);
  color: #ff0066;
}

/* ── Product Info ── */
.product-info {
  padding: 14px;
}
.product-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Price ── */
.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.price {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}
.price-original {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: line-through;
}

/* ── Rating ── */
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.stars {
  display: flex;
  gap: 1px;
}
.star {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
}
.star.filled {
  color: #ffd700;
}
.star.half {
  position: relative;
  color: rgba(255, 255, 255, 0.2);
}
.star.half::before {
  content: '\2605';
  position: absolute;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: #ffd700;
}
.review-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Quick Add CTA ── */
.product-cta {
  width: 100%;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  padding: 10px;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(4px);
}
.product-card:hover .product-cta {
  opacity: 1;
  transform: translateY(0);
}
.product-cta:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.5);
}

/* ── Loading Skeleton ── */
.skeleton-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  overflow: hidden;
}
.skeleton-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #12122a 25%, #1a1a3a 50%, #12122a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-text {
  padding: 14px;
}
.skeleton-line {
  height: 12px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.06) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 8px;
  border-radius: 2px;
}
.skeleton-line:nth-child(1) {
  width: 80%;
}
.skeleton-line:nth-child(2) {
  width: 60%;
}
.skeleton-line:nth-child(3) {
  width: 40%;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ── Empty State ── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
}
.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.empty-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}
.empty-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

/* ── Card Entrance Animation ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-card {
  animation: fadeInUp 0.5s ease both;
}
.product-card:nth-child(2) {
  animation-delay: 0.05s;
}
.product-card:nth-child(3) {
  animation-delay: 0.1s;
}
.product-card:nth-child(4) {
  animation-delay: 0.15s;
}
.product-card:nth-child(5) {
  animation-delay: 0.2s;
}
.product-card:nth-child(6) {
  animation-delay: 0.25s;
}
.product-card:nth-child(7) {
  animation-delay: 0.3s;
}
.product-card:nth-child(8) {
  animation-delay: 0.35s;
}

/* ── Notifications ── */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ── Responsive (Mobile-First) ──
   Products grid handled by responsive-universal.css (v3).
   Below: shop-specific responsive overrides only. */

/* 576px+ (small tablets) */
@media (min-width: 576px) {
  .shop-hero-content {
    padding: 0.4rem 0.8rem;
  }
}

/* 768px+ (tablets) */
@media (min-width: 768px) {
  .shop-hero-img {
    aspect-ratio: 16 / 9;
  }
  .shop-hero-content {
    padding: 0.4rem 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .shop-title {
    font-size: 2.5rem;
  }
  .shop-container {
    padding: 0 1rem;
  }
  .category-nav {
    gap: 0.5rem;
  }
  .category-nav-orb {
    font-size: 0.7rem;
    padding: 0.6rem 1rem;
  }
  .category-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* 992px+ (small desktop) */
@media (min-width: 992px) {
  .shop-hero-img {
    aspect-ratio: 16 / 6;
  }
  .shop-container {
    padding: 0 2rem;
  }
  .category-nav {
    gap: 0.75rem;
  }
  .category-nav-orb {
    font-size: 0.8rem;
    padding: 0.7rem 1.5rem;
  }
  .shop-title {
    font-size: 3.5rem;
  }
}
