/**
 * Project Black'D — Additional Theme Styles
 *
 * Supplementary CSS loaded after style.css
 *
 * @package Project_BlackD
 */

/* Cart count badge */
.cart-link {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #000000;
  color: #ffffff;
  font-size: 0.625rem;
  border-radius: 50%;
  width: 1.125rem;
  height: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Post card styles for blog listing */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  margin-bottom: 0;
}

.post-card-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 1rem 0;
}

.post-card-content .date {
  font-size: 0.813rem;
  color: hsl(0, 0%, 45%);
}

.post-card-content h2 {
  font-size: 1.375rem;
  margin: 0.5rem 0;
}

.post-card-content h2 a {
  transition: color 0.3s ease;
}

.post-card-content h2 a:hover {
  color: hsl(0, 0%, 40%);
}

/* Post navigation */
.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(0, 0%, 92%);
}

.post-navigation .nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .post-navigation .nav-links {
    flex-direction: row;
    justify-content: space-between;
  }
}

.post-navigation a {
  transition: opacity 0.3s ease;
}

.post-navigation a:hover {
  opacity: 0.7;
}

/* Pagination */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid hsl(0, 0%, 92%);
  font-size: 0.813rem;
  transition: all 0.3s ease;
}

.pagination .page-numbers.current {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.pagination .page-numbers:hover:not(.current) {
  background-color: hsl(0, 0%, 97%);
}

/* WooCommerce overrides */
.woocommerce-active .woocommerce-page .entry-content,
.woocommerce-active .woocommerce-page .entry-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.woocommerce .star-rating {
  color: #000000;
}

.woocommerce .price {
  font-family: 'Bebas Neue', sans-serif;
  color: #000000;
}

/* Checkout reassurance bar */
.woocommerce-checkout .checkout-reassurance {
  margin-bottom: 2rem;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .hero-section,
  .announcement-bar,
  .lightbox {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000000;
    background: #ffffff;
  }
}
