/* ==========================================================================
   FANEX 2026 — OFFICIAL B2B ENGINEERING STORE & EQUIPMENT SHOWROOM
   Master Corporate Brand Identity: Royal Purple (#471497) & Energy Orange (#FF7A00)
   Designed exclusively for FANEX Contracting & Engineering Supplies 2026
   ========================================================================== */

:root {
  --store-primary: #471497;
  --store-primary-hover: #350d75;
  --store-primary-light: rgba(71, 20, 151, 0.08);
  --store-navy: #171125;
  --store-dark: #0d0818;
  --store-accent-orange: #FF7A00;
  --store-accent-orange-hover: #e06c00;
  --store-accent-green: #25d366;
  --store-bg: #fbfafc;
  --store-card-bg: #ffffff;
  --store-border: #ded9e8;
  --store-border-hover: rgba(71, 20, 151, 0.35);
  --store-text-main: #171125;
  --store-text-muted: #716b7b;
  --store-radius-lg: 20px;
  --store-radius-md: 14px;
  --store-radius-sm: 8px;
  --store-shadow-sm: 0 4px 14px rgba(23, 17, 37, 0.04);
  --store-shadow-md: 0 10px 28px -5px rgba(71, 20, 151, 0.08), 0 4px 10px -2px rgba(23, 17, 37, 0.04);
  --store-shadow-lg: 0 20px 40px -10px rgba(71, 20, 151, 0.16), 0 8px 16px -4px rgba(255, 122, 0, 0.1);
}

body.fx-page.theme-store {
  background-color: var(--store-bg) !important;
  color: var(--store-text-main) !important;
  font-family: 'Cairo', 'Outfit', system-ui, -apple-system, sans-serif;
}

html[lang="en"] body.fx-page.theme-store {
  font-family: 'Outfit', 'Cairo', system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------------------
   1. HERO SECTION — LUXURY ROYAL FANEX PURPLE & ORANGE
   -------------------------------------------------------------------------- */
.store-hero-2026 {
  position: relative;
  background: radial-gradient(circle at 85% 20%, rgba(71, 20, 151, 0.65) 0%, rgba(23, 17, 37, 0.98) 65%),
              linear-gradient(135deg, #0d0818 0%, #171125 50%, #290d56 100%);
  padding: 130px 0 65px;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.store-hero-2026::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.5;
}

.store-hero-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.store-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 991px) {
  .store-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.store-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 122, 0, 0.35);
  border-radius: 50px;
  color: #ff9c55;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.store-hero-title {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 18px;
}

.store-hero-title span,
.store-hero-title .fx-gradient-text {
  background: linear-gradient(135deg, #FF7A00 0%, #ffaa66 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.store-hero-desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: #d1c7e3;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 620px;
}

@media (max-width: 991px) {
  .store-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

.store-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .store-hero-actions {
    justify-content: center;
  }
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #FF7A00 0%, #ea580c 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 15px;
  border-radius: var(--store-radius-md);
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(255, 122, 0, 0.35);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(255, 122, 0, 0.5);
  color: #ffffff !important;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--store-radius-md);
  text-decoration: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 122, 0, 0.4);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Hero Stats Glass Cards */
.store-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--store-radius-md);
  padding: 20px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s ease;
}

.hero-stat-card:hover {
  background: rgba(71, 20, 151, 0.3);
  border-color: rgba(255, 122, 0, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(71, 20, 151, 0.25);
}

.hero-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(71, 20, 151, 0.4);
  border: 1px solid rgba(255, 122, 0, 0.25);
  color: #FF7A00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 4px;
}

.hero-stat-value {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
}

.hero-stat-label {
  font-size: 12px;
  color: #b8afc8;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   2. VALUE PILLARS STRIP
   -------------------------------------------------------------------------- */
.store-pillars-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--store-border);
  box-shadow: 0 4px 20px rgba(71, 20, 151, 0.03);
  padding: 24px 0;
  margin-bottom: 35px;
}

.store-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .store-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .store-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px;
  transition: transform 0.2s ease;
}

.pillar-item:hover {
  transform: translateY(-2px);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(71, 20, 151, 0.07);
  color: var(--store-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.pillar-item:hover .pillar-icon {
  background: rgba(255, 122, 0, 0.12);
  color: var(--store-accent-orange);
  transform: scale(1.08);
}

.pillar-info h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--store-text-main);
  margin: 0 0 2px 0;
}

.pillar-info p {
  font-size: 12px;
  color: var(--store-text-muted);
  margin: 0;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   3. TRI-DIVISION CATEGORY SWITCHER TABS
   -------------------------------------------------------------------------- */
.store-division-tabs-wrapper {
  max-width: 1320px;
  margin: 0 auto 24px auto;
  padding: 0 24px;
}

.store-division-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.division-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #ffffff;
  border: 1px solid var(--store-border);
  color: var(--store-text-muted);
  padding: 11px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(23, 17, 37, 0.03);
}

.division-tab-btn:hover {
  background: #f8f5fd;
  color: var(--store-primary);
  border-color: var(--store-primary);
  transform: translateY(-1px);
}

.division-tab-btn.active {
  background: var(--store-primary);
  border-color: var(--store-primary);
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(71, 20, 151, 0.3);
}

.division-tab-btn.active i {
  color: #ffffff !important;
}

.division-tab-btn .tab-count {
  background: rgba(71, 20, 151, 0.08);
  color: var(--store-primary);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.division-tab-btn.active .tab-count {
  background: var(--store-accent-orange);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   4. MODERN FILTER & SEARCH HUB
   -------------------------------------------------------------------------- */
.store-hub-wrapper {
  max-width: 1320px;
  margin: 0 auto 30px auto;
  padding: 0 24px;
}

.store-search-panel {
  background: #ffffff;
  border-radius: var(--store-radius-lg);
  padding: 20px 24px;
  border: 1px solid var(--store-border);
  box-shadow: var(--store-shadow-md);
  margin-bottom: 24px;
  transition: border-color 0.2s ease;
}

.store-search-panel:focus-within {
  border-color: var(--store-primary);
  box-shadow: 0 10px 30px rgba(71, 20, 151, 0.12);
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.search-icon-box {
  color: var(--store-accent-orange);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-live-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--store-text-main);
  background: transparent;
}

.store-live-input::placeholder {
  color: #94a3b8;
}

.store-result-badge {
  background: var(--store-primary);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(71, 20, 151, 0.25);
}

/* Quick Filter Pills */
.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid #f1edf7;
}

.filter-pills-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--store-text-muted);
  margin-inline-end: 6px;
}

.brand-pill {
  background: #f8f5fd;
  border: 1px solid var(--store-border);
  color: #5f596b;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.brand-pill:hover {
  background: #ffffff;
  color: var(--store-primary);
  border-color: var(--store-primary);
}

.brand-pill.active {
  background: var(--store-primary);
  border-color: var(--store-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(71, 20, 151, 0.25);
}

/* Capacity Quick Filter */
.capacity-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
}

.capacity-pill {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.capacity-pill:hover,
.capacity-pill.active {
  background: var(--store-accent-orange);
  color: #ffffff !important;
  border-color: var(--store-accent-orange);
  border-style: solid;
  box-shadow: 0 4px 10px rgba(255, 122, 0, 0.25);
}

/* --------------------------------------------------------------------------
   5. PRODUCT MASTER GRID (Continuous & Elegant)
   -------------------------------------------------------------------------- */
.store-catalog-wrapper {
  max-width: 1320px;
  margin: 0 auto 90px auto;
  padding: 0 24px;
}

.master-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}

@media (max-width: 1100px) {
  .master-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .master-products-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   6. PRODUCT CARD 2026 (LUXURY ARCHITECTURAL REDESIGN)
   -------------------------------------------------------------------------- */
.product-card-2026 {
  background: #ffffff;
  border-radius: var(--store-radius-lg);
  border: 1px solid var(--store-border);
  box-shadow: var(--store-shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.product-card-2026:hover {
  transform: translateY(-6px);
  box-shadow: var(--store-shadow-lg);
  border-color: var(--store-border-hover);
}

/* Card Header & Media Area */
.card-media-wrap {
  position: relative;
  height: 220px;
  background: linear-gradient(180deg, #fbfafc 0%, #ffffff 100%);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1edf7;
  cursor: pointer;
}

.card-media-wrap img {
  max-height: 160px;
  max-width: 88%;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.06));
}

.product-card-2026:hover .card-media-wrap img {
  transform: scale(1.06);
}

/* Floating Badges */
.card-badges-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

.brand-tag {
  background: #f8f5fd;
  color: var(--store-primary);
  border: 1px solid var(--store-border);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(71, 20, 151, 0.06);
}

.capacity-badge-tag {
  background: var(--store-navy);
  color: var(--store-accent-orange);
  border: 1px solid rgba(255, 122, 0, 0.28);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 10px rgba(23, 17, 37, 0.2);
}

.card-action-share {
  pointer-events: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--store-border);
  color: var(--store-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.card-action-share:hover {
  background: var(--store-primary);
  color: #ffffff;
  border-color: var(--store-primary);
  transform: scale(1.08);
}

/* Card Body */
.card-body-content {
  padding: 20px 22px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-product-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--store-text-main);
  margin: 0 0 12px 0;
  min-height: 48px;
  cursor: pointer;
  transition: color 0.2s;
}

.card-product-title:hover {
  color: var(--store-primary);
}

/* Technical Specification Badges */
.card-specs-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f8f5fd;
  border: 1px solid #f0edf5;
  border-radius: var(--store-radius-sm);
  padding: 8px 10px;
  margin-bottom: 16px;
}

.spec-pill-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #5f596b;
}

.spec-pill-item i {
  color: var(--store-accent-orange);
  font-size: 12px;
}

/* Pricing Section */
.card-pricing-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #f1edf7;
  margin-top: auto;
}

.price-main {
  font-size: 22px;
  font-weight: 900;
  color: var(--store-primary);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-currency {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--store-accent-orange);
}

.price-tax-note {
  font-size: 11px;
  color: var(--store-text-muted);
  font-weight: 600;
}

/* Unified Single Action Row */
.card-footer-actions {
  padding: 0 22px 20px;
  display: flex;
  gap: 10px;
}

.btn-rfq-primary {
  flex: 1;
  background: linear-gradient(135deg, #471497 0%, #350d75 100%);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: var(--store-radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(71, 20, 151, 0.22);
}

.btn-rfq-primary:hover {
  background: linear-gradient(135deg, #FF7A00 0%, #e06c00 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.35);
  color: #ffffff !important;
}

.btn-wa-direct {
  width: 44px;
  height: 44px;
  border-radius: var(--store-radius-md);
  background: #25d366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-wa-direct:hover {
  background: #20ba59;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   7. LUXURY FLOATING CART & RFQ DRAWER
   -------------------------------------------------------------------------- */
.floating-rfq-trigger {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  background: linear-gradient(135deg, #471497 0%, #171125 100%);
  color: #ffffff !important;
  padding: 12px 22px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: 2px solid rgba(255, 122, 0, 0.35);
  box-shadow: 0 15px 35px rgba(71, 20, 151, 0.45);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html[lang="ar"] .floating-rfq-trigger {
  left: auto;
  right: 28px;
}

.floating-rfq-trigger:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 20px 45px rgba(71, 20, 151, 0.6);
  border-color: #FF7A00;
}

.rfq-trigger-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.rfq-trigger-text {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.rfq-trigger-counter {
  background: var(--store-accent-orange);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* Empty State */
.store-empty-notice {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: #ffffff;
  border-radius: var(--store-radius-lg);
  border: 1px dashed var(--store-border);
}

.store-empty-notice i {
  font-size: 48px;
  color: #a098ae;
  margin-bottom: 16px;
}

.store-empty-notice h3 {
  font-size: 18px;
  color: var(--store-text-main);
  margin-bottom: 8px;
}

.store-empty-notice p {
  font-size: 14px;
  color: var(--store-text-muted);
}

/* --------------------------------------------------------------------------
   CENTERED HERO — DEDICATED FANEX STORE BRANDING
   -------------------------------------------------------------------------- */
.store-hero-centered {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.store-hero-centered .store-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 122, 0, 0.38);
  border-radius: 50px;
  color: #ff9c55;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 22px;
}

.store-hero-centered .store-hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.store-hero-centered .store-hero-desc {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: #d1c7e3;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto 36px;
}

.store-hero-centered .store-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
