/* Section Spacing Utilities */
.section-spacing-xs {
  padding-top: var(--spacing-xs);
  padding-bottom: var(--spacing-xs);
}

.section-spacing-sm {
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.section-spacing-md {
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}

.section-spacing-lg {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.section-spacing-xl {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

.section-spacing-2xl {
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
}

/* Button Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  background: transparent;
  color: var(--color-text-primary);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-mauve);
  outline-offset: 2px;
}

/* Button Variants */
.btn-ghost {
  background: transparent;
  border-color: var(--color-bg-primary);
  color: var(--color-bg-primary);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
}

.btn-primary {
  background: #e9d8e3; /* Palid, matches Figma */
  border-color: #af91a6;
  color: #644c5d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.btn-primary:hover,
.btn-primary:focus {
  background: transparent;
  color: #644c5d;
}

.btn-dark {
  background: transparent;
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}

.btn-dark:hover,
.btn-dark:focus {
  background: var(--color-text-primary);
  color: var(--color-bg-primary);
}

/* Product Card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-primary);
}

.product-card__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-bg-cream);
}

.product-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__image-wrapper img {
  transform: scale(1.05);
}

.product-card__content {
  padding: var(--spacing-sm) 0;
  text-align: center;
}

.product-card__title {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.product-card__price-regular {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.product-card__price-sale {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* ============================================
   Footer Styles
   ============================================ */

.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--spacing-md);
}

.footer-widget__title {
  color: var(--color-bg-primary);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu a {
  color: var(--color-footer-text);
  text-decoration: none;
  display: block;
  padding: 0.35rem 0;
  transition: color 0.3s ease;
}

.footer-menu a:hover,
.footer-menu a:focus {
  color: var(--color-bg-primary);
}

.footer-contact-info a {
  color: var(--color-footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-info a:hover,
.footer-contact-info a:focus {
  color: var(--color-bg-primary);
}

.newsletter-form {
  display: flex;
  gap: 0;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--color-text-muted);
}

.newsletter-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background-color: var(--color-accent-mauve);
  color: var(--color-text-primary);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover,
.newsletter-form button:focus {
  background-color: var(--color-bg-primary);
}

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

.footer-copyright p {
  margin: 0;
  font-size: var(--text-sm);
}

.footer-payment-methods {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.payment-icon {
  display: inline-flex;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.payment-icon:hover {
  opacity: 1;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer-widgets {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-widgets {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Trending Products Section
   ============================================ */

.trending-section__title {
  font-family: var(--font-primary);
  text-align: center;
  margin-bottom: 3rem;
  font-size: var(--text-xl);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trending-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 991px) {
  .trending-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .trending-section__grid {
    grid-template-columns: 1fr;
  }
}

.trending-section__empty {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  padding: var(--spacing-lg) 0;
}

/* ============================================
   Product Card (Grid)
   ============================================ */

.product-card {
  position: relative;
}

.product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-bottom: 16px;
}

.product-card__image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-accent-pink);
}

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

.product-card:hover .product-card__image img {
  transform: scale(1.12);
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-accent-pink);
}

.product-card__title {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-family: var(--font-primary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__title a {
  color: inherit;
}

.product-card__prices {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
}

.product-card__price {
  font-weight: 600;
  color: var(--color-text-primary);
}

.product-card__price--old {
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-weight: 400;
}

.product-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--color-accent-mauve);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

.quick-add-btn {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-text-primary);
  z-index: 2;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.quick-add-btn:hover,
.quick-add-btn:focus {
  background: var(--color-accent-mauve);
  border-color: var(--color-accent-mauve);
}

.product-card:hover .quick-add-btn {
  display: flex;
}
