/* General Body Styles */
body {
  font-family: "Inter", sans-serif;
  background-color: #f8fafc; /* slate-50 */
  color: #1e293b; /* slate-800 */
  margin: 0;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

.font-semibold {
  font-weight: 600;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Header */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  height: 2rem;
  width: 2rem;
  color: #2563eb;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.main-nav {
  /* display: none; */
  gap: 2rem;
}
@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

.main-nav a {
  color: #475569;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms;
}

.main-nav a:hover {
  color: #2563eb;
}
.main-nav a.active {
  color: #2563eb;
  font-weight: 700;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-link {
  position: relative;
  color: #64748b;
  transition: color 150ms;
}

.icon-link:hover {
  color: #2563eb;
}

.icon {
  height: 1.5rem;
  width: 1.5rem;
}

.cart-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.75rem;
  border-radius: 9999px;
  height: 1.25rem;
  width: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content */
.page-content {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.breadcrumbs {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
}
.breadcrumbs a {
  color: #64748b;
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: #2563eb;
}
.breadcrumbs span {
  color: #1e293b;
  font-weight: 500;
}
.separator-icon {
  height: 0.75rem;
  width: 0.75rem;
  fill: #94a3b8;
  margin: 0 0.5rem;
}

.shop-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .shop-layout {
    flex-direction: row;
  }
}

/* Filters Sidebar */
.filters-sidebar {
  width: 100%;
}
@media (min-width: 1024px) {
  .filters-sidebar {
    width: 25%;
  }
}

.filters-container {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-group {
}
.filter-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
}
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.filter-option {
  display: flex;
  align-items: center;
}
.filter-option input {
  height: 1rem;
  width: 1rem;
  border-radius: 0.25rem;
  border-color: #cbd5e1;
  color: #2563eb;
}
.filter-option input:focus {
  ring: #2563eb;
}
.filter-option span {
  margin-left: 0.5rem;
  color: #334155;
}

/* Product Grid */
.product-grid-container {
  width: 100%;
}
@media (min-width: 1024px) {
  .product-grid-container {
    width: 75%;
  }
}

.mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  background-color: #ffffff;
  padding: 0.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 
              0 1px 2px -1px rgba(0, 0, 0, 0.1);
}
.sort-select {
  border-radius: 0.5rem;
  border-color: #cbd5e1;
}
.sort-select:focus {
  border-color: #2563eb;
  ring: #2563eb;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 300ms;
}
.product-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 14rem;
  width: 100%;
  object-fit: cover;
}
.product-info {
  padding: 1.5rem;
}
.product-name {
  font-weight: 600;
  font-size: 1.125rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.product-price {
  color: #2563eb;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.add-to-cart-btn {
  width: 100%;
  background-color: #1e293b;
  color: #ffffff;
  font-weight: 600;
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 300ms;
}
.add-to-cart-btn:hover {
  background-color: #0f172a;
}

/* Pagination */
.pagination-container {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}
.pagination {
  display: inline-flex;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.page-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  transition: background-color 150ms;
}
.page-link:hover {
  background-color: #f8fafc;
}
.page-link:first-child {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}
.page-link:last-child {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}
.page-link.page-arrow {
  padding: 0.5rem;
  color: #94a3b8;
}
.page-link.active {
  z-index: 10;
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.page-link.ellipsis {
  color: #334155;
}
.desktop-only {
  display: none;
}
@media (min-width: 768px) {
  .desktop-only {
    display: inline-flex;
  }
}

/* Footer */
.site-footer {
  background-color: #1e293b;
  color: #ffffff;
  margin-top: 4rem;
}
.footer-grid {
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.footer-text {
  color: #94a3b8;
}
.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-contact li {
  color: #94a3b8;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #94a3b8;
}
.social-icon:hover {
  color: #ffffff;
}
.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}
