/* Global Styles */
:root {
  --primary-color: #222;
  --secondary-color: #1F96AC;
  --light-color: #F6F6F8;
  --accent-color: #D7EAF1;
  --dark-color: #222222;
  --white: #FFFFFF;
  --text-color: #333333;
  --border-color: #e0e0e0;
  --bs-primary-rgb: 31, 150, 172;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--white);
  line-height: 1.6;
}

a {
  color: var(--dark-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}


/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 0;
  font-weight: 600;
  /* text-transform: uppercase; */
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

/* Pulse animation for cart icon when item is added */
@keyframes pulse {
    0% { transform: scale(1);color: var(--dark-color); }
    50% { transform: scale(1.2); color: var(--secondary-color); }
    100% { transform: scale(1);color: var(--dark-color); }
}

.cart-pulse {
    animation: pulse 0.5s ease-in-out;
}


/* font Size responsive  */

h1{font-size: 30px !important;}
h2{font-size: 26px !important;}
h3{font-size: 22px !important;}
h4{font-size: 20px !important;}
p{font-size: 16px !important;}

@media (max-width: 768px) {
h1{font-size: 25px !important;}
h2{font-size: 23px !important;}
h3{font-size: 20px !important;}
h4{font-size: 18px !important;}
p, .btn{font-size: 14px !important;}
}

@media (max-width: 576px) {
h1{font-size: 23px !important;}
h2{font-size: 21px !important;}
h3{font-size: 18px !important;}
h4{font-size: 16px !important;}
p, .btn{font-size: 12px !important;}
}


.countdown-timer, .timer-expired{
  background: var(--secondary-color) !important ;
}

.expired-text{color:#f3f3f3;}

.btn-primary {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color);
  color: var(--white);
}

.btn-outline , .btn-outline-primary {
  background-color: transparent !important;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color) !important;
}

/* Icons */
.feature-icon {
  font-size: 0.8rem;
  vertical-align: middle;
  margin-right: 5px;
}
.feature-icon i{
    color: var(--secondary-color) !important;
}

/* Header Styles */
.notice-bar {
  background-color: var(--dark-color);
  color: var(--white);
  font-size: 0.8rem;
  padding: 8px 0;
  text-align: center;
}

.header-top {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

/* Navbar */
.navbar {
  padding: 2px 0;
  border-bottom: 1px solid var(--border-color);
}

.navbar-brand img {
  max-height: 80px;
}

.navbar-nav .nav-link {
  color: var(--dark-color);
  font-weight: 600;
  padding: 10px 15px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color);
}

/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
}

.cart-icon, .user-icon, .search-icon {
  position: relative;
  margin-left: 20px;
  color: var(--dark-color);
  font-size: 1.3rem;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Mobile Search */
.search-toggle-mobile {
    position: static;
    cursor: pointer;
}

.mobile-search-box {
    position: relative;
    top: -40px;
    left: -10px;
    width: 300px;
    padding: 0;
    margin-bottom: -30px;
    background: white;
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.1); */
    border-radius: 5px;
    z-index: 1000;
    display: none;
}

.search-toggle-mobile.active .mobile-search-box {
    display: block;
}



/* Hero Slider */
.hero-slider .carousel-item {
  height: 700px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slider .carousel-caption {
  bottom: 100px;
  text-align: left;
}

.hero-slider .carousel-caption h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}



/* Marquee Animation - FASTER VERSION */
.marquee-container {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 20s linear infinite; /* Faster base speed */
    will-change: transform;
}

.marquee-text {
    font-size: 20px; 
    font-weight: 500;
    white-space: nowrap;
    padding: 0 15px;
}

/* Fast animation for all devices */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Even faster for smaller screens */
@media (max-width: 992px) {
    .marquee-content {
        animation-duration: 15s; /* Faster on tablets */
    }
}

@media (max-width: 768px) {
    .marquee-content {
        animation-duration: 12s; /* Even faster on mobile */
    }
    
    .marquee-text {
        font-size: 16px;
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .marquee-content {
        animation-duration: 10s; /* Fastest on small mobile */
    }
    
    .marquee-text {
        font-size: 14px;
        padding: 0 8px;
    }
}

/* Hover effects */
.hover-scale {
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

.hover-scale:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Pause on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}



/* category card  */
.category-card{ height: 100%;}
.category-card .card-body{display: flex; flex-direction: column;}
.category-card .card-body a:first-child{ flex: 1;}

/* Product Cards */
.product-card {
  border: 1px solid var(--border-color);
  /* margin-bottom: 30px; */
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-img {
  /* height: 300px; */
  object-fit: contain;
  width: 100%;
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--secondary-color);
  color: white;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-body {
  padding: 20px;
}

.product-title {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.product-price {
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
  margin-left: 5px;
}

/* Product Grid Controls */
.product-grid-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.view-options {
  display: flex;
}

.view-option {
  margin-left: 10px;
  cursor: pointer;
  color: #ccc;
  font-size: 1.2rem;
}

.view-option.active {
  color: var(--dark-color);
}


/* .page-link{
 color: var(--secondary-color);
}

.active>.page-link{
    background-color: var(--secondary-color) !important;
} */

ul.pagination{
      justify-content: center;
      margin: 20px; gap:10px;
}

.pagination a{
  border: 1px solid var(--secondary-color);
 color: var(--secondary-color);
 padding: 8px 10px;
}

.pagination .active>a{
    background-color: var(--secondary-color) !important;
    color: var(--light-color);
}

/* Product Detail */
.product-gallery {
  margin-bottom: 30px;
}

.main-image img {
  width: 100%;
  height: auto;
}

.thumbnail-images {
  margin-top: 15px;
}

.product-thumbnail {
  cursor: pointer;
  margin-right: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.product-thumbnail:hover, .product-thumbnail.active {
  opacity: 1;
  border-color: var(--secondary-color);
}

.product-title-detail {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.product-price-detail {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 20px;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.quantity-selector button {
  background-color: var(--light-color);
  border: 1px solid var(--border-color);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.quantity-selector input {
  width: 50px;
  text-align: center;
  border: 1px solid var(--border-color);
  height: 35px;
  margin: 0 5px;
}

/* Sticky Cart Bar */
.sticky-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 15px 0;
  z-index: 1000;
  display: block !important;
}

.sticky-cart-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-cart-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 15px;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background-color: var(--white);
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  z-index: 1050;
  transition: all 0.3s ease;
  overflow-y: auto;
}

.cart-sidebar.open {
  right: 0;
}

.cart-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-sidebar-body {
  padding: 20px;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 1040;
  display: none;
}

/* Login Sidebar */
.login-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.login-sidebar.open {
    right: 0;
}

.login-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-sidebar-body {
    padding: 20px;
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

/* Responsive adjustments for login sidebar */
@media (max-width: 768px) {
    .login-sidebar {
        width: 320px;
    }
}



/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 25px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
}

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

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

.footer-links a {
  color: #ccc;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.copyright {
  border-top: 1px solid #444;
  padding-top: 20px;
  margin-top: 40px;
  font-size: 0.8rem;
  color: #999;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-slider .carousel-item {
    height: 400px;
  }
  
  /* .product-img {
    height: 250px;
  } */
}

@media (max-width: 768px) {
  .hero-slider .carousel-item {
    height: 300px;
  }
  
  .hero-slider .carousel-caption h2 {
    font-size: 1.8rem;
  }
  
  /* .product-img {
    height: 200px;
  } */
  
  .cart-sidebar {
    width: 320px;
  }
}

@media (max-width: 576px) {
  .hero-slider .carousel-item {
    height: 250px;
  }
  
  .product-grid-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .view-options {
    margin-top: 10px;
  }
}









/* contact page =================================  */
/* Contact Page Styles */
.contact-page {
    background-color: var(--white);
}

.contact-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.contact-form {
    background-color: var(--light-color);
    border-radius: 5px;
}

.contact-form h3 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
}

.map-section {
    background-color: var(--light-color);
}

/* Success message styles (for form submission) */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none; /* Hidden by default */
}