:root {
  --primary: #1877F2;
  --primary-dark: #0B5ED7;
  --primary-soft: #EAF3FF;
  --accent: #3b82f6;
  --bg: #FFFFFF;
  --bg-soft: #EAF3FF;
  --panel: #FFFFFF;
  --panel-2: #EAF3FF;
  --text: #111827;
  --muted: #4b5563;
  --line: #dfeaf8;
  --shadow: 0 4px 12px rgba(24, 119, 242, 0.16);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background: #FFFFFF;
}

/* Global */
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(6060px, 80%); margin-inline: auto; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, #1877F2 0%, #166fe5 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 10px rgba(24, 119, 242, 0.18);
}
.nav-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.02rem;
  color: #ffffff;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 8px;
  border: 0;
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.18);
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a.active { color: #ffffff; }

.search-wrap { flex: 1; max-width: 320px; position: relative; }
.search-wrap input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  font: inherit;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.search-wrap input::placeholder { color: rgba(255, 255, 255, 0.8); }
.search-wrap input:focus { border-color: rgba(255, 255, 255, 0.7); }
.mobile-search-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.mobile-search-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
}
.cart-link svg {
  width: 18px;
  height: 18px;
  display: block;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  border: 2px solid var(--primary);
}

/* Buttons */
.btn {
  border: 0;
  cursor: pointer;
  border-radius: 4px;
  padding: 11px 20px;
  font-weight: 600;
  font-size: 0.93rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.14);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: #1877F2;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(24, 119, 242, 0.22);
}
.btn-ghost {
  background: #1877F2;
  color: #ffffff;
  border: 0;
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.10);
}

/* Hero */
.hero {
  padding: 70px 0 58px;
  background:
    linear-gradient(120deg, rgba(7, 17, 28, 0.78), rgba(19, 53, 98, 0.64)),
    url('../images/back.jpg') center/cover no-repeat;
    color: #ffffff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}
.hero h1 {
  margin: 14px 0 12px;
  line-height: 1.1;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #ffffff;
}
.hero p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.03rem;
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  padding: 14px;
  backdrop-filter: blur(6px);
}
.hero-card img {
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  animation: float 3s ease-in-out infinite;
}

/* Animation keyframes */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Section blocks */
.section { padding: 54px 0; }
.section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  color: var(--text);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > * { min-width: 0; }

.card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(24, 119, 242, 0.22);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  padding: 14px;
}
.product-image-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.product-image-wrap.product-detail-image {
  margin-bottom: 18px;
}
.product-image {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 1/1;
  object-fit: cover;
 }
.like-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(24, 119, 242, 0.15);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  font-size: 1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.like-btn:hover {
  transform: scale(1.05);
  background: rgba(24, 119, 242, 0.08);
}
.like-btn.liked {
  background: rgba(24, 119, 242, 0.14);
  color: #d92d4d;
  border-color: rgba(217, 45, 77, 0.25);
}
.product-meta { margin-top: 12px; }
.product-name { margin: 0; font-size: 1rem; color: var(--text); }
.price {
  margin: 8px 0 10px;
  color: var(--primary);
  font-weight: 700;
}
.product-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bulk-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.bulk-choice {
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid rgba(24, 119, 242, 0.6);
  border-radius: 4px;
  padding: 7px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.bulk-choice:hover {
  background: rgba(24, 119, 242, 0.06);
  border-color: var(--primary);
}

.load-more-wrap { text-align: center; margin-top: 24px; }
.load-more-wrap .btn { min-width: 210px; }

.icon-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.icon-item {
  text-align: center;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  border: 1px solid rgba(24, 119, 242, 0.12);
}
.icon-item .icon {
  font-size: 1.4rem;
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(24, 119, 242, 0.1);
  color: var(--primary-dark);
}

.bulk-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 18px;
  align-items: center;
  background: #f3f6fb;
  border: 0;
  padding: 26px 28px;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}
.bulk-copy { display: flex; flex-direction: column; gap: 8px; }
.bulk-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: rgba(24, 119, 242, 0.12);
  color: var(--primary-dark);
  border: 1px solid rgba(24, 119, 242, 0.2);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bulk-copy h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  color: var(--text);
}
.bulk-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.tier-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.tier-pill {
  background: transparent;
  color: var(--primary-dark);
  border-radius: 4px;
  border: 1px solid rgba(24, 119, 242, 0.6);
  padding: 10px 12px;
  font-weight: 700;
  white-space: nowrap;
}
.bulk-btn {
  white-space: nowrap;
}

.stars { color: var(--primary); letter-spacing: 1px; margin-bottom: 8px; }
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 0 54px;
}
.testimonial-track {
  display: flex;
  transition: transform 0.45s ease;
}
.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
}
.testimonial-slide p {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.testimonial-stars {
  color: #f4b740;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.testimonial-author {
  margin-top: 12px;
}
.testimonial-controls {
  position: absolute;
  inset: 50% 0 auto 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
  pointer-events: none;
  z-index: 2;
}
.carousel-arrow {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: #1877F2;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.16);
  pointer-events: auto;
}
.cta-strip {
  background: #1877F2;
  color: #ffffff;
  border-radius: 22px;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  box-shadow: 12px 12px 26px rgba(24, 119, 242, 0.18), inset 1px 1px 0 rgba(255, 255, 255, 0.22);
}

.about-box,
.disclaimer-box {
  background: #f7f9fc;
  border: 1px solid rgba(24, 119, 242, 0.18);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.disclaimer-box h3,
.about-box h2 {
  margin-top: 0;
}

/* Shop / Forms */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-control,
input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  border: 1px solid rgba(24, 119, 242, 0.16);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #FFFFFF;
}
.filter-control:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
}

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-detail-copy { display: flex; flex-direction: column; gap: 8px; }
.price-block { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 8px; }
.bulk-savings-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(24, 119, 242, 0.08);
  border: 1px solid rgba(24, 119, 242, 0.16);
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 700;
}
.detail-sections { display: grid; gap: 16px; margin-top: 20px; }
.detail-section {
  background: #f7f9fc;
  border: 1px solid rgba(24, 119, 242, 0.18);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.04);
}
.detail-section h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  color: var(--text);
}
.detail-section ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text);
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th,
.spec-table td { padding: 10px 12px; border-bottom: 1px solid rgba(24, 119, 242, 0.1); text-align: left; vertical-align: top; }
.spec-table th { width: 36%; color: var(--primary-dark); font-weight: 700; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qty-row { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 10px; }
.tab-btn {
  border: 1px solid rgba(24, 119, 242, 0.18);
  background: #FFFFFF;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}
.tab-btn.active { background: var(--primary); color: #ffffff; border-color: var(--primary); }
.tab-panel {
  background: #F9FBFF;
  border: 1px solid rgba(24, 119, 242, 0.12);
  border-radius: 8px;
  padding: 14px;
}

.cart-list { display: grid; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 0;
  border-radius: 18px;
  background: #f7f9fc;
  color: var(--text);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.03);
}

.checkout-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; }
.form-grid { display: grid; gap: 12px; }
.summary-box,
.notice-box {
  background: #f7f9fc;
  border: 0;
  color: var(--text);
  padding: 16px;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.03);
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #166fe5 0%, #0d5ec9 100%) !important;
  background-color: #166fe5 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  padding: 42px 0 24px;
  margin-top: 40px;
}

.footer * {
  background: transparent !important;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) repeat(2, minmax(160px, 1fr));
  gap: 28px;
  align-items: start;
  row-gap: 24px;
}
.footer-brand {
  display: grid;
  gap: 12px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.32rem;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: #ffffff;
}
.footer-logo .brand-logo {
  width: 40px;
  height: 40px;
}
.footer-logo-text {
  line-height: 1;
}
.footer-column h4 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff !important;
}
.footer-column a,
.footer-contact,
.footer-bottom p {
  color: #ffffff !important;
}
.footer-column a {
  display: block;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-column a:hover,
.footer-contact a:hover {
  color: var(--primary);
}
.footer-contact {
  margin: 0;
  font-size: 0.95rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-top: 1px solid rgba(24, 119, 242, 0.12);
  padding-top: 24px;
  margin-top: 18px;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.94rem;
  color: #ffffff !important;
}

/* Floating */
.chat-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1877F2, #0D47A1);
  border: 1px solid #0D47A1;
  box-shadow: 0 10px 24px rgba(13, 71, 161, 0.26);
}
.chat-icon-img { width: 28px; height: 28px; }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.show { opacity: 1; transform: translateY(0); }
.mobile-menu-btn { display: none; }

@media (max-width: 960px) {
  .mobile-header-actions {
    display: flex;
    margin-left: auto;
  }

  .search-wrap {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    max-width: none;
    z-index: 50;
  }

  .search-wrap.mobile-search-open {
    display: block;
  }

  .mobile-search-btn,
  .mobile-menu-btn,
  .mobile-header-actions .cart-link {
    display: inline-flex;
    width: 30px;
    height: 30px;
  }

  .mobile-search-btn svg,
  .mobile-header-actions .cart-link svg {
    width: 14px;
    height: 14px;
  }
  .hero-grid,
  .icon-grid,
  .grid-4,
  .grid-3,
  .product-detail,
  .checkout-layout,
  .bulk-banner,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .nav-row { flex-wrap: wrap; padding: 10px 0; }
  .search-wrap {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }

  .testimonial-carousel {
    padding: 0;
  }

  .testimonial-controls {
    position: static;
    transform: none;
    justify-content: flex-end;
    padding: 0;
    margin-top: 14px;
  }
}

@media (max-width: 680px) {
  .brand {
    font-size: 0.72rem;
    gap: 6px;
  }

  .brand-logo {
    width: 22px;
    height: 22px;
  }

  .hero-grid,
  .icon-grid,
  .product-detail,
  .checkout-layout,
  .bulk-banner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-meta .muted,
  .product-card .muted {
    display: none;
  }

  .product-name {
    font-size: 0.9rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 55;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 82px 16px 18px;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(24, 119, 242, 0.14);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    transform: translateY(-110%);
    transition: transform 0.22s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(24, 119, 242, 0.05);
    border: 0;
    color: #1877F2;
    font-weight: 800;
    box-shadow: none;
  }

  .nav-links a[data-link="nav_home"] {
    background: #1877F2;
    color: #ffffff;
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav-links a[data-link="nav_shop"] {
    color: #1877F2;
    background: rgba(24, 119, 242, 0.05);
  }

  .nav-links a:hover {
    background: rgba(24, 119, 242, 0.09);
  }

  .nav-links a[data-link="nav_home"]:hover {
    background: #1877F2;
  }

  .nav-links .cart-link {
    display: inline-flex;
    width: auto;
    min-width: 72px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: rgba(24, 119, 242, 0.05);
    color: #1877F2;
    border: 0;
    box-shadow: none;
    justify-content: center;
  }

  .nav-links .cart-link .cart-count {
    right: -2px;
  }

  .mobile-menu-btn {
    display: inline-block;
    border: 1px solid rgba(24, 119, 242, 0.18);
    border-radius: 6px;
    background: #EAF3FF;
    color: var(--primary-dark);
    padding: 8px 10px;
    font-size: 1.2rem;
    line-height: 1;
  }

  .cta-strip { flex-direction: column; align-items: start; }
  .cart-item { grid-template-columns: 70px 1fr; }
}
