/* Shop Featured Products Section */

/* Inherit theme variables from main stylesheet */
:root {
  /* fallback if not loaded yet; overridden by main style.css */
  --brand-bg: #BFE9C2;
  --brand-text: #191616;
  --brand-yellow: #EDC900;
}

/* Section wrapper */
#shop-featured {
  background: var(--brand-bg);
  position: relative;
}

/* Constrain and align to site rhythm */
#shop-featured .container {
  padding-top: 64px;
  padding-bottom: 72px;
}

/* Title */
.shop-featured__title {
  font-family: "Turkey Sandwich", "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--brand-yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin: 8px 0 20px;
}

/* Category tabs */
.shop-categories {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.shop-category {
  background: transparent;
  border: none;
  color: var(--brand-text);
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 12px;
  cursor: pointer;
  position: relative;
  transition: color 200ms ease;
}
.shop-category:hover { color: var(--brand-yellow); }
.shop-category.is-active { color: var(--brand-yellow); }
.shop-category.is-active::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px; bottom: 0;
  height: 3px; border-radius: 2px;
  background: var(--brand-yellow);
}

/* Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Card */
.shop-card {
  background: transparent;
}

.shop-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 300ms ease;
}

.shop-card__link:hover {
  transform: translateY(-4px);
  color: inherit;
  text-decoration: none;
}
.shop-card__media {
  width: 100%;
  aspect-ratio: 4/5; /* poster-like */
  background: #ddd;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  transition: transform 260ms ease, box-shadow 260ms ease;
  position: relative;
}
.shop-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.shop-card:hover .shop-card__media {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 42px rgba(0,0,0,0.16);
}

/* Wishlist Button - Top Right */
.shop-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: all 300ms ease;
  z-index: 2;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.shop-card__wishlist:hover {
  background: var(--brand-yellow);
  color: white;
  transform: scale(1.1);
}
.shop-card__wishlist i {
  font-size: 18px;
}
.shop-card:hover .shop-card__wishlist {
  opacity: 1;
  transform: scale(1);
}

/* Add to Cart Button - Bottom Full Width */
.shop-card__add-to-cart {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  border: none;
  background: var(--brand-green);
  color: white;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transform: translateX(100%);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  border-radius: 0 0 16px 16px;
}
.shop-card__add-to-cart:hover {
  background: #2d4009;
}
.shop-card__add-to-cart i {
  font-size: 16px;
}
.shop-card:hover .shop-card__add-to-cart {
  transform: translateX(0);
}
.shop-card__body {
  background: transparent; /* same as section bg */
  padding: 10px 4px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
}
.shop-card__name {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  color: var(--brand-text);
  font-size: 16px;
  margin: 0 0 6px 0;
  flex: 1 1 auto;
  order: 1;
}
.shop-card__price {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  color: var(--brand-text);
  font-size: 15px;
  margin: 2px 0 0 0;
  flex-basis: 100%;
  order: 3;
}
.shop-card__rating { display: flex; gap: 2px; order: 2; }
.shop-card__rating i { color: var(--brand-yellow); font-size: 13px; }

/* Responsive */
@media (max-width: 1199.98px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
  #shop-featured .container { padding-top: 48px; padding-bottom: 56px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 575.98px) {
  .shop-grid { grid-template-columns: 1fr; gap: 16px; }
  .shop-category { font-size: 14px; }
}

/* Shop page hero background */
#lgs-hero .lgs-hero-bg {
  background-image: url('../imgs/Banner_shop.png') !important;
}

/* Notification System */
.shop-notification {
  position: fixed;
  top: 120px;
  right: 20px;
  background: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  z-index: 9999;
  transform: translateX(100%);
  opacity: 0;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid var(--brand-yellow);
}
.shop-notification.show {
  transform: translateX(0);
  opacity: 1;
}
.shop-notification--success {
  border-left-color: #22c55e;
  color: #166534;
}
.shop-notification--success i {
  color: #22c55e;
}
.shop-notification--info {
  border-left-color: #3b82f6;
  color: #1e40af;
}
.shop-notification--info i {
  color: #3b82f6;
}
.shop-notification i {
  font-size: 18px;
}

/* Responsive notification */
@media (max-width: 575.98px) {
  .shop-notification {
    right: 10px;
    left: 10px;
    transform: translateY(-100%);
    top: 100px;
  }
  .shop-notification.show {
    transform: translateY(0);
  }
}
