/* =====================================================
   NAVBAR CSS (SHARED — USE ON ALL PAGES)
===================================================== */

/* MAIN WHITE NAVBAR */
nav.navbar-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px !important;
  /* Slightly smaller height */
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1100;
  display: flex;
  align-items: center;
  padding: 0 1rem !important;
  transition: all 0.3s ease;
}

@media (min-width: 992px) {
  nav.navbar-main {
    height: 80px !important;
    padding: 0 !important;
  }
}

/* BLACK SUB NAVBAR */
.navbar-sub {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 48px;
  background: #000 !important;
  color: #fff;
  z-index: 1040;
  display: flex;
  align-items: center;
  padding: 0 !important;
}

/* BODY SPACER */
.body-spacer {
  height: 110px;
  /* 80 + 48 */
}

/* CONTAINER */
.custom-container-lg {
  max-width: 1400px;
}

/* BRAND */
.brand-name {
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #111;
}

.brand-tagline {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6c757d;
}

/* NAV LINKS */
.nav-link {
  position: relative;
  font-weight: 500;
  color: #333 !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #000 !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* SEARCH */
.srch-btn {
  background: #f8f8f8;
  border-radius: 50px;
  padding: 2px 5px;
  border: 1px solid transparent;
  transition: 0.3s;
}

.input-group:focus-within {
  background: #fff;
  border-color: #000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
}

.input-group .form-control {
  background: transparent;
  box-shadow: none;
}

/* ICONS */
.nav-icon {
  padding: 8px;
  border-radius: 8px;
  color: #333 !important;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-icon:hover {
  background: #f8f8f8;
  transform: translateY(-2px);
  color: #000 !important;
}

/* MOBILE */
@media (max-width: 768px) {

  .nav,
  .d-lg-flex {
    display: none !important;
  }

  .nav-text {
    display: none;
  }

  .mobile-only {
    display: flex !important;
  }

  .nav-icon i {
    font-size: 20px;
  }

  .brand-name {
    font-size: 14px;
  }
}

/* DESKTOP */
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}


/* MOBILE */
@media (max-width: 576px) {
  .footer-bg {
    text-align: center;
  }

  .footer-bg .d-flex.align-items-center.gap-3 {
    justify-content: center;
  }

  .footer-bg .d-flex.gap-2 {
    justify-content: center;
  }

  .footer-bg .input-group {
    max-width: 280px;
    margin: 0 auto;
  }

  .footer-bg ul {
    padding-left: 0;
  }
}

*/

/* =====================================================
   PROFESSIONAL FOOTER STYLES
===================================================== */
.footer-bg {
  background-color: #f8f9fa;
  /* Lighter, cleaner professional gray */
  border-top: 1px solid #eaeaea;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Link Hover Effects */
.footer-link {
  transition: all 0.2s ease;
  display: inline-block;
  padding: 2px 0;
}

.footer-link:hover {
  color: #000 !important;
  transform: translateX(4px);
}

/* Newsletter Input Polish */
.newsletter-input {
  border-radius: 8px 0 0 8px !important;
  border: 1px solid #ddd;
  padding: 10px 15px;
}

.newsletter-btn {
  border-radius: 0 8px 8px 0 !important;
  padding: 10px 20px;
}

/* Social Icons Polish */
.social-icon-box {
  width: 36px;
  height: 36px;
  background-color: #fff;
  border: 1px solid #eee;
  color: #555;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-box:hover {
  background-color: #000;
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* About/Gallery Images */
.footer-gallery-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  transition: opacity 0.3s;
  cursor: pointer;
}

.footer-gallery-img:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-title {
    margin-top: 10px;
  }
}

/* =====================================================
   FOOTER — MOBILE OPTIMIZATION ONLY
===================================================== */

@media (max-width: 576px) {

  /* Overall spacing */
  .footer-bg {
    padding-top: 32px;
    padding-bottom: 32px;
    text-align: center;
  }

  /* Section titles */
  .footer-title {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  /* Links stack nicely */
  .footer-link {
    display: block;
    padding: 6px 0;
    transform: none !important;
  }

  .footer-link:hover {
    transform: none !important;
  }

  /* Newsletter centered */
  .newsletter-input {
    border-radius: 8px !important;
    margin-bottom: 10px;
    width: 100%;
  }

  .newsletter-btn {
    border-radius: 8px !important;
    width: 100%;
  }

  .footer-bg .input-group {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin: 0 auto;
  }

  /* Social icons centered */
  .footer-bg .d-flex.gap-2 {
    justify-content: center;
  }

  .social-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  /* Gallery images */
  .footer-gallery-img {
    width: 56px;
    height: 56px;
  }

  .footer-bg .d-flex.gap-2.mt-4 {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Brand block alignment */
  .footer-bg .d-flex.align-items-center.gap-3 {
    justify-content: center;
  }

  /* Text sizing */
  .footer-bg p,
  .footer-bg li,
  .footer-bg a {
    font-size: 0.72rem;
    line-height: 1.6;
  }
}

/* =====================================================
   FOOTER BORDER — GLOBAL FIX
===================================================== */

footer.footer-bg {
  border-top: 1px solid #e5e7eb !important;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}


/* =====================================================
   MOBILE — SHOW WISHLIST + CART + TOGGLE ONLY
===================================================== */

@media (max-width: 576px) {

  /* Hide home + product shortcuts */
  nav.navbar-main a[href="./home.html"].mobile-only,
  nav.navbar-main a[href="./products.html"].mobile-only {
    display: none !important;
  }

  /* Hide account on mobile */
  nav.navbar-main a[href="./profile.html"] {
    display: none !important;
  }

  /* Make sure wishlist + cart + toggle stay visible */
  nav.navbar-main a[href*="wishlist"],
  nav.navbar-main a[href*="cart"],
  #menuToggle {
    display: flex !important;
  }

}

@media (max-width: 576px) {

  nav.navbar-main .d-flex.align-items-center.gap-2 {
    gap: 10px !important;
  }

}

/* =====================================================
   MOBILE — CLEAN ICONS (NO DUPLICATES)
===================================================== */

@media (max-width: 576px) {

  /* Hide mobile Home + Products shortcuts */
  nav.navbar-main .mobile-only:not(#menuToggle) {
    display: none !important;
  }

  /* Hide Account on mobile */
  nav.navbar-main a[href*="profile"] {
    display: none !important;
  }

  /* Ensure wishlist + cart + toggle are visible */
  nav.navbar-main a[href*="wishlist"],
  nav.navbar-main a[href*="cart"],
  #menuToggle {
    display: flex !important;
  }

}


/* =====================================================
   MOBILE SEARCH — EXACT MATCH
===================================================== */

@media (max-width: 576px) {

  /* Force search visible on mobile */
  nav.navbar-main .d-none.d-lg-flex {
    display: flex !important;
    width: 100%;
    order: 2;
    margin-top: 8px;
    padding: 0 !important;
  }

  /* Search pill */
  nav.navbar-main .input-group {
    width: 100% !important;
    max-width: 100% !important;
    background: #f2f2f2;
    border-radius: 28px;
    padding: 8px 14px;
    box-shadow: none !important;
  }

  nav.navbar-main .form-control {
    border: none !important;
    background: transparent !important;
    padding: 6px 0;
    font-size: 14px;
  }

  nav.navbar-main .form-control::placeholder {
    color: #999;
  }

  nav.navbar-main .btn {
    border: none !important;
    background: transparent !important;
    padding: 0;
  }

  nav.navbar-main .btn i {
    font-size: 16px;
    color: #222;
  }

}

@media (max-width: 576px) {

  nav.navbar-main .custom-container-lg {
    flex-wrap: wrap;
  }

}

/* =====================================================
   MOBILE NAVBAR — FINAL CLEAN (NO SEARCH)
===================================================== */

@media (max-width: 576px) {

  /* Navbar sizing */
  nav.navbar-main {
    height: auto !important;
    /* padding: 10px 12px !important; */
    /* z-index: 20000; */
     z-index: 100;
  }

  nav.navbar-main .custom-container-lg {
    flex-wrap: wrap !important;
  }

  /* Hide Home + Products shortcuts */
  nav.navbar-main .mobile-only:not(#menuToggle) {
    display: none !important;
  }

  /* Hide Account */
  nav.navbar-main a[href*="profile"] {
    display: none !important;
  }

  /* Hide search completely */
  nav.navbar-main .input-group,
  nav.navbar-main .d-none.d-lg-flex {
    display: none !important;
  }

  /* Show ONLY wishlist + cart + toggle */
  nav.navbar-main a[href*="wishlist"],
  nav.navbar-main a[href*="cart"],
  #menuToggle {
    display: flex !important;
  }

  /* Icon sizing */
  .nav-icon {
    padding: 4px !important;
  }

  .nav-icon i {
    font-size: 18px;
  }



  /* Remove spacer */
  .body-spacer {
    display: none !important;
  }

  body {
    padding-top: 80px;
  }

}

/* =====================================================
   MOBILE TOGGLE + DRAWER — FINAL FIX
===================================================== */

@media (max-width: 576px) {

  /* Always show hamburger */
  #menuToggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

}


.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  z-index: 25000;
  padding: 20px;
  transition: right .3s ease;
  box-shadow: -8px 0 20px rgba(0, 0, 0, .15);

  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

/* Header */
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  margin-bottom: 20px;
}

#closeDrawer {
  font-size: 22px;
  cursor: pointer;
}

/* Links */
.mobile-drawer a {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  color: #111;
  text-decoration: none;
  font-weight: 500;
}

.mobile-drawer a:last-child {
  border-bottom: none;
}

#drawerBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 24000;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
}

#drawerBackdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* =====================================================
   UI POLISH — MODERN ECOMMERCE FEEL
===================================================== */

/* Softer navbar */
nav.navbar-main {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

/* Brand tighter */
.brand-name {
  font-weight: 700;
}

.brand-tagline {
  font-size: 9px;
  letter-spacing: 2px;
}

/* Icons polish */
.nav-icon {
  border-radius: 12px;
}

.nav-icon:hover {
  background: #f2f2f2;
}

/* =====================================================
   MOBILE DRAWER — PREMIUM LOOK
===================================================== */

.mobile-drawer {
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

/* Drawer header */
.drawer-header {
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}

.drawer-header strong {
  font-size: 18px;
}

/* Close button */
#closeDrawer {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Drawer links */
.mobile-drawer a {
  padding: 14px 10px;
  margin-bottom: 6px;
  border-radius: 10px;
  transition: .2s;
}

.mobile-drawer a:hover {
  background: #f8f8f8;
  padding-left: 18px;
}

/* Active feeling */
/* Drawer active link */
.mobile-drawer a.active-nav {
  background: #000;
  color: #fff;
  padding-left: 18px;
}

.mobile-drawer a.active-nav i {
  color: #fff !important;
}

/* =====================================================
   MOBILE ICON BAR — BETTER BALANCE
===================================================== */

@media (max-width:576px) {

  .nav-icon {
    padding: 6px !important;
  }

  .nav-icon i {
    font-size: 19px;
  }

  #menuToggle {
    background: #f3f3f3;
    border-radius: 12px;
    padding: 6px 10px !important;
  }

}

/* =====================================================
   BACKDROP SMOOTHNESS
===================================================== */

#drawerBackdrop {
  backdrop-filter: blur(2px);
}


/* =====================================================
   MOBILE FOOTER — PROFESSIONAL ECOMMERCE STYLE ONLY
===================================================== */

@media (max-width:576px) {

  footer.footer-bg {
    background: #fafafa;
    padding-top: 50px;
    box-shadow: inset 0 1px 0 #eee;
  }

  /* Titles */
  .footer-title {
    font-size: 14px;
    letter-spacing: .6px;
    text-transform: uppercase;
    margin-bottom: 12px;
  }

  /* Paragraph */
  .footer-bg p {
    color: #666;
    max-width: 100%;
  }

  /* Footer links */
  .footer-link {
    font-size: 13px;
    position: relative;
  }

  .footer-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: #000;
    transition: .3s;
  }

  .footer-link:hover::after {
    width: 100%;
  }

  /* Newsletter */
  .newsletter-input,
  .newsletter-btn {
    border-radius: 12px !important;
    font-size: 14px;
  }

  /* Social icons */
  .social-icon-box {
    border-radius: 12px;
    background: #fff;
  }

  .social-icon-box:hover {
    background: #000;
    transform: translateY(-3px);
  }

  /* Gallery */
  .footer-gallery-img {
    border-radius: 10px;
    transition: .25s;
  }

  .footer-gallery-img:hover {
    transform: scale(1.05);
  }

  /* Payment bar */
  footer .border-top {
    border-color: #eee !important;
    margin-top: 35px;
  }

  /* Center social + payments */
  footer .d-flex.gap-2,
  footer .text-md-end {
    justify-content: center !important;
    text-align: center !important;
  }

}

/* =====================================================
   EXTRA SMALL PHONES (iPhone SE etc)
===================================================== */

@media (max-width: 380px) {

  /* Stop fixed stacking */
  nav.navbar-main {
    /* position: relative !important; */
    top: 0 !important;
    height: auto !important;
  }

  .navbar-sub {
    position: relative !important;
    top: 0 !important;
  }

  /* Remove any forced spacing */
  body {
    padding-top: 0 !important;
  }

  /* Give hero proper height */
  .hero-slide {
    min-height: 80vh !important;
  }

  /* Slight text breathing room */
  .hero-text {
    padding-bottom: 32px;
  }
}

/* =====================================================
   SMALL PHONE NAVBAR HEIGHT FIX (iPhone 12 / SE / Android)
===================================================== */

@media (max-width: 420px) {

  /* Shrink navbar itself */
  nav.navbar-main {
    height: 60px !important;
    min-height: 60px !important;
  }

  /* Shrink inner container */
  nav.navbar-main .container-fluid {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  /* Reduce logo size */
  nav.navbar-main img {
    width: 38px !important;
    height: 38px !important;
  }

  /* Tighten brand */
  .brand-name {
    font-size: 13px !important;
  }

  .brand-tagline {
    font-size: 8px !important;
  }

  /* Fix body offset */
  body {
    padding-top: 60px !important;
  }



  /* Hero fills screen properly */
  .hero-slide {
    min-height: calc(100vh - 60px) !important;
  }

}

/* =====================================================
   MOBILE — KEEP BLACK BAR FIXED UNDER MAIN NAV
===================================================== */

@media (max-width:576px) {

  /* Main navbar fixed */
  nav.navbar-main {
    position: fixed !important;
    top: 0;
    height: 60px !important;
    z-index: 1200;
  }

  /* Black navbar fixed directly below */
  .navbar-sub {
    position: fixed !important;
    top: 60px !important;
    height: 40px;
    z-index: 1100;
    display: flex !important;
  }

  /* Proper page offset */
  body {
    padding-top: 100px !important;
    /* 60 + 40 */
  }

}

/* =====================================================
   MOBILE — FINAL FIXED DOUBLE NAVBAR
===================================================== */

@media (max-width:576px) {

  /* White navbar */
  nav.navbar-main {
    position: fixed !important;
    top: 0;
    height: 60px !important;
    z-index: 2000;
  }

  /* Black navbar */
  .navbar-sub {
    position: fixed !important;
    top: 60px !important;
    height: 40px !important;
    z-index: 1500;
    display: flex !important;
  }

  /* Page offset */
  body {
    padding-top: 100px !important;
  }

}

/* =====================================================
   MOBILE — REMOVE HORIZONTAL NAVBAR PADDING
===================================================== */

@media (max-width:576px) {

  nav.navbar-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Optional: keep inner container aligned */
  nav.navbar-main .custom-container-lg,
  nav.navbar-main .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

}

/* =====================================================
   MOBILE FOOTER — CLEAN PROFESSIONAL ALIGNMENT
===================================================== */

@media (max-width:576px) {

  /* Main footer container */
  footer.footer-bg .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Brand section */
  footer .col-lg-4.col-md-6 {
    text-align: center;
  }

  footer .col-lg-4.col-md-6 p {
    margin-left: auto;
    margin-right: auto;
  }

  /* Contact rows centered */
  footer .text-secondary div {
    justify-content: center !important;
  }

  /* Company + Shop → side-by-side */
  footer .col-lg-2.col-md-3.col-6 {
    width: 50%;
  }

  /* Titles centered */
  footer .footer-title {
    text-align: center;
  }

  /* UL grid centered */
  footer ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
    padding: 0;
  }

  /* Newsletter */
  footer .input-group {
    flex-direction: column;
    max-width: 280px;
    margin: 0 auto 20px;
  }

  /* Social icons */
  footer .d-flex.gap-2 {
    justify-content: center !important;
  }

  /* Gallery centered */
  footer .d-flex.gap-2:last-child {
    justify-content: center;
  }

  /* Bottom bar */
  footer .border-top {
    text-align: center;
  }

  /* Copyright */
  footer .text-md-start {
    text-align: center !important;
  }

  /* Payment icons stacked nicely */
  footer .text-md-end {
    display: flex !important;
    justify-content: center !important;
    margin-top: 8px;
    gap: 12px;
  }

}

/* =====================================================
   MOBILE — NEWSLETTER BOX FIX
===================================================== */

@media (max-width:576px) {

  footer .input-group {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 24px;
  }

  /* Input */
  footer .newsletter-input {
    width: 100% !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    font-size: 14px;
    border: 1px solid #ddd !important;
  }

  /* Button */
  footer .newsletter-btn {
    width: 100% !important;
    border-radius: 12px !important;
    padding: 12px !important;
    font-size: 14px;
    font-weight: 600;
  }

  /* Remove Bootstrap input-group borders */
  footer .input-group>.form-control,
  footer .input-group>.btn {
    border-left: 1px solid #ddd !important;
  }

}