/* General */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f8f8f8;
  color: #333;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e3a8a;
  color: white;
  padding: 15px 20px;
 
  gap: 10px;
}
header .cart {
    display: none;}
header .logo {
  display: flex;
  align-items: center;
  gap: 70px;
}

header .logo img {
  width: 300px;
  height: 60px;
   border-radius: 5px;
}

header .logo h1 {
  font-size: 24px;
  margin: 0;
}

header .cart {
  font-weight: bold;
  font-size: 16px;
}

@media (max-width: 480px) {
  header {
    padding: 10px 15px;
  }
  
  header .logo img {
    width: 40px;
    height: 40px;
  }
  
  header .logo h1 {
    font-size: 18px;
  }
  
  header .cart {
    font-size: 14px;
  }
}

/* Navigation */
nav {
  background: #2563eb;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 25px;
  padding: 10px 0;
  flex-wrap: wrap;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.3s;
  font-size: 16px;
}

nav ul li a:hover {
  color: #fbbf24;
}

@media (max-width: 768px) {
  nav ul {
    gap: 15px;
    padding: 8px 10px;
  }
  
  nav ul li a {
    font-size: 14px;
  }
  header h1 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    position: relative;
    left : 80px;
    bottom: 50px;
  }

  header h3 {
    display: none;
  }
  header p {
    position: relative;
    left : 80px;
    bottom: 0px;
  }
  header .cart {
    display: none;
  }
   header .logo img {
    position: relative;
    right: 100px;
    float: left;
    width: 100%; 
   
  }
  header .search-bar-container {
    position: relative;
   
    width: 100%;
  }

  
}

@media (max-width: 480px) {
  nav ul {
    gap: 10px;
    padding: 8px 5px;
  }
  
  nav ul li a {
    font-size: 12px;
  }
   header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  header .logo {
    flex-direction: column;
    gap: 10px;
  }

  header .logo img {
    width: 140px;
    height: auto;
  }

  

  header .cart {
    margin-top: 10px;
  }
.brand-text h1 {
    font-size: 19px;
    font-weight: 600;
  }

  .brand-text p {
    font-size: 12.5px;
    line-height: 1.4;
  }

  .brand-text .phone {
    font-size: 12.5px;
  }
}


/* Search Bar */
.search-bar-container {
  padding: 15px 20px;
  justify-content: center;
  gap: 10px;
  width: 50%;
}

.search-bar {
  width: 100%;
  max-width: 500px;
  padding: 12px 15px;
  font-size: 16px;
  border: 2px solid #2563eb;
  border-radius: 25px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: white;
}

.search-bar:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
}

.search-bar::placeholder {
  color: #999;
}

@media (max-width: 768px) {
  .search-bar-container {
    padding: 12px 10px;
  }
  
  .search-bar {
    max-width: 100%;
    font-size: 14px;
    padding: 10px 12px;
  }
}

/* Category Badge in Search Results */
.category-badge {
  display: inline-block;
  background: #2563eb;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin: 5px 0;
}

/* Slider */
.slider-container {
  width: 100%;
  margin: 0 0 40px 0;
  position: relative;
}

.slider {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slider img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .slider img {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .slider img {
    height: 250px;
  }
}

/* Featured Section */
.featured-section {
  margin-top: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px 20px;
  border-radius: 0;
}

.featured-section h2 {
  color: white;
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
}

.featured-section .products-carousel-container {
  max-width: 1200px;
  margin: 0 auto;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.3s;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.8);
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-dots {
  text-align: center;
  padding: 15px 0;
}

.dot {
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #2563eb;
}

.dot:hover {
  background: #555;
}

@media (max-width: 768px) {
  .slider {
    border-radius: 8px;
  }
  
  .slider img {
    height: 300px;
  }
  
  .slider-btn {
    padding: 8px 12px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .slider-container {
    margin: 0 auto 30px;
  }
  
  .slider img {
    height: 200px;
  }
  
  .slider-btn {
    padding: 6px 10px;
    font-size: 16px;
  }
  
  .slider-btn.prev {
    left: 5px;
  }
  
  .slider-btn.next {
    right: 5px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }
}

/* Products Carousel */
.products-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.products-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
  color: #1e3a8a;
}

.products-carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.products-carousel-inner {
  display: flex;
  gap: 20px;
  margin-left: -18px;
  transition: transform 0.4s ease-in-out;
}

.products-carousel-inner .product-item {
  width: 367.73px;
  flex-shrink: 0;
  min-width: 367.73px;
}

.product-item {
  width: 100%;
  flex-shrink: 0;
}

.product-pad {
  padding: 15px;
  border: 2px solid #d5d4d4;
  border-radius: 10px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-pad:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

.product-pad img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.product-pad h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #1e3a8a;
}

.product-pad p {
  font-weight: bold;
  margin-bottom: 10px;
  color: #10b981;
}

.product-pad button {
  background: #10b981;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: auto;
  font-size: 14px;
}

/* Grid Layout for Category Pages */
.products-grid-container {
  position: relative;
  overflow: visible;
  width: 100%;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
  width: 100%;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.products-grid .product-item {
  width: 100%;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
}

.product-pad button:hover {
  background: #059669;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: #1e40af;
}

.carousel-btn.prev-btn {
  left: 10px;
}

.carousel-btn.next-btn {
  right: 10px;
}

@media (max-width: 768px) {
  .products-section {
    margin: 30px auto;
    padding: 20px 15px;
  }
  
  .products-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .product-item {
    width: 250px;
  }

  .products-carousel-inner .product-item {
    width: 250px;
    min-width: 250px;
  }
  
  .product-pad {
    padding: 12px;
  }
  
  .product-pad img {
    height: 120px;
  }
  
  .product-pad h3 {
    font-size: 16px;
  }
  
  .carousel-btn {
    padding: 8px 12px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .products-section {
    margin: 20px auto;
    padding: 15px 10px;
  }
  
  .products-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .product-item {
    width: 280px;
    flex-shrink: 0;
  }

  .products-carousel-inner .product-item {
    width: 280px;
    min-width: 280px;
  }
  
  .products-carousel-inner {
    gap: 10px;
    margin-left: 0;
  }
  
  .product-pad {
    padding: 10px;
  }
  
  .product-pad img {
    height: auto;
    max-height: 150px;
  }
  
  .product-pad h3 {
    font-size: 14px;
  }
  
  .product-pad p {
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  .carousel-btn {
    padding: 6px 10px;
    font-size: 16px;
  }
}

.product {
  background: white;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product img {
  width: 100%;
  height: 150px;
 
  border-radius: 8px;
  margin-bottom: 10px;
}

.product h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

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

.product button {
  background: #10b981;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.product button:hover {
  background: #059669;
}

/* Cart Section */
#cart-section {
  display: none;
  margin-top: 40px;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Floating Cart Button */
.floating-cart-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.floating-cart-btn:hover {
  background: #1fa855;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

#cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

@media (max-width: 480px) {
  .floating-cart-btn {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  
  #cart-badge {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}

/* Cart Modal */
.cart-modal {
  position: fixed;
  bottom: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  overflow-y: auto;
  z-index: 1000;
}

.cart-modal.active {
  right: 0;
}

.cart-modal-content {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff4444 !important;
  color: white !important;
  border: none !important;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 1001;
  display: block !important;
  padding: 0 !important;
  text-align: center;
  visibility: visible !important;
  opacity: 1 !important;
}

.close-btn:hover {
  background: #cc0000;
}

.cart-modal h2 {
  margin: 40px 0 15px 0;
  color: #1e3a8a;
  font-size: 20px;
}

#cart-items {
  flex: 1;
  overflow-y: auto;
  margin: 15px 0;
}

.cart-item {
  background: #f5f5f5;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.remove-btn {
  background: #ff4444;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}

.remove-btn:hover {
  background: #cc0000;
}

.whatsapp-btn {
  background: #25D366;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  margin-top: auto;
  transition: background 0.3s;
}

.whatsapp-btn:hover {
  background: #1fa855;
}

@media (max-width: 768px) {
  .cart-modal {
    width: 100%;
    right: -100%;
  }
  
  .cart-modal-content {
    padding: 15px;
  }
  
  .cart-modal h2 {
    font-size: 18px;
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  .cart-modal {
    width: 100%;
    right: -100%;
    height: 100vh;
  }
  
  .cart-modal-content {
    padding: 12px;
    padding-top: 80px;
  }
  
  .close-btn {
    width: 35px;
    height: 35px;
    font-size: 20px;
    top: 60px;
    right: 8px;
  }
  
  .cart-modal h2 {
    font-size: 16px;
  }
  
  .cart-item {
    font-size: 13px;
    padding: 8px;
  }
  
  .whatsapp-btn {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* Footer */
footer {
  background: #1e3a8a;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
  font-size: 14px;
}

@media (max-width: 480px) {
  footer {
    padding: 10px 0;
    font-size: 12px;
  }
}

/* Map Section */
.map-container {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#location h2 {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 24px;
  color: #1e3a8a;
}
