/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; color: #333; font-size: 14px; background: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; }

.container { max-width: 1310px; margin: 0 auto; padding: 0 15px; }

/* ===== TOP BAR ===== */
.top-bar {
  background: linear-gradient(90deg, #1a96c3 0%, #0e7aaa 100%);
  padding: 7px 0;
  font-size: 13px;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tb-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.tb-left a { color: #fff; }
.tb-left a:hover { opacity: 0.8; }
.tb-left .soc-icon { font-size: 14px; }
.tb-sep { color: rgba(255,255,255,0.5); margin: 0 4px; }
.tb-email { font-size: 13px; }
.tb-right {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
}
.tb-currency, .tb-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 13px;
}
.tb-lang img { width: 16px; height: 11px; }
.tb-currency i, .tb-lang i { font-size: 10px; }

/* ===== SITE HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 15px;
  height: 78px;
}
.site-logo img { height: 68px; width: auto; }

/* Browse Categories Button */
.cat-btn-wrap { position: relative; }
.cat-btn {
  background: #3d3d3d;
  color: #fff;
  border: none;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  white-space: nowrap;
}
.cat-btn:hover { background: #555; }
.cat-btn i { font-size: 16px; }

.cat-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  min-width: 250px;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.cat-btn-wrap:hover .cat-dropdown { display: block; }
.cat-dropdown > ul > li { border-bottom: 1px solid #f0f0f0; position: relative; }
.cat-dropdown > ul > li:last-child { border-bottom: none; }
.cat-dropdown > ul > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 18px;
  font-size: 13px;
  color: #444;
}
.cat-dropdown > ul > li > a:hover { background: #f5f9ff; color: #01a9ff; }
.cat-dropdown .sub-dd {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: #fff;
  border: 1px solid #ddd;
  min-width: 200px;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.1);
}
.cat-dropdown li.has-sub:hover > .sub-dd { display: block; }
.cat-dropdown .sub-dd li a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
}
.cat-dropdown .sub-dd li:last-child a { border-bottom: none; }
.cat-dropdown .sub-dd li a:hover { background: #f5f9ff; color: #01a9ff; }

/* Search */
.site-search {
  display: flex;
  flex: 1;
  max-width: 340px;
  border: 1px solid #d0d0d0;
  height: 40px;
}
.site-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 13px;
  color: #333;
  background: #fff;
}
.site-search input::placeholder { color: #aaa; }
.site-search button {
  background: #fff;
  border: none;
  border-left: 1px solid #d0d0d0;
  padding: 0 14px;
  color: #888;
  font-size: 15px;
}
.site-search button:hover { color: #01a9ff; }

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.main-nav a { color: #333; }
.main-nav a:hover { color: #01a9ff; }
.main-nav span { color: #ccc; }

/* Header Actions */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.acc-wrap { position: relative; }
.acc-btn {
  font-size: 22px;
  color: #333;
  display: block;
}
.acc-btn:hover { color: #01a9ff; }
.acc-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 130%;
  background: #fff;
  border: 1px solid #ddd;
  min-width: 160px;
  z-index: 1000;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.acc-wrap:hover .acc-menu { display: block; }
.acc-menu a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}
.acc-menu a:last-child { border-bottom: none; }
.acc-menu a:hover { background: #f5f9ff; color: #01a9ff; }
.cart-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #333;
  font-size: 14px;
}
.cart-btn i { font-size: 22px; }
.cart-btn:hover { color: #01a9ff; }
.cart-cnt {
  font-size: 14px;
  font-weight: 600;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #dce8f0;
  line-height: 0;
}
.slider-slides { position: relative; }
.slide { display: none; }
.slide.active { display: block; }
.slide img { width: 100%; height: auto; }
.sl-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.sl-arrow:hover { background: #01a9ff; color: #fff; }
.sl-prev { left: 18px; }
.sl-next { right: 18px; }
.sl-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.sl-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.8);
}
.sl-dot.active { background: #fff; }

/* ===== CATEGORY GRID ===== */
.cat-grid-section {
  background: #f0f4f8;
  padding: 20px 0 0;
}
.cat-grid-section .container { padding: 0 15px; }
.cat-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.cat-card {
  flex: 1;
  position: relative;
  height: 178px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.cat-card:hover .cat-bg { transform: scale(1.06); }
.cat-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
}
.cat-name {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-align: center;
  padding: 0 10px;
  text-transform: uppercase;
}

/* ===== PRODUCT SECTIONS ===== */
.products-section {
  padding: 38px 0;
  background: #edf6fd;
}
.products-section.bg-white { background: #fff; }

.sec-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.sec-hdr h4 {
  font-size: 22px;
  font-weight: 700;
  color: #222;
}
.view-all-link {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}
.view-all-link:hover { color: #01a9ff; }

/* Carousel */
.carousel-wrap { position: relative; }
.products-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px 8px;
}
.products-carousel::-webkit-scrollbar { display: none; }
.cr-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  background: #fff;
  border: 1px solid #d0d0d0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #555;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.cr-arrow:hover { background: #01a9ff; color: #fff; border-color: #01a9ff; }
.cr-prev { left: -17px; }
.cr-next { right: -17px; }

/* Product Card */
.prod-card {
  flex: 0 0 196px;
  min-width: 196px;
  background: #fff;
  border: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.prod-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.prod-img-wrap {
  position: relative;
  display: block;
  padding-top: 100%;
  overflow: hidden;
  background: #fff;
}
.prod-img-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.3s;
}
.prod-card:hover .prod-img-wrap img { transform: scale(1.04); }
.prod-flags {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.flag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  line-height: 1.4;
}
.flag-oos { background: rgba(80,80,80,0.85); color: #fff; }
.flag-top5 { background: #d32f2f; color: #fff; }
.flag-best { background: #20a74e; color: #fff; }
.flag-new { background: #01a9ff; color: #fff; }
.flag-disc { background: #d32f2f; color: #fff; }

.prod-info {
  padding: 10px 10px 6px;
  flex: 1;
}
.prod-title {
  font-size: 12.5px;
  font-weight: 400;
  color: #333;
  line-height: 1.45;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.prod-title a:hover { color: #01a9ff; }
.prod-price { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.price-current {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}
.price-old {
  font-size: 13px;
  color: #aaa;
  text-decoration: line-through;
}
.price-sale { color: #d32f2f !important; }

.prod-actions { padding: 8px 10px 10px; }
.add-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: #01a9ff;
  color: #fff;
  border: none;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s;
}
.add-cart-btn:hover { background: #0090d9; color: #fff; }

/* ===== BRANDS SECTION ===== */
.brands-section {
  padding: 30px 0;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}
.brands-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px;
  scroll-behavior: smooth;
}
.brands-carousel::-webkit-scrollbar { display: none; }
.brand-item {
  flex: 0 0 130px;
  min-width: 130px;
  height: 78px;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #fff;
}
.brand-item:hover { border-color: #01a9ff; }
.brand-item img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

/* ===== GOALS SECTION ===== */
.goals-section { padding: 40px 0; background: #fff; }
.goals-section .sec-hdr h2 {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 18px;
}
.goals-grid {
  display: flex;
  gap: 8px;
}
.goal-card {
  flex: 1;
  position: relative;
  height: 268px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 3px;
}
.goal-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.4s ease;
}
.goal-card:hover .goal-bg { transform: scale(1.06); }
.goal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}
.goal-label {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-align: center;
  text-transform: uppercase;
  padding: 14px 8px;
  line-height: 1.4;
}

/* ===== BLOG SECTION ===== */
.blog-section {
  padding: 40px 0;
  background: #fff;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.blog-post {
  border: 1px solid #e5e5e5;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.blog-post:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.09); }
.blog-post-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.blog-post-body { padding: 18px 20px; }
.blog-post-title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-post-title:hover { color: #01a9ff; }
.blog-post-date {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 10px;
}
.blog-post-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.65;
}

/* ===== TRUST BADGES ===== */
.trust-section {
  padding: 28px 0;
  background: #f5f7f9;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}
.trust-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-icon-wrap {
  width: 58px; height: 58px;
  border: 2px solid #444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #444;
  flex-shrink: 0;
}
.trust-label {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: #111;
  background-image: url('https://supplements4muscle.com/themes/leo_technogy/assets/img/modules/appagebuilder/images/newsletter-cover.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  padding: 54px 0;
}
.newsletter-inner {
  max-width: 680px;
  text-align: center;
}
.newsletter-inner h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.55;
  margin-bottom: 6px;
}
.newsletter-form {
  display: flex;
  max-width: 510px;
  margin: 24px auto 0;
}
.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid #555;
  background: rgba(255,255,255,0.92);
  font-size: 13px;
  outline: none;
}
.newsletter-form input::placeholder { color: #888; }
.newsletter-form button {
  padding: 13px 24px;
  background: #2c2c2c;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.newsletter-form button:hover { background: #01a9ff; }

/* ===== FOOTER ===== */
.site-footer {
  background: #fff;
  padding: 40px 0 0;
  border-top: 1px solid #e8e8e8;
}
.footer-inner {
  display: grid;
  grid-template-columns: 190px 1.2fr 0.8fr 0.8fr 1.4fr;
  gap: 28px;
  padding-bottom: 30px;
}
.footer-logo img { width: 155px; }
.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 12.5px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.footer-col ul li a:hover { color: #01a9ff; }
.footer-col .goal-text {
  font-size: 13px;
  color: #666;
  line-height: 1.75;
}
.footer-bottom {
  border-top: 1px solid #e8e8e8;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-bottom img { height: 26px; }

/* ===== WISHLIST COUNTER (fixed) ===== */
.wishlist-bar {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  color: #333;
}
.wishlist-bar i { color: #666; font-size: 16px; }
