/* ==========================================================================
   ELITE IPHONE STORE - ULTRA-MODERN MINIMALIST SHOWCASE THEME
   Black & White Aesthetic | Apple-Inspired Smooth Interactions | 100% Mobile Responsive
   ========================================================================== */

:root {
  --bg-main: #FFFFFF;
  --bg-subtle: #F6F6F8;
  --bg-card: #FFFFFF;
  --text-primary: #000000;
  --text-secondary: #555555;
  --text-muted: #8E8E93;
  --border-light: #E5E5EA;
  --border-dark: #000000;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   1. SLEEK TOP NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo (Left-aligned & refined small) */
.brand-logo-small {
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-logo-small:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.logo-svg {
  display: block;
  height: 38px;
  width: auto;
}

.logo-subtext {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #000000;
  margin-top: -3px;
}

/* Right Header Actions */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #000000;
  color: #FFFFFF;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

.nav-phone-pill i {
  font-size: 13px;
}

.nav-phone-pill:hover {
  background: #222222;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

/* Social Media Icon Buttons */
.nav-social-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-social-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  background: #FFFFFF;
  font-size: 15px;
  line-height: 1;
  transition: var(--transition-smooth);
}

.nav-social-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
}

.nav-social-btn:hover,
.nav-social-btn:active {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.nav-social-btn:hover i,
.nav-social-btn:active i {
  color: #FFFFFF;
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.main-wrapper {
  flex-grow: 1;
}

.hero-section {
  padding: 36px 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content {
  max-width: 840px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.15;
}

.hero-subtext {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* Live Search & Filter Bar */
.hero-search-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.search-input-box {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 18px;
  font-size: 15px;
  color: #888888;
  pointer-events: none;
}

.search-input-box input {
  width: 100%;
  height: 44px;
  padding: 10px 44px 10px 46px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-smooth);
}

.search-input-box input:focus {
  background: #FFFFFF;
  border-color: #000000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #888888;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.search-clear-btn:hover {
  color: #000000;
}

/* Category Filter Pills (Mobile Horizontal Smooth Scroll) */
.category-pills-scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}

.category-pills-scroll::-webkit-scrollbar {
  display: none;
}

.category-pills {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.pill-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 7px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pill-btn:hover {
  border-color: #000000;
  color: #000000;
}

.pill-btn.active {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

/* ==========================================================================
   3. SEAMLESS PRODUCT SHOWCASE CATALOG (NO BARS, NO CLUTTER)
   ========================================================================== */
.showcase-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  width: 100%;
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

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

.product-image-wrap {
  width: 100%;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: #FAFAFA;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
}

.product-card:hover .product-image-wrap {
  background: #F4F4F4;
}

.product-image {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image {
  transform: scale(1.06);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--text-primary);
  margin-bottom: 12px;
  min-height: 42px;
}

.product-varieties-wrap {
  margin-bottom: 14px;
}

.varieties-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.product-varieties {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.variety-pill {
  background: #F4F4F6;
  border: 1px solid #E5E5EA;
  color: #333333;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  line-height: 1.3;
}

.variety-pill:hover {
  border-color: #000000;
  color: #000000;
  background: #FFFFFF;
}

.variety-pill.active {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Multi-Level Variety (Model > Colour) Selectors */
.multi-variety-selector {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #F8F8FA;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #E8E8EC;
  margin-bottom: 12px;
}

.phone-model-select-box {
  position: relative;
}

.phone-model-dropdown {
  width: 100%;
  appearance: none;
  background-color: #FFFFFF;
  border: 1.5px solid #D5D5DC;
  border-radius: 6px;
  padding: 6px 28px 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #111111;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

.phone-model-dropdown:focus {
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.phone-model-select-box::after {
  content: "\F282";
  font-family: "bootstrap-icons";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 10px;
  color: #555555;
}

.product-color-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.color-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1px solid #DCDCE0;
  color: #333333;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.color-pill:hover {
  border-color: #000000;
  color: #000000;
}

.color-pill.active {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.color-dot-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
  display: inline-block;
  flex-shrink: 0;
}

.color-pill.active .color-dot-indicator {
  border-color: rgba(255,255,255,0.7);
}

.stock-status-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.stock-status-pill.in-stock {
  background: #EAF8EE;
  color: #1B873F;
}

.stock-status-pill.low-stock {
  background: #FFF8E6;
  color: #B25E09;
}

.stock-status-pill.out-of-stock {
  background: #FEECEB;
  color: #D92D20;
}

.product-footer-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #F0F0F2;
}

.product-price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 3px;
  white-space: nowrap;
}

.product-price .currency {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.card-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  background: #000000;
  color: #FFFFFF;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.card-wa-btn i {
  font-size: 14px;
  color: #FFFFFF;
}

.card-wa-btn:hover {
  background: #1F1F1F;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.card-wa-btn:hover i {
  color: #FFFFFF;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ==========================================================================
   4. FLOATING WHATSAPP BUTTON (ICON ONLY WITH SMOOTH PULSE)
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
  background-color: #1F1F1F;
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   5. MINIMALIST FOOTER
   ========================================================================== */
.main-footer {
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
  background: var(--bg-main);
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.footer-credit {
  font-size: 12px;
  color: #777777;
}

.footer-credit a {
  color: var(--text-primary);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.footer-credit a:hover {
  opacity: 0.7;
}

/* ==========================================================================
   6. 100% MOBILE RESPONSIVE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
  .nav-container {
    padding: 10px 14px;
    gap: 8px;
  }
  .logo-svg {
    height: 32px;
    width: auto;
  }
  .logo-subtext {
    font-size: 13px;
    letter-spacing: 1.5px;
  }
  .nav-right {
    gap: 6px;
  }
  .nav-phone-pill {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    background: #000000;
    color: #FFFFFF;
    border: 1px solid #000000;
  }
  .nav-phone-pill .phone-number {
    display: none;
  }
  .nav-phone-pill i {
    font-size: 13px;
  }
  .nav-social-group {
    gap: 5px;
  }
  .nav-social-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #000000;
  }
  .nav-social-btn i {
    color: #000000;
  }
  .hero-section {
    padding: 22px 14px 10px;
  }
  .hero-title {
    font-size: 24px;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
  }
  .hero-subtext {
    font-size: 10.5px;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
  }
  .hero-search-wrapper {
    gap: 10px;
  }
  .search-input-box input {
    height: 42px;
    font-size: 13px;
    padding: 9px 36px 9px 38px;
  }
  .category-pills-scroll {
    padding: 2px 0 6px;
    width: 100%;
  }
  .category-pills {
    justify-content: flex-start;
    padding: 0 4px;
    gap: 8px;
  }
  .pill-btn {
    font-size: 11.5px;
    padding: 6px 14px;
    border-radius: 30px;
    white-space: nowrap;
  }
  .showcase-container {
    padding: 10px 12px 28px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #EEEEEE;
  }
  .product-image-wrap {
    height: 140px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #F8FAFC;
  }
  .product-name {
    font-size: 12.5px;
    min-height: 34px;
    line-height: 1.35;
    margin-bottom: 6px;
  }
  .varieties-label {
    font-size: 9.5px;
    margin-bottom: 4px;
  }
  .product-varieties {
    gap: 4px;
    margin-bottom: 8px;
  }
  .variety-pill {
    font-size: 9.5px;
    padding: 3px 6px;
    border-radius: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-footer-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid #F1F5F9;
    margin-top: auto;
  }
  .product-price {
    font-size: 14.5px;
    width: 100%;
    justify-content: flex-start;
  }
  .product-price .currency {
    font-size: 10px;
  }
  .card-wa-btn {
    width: 100%;
    padding: 8px 10px;
    font-size: 11.5px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    background: #000000;
    color: #FFFFFF;
  }
  .card-wa-btn i {
    font-size: 13px;
    color: #FFFFFF;
  }
  .main-footer {
    padding: 24px 16px;
    border-top: 1px solid #EBEBEB;
    background: #FAFAFA;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 4px;
    padding: 0;
  }
  .footer-brand {
    font-size: 13px;
    font-weight: 700;
  }
  .footer-credit {
    font-size: 11.5px;
    color: #64748B;
  }
  .floating-whatsapp {
    bottom: 20px;
    right: 16px;
    width: 46px;
    height: 46px;
    font-size: 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 8px 12px;
  }
  .nav-right {
    gap: 5px;
  }
  .nav-phone-pill {
    width: 30px;
    height: 30px;
  }
  .nav-social-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .products-grid {
    gap: 10px;
  }
  .product-card {
    padding: 8px;
  }
  .product-image-wrap {
    height: 125px;
  }
}

@media (max-width: 340px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .product-image-wrap {
    height: 180px;
  }
  .product-footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .card-wa-btn {
    width: auto;
  }
}
