/* =========================================================
   SHOP.CSS (Karter Empire) — for SHOP pages
   Source: your uploaded style.css (cleaned + labeled)
   Notes:
   - Uses light background (#f8f9fa) for shop UI
   - Keeps navbar + promo bar + mobile menu
   - Keeps swiper styles, newsletter section, cart & product UI
========================================================= */


/* =========================================================
   1) GLOBAL BASE (SHOP THEME)
========================================================= */
body {
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.container-fluid { padding: 0; }

@media (max-width: 768px) {
  .container { padding: 15px; }
}


/* =========================================================
   2) CARDS (GENERAL)
========================================================= */
.card { transition: transform 0.2s; }
.card:hover { transform: scale(1.05); }


/* =========================================================
   3) HERO SECTION (SHOP LANDING HERO)
========================================================= */
#hero { position: relative; }

.hero-left { background: url('../images/Fit.png') center/cover no-repeat; }
.hero-right { background: url('../images/malehero.png') center/cover no-repeat; }

.hero-overlay { background: rgba(0, 0, 0, 0.4); } /* tint for text */

/* Big heading */
.display-1 {
  font-size: 8rem;
  text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
  letter-spacing: 8px;
  color: #cea64f;
}
/* KEEP HERO SPLIT SAME ON ALL SCREENS */
#hero {
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-left,
.hero-right {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
}

.hero-left {
  left: 0;
}

.hero-right {
  right: 0;
}

/* Overlay always covers */
.hero-overlay {
  z-index: 1;
}

/* Content above overlay */
#hero .container {
  z-index: 2;
}

/* Mobile text scaling ONLY */
@media (max-width: 576px) {
  .display-1 {
    font-size: 3rem;
    letter-spacing: 3px;
  }

  .btn-lg {
    width: 90%;
  }
}


@media (max-width: 576px) {
  .display-1 { font-size: 3.5rem; }
  .row .col-auto { width: 100%; }
  .btn-lg { width: 100%; }
}


/* =========================================================
   4) BUTTONS (SHOP)
========================================================= */
.btn-outline {
  border: 3px solid white;
  color: white;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: #cea64f;
  color: black;
}

.btn-outline-white {
  border: 3px solid white;
  color: white;
  transition: all 0.3s ease;
}
.btn-outline-white:hover {
  background: white;
  color: black;
}


/* =========================================================
   5) NAVBAR + PROMO BAR + MOBILE MENU
========================================================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2d2d2d;
  color: #fff;
  padding: 12px 20px;
  position: fixed;
  top: -80px;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: top 0.35s ease;
}
.navbar.show { top: 0; }

/* icons */
.nav-icon {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-icon i {
  font-size: 22px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-icon:hover i { opacity: 0.8; transform: translateY(-1px); }
.nav-icon:active i { transform: scale(0.95); }

/* left */
.nav-left { display: flex; align-items: center; gap: 30px; }

/* logo */
.logo { display: flex; align-items: center; }
.logo img { height: 32px; width: auto; display: block; }

/* links */
.nav-links a {
  color: #ccc;
  text-decoration: none;
  margin-right: 20px;
  font-weight: 600;
}
.nav-links a.active { color: #fff; }

/* search */
.nav-center { position: relative; flex: 1; max-width: 600px; }
.nav-center input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border-radius: 25px;
  border: none;
  outline: none;
}
.nav-center i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #555;
}

/* right icons */
.nav-right { display: flex; gap: 20px; font-size: 22px; align-items: center; }
.menu-toggle { display: none; cursor: pointer; }

/* User Dropdown Menu */
.user-dropdown {
  position: relative;
}

.user-toggle {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 150px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 10px;
  display: none;
  z-index: 1001;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.user-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
  border: none;
  width: 100%;
  text-align: left;
  background: none;
  font-size: 14px;
}

.dropdown-item:hover {
  background: #f8f9fa;
}

.dropdown-divider {
  margin: 8px 0;
  border: none;
  border-top: 1px solid #ddd;
}

.logout-btn:hover {
  background: #ffe8e8;
  color: #d32f2f;
}

/* promo bar */
.promo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  color: #fff;
  padding: 15px 20px;
}
.promo-bar p { text-align: center; font-size: 16px; line-height: 1.3; }
.promo-bar button {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 6px 18px;
  cursor: pointer;
  font-weight: 600;
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100%;
  background: #fff;
  color: #000;
  padding: 20px;
  z-index: 2000;
  transition: left 0.35s ease;
}
.mobile-menu.show { left: 0; }
.mobile-menu a {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  color: #000;
  font-weight: 600;
}
.mobile-menu hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #ddd;
}
.close-btn {
  font-size: 28px;
  cursor: pointer;
  display: block;
  margin-bottom: 20px;
}

/* overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 1500;
}
.overlay.show { display: block; }
body.menu-open { overflow: hidden; }

/* responsive */
@media (max-width: 768px) {
  .nav-links, .nav-center { display: none; }
  .menu-toggle { display: block; font-size: 26px; }
}


/* =========================================================
   6) CART BADGE + CATEGORY CARDS
========================================================= */
#cartCount { font-size: 0.7rem; }

/* category cards */
.category-card {
  transition: transform 0.4s ease;
  height: 500px;
  object-fit: cover;
  position: relative;
  overflow: hidden;
}
.category-card:hover { transform: scale(1.05); }

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.4s ease;
}
.category-card:hover::before { background: rgba(0, 0, 0, 0.5); }

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card:hover img { transform: scale(1.1); }


/* =========================================================
   7) SWIPER (TRENDING)
========================================================= */
.trendingSwiper {
  padding: 30px 0;
  overflow: hidden;
}

.trendingSwiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.trendingSwiper .card {
  width: 220px;
  text-align: center;
  border: none;
  background: transparent;
  transition: transform 0.4s ease;
}
.trendingSwiper .card:hover { transform: scale(1.1); }

.trendingSwiper .card-img-top {
  width: 180px !important;
  height: 180px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  margin: 0 auto;
}

.trendingSwiper .card-body { padding-top: 15px; }

.trendingSwiper .card-title { font-size: 1.1rem; margin-bottom: 5px; }
.trendingSwiper .card-text { font-size: 1rem; color: #666; }

.trendingSwiper .btn-sm { font-size: 0.85rem; padding: 6px 12px; }

/* Swiper arrows */
.swiper-button-next, .swiper-button-prev {
  color: #333;
  background: rgba(255,255,255,0.9);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.swiper-button-next:after, .swiper-button-prev:after { font-size: 20px; }


/* =========================================================
   8) BENEFITS SECTION
========================================================= */
#benefitsSection { background: #f8f9fa; }

.benefit-item {
  padding: 30px 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 12px;
}
.benefit-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  background: white;
}
.benefit-item svg { transition: fill 0.3s ease; }
.benefit-item:hover svg { fill: #e91e63; }

.benefit-item h4 { font-size: 1.3rem; margin-top: 20px; font-weight: 600; }
.benefit-item p { color: #666; font-size: 1rem; }


/* =========================================================
   9) NEWSLETTER SECTION
========================================================= */
.newsletter-section {
  background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url('../images/2303.w018.n002.1714B.p15.1714.jpg') center/cover no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.newsletter-section .form-control {
  border-radius: 50px;
  padding: 12px 20px;
  border: none;
}

.newsletter-section .form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(255,255,255,0.3);
}

.newsletter-section .btn-light {
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.newsletter-section .btn-light:hover {
  background: #f8f9fa;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .newsletter-section { text-align: center; }
  .newsletter-section .row { flex-direction: column; }
}


/* =========================================================
   10) FOOTER (SHOP)
========================================================= */
footer { background: #111 !important; }

footer a.text-white.opacity-75 { transition: opacity 0.3s ease; }
footer a.hover-opacity:hover {
  opacity: 1 !important;
  text-decoration: underline;
}

.social-icons a { transition: transform 0.3s ease; }
.social-icons a:hover { transform: translateY(-5px); }

.payment-icons i { transition: opacity 0.3s ease; }
.payment-icons i:hover { opacity: 1 !important; }

#backToTop { transition: all 0.3s ease; }
#backToTop:hover {
  background: white !important;
  color: #111 !important;
}

/* Navbar brand logo swap (optional if used) */
.navbar-brand img { transition: opacity 0.4s ease; }
.logo-light { opacity: 1; }
.logo-dark { opacity: 0; position: absolute; left: 0; top: 0; }
#mainNavbar.scrolled .logo-light { opacity: 0; }
#mainNavbar.scrolled .logo-dark { opacity: 1; }

/* Footer logo optional */
footer img { filter: brightness(0) invert(1); }


/* =========================================================
   11) PRODUCT DETAILS (COLORS/SIZES/IMAGES)
========================================================= */
.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.3s;
}
.color-swatch.active,
.color-swatch:hover {
  border-color: #000;
  transform: scale(1.15);
}

.size-btn.active {
  background-color: #000 !important;
  color: white !important;
  border-color: #000;
}

.product-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-option-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #d2d2d2;
  border-radius: 999px;
  background: #fff;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-option-btn:hover {
  border-color: #111;
}

.product-option-btn.active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.product-option-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.product-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.product-option-btn.active .product-color-dot {
  border-color: rgba(255, 255, 255, 0.7);
}

/* Men's hero */
#men-hero img { filter: brightness(0.7); }

/* Product main image + thumbs */
.product-main-image img { transition: transform 0.4s ease; }
.product-main-image:hover img { transform: scale(1.05); }

.product-thumbnails img {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  border: 2px solid transparent;
}
.product-thumbnails img.active,
.product-thumbnails img:hover {
  opacity: 1;
  border-color: #000;
}


/* =========================================================
   12) REVIEWS SECTION
========================================================= */
#reviewsSection .progress { background-color: #e9ecef; }
#reviewsSection .progress-bar { background-color: #ffc107; }

#reviewsSection .card { transition: transform 0.3s ease; }
#reviewsSection .card:hover { transform: translateY(-5px); }

#reviewsSection .bi-star-fill,
#reviewsSection .bi-star-half,
#reviewsSection .bi-star { font-size: 1.2rem; }

#reviewsSection img.rounded {
  height: 120px;
  object-fit: cover;
}


/* =========================================================
   13) CART PAGE
========================================================= */
.cart-item:hover { background-color: #f8f9fa; }
.cart-item img { height: 150px; object-fit: cover; }

.qty-btn { width: 35px; }
.remove-item:hover { text-decoration: underline !important; }

#cartItems { min-height: 400px; }


/* =========================================================
   14) CHECKOUT / FORMS
========================================================= */
.form-check-inline .form-check-input { 
  position: static; 
  margin: 0; 
}
.form-check-inline .form-check-label { 
  cursor: pointer; 
}

#orderSuccess { 
  animation: fadeIn 0.6s ease; 
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}


/* =========================================================
   15) PRELOADER (SPINNER PRELOADER) — ONLY IF USED
   If you are using the *video* preloader, you can remove this.
========================================================= */
#video-preloader{
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}

#video-preloader video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#video-preloader.hide{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.marquee {
  width: 100%;
  background: #000;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}


.marquee:hover .marquee-content {
  animation-play-state: paused;
}

