@import url('base.css');

/* ========================
   Shop Hero
   ======================== */
.shop-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.shop-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.shop-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.shop-hero-content h1 {
  font-family: 'HelveticaNeueBold', Helvetica, Arial, sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.shop-hero-content p {
  font-size: 1rem;
  opacity: 0.9;
}

/* ========================
   Filter Bar
   ======================== */
.filter-bar {
  background-color: #EFEEEA;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 80px;
  z-index: 100;
}

.filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
}

.filter-categories {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: none;
  background: transparent;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: Times New Roman, serif;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* ========================
   Products Grid
   ======================== */
.shop-products {
  padding: 4rem 1.5rem;
  background-color: #EFEEEA;
}

.shop-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.shop-product-card {
  background: #fff;
}

.product-link {
  display: block;
}

.product-image-container {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

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

.shop-product-card:hover .product-image-container img {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shop-product-card:hover .product-overlay {
  opacity: 1;
}

.product-overlay span {
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: none;
  padding: 0.8rem 1.5rem;
  border: 1px solid #fff;
}

.product-info {
  padding: 1.2rem;
  text-align: center;
}

.product-info h3 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.product-price {
  font-size: 0.9rem;
  color: #666;
}

/* Unavailable product styles */
.shop-product-card.unavailable {
  opacity: 0.8;
}

.shop-product-card.unavailable .product-image-container img {
  filter: grayscale(30%);
}

.unavailable-overlay {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: #ff4444;
  color: white;
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 4px;
  z-index: 2;
}

/* ========================
   Shop CTA
   ======================== */
.shop-cta {
  padding: 5rem 1.5rem;
  background-color: #EFEEEA;
}

.shop-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.shop-cta-inner h2 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.shop-cta-inner p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ========================
   Buttons
   ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: Times New Roman, serif;
  font-weight: 500;
}

.primary-btn {
  background-color: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.primary-btn:hover {
  background-color: #333;
}

/* ========================
   Section Labels
   ======================== */
.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: none;
  color: #888;
  margin-bottom: 0.8rem;
}

/* ========================
   Footer Styles
   ======================== */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 45px;
  width: auto;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #1a1a1a;
  transition: opacity 0.3s;
}

.footer-social a:hover {
  opacity: 0.6;
}

.footer-links-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: none;
  margin-bottom: 1.2rem;
  color: #1a1a1a;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.6rem;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #1a1a1a;
}

.footer-bottom {
  border-top: 1px solid #e5e0da;
  padding: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #888;
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 1024px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .shop-hero {
    height: 40vh;
    min-height: 280px;
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
  }

  .shop-hero-content h1 {
    font-size: 2rem;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .filter-bar {
    top: 60px;
  }

  .filter-categories {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .shop-products {
    padding: 3rem 1rem;
  }

  .shop-cta {
    padding: 4rem 1rem;
  }

  .shop-cta-inner h2 {
    font-size: 1.8rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-links-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .shop-hero {
    height: 35vh;
    min-height: 250px;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    width: calc(100% + 2.5rem);
  }

  .shop-hero-content h1 {
    font-size: 1.75rem;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .filter-categories {
    gap: 0.3rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
  }

  .product-info {
    padding: 0.8rem 0.5rem;
  }

  .product-info h3 {
    font-size: 1rem;
    /* Smaller font for 2 column */
  }

  .product-price {
    font-size: 0.85rem;
  }

  .footer-links-section {
    grid-template-columns: 1fr;
  }

  .skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Match real grid */
    gap: 1rem;
  }
}

/* ========================
   Skeleton Loading Animation
   ======================== */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Filter Skeleton */
.filter-skeleton {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.skeleton-btn {
  width: 80px;
  height: 38px;
  background: linear-gradient(90deg, #e8e4df 25%, #f5f2ed 50%, #e8e4df 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0;
}

.skeleton-btn:nth-child(1) {
  width: 50px;
}

.skeleton-btn:nth-child(2) {
  width: 90px;
}

.skeleton-btn:nth-child(3) {
  width: 75px;
}

.skeleton-btn:nth-child(4) {
  width: 100px;
}

.skeleton-btn:nth-child(5) {
  width: 85px;
}

/* Product Card Skeleton */
.skeleton-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.skeleton-card {
  background: #fff;
}

.skeleton-image {
  aspect-ratio: 1;
  background: linear-gradient(90deg, #e8e4df 25%, #f5f2ed 50%, #e8e4df 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.skeleton-category {
  width: 60px;
  height: 12px;
  background: linear-gradient(90deg, #e8e4df 25%, #f5f2ed 50%, #e8e4df 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 2px;
}

.skeleton-title {
  width: 140px;
  height: 20px;
  background: linear-gradient(90deg, #e8e4df 25%, #f5f2ed 50%, #e8e4df 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 2px;
}

.skeleton-price {
  width: 80px;
  height: 16px;
  background: linear-gradient(90deg, #e8e4df 25%, #f5f2ed 50%, #e8e4df 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 2px;
}

/* Responsive skeleton */
@media (max-width: 1024px) {
  .skeleton-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skeleton-card:nth-child(n+7) {
    display: none;
  }
}

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

  .skeleton-card:nth-child(n+5) {
    display: none;
  }
}

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

  .skeleton-card:nth-child(n+4) {
    display: none;
  }

  .skeleton-btn {
    height: 32px;
  }
}