/* ==================== COMPLETE FIXED & RESPONSIVE CSS ==================== */

/* TOP BAR - Fixed & Mobile Safe */
.top-bar {
    background: #f6f6f6;
    padding: 0px 15px;
    font-size: 13px;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1031;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.discount-link{
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #007bff;
}

.top-bar a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.top-bar i {
    margin-right: 6px;
    font-size: 14px;
}
.language-select {
    width: 120px;
    font-size: 13px;
    padding: 2px 6px;
    line-height: 1.2;
}

/* NAVBAR - Fixed & No Overflow */
.navbar {
    padding: 2.9px 0 !important;
    background: #fff;
    position: sticky;
    left: 0;
    right: 0;
    top: 37px;
    z-index: 1030;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee;
    transition: all 1s ease;
}
.sticky-animate {
    animation: slideDown 0.35s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .navbar {
    padding: 10px 0 !important;
    background: #fff;
    position: sticky !important;
    top:30px;
    left: 0;
    right: 0;
    z-index: 1029;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee;
    }
    .top-bar{
        position:sticky !important;
    }
    .point-item {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    padding-bottom: 8px;
    justify-content: center;
    align-content: flex-end;
    flex-wrap: wrap;
}
}

.navbar .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.navbar-brand img {
    height: 32px;
}

/* Nav Links */
.navbar-nav .nav-link {
    font-weight: bold;
    padding: 10px 18px !important;
    color: #000 !important;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-link.active,
.nav-link:hover,
.navbar-nav .nav-item.dropdown:hover .nav-link {
    color: #FC602B !important;
}

/* Right Icons (Cart + Profile) */
.right-cor {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-left: 20px !important;
}

.right-cor i {
    font-size: 20px;
    color: #000;
    cursor: pointer;
}

#cart-count {
    font-size: 9px !important;
    top: 8px !important;
    right: -17px !important;
}

/* Remove dropdown arrow */
.dropdown-toggle::after { display: none !important; }


/* ==================== MOBILE FIXES ==================== */
@media (max-width: 991.98px) {

    .top-bar {
        padding: 8px 12px;
        font-size: 12.5px;
    }

    .navbar {
        padding: 6px 0 !important;
        top:0px;
    }

    .navbar-brand img {
        height: 28px !important;
    }

    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        font-size: 14.5px;
    }

    .right-cor {
        gap: 12px;
        margin-left: 10px !important;
    }

    /* Bilkul bhi horizontal scroll nahi aayega */
    html, body, .container-fluid {
        overflow-x: hidden !important;
        width: 100% !important;
    }
}

/* ==================== MEGA MENU COMMON ==================== */
.dropdown-menu {
    width: 100%;
    border:1px solid black !important;
    margin-top: -2px !important;
    border: none;
    border-radius: 0;
    left: 0 !important;
    right: 0 !important;
    top: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0;
}

.mega-menu {
    padding: 0px 0;
}

.mega-menu h6 {
    font-weight: bold;
    margin-bottom: 8px;
    text-align: left;
    left:3px;
    font-size: 15px;
    position: relative;
}

.Knowledge h6::after,
.mega-menu h6::after {
    content: "";
    display: block;
    height: 1px;
    background-color: rgb(243,244,246);
    margin-top: 8px;
}

.mega-menu a {
    display: block;
    color: #333;
    padding: 6px 0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.mega-menu a:hover {
    color: #FC602B;
    padding-left: 5px;
}

/* Desktop pe hover se open */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* ==================== PRODUCTS MEGA MENU - MOBILE FIRST ==================== */
@media (max-width: 991.98px) {
  .category-sidebar,
  .midl,
  #product-list {
    order: 1;
  }
  .midl {
    order: 2;
    border-top: 3px solid #FC602B;
    border-bottom: 1px solid #eee;
  }
  #product-list {
    order: 3;
    padding-top: 20px !important;
  }
  .dropdown-menu{
    overflow:scroll !important;
    height:500px;
  }
}

/* Desktop pe fixed height + scroll */
@media (min-width: 992px) {
  .category-sidebar,
  .midl {
    height: 600px;
    overflow-y: auto;
  }
  .midl {
    border-right: 1px solid #eee;
  }
}

/* Desktop pe perfect 3-column layout */
@media (min-width: 992px) {
  .category-sidebar,
  .midl {
    height: 580px;
    overflow-y: auto;
  }
  .midl {
    border-left: 1px solid #eee !important;
    border-right: 1px solid #eee !important;
  }
}

/* Mobile pe perfect vertical order */
@media (max-width: 991.98px) {
  .category-sidebar   { order: 1; background:#f8f9fa; border-bottom: 3px solid #FC602B; }
  .midl               { order: 2; border-top: 3px solid #FC602B; background:#fff !important; }
      .col-12.col-md-6 {
        order: 3;
        padding-top: 0px !important;
        padding-bottom: 0% !important;
    }

  #middle-list {
    min-height: 200px;
    background: #fff;
  }
}

/* Hover effect */
.category-item:hover,
.category-item.active {
  background: #FC602B !important;
  color: white !important;
}
.category-item:hover span,
.category-item.active span {
  color: white !important;
}
/* Mobile pe jab product list lambi ho → category fixed rahe aur scroll ho */
@media (max-width: 991.98px) {
    .category-sidebar {
        position: sticky;
        top: 0px;
        background: #fff;
        z-index: 10;
        border-bottom: 3px solid #FC602B;
    }

    #middle-list {
        position: sticky;
        margin-top: 0%;
        background: #fff;
        z-index: 9;
        border-bottom: 4px solid #FC602B;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
}
@media (max-width: 991.98px) {
    .subcat-item {
        background: #fff;
        transition: background 0.3s;
    }
    .subcat-item:hover,
    .subcat-item:active {
        background: #f8f9fa !important;
    }
    #middle-list {
        cursor: pointer;
        user-select: none;
    }
}
    /* Header End */

/* Footer Start */
footer {
        background-color: #e1eadf;
        padding: 31px 76px;
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
    }

    .contact-section {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #f8f8f8;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 5%;
    }

    .subscribe-box p {
        font-weight: bold;
        margin-bottom: 10px;
    }

    .subscribe-form {
        display: flex;
        align-items: center;
    }

    .subscribe-form input[type="email"] {
        padding: 10px;
        border: 1px solid #ccc;
        border-right: none;
        border-radius: 4px 0 0 4px;
        width: 250px;
    }

    .subscribe-form button {
        padding: 10px 20px;
        background-color: #1188c7;
        color: white;
        border: none;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
        font-weight: bold;
    }

    .social-icons {
        display: flex;
        gap: 15px;
        margin-right: 30%;
        margin-top: 30px;
    }

    .social-icons i {
        font-size: 20px;
        color: #333;
        cursor: pointer;
        transition: color 0.3s;
    }

    /* Brand Colors */
    .facebook {
        color: #1877F2 !important;
    }

    .pinterest {
        color: #E60023 !important;
    }

    .youtube {
        color: #FF0000 !important;
    }

    .reddit {
        color: #FF4500 !important;
    }

    .twitter {
        color: #000000 !important;
    }

    .tiktok {
        color: #000000 !important;
    }

    .instagram {
        color: #C13584;
    }

    /*  */

    .social-icons i:hover {
        color: #1188c7;
    }

    .footer-links {
        display: flex;
        justify-content: space-between;
        margin-top: 40px;
        margin-bottom: 20px;
        flex-wrap: nowrap;
        column-gap: 40px;
        /* Ensure items don't wrap onto the next line */
    }

    .footer-links div {
        flex: 1;
        /* Make all sections take equal width */
    }

    .footer-links h4 {
        font-size: 14px;
        margin-bottom: 10px;
        font-weight: bold;
    }

    .footer-links ul {
        list-style: none;
        padding: 0;
    }

    .footer-links ul li {
        margin-bottom: 8px;
    }

    .footer-links ul li a {
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        color: #474747ff;
    }

    .footer-info {
  border-left: 1px solid #ccc; /* Vertical line */
  padding-left: 20px;
  margin-left: 20px;
  max-width: 280px;
}
.contact-text{
font-size:16px !important;
}
.contact-info p {
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

.contact-info i {
  margin-right: 8px;
  color: #333 !important;
}

.contact-info strong {
  display: inline-block;
  margin-bottom: 5px;
  font-weight: bold;
}

.contact-info a {
  text-decoration: none;
  font-size: 16px;
  color: #333 !important;
}

.contact-info a:hover {
  color: #007bff !important;
  text-decoration: underline;
}

.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* border-top: 1px solid #ccc; */
  padding-top: 15px;
  font-size: 14px;
}
/* Footer End */
/* ============================================
   MOBILE RESPONSIVE FOOTER (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

    footer {
        padding: 20px 10px;
    }

    .footer-container {
        flex-direction: column;
        padding: 0 10px;
    }

    /* CONTACT + SUBSCRIBE */
    .contact-section {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        margin-bottom: 40px;
    }

    .subscribe-form {
        flex-direction: column;
        width: 100%;
    }

    .subscribe-form input[type="email"] {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 10px;
        border-right: 1px solid #ccc;
    }

    .subscribe-form button {
        width: 100%;
        border-radius: 4px;
    }

    /* SOCIAL ICONS CENTER */
    .social-icons {
        margin-right: 0;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
        gap: 20px;
    }

    /* FOOTER MENU STACK */
    .footer-links {
        flex-wrap: wrap;
        flex-direction: column;
        gap: 25px;
    }

    .footer-links div {
        width: 100%;
    }

    /* CONTACT INFO BOX */
    .footer-info {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        text-align: left;
        border-top: 1px solid #ccc;
        padding-top: 20px;
    }

    .contact-info p {
        font-size: 14px;
    }

    /* COPYRIGHT CENTER */
    .footer-bottom,
    footer .text-center {
        text-align: center !important;
        display: block;
        padding: 10px 0;
    }
}
