/* =========================================
   SHOP PAGE STYLES
   ========================================= */

:root {
  /* Shop-specific spacing adjustments */
  --shop-hero-gap: var(--space-12);
  --shop-grid-gap: var(--space-8);
}

/* =========================================
   HERO SECTION
   ========================================= */
.shop-hero {
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-background) 100%);
  padding: var(--space-16) var(--layout-page-padding);
}

.shop-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--shop-hero-gap);
  align-items: center;
}

.shop-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.shop-hero__heading {
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  font-weight: 700;
  margin: 0;
}

h1.shop-hero__heading {
  font-size: var(--font-size-4xl);
}

.shop-hero__lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
  margin: 0;
}

.shop-hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.shop-hero__meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
  font-style: italic;
}

.shop-hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.shop-hero__figure {
  margin: 0;
  width: 100%;
  height: auto;
}

.shop-hero__figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* =========================================
   CATEGORIES SECTION
   ========================================= */
.shop-categories {
  padding: var(--space-16) var(--layout-page-padding);
  background: var(--color-surface);
}

.shop-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--shop-grid-gap);
  margin-top: var(--space-12);
}

.shop-category-card {
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.shop-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.shop-category-card .card-media {
  height: 240px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.shop-category-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.shop-category-card:hover .card-media img {
  transform: scale(1.05);
}

.shop-category-card .card-header {
  padding: var(--space-4) var(--space-4) 0 var(--space-4);
}

.shop-category-count {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: 600;
  margin: var(--space-2) 0 0 0;
}

/* =========================================
   BESTSELLERS SECTION
   ========================================= */
.shop-bestsellers {
  padding: var(--space-16) var(--layout-page-padding);
  background: var(--color-background);
}

.shop-bestsellers__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--shop-hero-gap);
  align-items: center;
  margin-top: var(--space-12);
}

.shop-bestsellers__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

h2.shop-bestsellers__content > * {
  margin: 0;
}

.shop-bestsellers__content h2 {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

.shop-achievements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.shop-achievements-list li {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--color-background);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
}

.shop-achievements-list strong {
  color: var(--color-text);
  font-weight: 600;
}

.shop-achievements-list span {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.shop-bestsellers__cta {
  margin-top: var(--space-4);
}

.shop-bestsellers__media {
  display: flex;
  justify-content: center;
}

.shop-bestsellers__figure {
  margin: 0;
  width: 100%;
  height: auto;
}

.shop-bestsellers__figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* =========================================
   SEARCH & FILTERS SECTION
   ========================================= */
.shop-search {
  padding: var(--space-16) var(--layout-page-padding);
  background: var(--color-surface);
}

.shop-search__bar {
  display: flex;
  gap: var(--space-4);
  margin: var(--space-12) 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.shop-search__input {
  flex: 1;
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-md);
  border: 2px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-normal);
}

.shop-search__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--focus-ring-color);
}

.shop-search__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--shop-grid-gap);
  margin-top: var(--space-12);
}

.shop-search-feature {
  display: flex;
  flex-direction: column;
}

.shop-search-feature .card-header {
  border-bottom: 2px solid var(--color-primary-soft);
  padding-bottom: var(--space-4);
}

/* =========================================
   WHY SHOP SECTION
   ========================================= */
.shop-why {
  padding: var(--space-16) var(--layout-page-padding);
  background: linear-gradient(135deg, var(--color-background) 0%, var(--color-surface) 100%);
}

.shop-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--shop-grid-gap);
  margin-top: var(--space-12);
}

.shop-why-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-subtle);
  border-top: 4px solid var(--color-primary);
  transition: box-shadow var(--transition-normal);
}

.shop-why-card:hover {
  box-shadow: var(--shadow-md);
}

.shop-why-card .card-header {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.shop-testimonials {
  padding: var(--space-16) var(--layout-page-padding);
  background: var(--color-surface);
}

.shop-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--shop-grid-gap);
  margin-top: var(--space-12);
}

.shop-testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
}

.shop-testimonial-rating {
  font-size: var(--font-size-lg);
  color: var(--color-warning);
  letter-spacing: var(--space-1);
  margin: 0;
}

.shop-testimonial-author {
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.shop-testimonial-card .card-body {
  font-style: italic;
  color: var(--color-text-muted);
  flex: 1;
}

.shop-testimonial-card .card-footer {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-4);
}

/* =========================================
   PROMOTIONS SECTION
   ========================================= */
.shop-promotions {
  padding: var(--space-16) var(--layout-page-padding);
  background: var(--color-background);
}

.shop-promotions__layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--shop-grid-gap);
  margin-top: var(--space-12);
}

.shop-promotion-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.shop-promotion-featured {
  grid-column: 1;
  grid-row: 1 / 3;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  color: white;
  align-items: center;
}

.shop-promotion-featured h3,
.shop-promotion-featured p {
  color: white;
}

.shop-promotion-featured .shop-promotion-badge {
  color: var(--color-primary-soft);
}

.shop-promotion-banner-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  z-index: 1;
}

.shop-promotion-badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  width: fit-content;
}

.shop-promotion-featured .shop-promotion-badge {
  background: rgba(255, 255, 255, 0.2);
}

.shop-promotion-banner-content h3 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
  margin: 0;
  color: var(--color-text);
}

.shop-promotion-featured h3 {
  color: white;
}

.shop-promotion-banner-content p {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  margin: 0;
}

.shop-promotion-featured p {
  color: rgba(255, 255, 255, 0.9);
}

.shop-promotion-banner-media {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.shop-promotion-featured .shop-promotion-banner-media {
  height: auto;
}

.shop-promotion-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-promotion-secondary {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-6);
}

.shop-promotion-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.shop-promotion-secondary h3 {
  font-size: var(--font-size-xl);
}

/* =========================================
   NEWSLETTER SECTION
   ========================================= */
.shop-newsletter {
  padding: var(--space-16) var(--layout-page-padding);
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-background) 100%);
}

.shop-newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--shop-hero-gap);
  align-items: center;
}

.shop-newsletter__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.shop-newsletter__content h2 {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin: 0;
}

.shop-newsletter__content p {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  margin: 0;
}

.shop-newsletter__form {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.shop-newsletter__form input {
  flex: 1;
  min-width: 250px;
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-md);
  border: 2px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-normal);
}

.shop-newsletter__form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--focus-ring-color);
}

.shop-newsletter__form button {
  padding: var(--space-4) var(--space-8);
  white-space: nowrap;
}

.shop-newsletter__disclaimer {
  font-size: var(--font-size-sm);
  margin: 0;
}

.shop-newsletter__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.shop-newsletter-action {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.shop-newsletter-action h3 {
  font-size: var(--font-size-md);
  color: var(--color-text);
  margin: 0;
  font-weight: 600;
}

.shop-newsletter-action p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 1024px) {
  .shop-hero__inner,
  .shop-bestsellers__layout,
  .shop-newsletter__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .shop-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-why__grid,
  .shop-testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-search__features {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-promotions__layout {
    grid-template-columns: 1fr 1fr;
  }

  .shop-promotion-featured {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .shop-newsletter__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .shop-hero,
  .shop-categories,
  .shop-bestsellers,
  .shop-search,
  .shop-why,
  .shop-testimonials,
  .shop-promotions,
  .shop-newsletter {
    padding: var(--space-12) var(--layout-page-padding);
  }

  .shop-categories__grid,
  .shop-why__grid,
  .shop-testimonials__grid,
  .shop-search__features {
    grid-template-columns: 1fr;
  }

  .shop-promotions__layout {
    grid-template-columns: 1fr;
  }

  .shop-promotion-featured {
    grid-template-columns: 1fr;
  }

  .shop-search__bar {
    flex-direction: column;
  }

  .shop-search__input {
    width: 100%;
  }

  .shop-hero__heading {
    font-size: var(--font-size-3xl);
  }

  .shop-newsletter__form {
    flex-direction: column;
  }

  .shop-newsletter__form input,
  .shop-newsletter__form button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .shop-hero,
  .shop-categories,
  .shop-bestsellers,
  .shop-search,
  .shop-why,
  .shop-testimonials,
  .shop-promotions,
  .shop-newsletter {
    padding: var(--space-8) var(--layout-page-padding);
  }

  .shop-hero__heading {
    font-size: var(--font-size-2xl);
  }

  .shop-hero__lead,
  .shop-promotions__layout h3 {
    font-size: var(--font-size-md);
  }

  .shop-hero__actions {
    flex-direction: column;
  }

  .shop-hero__actions .btn {
    width: 100%;
  }
}

/* =========================================
   TEXT UTILITIES
   ========================================= */

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}
