
/* Global Styles */
/*

:root {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-color: #f1f5f9;
  --accent-color: #ef4444;
  --dark-color: #1e293b;
  --text-color: #334155;
  --light-text: #64748b;
  --light-gray: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
}
*/
:root {
  --primary-color: #ec1f11d6;
  --primary-dark: #14131381;
  --secondary-color: #f1f5f9;
  --accent-color: #ef4444;
  --dark-color: #1e293b;
  --text-color: #334155;
  --light-text: #64748b;
  --light-gray: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f8fafc;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--primary-dark);
}

.secondary-btn {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.secondary-btn:hover {
  background-color: var(--light-gray);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
}

.search-bar {
  display: flex;
  flex: 1;
  max-width: 500px;
  margin: 0 2rem;
}

.search-bar input {
  flex: 1;
  border: 1px solid var(--light-gray);
  border-right: none;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem 0 0 0.375rem;
  outline: none;
}

.search-bar button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0 1rem;
  border-radius: 0 0.375rem 0.375rem 0;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-color);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
}

.dropdown-toggle i {
  margin-left: 0.5rem;
  font-size: 0.75rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  border-radius: 0.375rem;
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s;
}

.dropdown-menu a:hover {
  background-color: var(--secondary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 2px 0;
  transition: var(--transition);
}

/* Hero Section Styles */
.hero {
  padding: 2rem 0;
}

.hero-slider {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--white);
  height: 400px;
}

.slide {
  display: none;
  height: 100%;
  padding: 2rem 0 2rem 2rem;
}

.slide.active {
  display: flex;
}

.slide-content {
  flex: 1;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
  padding-left: 50px;
}

.slide-content p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--light-text);
  padding-left: 50px;
}

.slide-content .btn {
  width: 130px;
  margin-left: 50px;
}

.slide-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image-v {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image-v img{
  height: 400px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--white);
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
}

.slider-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

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

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

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary-color);
}

/* Categories Section Styles */
.categories {
  padding: 4rem 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.category-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

/* Products Grid Styles */
.featured-products, .best-sellers {
  padding: 4rem 0;
  background-color: var(--secondary-color);
}

.best-sellers {
  background-color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.product-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: var(--white);
}

.product-info {
  padding: 1rem;
}

.product-category {
  color: var(--light-text);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.product-name {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.stars {
  color: #fbbf24;
  margin-right: 0.5rem;
}

.rating-count {
  color: var(--light-text);
  font-size: 0.875rem;
}

.product-price {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.current-price {
  font-weight: 700;
  font-size: 1.25rem;
  margin-right: 0.5rem;
  color: var(--dark-color);
}

.original-price {
  color: var(--light-text);
  text-decoration: line-through;
  font-size: 0.875rem;
}

.discount {
  background-color: #fef2f2;
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  margin-left: auto;
}

.product-actions {
  display: flex;
  gap: 1rem;
}

.add-to-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.add-to-cart i {
  margin-right: 0.5rem;
}

.wishlist-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.375rem;
  background-color: var(--secondary-color);
  border: none;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
}

.wishlist-btn:hover {
  background-color: var(--light-gray);
  color: var(--accent-color);
}

/* Newsletter Section Styles */
.newsletter {
  padding: 4rem 0;
  background-color: var(--primary-color);
  color: var(--white);
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.newsletter p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.newsletter form {
  display: flex;
  gap: 1rem;
}

.newsletter input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  border: none;
  outline: none;
}

/* Footer Styles */
footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col p {
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  opacity: 0.7;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  opacity: 0.7;
}

.payment-methods {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

/* Products Page Styles */
.breadcrumb {
  margin: 1.5rem 0;
  color: var(--light-text);
}

.breadcrumb a {
  color: var(--text-color);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

.products-layout {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.filters-sidebar {
  width: 300px;
  flex-shrink: 0;
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  align-self: flex-start;
  position: sticky;
  top: 100px;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.filters-header h3 {
  font-weight: 600;
}

.reset-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-weight: 500;
}

.filter-group {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 1.5rem;
}

.filter-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-group h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-option {
  display: flex;
  align-items: center;
}

.filter-option input[type="checkbox"] {
  margin-right: 0.5rem;
  cursor: pointer;
}

.filter-option label {
  cursor: pointer;
}

.price-slider {
  padding: 0 0.5rem;
}

.slider-container {
  height: 4px;
  background-color: var(--light-gray);
  border-radius: 2px;
  position: relative;
  margin-bottom: 1.5rem;
}

.slider {
  position: absolute;
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.slider::before, .slider::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.slider::before {
  left: 0;
}

.slider::after {
  left: 100%;
}

.price-inputs {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-value {
  font-weight: 500;
}

.price-divider {
  margin: 0 0.5rem;
  color: var(--light-text);
}

.apply-filters-btn {
  width: 100%;
}

.products-content {
  flex: 1;
}

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  background-color: var(--white);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.products-count {
  font-weight: 500;
}

.products-count span {
  font-weight: 700;
  color: var(--primary-color);
}

.products-sort {
  display: flex;
  align-items: center;
}

.products-sort label {
  margin-right: 0.5rem;
}

.products-sort select {
  padding: 0.5rem;
  border: 1px solid var(--light-gray);
  border-radius: 0.375rem;
  outline: none;
}

.pagination {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.375rem;
  border: 1px solid var(--light-gray);
  background-color: var(--white);
  color: var(--text-color);
  cursor: pointer;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--secondary-color);
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-numbers a, .pagination-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.375rem;
  transition: var(--transition);
}

.pagination-numbers a {
  background-color: var(--white);
  border: 1px solid var(--light-gray);
}

.pagination-numbers a:hover, .pagination-numbers a.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.mobile-filter-btn {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  box-shadow: var(--shadow);
  z-index: 50;
}

.mobile-filter-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.mobile-filter-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background-color: var(--white);
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.mobile-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.mobile-filter-header h3 {
  font-weight: 600;
}

.close-filter-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-color);
  cursor: pointer;
}

.mobile-filter-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  display: flex;
  gap: 1rem;
  background-color: var(--white);
}

.mobile-filter-footer button {
  flex: 1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .filters-sidebar {
    width: 250px;
  }
  
  .slide-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
  }
  
  .logo {
    /* order: 1; */
    display: none;
  }
  
  .search-bar {
    order: 2;
    margin: 1rem 0 0;
    max-width: none;
    width: 75%;
  }
  
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: flex;
    order: 1;
    margin: 1rem 2% 0 0; 
    justify-content: stretch;
  }
  
  .hamburger.active span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(1), .hamburger.active span:nth-child(3), 
  .hamburger.active span:nth-child(5) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    order: 4;
    width: 100%;
    margin-top: 1rem;
  }
  
  .nav-links.active li {
    margin: 0;
    width: 100%;
  }
  
  .nav-links.active a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .slide {
    flex-direction: column;
    padding: 1rem;
  }
  
  .slide-content {
    padding-right: 0;
    text-align: center;
    order: 2;
  }
  
  .slide-image {
    order: 1;
    margin-bottom: 1rem;
  }
  
  .slide-content h2 {
    font-size: 1.5rem;
  }
  
  .products-layout {
    flex-direction: column;
  }
  
  .filters-sidebar {
    display: none;
  }
  
  .mobile-filter-btn {
    display: block;
  }
  
  .mobile-filter-overlay.active {
    display: block;
  }
  
  .mobile-filter-overlay.active .mobile-filter-container {
    transform: translateY(0);
  }
  
  .products-header {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .newsletter form {
    flex-direction: column;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .product-image {
    height: 150px;
  }
  
  .product-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .wishlist-btn {
    width: 100%;
  }
}