/* Catalog & Multi-Product Storefront Styles for Ra7tek (راحتك - فرحة وليداتك) */

/* Hero Banner */
.catalog-hero {
  background: linear-gradient(135deg, #0a7869 0%, #0f9d8a 50%, #14b8a6 100%);
  color: #ffffff;
  padding: 48px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.catalog-hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.catalog-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.catalog-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.catalog-hero h1 {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
}

.catalog-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 680px;
  margin: 0 auto 24px;
}

.hero-highlights {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.15);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Category Filters */
.category-filter-nav {
  background: #ffffff;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 70px;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.filter-pills-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}

.filter-pills-wrap::-webkit-scrollbar {
  display: none;
}

.cat-pill-btn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-pill-btn:hover {
  background: #e2e8f0;
}

.cat-pill-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 157, 138, 0.3);
}

/* Products Section */
.catalog-section {
  max-width: 1240px;
  margin: 40px auto;
  padding: 0 20px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 32px;
}

.section-badge {
  display: inline-block;
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-title-wrap h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

/* Product Card */
.store-product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.store-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.product-media-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
}

.product-media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.store-product-card:hover .product-media-container img {
  transform: scale(1.04);
}

.card-tag-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff5a1f;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(255, 90, 31, 0.35);
  z-index: 5;
}

.card-save-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #38bdf8;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 5;
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-category-label {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.card-rating {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-rating .reviews-count {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.8rem;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 8px;
  min-height: 2.8em;
}

.product-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.price-current {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}

.price-original {
  font-size: 1rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.price-shipping {
  margin-right: auto;
  font-size: 0.82rem;
  color: var(--success);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btn-card-order {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 90, 31, 0.25);
  transition: all 0.2s ease;
}

.btn-card-order:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 90, 31, 0.35);
}

.btn-card-details {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card-details:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

/* Featured Pack Banner */
.featured-pack-section {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 50%, #fef3c7 100%);
  border: 2px dashed #f59e0b;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin: 50px 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
}

.featured-pack-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.featured-pack-media img {
  width: 100%;
  height: auto;
  display: block;
}

.featured-pack-content h3 {
  font-size: 1.7rem;
  font-weight: 900;
  color: #78350f;
  margin-bottom: 12px;
}

.featured-pack-content p {
  font-size: 1rem;
  color: #92400e;
  line-height: 1.6;
  margin-bottom: 20px;
}

.pack-savings-tag {
  display: inline-block;
  background: #b45309;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
}

/* Trust Section */
.trust-pillars-section {
  background: #ffffff;
  padding: 48px 20px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 50px 0;
}

.trust-pillars-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.trust-pillar-card {
  text-align: center;
  padding: 24px 16px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

.trust-pillar-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.trust-pillar-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.trust-pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-btn .pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #25d366;
  animation: pulse-border 2s infinite;
  pointer-events: none;
}

@keyframes pulse-border {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 768px) {
  .catalog-hero h1 { font-size: 1.7rem; }
  .catalog-hero p { font-size: 1rem; }
  .featured-pack-section { grid-template-columns: 1fr; }
  .whatsapp-float-btn { bottom: 85px; left: 16px; width: 52px; height: 52px; font-size: 1.7rem; }
}
