/* ========================================
   SHOP MODERN — Dribbble-inspired e-commerce UX
   ======================================== */

/* Animations */
@keyframes shopFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shopFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shopPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shopFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes shopShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes shopBounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shopCartPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.2); }
  50% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* ========== HERO ========== */
.shop-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 50%, #e8f0fe 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 194, 255, 0.08) 0%, transparent 70%);
  animation: shopFloat 8s ease-in-out infinite;
}

.shop-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 87, 99, 0.05) 0%, transparent 70%);
  animation: shopFloat 6s ease-in-out infinite reverse;
}

.shop-hero-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: shopFadeInUp 0.8s ease-out;
}

.shop-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(69, 87, 99, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--puramane-navy);
  margin-bottom: 1.5rem;
  animation: shopBounceIn 0.6s ease-out 0.2s both;
}

.shop-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--puramane-navy);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.shop-hero p {
  font-size: 1.25rem;
  color: rgba(69, 87, 99, 0.7);
  max-width: 36rem;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* ========== TRUST STRIP ========== */
.shop-trust-strip {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  animation: shopFadeInUp 0.8s ease-out 0.4s both;
}

.shop-trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s ease;
}

.shop-trust-item:hover {
  transform: translateY(-2px);
}

.shop-trust-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shop-trust-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.shop-trust-icon.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.shop-trust-icon.purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.shop-trust-label {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--puramane-navy);
}

.shop-trust-sublabel {
  font-size: 0.8125rem;
  color: rgba(69, 87, 99, 0.6);
}

/* ========== PRODUCT GRID ========== */
.shop-grid-section {
  padding: 4rem 0 5rem;
  background: #ffffff;
}

.shop-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.shop-grid-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--puramane-navy);
}

.shop-grid-count {
  font-size: 0.875rem;
  color: rgba(69, 87, 99, 0.5);
  background: rgba(69, 87, 99, 0.06);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
}

.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* ========== PRODUCT CARD ========== */
.shop-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid rgba(69, 87, 99, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  animation: shopFadeInUp 0.6s ease-out both;
  position: relative;
}

.shop-card:nth-child(1) { animation-delay: 0.1s; }
.shop-card:nth-child(2) { animation-delay: 0.2s; }
.shop-card:nth-child(3) { animation-delay: 0.3s; }
.shop-card:nth-child(4) { animation-delay: 0.4s; }

.shop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(69, 87, 99, 0.12), 0 8px 16px rgba(69, 87, 99, 0.08);
}

/* Image container */
.shop-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
}

.shop-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.shop-card:hover .shop-card-image img {
  transform: scale(1.08);
}

/* Badge */
.shop-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.shop-card-badge.bestseller {
  background: rgba(69, 87, 99, 0.85);
  color: white;
}

.shop-card-badge.promo {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: white;
  animation: shopPulse 2s ease-in-out infinite;
}

/* Quick add (appears on hover) */
.shop-card-quickadd {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.shop-card:hover .shop-card-quickadd {
  transform: translateY(0);
}

.shop-card-quickadd button {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.shop-card-quickadd button:active {
  transform: scale(0.95);
}

.shop-card-quickadd .btn-cart {
  background: white;
  color: var(--puramane-navy);
}

.shop-card-quickadd .btn-cart:hover {
  background: #f1f5f9;
}

.shop-card-quickadd .btn-amazon {
  background: #E89B5A;
  color: white;
}

/* Card body */
.shop-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.shop-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(69, 87, 99, 0.5);
  margin-bottom: 0.5rem;
}

.shop-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--puramane-navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

/* Rating */
.shop-card-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.shop-card-stars {
  display: flex;
  gap: 1px;
}

.shop-card-rating-text {
  font-size: 0.8125rem;
  color: rgba(69, 87, 99, 0.6);
}

/* Features pills */
.shop-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

.shop-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background: rgba(69, 87, 99, 0.05);
  border-radius: 100px;
  font-size: 0.75rem;
  color: rgba(69, 87, 99, 0.75);
}

.shop-card-pill svg {
  color: var(--puramane-navy);
}

/* Price */
.shop-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.shop-card-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--puramane-navy);
  letter-spacing: -0.02em;
}

.shop-card-price-old {
  font-size: 1rem;
  color: rgba(69, 87, 99, 0.4);
  text-decoration: line-through;
}

.shop-card-price-discount {
  font-size: 0.75rem;
  font-weight: 700;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 100px;
}

/* ========== SUBSCRIPTION CTA ========== */
.shop-sub-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--puramane-navy) 0%, #2d3a47 50%, #1e2a36 100%);
  position: relative;
  overflow: hidden;
}

.shop-sub-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 194, 255, 0.15) 0%, transparent 70%);
}

.shop-sub-cta-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: shopFadeInUp 0.6s ease-out;
}

.shop-sub-cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.shop-sub-cta p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.shop-sub-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.shop-sub-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  font-weight: 500;
}

.shop-sub-feature svg {
  color: #2BC2FF;
}

.shop-sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: white;
  color: var(--puramane-navy);
  border: none;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.shop-sub-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.shop-sub-btn:active {
  transform: scale(0.98);
}

/* ========== CART TOAST ========== */
.shop-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--puramane-navy);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9000;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: shopBounceIn 0.5s ease-out;
}

/* ========== DESKTOP/MOBILE VISIBILITY ========== */
.shop-mobile-only { display: none; }
.shop-desktop-only { }

/* ========== MOBILE CARD BUTTONS (hidden on desktop) ========== */
.shop-card-actions-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.btn-cart-mobile {
  width: 100%;
  padding: 0.875rem;
  background: var(--puramane-navy);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn-cart-mobile:active {
  transform: scale(0.97);
  background: #374a59;
}

.btn-amazon-mobile {
  width: 100%;
  padding: 0.875rem;
  background: #E89B5A;
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-amazon-mobile:active {
  transform: scale(0.97);
}

/* ========== LARGE DESKTOP (1280px+) ========== */
@media (min-width: 1280px) {
  .shop-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  .shop-hero h1 { font-size: 3.75rem; }
}

/* ========== DESKTOP (1024-1279px) ========== */
@media (min-width: 1024px) and (max-width: 1279px) {
  .shop-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .shop-hero h1 { font-size: 3rem; }
}

/* ========== TABLET (769-1023px) ========== */
@media (min-width: 769px) and (max-width: 1023px) {
  .shop-hero { padding: 4rem 0 3rem; }
  .shop-hero h1 { font-size: 2.5rem; }
  .shop-hero p { font-size: 1.125rem; }

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

  .shop-trust-strip { gap: 2rem; }
  .shop-trust-label { font-size: 0.875rem; }

  .shop-sub-cta h2 { font-size: 2rem; }
  .shop-sub-features { gap: 1.5rem; }
}

/* ========== MOBILE (768px and below) ========== */
@media (max-width: 768px) {
  .shop-mobile-only { display: flex !important; }
  .shop-desktop-only { display: none !important; }

  .shop-hero {
    padding: 2.5rem 0 2rem;
  }
  .shop-hero::before, .shop-hero::after { display: none; }

  .shop-hero h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .shop-hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .shop-hero-badge {
    font-size: 0.8125rem;
    padding: 0.375rem 1rem;
  }

  /* Trust strip → horizontal scroll */
  .shop-trust-strip {
    gap: 1rem;
    padding: 0 1rem;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .shop-trust-strip::-webkit-scrollbar { display: none; }

  .shop-trust-item {
    min-width: 200px;
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }

  .shop-trust-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
  }

  .shop-trust-label { font-size: 0.8125rem; }
  .shop-trust-sublabel { font-size: 0.75rem; }

  /* Products grid → single column full width */
  .shop-grid-section {
    padding: 2rem 0 2.5rem;
  }

  .shop-grid-header {
    padding: 0 1rem;
    margin-bottom: 1.5rem;
  }

  .shop-grid-title { font-size: 1.375rem; }
  .shop-grid-count { font-size: 0.8125rem; }

  .shop-products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  /* Card adjustments */
  .shop-card {
    border-radius: 1rem;
  }

  .shop-card-image {
    aspect-ratio: 16 / 10;
  }

  .shop-card-body {
    padding: 1rem 1.25rem 0.25rem;
  }

  .shop-card-title {
    font-size: 1rem;
  }

  .shop-card-price {
    font-size: 1.5rem;
  }

  .shop-card-features {
    margin-bottom: 0.75rem;
  }

  /* Mobile buttons full width */
  .shop-card-actions-mobile {
    display: flex !important;
    padding: 0 1.25rem 1.25rem;
  }

  /* Subscription CTA */
  .shop-sub-cta {
    padding: 3rem 1.25rem;
  }
  .shop-sub-cta::before { display: none; }
  .shop-sub-cta h2 { font-size: 1.625rem; }
  .shop-sub-cta p { font-size: 1rem; }

  .shop-sub-features {
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
  }
  .shop-sub-feature { font-size: 0.875rem; }

  .shop-sub-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
  }
}

/* ========== SMALL MOBILE (480px and below) ========== */
@media (max-width: 480px) {
  .shop-hero h1 { font-size: 1.75rem; }
  .shop-hero p { font-size: 0.9375rem; }

  .shop-trust-item { min-width: 180px; }

  .shop-card-price { font-size: 1.375rem; }
  .shop-card-pill { font-size: 0.6875rem; }

  .shop-grid-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
