/* Premium Cards Styles (Replica of Screenshots) */
.premium-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.premium-card {
  background: #060806; /* Very dark, almost black */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.premium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.premium-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.premium-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1.1; /* slightly taller than square to match the 3D block proportion */
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Generic background for when there's no actual image uploaded yet */
  background: linear-gradient(145deg, #121413, #0a0c0b); 
}

.premium-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.premium-delivery {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #00ff66; /* Bright green */
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.premium-delivery i {
  font-size: 0.7rem;
}

.premium-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.premium-price {
  color: #00ff66;
  font-size: 1rem;
  font-weight: 800;
  margin-top: auto;
}

/* Subproduct Modal */
/* IMPORTANT: overlay and modal are SIBLINGS in HTML, not nested.
   backdrop-filter on a parent creates a containing block for position:fixed children in Chrome.
   We avoid this by keeping them separate. */
.modal-overlay {
  position: fixed;
  inset: 0;
  /* No backdrop-filter here — Chrome bug: it creates a containing block for fixed descendants */
  background: rgba(0, 0, 0, 0.82);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.subproduct-modal {
  /* Position & size controlled entirely by JS positionModal() */
  display: none;
  opacity: 0;
  flex-direction: column;
  overflow: hidden;
  background: #050805;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  transition: opacity 0.25s ease;
  z-index: 1001;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
}

.close-modal {
  color: var(--color-text-muted);
  font-size: 1.5rem;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: #fff;
}

.modal-body {
  padding: 1rem 2rem;
  overflow-y: auto;
  flex-grow: 1;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-select {
  background: #060806;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrapper i {
  position: absolute;
  left: 1rem;
  color: var(--color-text-muted);
}

.filter-search {
  background: #060806;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  width: 250px;
}

.filter-search:focus, .filter-select:focus {
  border-color: #00ff66;
}

.filter-count {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Product Detail Page Styles */
.page-product {
  padding: 4rem 1rem;
}

.product-container {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #fff;
}

.product-split {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media(min-width: 992px) {
  .product-split {
    flex-direction: row;
    align-items: flex-start;
  }
  .product-left {
    width: 60%;
  }
  .product-right {
    width: 40%;
    position: sticky;
    top: 100px;
  }
}

.product-image-large img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  aspect-ratio: 16/9;
  object-fit: cover;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
}

.tabs-container {
  margin-top: 1rem;
}

.tabs-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  background: rgba(255,255,255,0.03);
  padding: 0.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: #0d0f12;
  color: #fff;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-content.active {
  display: block;
}

.desc-box {
  background: #0d0f12;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.desc-box-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.desc-box-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.flag-icon {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
}
.flag-uk {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Flag_of_the_United_Kingdom_%281-2%29.svg/1200px-Flag_of_the_United_Kingdom_%281-2%29.svg.png');
}
.flag-es {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Flag_of_Spain.svg/1200px-Flag_of_Spain.svg.png');
}

.desc-box-body p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.5rem;
}

.review-box {
  background: #0d0f12;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.stars { color: #f002e1; }
.review-date { color: var(--color-text-muted); font-size: 0.8rem; }
.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #00ff66;
  background: rgba(0,255,102,0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.mb-2 { margin-bottom: 0.5rem; }
.text-center { text-align: center; padding: 2rem 1rem; background: #0d0f12; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }

.btn-discord {
  background: #5865F2;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 1rem;
  cursor: pointer;
}
.btn-discord:hover { background: #4752C4; }

.sticky-checkout {
  background: #0d0f12;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.detail-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 1rem;
}

.detail-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.detail-price {
  font-size: 1.5rem;
  font-weight: 700;
}

.detail-stock-badge {
  color: #00ff66;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.detail-stock-badge.out-of-stock {
  color: #ff6b6b;
}

.deal-timer {
  background: rgba(240,2,225,0.1);
  border: 1px solid rgba(240,2,225,0.2);
  color: #fff;
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.timer-font {
  font-family: monospace;
  font-weight: 700;
}

.quantity-selector {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.qty-label {
  font-weight: 600;
}

.qty-controls {
  display: flex;
  align-items: center;
}

.qty-controls button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}
.qty-controls input {
  width: 70px;
  text-align: center;
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  border-left: 1px solid rgba(255,255,255,0.1);
  border-right: 1px solid rgba(255,255,255,0.1);
  margin: 0 0.5rem;
}

.btn-buy-now {
  width: 100%;
  background: linear-gradient(135deg, #f002e1 0%, #ff4de9 100%);
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(240,2,225,0.3);
  margin-bottom: 1rem;
}
.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,2,225,0.5);
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.payment-methods span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ------------------------------------- */
/* PRO HOMEPAGE REDESIGN CSS            */
/* ------------------------------------- */

.hero-pro {
  position: relative;
  padding: 8rem 1rem 6rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero-glow-1, .hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}
.hero-glow-1 {
  width: 400px;
  height: 400px;
  background: rgba(163, 34, 255, 0.2);
  top: -100px;
  left: -100px;
}
.hero-glow-2 {
  width: 300px;
  height: 300px;
  background: rgba(240, 2, 225, 0.15);
  bottom: -50px;
  right: -50px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(163, 34, 255, 0.1);
  border: 1px solid rgba(163, 34, 255, 0.3);
  color: #c975ff;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
@media(max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
}

.text-gradient {
  background: linear-gradient(135deg, #f002e1, #a322ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-pro-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #a322ff, #f002e1);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(163, 34, 255, 0.4);
}
.btn-pro-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(163, 34, 255, 0.6);
}

.btn-pro-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-pro-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* Stats Section */
.stats-section {
  padding: 4rem 1rem;
  background: rgba(13, 15, 18, 0.5);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media(min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-box h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}
.stat-box p {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 1rem;
}

/* Features Section */
.features-section {
  padding: 5rem 1rem;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.section-header h2 span {
  color: #a322ff;
}
.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media(min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.04);
}
.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Bestsellers Section */
.bestsellers-section {
  padding: 0 1rem 6rem;
}
.view-all-container {
  text-align: center;
  margin-top: 3rem;
}
.btn-pro-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-pro-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}
