/* Shop Module Custom Styles */

:root {
  --navy: #001f3f;
  --blue: #0074d9;
  --beige: #f5f5dc;
  --light-blue: #7fdbff;
  --sea: #39cccc;
  --winter: #e8f4f8;
}

/* Product Cards */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0.75rem;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 31, 63, 0.1);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  background-color: var(--winter);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

/* Button Styles */
.btn-shop-primary {
  background-color: var(--blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-shop-primary:hover {
  background-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 116, 217, 0.3);
}

.btn-shop-secondary {
  background-color: white;
  color: var(--navy);
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--navy);
  cursor: pointer;
}

.btn-shop-secondary:hover {
  background-color: var(--winter);
  transform: translateY(-2px);
}

/* Category Filter */
.category-filter-item {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.category-filter-item:hover {
  background-color: var(--winter);
  border-color: var(--blue);
}

.category-filter-item.active {
  background-color: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* Input Fields */
.shop-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.shop-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 116, 217, 0.1);
}

/* Cart Item */
.cart-item-card {
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.cart-item-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Quantity Controls */
.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.quantity-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background-color: var(--winter);
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background-color: var(--blue);
  color: white;
}

.quantity-input {
  width: 3.5rem;
  text-align: center;
  border: none;
  font-weight: 600;
  color: var(--navy);
}

.quantity-input:focus {
  outline: none;
}

/* Order Status Badges */
.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-processing {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-completed {
  background-color: #d1fae5;
  color: #065f46;
}

.status-failed {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(0, 116, 217, 0.1);
  border-top-color: var(--blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Section Headings */
.section-heading {
  color: var(--navy);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--sea);
  border-radius: 2px;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.pagination a {
  padding: 0.5rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  color: var(--navy);
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination a:hover {
  border-color: var(--blue);
  background-color: var(--winter);
}

.pagination .active a {
  background-color: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .section-heading {
    font-size: 1.75rem;
  }
}
