

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

body {
  font-family: var(--font-main);
  background-color: #f9f9f9;
  color: var(--dark);
  line-height: 1.6;
}

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

/* Preloader styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
}

.loader-content {
  text-align: center;
  animation: fadeIn 0.8s ease-in-out;
}

.loader-logo {
  width: 180px;
  height: 180px;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite ease-in-out;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #d35400;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* Animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container-category {
  max-width: 1200px;
  margin: 0 auto;
  padding: 200px 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #d35400;
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: #1a252f;
}


/* Breadcrumb */
.breadcrumb {
  padding: 20px 0;
  background-color: #f5f5f5;
  border-bottom: 1px solid #eee;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  align-items: center;
}

.breadcrumb-item {
  font-size: 14px;
}

.breadcrumb-item:not(:last-child)::after {
  content: ">";
  margin: 0 10px;
  color: #777;
}

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

.breadcrumb-item.active {
  color: var(--primary);
  font-weight: bold;
}

/* Shop Layout */
.shop-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  padding: 40px 0;
  
}

/* Filters Sidebar */
.filters {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

.filter-section {
  margin-bottom: 25px;
}

.filter-title {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--secondary);
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.filter-list {
  list-style: none;
}

.filter-item {
  margin-bottom: 10px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.filter-checkbox input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.price-range {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.price-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.filter-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-option {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.color-option:hover,
.color-option.active {
  transform: scale(1.2);
  border-color: #ddd;
}

.color-black {
  background-color: #000;
}
.color-brown {
  background-color: #795548;
}
.color-tan {
  background-color: #d2b48c;
}
.color-red {
  background-color: #e74c3c;
}
.color-blue {
  background-color: #3498db;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.clear-filters {
  background-color: #eee;
  color: var(--dark);
}

.clear-filters:hover {
  background-color: #ddd;
}

/* Product Grid */
.products-section {
  display: flex;
  flex-direction: column;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.products-title {
  font-size: 24px;
  color: var(--secondary);
}

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

.sort-label {
  font-size: 14px;
  color: #777;
}

.sort-select {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
}

.product-tag {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 3px;
  font-weight: bold;
}

.tag-new {
  background-color: var(--primary);
  color: white;
}

.tag-sale {
  background-color: var(--accent);
  color: white;
}

.quick-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .quick-actions {
  opacity: 1;
}

.action-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.product-info {
  padding: 15px;
}

.product-category {
  font-size: 14px;
  color: #777;
  margin-bottom: 5px;
}

.product-title {
  font-size: 18px;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.current-price {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary);
}

.original-price {
  text-decoration: line-through;
  color: #999;
}

.discount {
  background-color: #620063;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
}

.add-to-cart {
  width: 100%;
  padding: 12px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.add-to-cart:hover {
  background-color: #d35400;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pagination-list {
  display: flex;
  list-style: none;
  gap: 5px;
}

.pagination-item a,
.pagination-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.pagination-item a:hover {
  background-color: #f1f1f1;
}

.pagination-item.active a {
  background-color: var(--primary);
  color: white;
}

.pagination-item.disabled span {
  color: #ccc;
  cursor: not-allowed;
}
/* Responsive Styles */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .shop-container {
    grid-template-columns: 1fr;
  }

  .filters {
    order: 2;
  }

  .products-section {
    order: 1;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-header {
    flex-wrap: wrap;
  }

  .logo {
    margin-bottom: 15px;
  }

  .search-bar {
    order: 3;
    margin: 15px 0 0;
    max-width: 100%;
  }

  .header-top .container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nav-list {
    gap: 20px;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .cart-overlay {
    width: 300px;
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .breadcrumb-item {
    font-size: 12px;
  }
}
