/* ===================================================
   LINKS Online Store - Modern Theme & Design System
   =================================================== */

/* Google Fonts (Includes Amiri for Arabic Bismillah) */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Montserrat:wght@700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Base Reset & Design Tokens */
:root {
  /* Brand Colors matching LINKS Logo */
  --primary-color: #009fe3;
  --primary-hover: #0084be;
  --primary-dark: #006b9b;
  --primary-light: #e6f6fd;
  --primary-glow: rgba(0, 159, 227, 0.3);

  /* Neutrals & Supporting Colors */
  --secondary-color: #0f172a;
  --secondary-hover: #1e293b;
  --dark-bg: #090d16;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #009fe3;
  --danger-color: #ef4444;
  --success-color: #25D366;
  --warning-color: #f59e0b;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-logo: 'Montserrat', 'Arial Black', sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(0, 159, 227, 0.25);

  /* Transitions & Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--light-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 94%;
  max-width: 1320px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===================================================
   Brand Logo (Exact Code Implementation of LINKS TM)
   =================================================== */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.brand-logo:hover {
  transform: scale(1.03);
}

.links-logo-svg {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 159, 227, 0.2));
}

/* ===================================================
   1. Top Bar Banner (Bismillah & Contact)
   =================================================== */
.top-bar {
  background: var(--dark-bg);
  color: #f1f5f9;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  position: relative;
  z-index: 1001;
}

/* PC Top Bar Content */
.top-bar-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 15px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.desktop-top-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.85rem;
}

.desktop-top-info i {
  color: var(--primary-color);
}

/* PC Top Bar Animated Text Ticker */
.desktop-ticker-wrap {
  height: 24px;
  overflow: hidden;
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

.ticker-track {
  display: flex;
  flex-direction: column;
  animation: continuousVerticalTicker 10s linear infinite;
  will-change: transform;
}

.ticker-item {
  height: 24px;
  line-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.ticker-item i {
  color: var(--primary-color);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ticker-item i.fa-whatsapp {
  color: #25D366;
}

.ticker-item i.fa-user-tie {
  color: #38bdf8;
}

.ticker-item i.fa-location-dot {
  color: #f43f5e;
}

.ticker-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.ticker-item a:hover {
  color: #38bdf8;
}

/* 100% Non-Stop Continuous Infinite Linear Loop */
@keyframes continuousVerticalTicker {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-96px);
  }
}

.top-bismillah {
  font-family: var(--font-arabic);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.3;
  text-shadow: 0 0 10px rgba(0, 159, 227, 0.4);
}

.top-bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* PC Top Bar Circular Social Media Icons */
.desktop-top-socials {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.top-social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #ffffff !important;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  position: relative;
}

.top-social-circle:hover {
  transform: translateY(-2px) scale(1.15);
}

.top-social-circle.circle-whatsapp {
  background: #25D366;
}
.top-social-circle.circle-whatsapp:hover {
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.6);
}

.top-social-circle.circle-tiktok {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.top-social-circle.circle-tiktok:hover {
  border-color: #00f2fe;
  box-shadow: 0 0 10px rgba(0, 242, 234, 0.6);
}

.top-social-circle.circle-facebook {
  background: #1877F2;
}
.top-social-circle.circle-facebook:hover {
  box-shadow: 0 0 10px rgba(24, 119, 242, 0.6);
}

.top-social-circle.circle-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.top-social-circle.circle-instagram:hover {
  box-shadow: 0 0 10px rgba(220, 39, 67, 0.6);
}

.top-social-circle.circle-threads {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.top-social-circle.circle-threads:hover {
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.desktop-top-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.desktop-top-phone i {
  color: var(--primary-color);
}

.desktop-top-phone:hover {
  color: var(--primary-color);
}

/* Mobile Top Bar Action Buttons (Hidden on PC) */
.mobile-top-btn {
  display: none;
}

/* ===================================================
   2. Main Header (100% STICKY to the top on scroll)
   =================================================== */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transform: translateZ(0);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

/* Search Bar (Centered on PC, full width row on mobile) */
.search-bar {
  flex: 1;
  max-width: 580px;
  display: flex;
  position: relative;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
}

.search-bar input {
  width: 100%;
  padding: 11px 18px;
  border: 2px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: #f8fafc;
}

.search-bar input:focus {
  border-color: var(--primary-color);
  background: #ffffff;
}

.search-bar button {
  padding: 0 22px;
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: #fff;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  cursor: pointer;
  font-size: 1.05rem;
  transition: var(--transition);
}

.search-bar button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* ===================================================
   Live Instant Search Dropdown (YouTube / Modern E-Commerce Style)
   =================================================== */
.search-bar,
.mobile-search-box {
  position: relative !important;
}

.live-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18), 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  z-index: 99999;
  overflow: hidden;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  animation: searchDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

@keyframes searchDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.live-search-header {
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.live-search-header span.live-count {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 800;
}

.live-search-list {
  overflow-y: auto;
  max-height: 360px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
}

.live-search-list::-webkit-scrollbar {
  width: 6px;
}
.live-search-list::-webkit-scrollbar-track {
  background: #f8fafc;
}
.live-search-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.live-search-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.live-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
}

.live-search-item:last-child {
  border-bottom: none;
}

.live-search-item:hover,
.live-search-item.active {
  background: #f0f9ff;
}

.live-search-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.live-search-item-info {
  flex: 1;
  min-width: 0;
}

.live-search-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--secondary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.live-search-highlight {
  background: #fef08a;
  color: #854d0e;
  font-weight: 800;
  padding: 0 3px;
  border-radius: 3px;
}

.live-search-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.live-search-badge {
  background: #f1f5f9;
  color: #475569;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.live-search-badge.badge-brand {
  background: #e0f2fe;
  color: #0284c7;
}

.live-search-badge.badge-grade {
  background: #fef3c7;
  color: #b45309;
}

.live-search-price {
  font-weight: 700;
  color: #059669;
  font-size: 0.88rem;
  margin-left: auto;
}

.live-search-arrow {
  color: #94a3b8;
  font-size: 0.85rem;
  opacity: 0;
  transition: all 0.15s ease;
  transform: translateX(-4px);
}

.live-search-item:hover .live-search-arrow,
.live-search-item.active .live-search-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--primary-color);
}

.live-search-footer {
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.live-search-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px 8px;
  transition: all 0.2s;
}

.live-search-footer-btn:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.live-search-empty {
  padding: 24px 16px;
  text-align: center;
}

.live-search-empty-icon {
  font-size: 1.8rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.live-search-empty-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 4px;
}

.live-search-empty-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.live-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.live-search-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--secondary-color);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.live-search-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Mobile 3rd Nav Strip (Strictly Hidden on Desktop PC) */
.mobile-search-nav {
  display: none !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.action-btn {
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary-color);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.action-btn:hover {
  color: var(--primary-color);
  background: var(--primary-light);
}

.cart-btn {
  position: relative;
  font-size: 1.25rem;
  padding: 8px 14px;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--secondary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--primary-light);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 21px;
  height: 21px;
  line-height: 21px;
  text-align: center;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px var(--primary-glow);
}

/* Burger Menu: STRICTLY HIDDEN ON PC */
.mobile-menu-toggle {
  display: none;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  color: var(--secondary-color);
  cursor: pointer;
  padding: 8px 12px;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* ===================================================
   3. Navigation Bar (Categories / Main Menu - Advanced Layout)
   =================================================== */
.navbar {
  background: linear-gradient(180deg, #091122 0%, #0f172a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid rgba(0, 159, 227, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  padding: 6px 0;
  position: relative;
  z-index: 990;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
}

.nav-links a i {
  font-size: 0.95rem;
  color: #94a3b8;
  transition: all 0.22s ease;
}

/* Hover Effect: Glass glow pill */
.nav-links a:hover {
  color: #ffffff;
  background: rgba(0, 159, 227, 0.12);
  border-color: rgba(0, 159, 227, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 159, 227, 0.2);
}

.nav-links a:hover i {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* Active State: Vibrant Gradient Pill */
.nav-links a.active {
  color: #ffffff;
  background: linear-gradient(135deg, #009fe3 0%, #0284c7 100%);
  border-color: #38bdf8;
  box-shadow: 0 4px 16px rgba(0, 159, 227, 0.45);
  font-weight: 700;
}

.nav-links a.active i {
  color: #ffffff;
  transform: scale(1.05);
}

/* Hot / Promo Badge inside Navigation */
.nav-badge-hot {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  animation: navPulse 2s infinite;
}

@keyframes navPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* ===================================================
   Hero Section & Page Banners (Adjusted for PC & Laptop)
   =================================================== */
.hero-section {
  background: 
    radial-gradient(ellipse 70% 85% at 50% 50%, rgba(8, 13, 26, 0.72) 0%, rgba(8, 13, 26, 0.42) 50%, rgba(8, 13, 26, 0.10) 80%, transparent 100%),
    linear-gradient(180deg, rgba(8, 13, 26, 0.45) 0%, rgba(8, 13, 26, 0.12) 50%, rgba(8, 13, 26, 0.55) 100%),
    url('hero-banner.jpg') center bottom / cover no-repeat;
  background-color: #070c1b;
  color: #ffffff;
  text-align: center;
  padding: 60px 20px 50px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 159, 227, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 30%, rgba(0, 159, 227, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 16, 36, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #38bdf8;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 159, 227, 0.25);
}

.hero-content h1 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 159, 227, 0.35);
}

.hero-content h1 span {
  background: linear-gradient(120deg, #38bdf8 0%, #009fe3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  color: #f1f5f9;
  margin-bottom: 24px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-secondary-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
}

.hero-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  transform: translateY(-2px);
  color: #ffffff !important;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 18px;
  background: rgba(8, 16, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  max-width: 620px;
  margin: 0 auto;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  color: #e2e8f0;
  font-weight: 600;
}

.hero-trust-item i {
  color: #38bdf8;
  font-size: 0.92rem;
}

/* Reusable Subpage Banner across all pages */
.page-hero-banner {
  background: 
    radial-gradient(ellipse 70% 85% at 50% 50%, rgba(8, 13, 26, 0.78) 0%, rgba(8, 13, 26, 0.48) 50%, rgba(8, 13, 26, 0.15) 80%, transparent 100%),
    linear-gradient(180deg, rgba(8, 13, 26, 0.5) 0%, rgba(8, 13, 26, 0.18) 50%, rgba(8, 13, 26, 0.6) 100%),
    url('hero-banner.jpg') center bottom / cover no-repeat;
  background-color: #070c1b;
  color: #ffffff;
  text-align: center;
  padding: 42px 20px 36px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 159, 227, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-banner .hero-content {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero-banner h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95);
  color: #ffffff;
}

.page-hero-banner h1 span {
  background: linear-gradient(120deg, #38bdf8 0%, #009fe3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero-banner p {
  color: #e2e8f0;
  font-size: 0.96rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.page-hero-perks {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.page-hero-perk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(8, 16, 36, 0.8);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  color: #e2e8f0;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.page-hero-perk i {
  color: #38bdf8;
}

.page-hero-compact {
  min-height: 180px;
  padding: 30px 20px 26px;
}

@media (min-width: 992px) {
  .hero-section {
    min-height: 480px;
    padding: 60px 20px 50px;
    background-position: center bottom;
  }
  .hero-content {
    max-width: 620px;
  }
  .page-hero-banner {
    min-height: 240px;
    padding: 42px 20px 38px;
  }
}

@media (min-width: 1400px) {
  .hero-section {
    min-height: 520px;
    padding: 70px 20px 60px;
  }
  .hero-content {
    max-width: 660px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 38px 16px 32px;
    background: 
      radial-gradient(ellipse 90% 70% at 50% 30%, rgba(10, 16, 38, 0.72) 0%, rgba(10, 16, 38, 0.88) 100%),
      url('hero-banner-mobile.jpg') center top / cover no-repeat;
    background-color: #0b142f;
    background-position: center top;
  }
  .page-hero-banner {
    min-height: auto;
    padding: 30px 16px 26px;
    background: 
      radial-gradient(ellipse 90% 70% at 50% 30%, rgba(10, 16, 38, 0.75) 0%, rgba(10, 16, 38, 0.90) 100%),
      url('hero-banner-mobile.jpg') center top / cover no-repeat;
    background-color: #0b142f;
    background-position: center top;
  }
  .page-hero-compact {
    min-height: auto;
    padding: 24px 14px 20px;
  }
  .hero-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    margin-bottom: 12px;
  }
  .hero-btn-group {
    flex-direction: column;
    gap: 10px;
  }
  .hero-btn-group .btn {
    width: 100%;
    max-width: 320px;
  }
  .hero-trust-bar {
    gap: 10px 16px;
    padding: 10px 14px;
  }
  .hero-trust-item {
    font-size: 0.78rem;
  }
}

/* ===================================================
   Buttons
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
}

.primary-btn {
  background: var(--primary-color);
  color: #fff !important;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.primary-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
  color: #fff !important;
}

.secondary-btn {
  background: var(--secondary-color);
  color: #fff !important;
}

.secondary-btn:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
  color: #fff !important;
}

.checkout-btn {
  width: 100%;
  background: var(--primary-color);
  color: #ffffff !important;
  margin-top: 18px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px var(--primary-glow);
  cursor: pointer;
  display: block;
  text-align: center;
  text-decoration: none;
  border: none;
  transition: var(--transition);
}

.checkout-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--primary-glow);
  color: #ffffff !important;
}

/* ===================================================
   Categories Section
   =================================================== */
.categories-section {
  margin: 60px auto;
}

.section-title {
  text-align: center;
  margin-bottom: 35px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary-color);
  position: relative;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
  margin: 10px auto 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.cat-card {
  background: #ffffff;
  padding: 30px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
}

.cat-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.cat-card:hover i {
  transform: scale(1.15);
}

.cat-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
}

/* ===================================================
   Products Grid (PC: 6 Columns / 6fr)
   =================================================== */
.products-section {
  margin-bottom: 70px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(0, 159, 227, 0.15);
}

/* Left Top: Discount Badge */
.badge-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
  line-height: 1.2;
  letter-spacing: 0.3px;
  pointer-events: none;
}

/* Right Top: In-Stock Banner */
.badge-stock {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  pointer-events: none;
}

.badge-stock i {
  font-size: 0.65rem;
}

.product-card .img-wrap {
  width: 100%;
  height: 155px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  position: relative;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info .category {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.product-info h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 4px 0 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.3em;
}

.product-info .price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.product-info .old-price {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5px;
  margin-top: auto;
}

.add-to-cart-btn {
  background: var(--secondary-color);
  color: #ffffff;
  border: none;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition);
  white-space: nowrap;
}

.add-to-cart-btn:hover {
  background: var(--secondary-hover);
  transform: translateY(-1px);
}

.buy-now-btn {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition);
  box-shadow: 0 2px 8px var(--primary-glow);
  white-space: nowrap;
}

.buy-now-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ===================================================
   Cart Page Styles
   =================================================== */
.cart-container {
  margin: 40px auto 60px;
}

.page-title {
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary-color);
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

.cart-items-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  background: #f8fafc;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.cart-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.cart-table tr:last-child td {
  border-bottom: none;
}

.empty-cart {
  padding: 50px 20px;
  text-align: center;
}

.empty-cart p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cart-summary {
  background: #ffffff;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.cart-summary h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
  font-size: 1rem;
  color: var(--text-main);
}

.summary-line.total-line {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary-color);
  padding-top: 8px;
}

.summary-line.total-line strong:last-child {
  color: var(--primary-color);
}

/* ===================================================
   Toast Notification for Cart Feedback
   =================================================== */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--secondary-color);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===================================================
   Footer
   =================================================== */
.main-footer {
  background: var(--dark-bg);
  color: #94a3b8;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 45px;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
}

.footer-col h3::after {
  content: '';
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary-color);
  margin-top: 6px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

.footer-col p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: #64748b;
}

/* ===================================================
   Responsive Media Queries (Mobile & Tablets)
   =================================================== */
@media (max-width: 868px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {

  /* ===================================================
     Top Bar Mobile Layout (Height same as desktop, Center Bismillah, Wider Glassmorphic Side Badges with Padding)
     =================================================== */
  .top-bar {
    padding: 7px 0;
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .top-bar-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0 8px;
  }

  .desktop-top-info {
    display: none !important;
  }

  .desktop-top-phone {
    display: none !important;
  }

  .desktop-top-socials {
    display: none !important;
  }

  .top-bar-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
  }

  .top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
  }

  .top-bismillah {
    font-family: var(--font-arabic);
    font-size: clamp(0.92rem, 3.8vw, 1.15rem);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    margin: 0;
    letter-spacing: 0.3px;
    text-shadow: 0 0 12px rgba(0, 159, 227, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Mobile Top Action Buttons (Wider Glassmorphic Pill Badges with Side Padding) */
  .mobile-top-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 30px;
    padding: 0 14px;
    border-radius: 20px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    flex-shrink: 0;
  }

  .mobile-call-btn {
    background: rgba(0, 159, 227, 0.16);
    border: 1.2px solid rgba(0, 159, 227, 0.45);
    color: #38bdf8 !important;
    font-size: 0.9rem;
  }

  .mobile-call-btn:hover,
  .mobile-call-btn:active {
    background: #009fe3;
    border-color: #009fe3;
    color: #ffffff !important;
    transform: scale(1.06);
    box-shadow: 0 0 12px rgba(0, 159, 227, 0.55);
  }

  .mobile-whatsapp-btn {
    background: rgba(37, 211, 102, 0.16);
    border: 1.2px solid rgba(37, 211, 102, 0.45);
    color: #25D366 !important;
    font-size: 1.05rem;
  }

  .mobile-whatsapp-btn:hover,
  .mobile-whatsapp-btn:active {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff !important;
    transform: scale(1.06);
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.55);
  }

  /* Desktop Search Bar strictly hidden on Mobile */
  .desktop-search-bar {
    display: none !important;
  }

  /* ===================================================
     2nd Nav on Mobile: Main Header (Logo Left, Burger + Cart Right)
     =================================================== */
  .main-header {
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .logo {
    display: flex;
    align-items: center;
  }

  .brand-logo .links-logo-svg {
    height: 38px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* Mobile Burger Menu Button (Visible only on Mobile) */
  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.15rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 8px 12px;
    transition: var(--transition);
  }

  .mobile-menu-toggle:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
  }

  .cart-btn {
    padding: 8px 12px;
    font-size: 1.15rem;
  }

  .cart-count {
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    line-height: 19px;
    font-size: 0.72rem;
  }

  /* ===================================================
     3rd Nav on Mobile: Dedicated Search Navigation Bar (New Line)
     =================================================== */
  .mobile-search-nav {
    display: block !important;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 58px;
    z-index: 999;
  }

  .mobile-search-box {
    display: flex;
    width: 100%;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
  }

  .mobile-search-box input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    border: 1.5px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background: #f8fafc;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
  }

  .mobile-search-box input:focus {
    background: #ffffff;
    border-color: var(--primary-color);
  }

  .mobile-search-box button {
    padding: 0 18px;
    font-size: 1rem;
    background: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    color: #ffffff;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    transition: var(--transition);
  }

  .navbar {
    display: none;
    background: #091122;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    padding: 12px 0;
  }

  .navbar.open {
    display: block;
    animation: fadeInSlide 0.25s ease-out;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 85vw;
    max-width: 85vw;
    margin: 0 auto;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    box-sizing: border-box;
    transition: all 0.22s ease;
  }

  .nav-links a:hover {
    background: rgba(0, 159, 227, 0.18);
    border-color: rgba(0, 159, 227, 0.5);
    transform: translateY(-1px);
  }

  .nav-links a.active {
    background: linear-gradient(135deg, #009fe3 0%, #0284c7 100%);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 159, 227, 0.35);
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  /* Mobile 2fr (2 Columns) Product Grid */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .product-card .img-wrap {
    height: 140px;
    padding: 6px;
  }

  .product-info {
    padding: 8px;
  }

  .product-info h3 {
    font-size: 0.8rem;
    height: 2.3em;
  }

  .product-info .price {
    font-size: 0.88rem;
    margin-bottom: 6px;
  }

  .card-actions {
    grid-template-columns: 1fr 1.15fr;
    gap: 4px;
  }

  .add-to-cart-btn {
    padding: 7px 2px;
    font-size: 0.72rem;
    gap: 3px;
  }

  .buy-now-btn {
    padding: 7px 4px;
    font-size: 0.72rem;
    gap: 3px;
  }

  .badge-discount {
    top: 6px;
    left: 6px;
    font-size: 0.62rem;
    padding: 2px 5px;
  }

  .badge-stock {
    top: 6px;
    right: 6px;
    font-size: 0.62rem;
    padding: 2px 5px;
  }

  .badge-stock i {
    font-size: 0.58rem;
  }
}

/* Tablet / Intermediate Screen (3 columns) */
@media (max-width: 1100px) and (min-width: 769px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .product-card .img-wrap {
    height: 180px;
  }
}

/* ===================================================
   Product Details Page Styles (JS-Rendered)
   =================================================== */
.product-card {
  cursor: pointer;
}

.details-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 20px 0 15px;
  flex-wrap: wrap;
}

.details-breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.details-breadcrumb a:hover {
  text-decoration: underline;
}

.details-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  background: #ffffff;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 50px;
}

.details-gallery {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.details-gallery img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.details-gallery:hover img {
  transform: scale(1.03);
}

.details-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.details-cat-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.details-stock-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #16a34a;
  font-weight: 700;
  font-size: 0.85rem;
}

.details-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1.3;
  margin-bottom: 15px;
}

.details-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

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

.details-old-price {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.details-save-badge {
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid #fecaca;
}

.details-desc-short {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.details-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.details-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #334155;
}

.details-features-list li i {
  color: #10b981;
  margin-top: 3px;
}

/* Quantity and Action Buttons */
.details-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #f8fafc;
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--secondary-color);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

.qty-input {
  width: 45px;
  height: 38px;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  background: #ffffff;
  outline: none;
}

.details-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.details-add-cart-btn {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.details-add-cart-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.details-buy-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.details-buy-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.details-whatsapp-btn {
  width: 100%;
  background: #25D366;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 24px;
}

.details-whatsapp-btn:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.details-trust-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.trust-pill i {
  color: var(--primary-color);
  font-size: 1rem;
}

/* Mobile Responsiveness for Details Page */
@media (max-width: 768px) {
  .details-wrapper {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 20px;
    margin-bottom: 30px;
  }
  .details-gallery {
    min-height: 260px;
  }
  .details-title {
    font-size: 1.25rem;
  }
  .details-current-price {
    font-size: 1.45rem;
  }
  .details-actions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .details-add-cart-btn, .details-buy-btn {
    padding: 11px 10px;
    font-size: 0.85rem;
  }
  .details-trust-pills {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================
   Official Social Media Buttons (Hero & Footer)
   =================================================== */
.hero-social-wrap {
  margin: 22px 0 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.hero-social-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-social-label i {
  color: var(--primary-color);
}

.hero-social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 820px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.social-btn i {
  font-size: 1.15rem;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.social-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Individual Brand Styling */
.btn-whatsapp {
  background: #25D366;
  border: 1px solid #20ba5a;
}
.btn-whatsapp:hover {
  background: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-tiktok {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-tiktok:hover {
  background: #111111;
  border-color: #00f2fe;
  box-shadow: 0 0 16px rgba(0, 242, 234, 0.5), 0 0 16px rgba(255, 0, 79, 0.5);
}

.btn-facebook {
  background: #1877F2;
  border: 1px solid #1464cc;
}
.btn-facebook:hover {
  background: #1464cc;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.45);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-instagram:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.5);
}

.btn-threads {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.btn-threads:hover {
  background: #1a1a1a;
  border-color: #ffffff;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.2);
}

/* Footer Social Icons Styling */
.footer-social-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff !important;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.footer-social-btn:hover {
  transform: translateY(-3px) scale(1.1);
}

.footer-social-btn:active {
  transform: translateY(-1px) scale(0.95);
}

/* Mobile Responsive Adjustments for Social Buttons & Footer */
@media (max-width: 768px) {
  .hero-social-wrap {
    margin: 18px 0 8px 0;
    gap: 10px;
  }
  .hero-social-label {
    font-size: 0.8rem;
    padding: 3px 12px;
  }
  .hero-social-buttons {
    gap: 8px;
  }
  .social-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    gap: 6px;
  }
  .social-btn i {
    font-size: 1rem;
  }

  /* Footer Mobile (<= 768px) */
  .main-footer {
    padding-top: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
    margin-bottom: 30px;
  }

  .footer-col:first-child {
    grid-column: span 2;
  }

  .footer-col:last-child {
    grid-column: span 2;
  }

  .footer-col h3 {
    font-size: 1.02rem;
    margin-bottom: 12px;
  }

  .footer-col h3::after {
    width: 22px;
    height: 2.5px;
    margin-top: 4px;
  }

  .footer-col p {
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 8px;
    color: #94a3b8;
  }

  .footer-col p i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
    margin-right: 6px;
  }

  .footer-col ul li {
    margin-bottom: 8px;
  }

  .footer-col ul li a {
    font-size: 0.86rem;
    display: inline-block;
    padding: 3px 0;
  }

  .footer-social-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
  }

  .footer-social-btn {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .footer-bottom {
    padding: 16px 10px 20px;
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .hero-social-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
  }
  .hero-social-buttons .social-btn:last-child:nth-child(odd) {
    grid-column: span 2;
  }
  .social-btn {
    padding: 9px 12px;
    font-size: 0.82rem;
    width: 100%;
  }

  /* Footer Small Screen Mobile (<= 480px) */
  .main-footer {
    padding-top: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 22px;
  }

  .footer-col:first-child,
  .footer-col:last-child {
    grid-column: span 1;
  }

  .footer-col {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 16px 14px;
  }

  .footer-col h3 {
    font-size: 0.98rem;
    margin-bottom: 10px;
  }

  .footer-col p {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .footer-col ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
  }

  .footer-col ul li {
    margin-bottom: 0;
  }

  .footer-col ul li a {
    font-size: 0.84rem;
    padding: 4px 0;
    display: block;
  }

  .footer-social-icons {
    justify-content: flex-start;
    gap: 8px;
    margin-top: 12px;
  }

  .footer-social-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .footer-bottom {
    padding: 14px 10px 18px;
    font-size: 0.78rem;
  }
}