@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

@keyframes modernFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modernPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes modernFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes heroShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ========================================
   HERO SECTION
   ======================================== */
.pcshop-hero {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%) !important;
  position: relative;
  overflow: hidden;
}
.pcshop-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,92,231,0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: modernFloat 8s ease-in-out infinite;
  z-index: 0;
}
.pcshop-hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,87,108,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: modernFloat 10s ease-in-out infinite reverse;
  z-index: 0;
}
.pcshop-hero .container {
  position: relative;
  z-index: 1;
}

/* ========================================
   HERO SIDEBAR (Categories)
   ======================================== */
.pcshop-hero-sidebar {
  background: rgba(0,0,0,0.5) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255,255,255,0.1);
}
.pcshop-hero-sidebar-title {
  background: rgba(255,255,255,0.05) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}
.pcshop-hero-sidebar-list a {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
}
.pcshop-hero-sidebar-list a:hover {
  background: rgba(108,92,231,0.3) !important;
  padding-left: 24px !important;
  border-left: 3px solid #6c5ce7;
}
.pcshop-hero-sidebar .pcshop-sidebar-accent {
  background: linear-gradient(90deg, rgba(108,92,231,0.2), transparent) !important;
}

/* ========================================
   CAROUSEL CONTROLS
   ======================================== */
.pcshop-carousel-btn {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(10px);
  width: 44px !important; height: 44px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12) !important;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #333;
}
.pcshop-carousel-btn:hover {
  transform: translateY(-50%) scale(1.1) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
  background: #fff !important;
}
.pcshop-carousel-dot {
  width: 10px !important; height: 10px !important;
  background: rgba(255,255,255,0.4) !important;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.pcshop-carousel-dot.active {
  background: #6c5ce7 !important;
  width: 30px !important; border-radius: 5px !important;
  box-shadow: 0 0 15px rgba(108,92,231,0.5);
}

/* ========================================
   PRODUCT SHOWCASE (New Slide Layout)
   ======================================== */
.pcshop-hero-showcase {
  display: flex;
  align-items: stretch;
  height: 100%;
  min-height: 420px;
  padding: 30px 40px;
  gap: 24px;
  animation: modernFadeUp 0.6s ease-out;
}

/* --- Main Product Image --- */
.pcshop-hero-main-img {
  flex: 0 0 45%;
  max-width: 45%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  padding: 20px;
}
.pcshop-hero-main-img a {
  display: block;
  width: 100%;
  height: 100%;
}
.pcshop-hero-main-img img {
  width: 100%;
  height: 100%;
  max-height: 350px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}
.pcshop-hero-main-img img.switching {
  opacity: 0.3;
  transform: scale(0.95);
}
.pcshop-hero-main-img:hover img {
  transform: scale(1.05);
}
.pcshop-hero-main-img .pcshop-hero-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  padding: 6px 16px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 15px rgba(102,126,234,0.4);
  color: #fff;
  font-weight: 600;
  z-index: 2;
}

/* --- Gallery Thumbnails (Vertical Strip) --- */
.pcshop-hero-thumbs {
  flex: 0 0 72px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-self: center;
}
.pcshop-hero-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  flex-shrink: 0;
}
.pcshop-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcshop-hero-thumb:hover {
  border-color: rgba(255,255,255,0.4);
  transform: scale(1.08);
}
.pcshop-hero-thumb.active {
  border-color: #6c5ce7;
  box-shadow: 0 0 12px rgba(108,92,231,0.5);
}

/* --- Product Info Panel --- */
.pcshop-hero-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 20px 10px;
  min-width: 0;
}
.pcshop-hero-info h2 {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.15 !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin: 0;
}
.pcshop-hero-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.pcshop-hero-price .woocommerce-Price-amount {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.pcshop-hero-price .woocommerce-Price-amount bdi {
  color: inherit;
}
.pcshop-hero-price del {
  opacity: 0.5;
  font-size: 16px;
}
.pcshop-hero-price ins {
  text-decoration: none;
  color: #6c5ce7;
  background: rgba(108,92,231,0.2);
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 700;
}
.pcshop-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 400px;
  margin: 0;
}
.pcshop-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* --- Buttons --- */
.btn-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  padding: 12px 28px !important;
  border-radius: 30px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(102,126,234,0.4);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1) !important;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}
.btn-hero::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}
.btn-hero:hover::before { left: 100%; }
.btn-hero:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 30px rgba(102,126,234,0.5) !important;
  color: #fff;
  text-decoration: none;
}
.btn-hero-outline {
  background: transparent !important;
  padding: 12px 28px !important;
  border-radius: 30px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

/* ========================================
   FALLBACK SLIDES (No Products)
   ======================================== */
.pcshop-hero-slide--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcshop-hero-showcase--fallback {
  justify-content: center;
  align-items: center;
}
.pcshop-hero-info--center {
  text-align: center;
  align-items: center;
  max-width: 600px;
}
.pcshop-hero-info--center h2 {
  font-size: 42px !important;
}
.pcshop-hero-info--center p {
  font-size: 18px !important;
  opacity: 0.9;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .pcshop-hero-showcase {
    padding: 24px 28px;
    gap: 20px;
  }
  .pcshop-hero-main-img {
    flex: 0 0 40%;
    max-width: 40%;
  }
  .pcshop-hero-info h2 {
    font-size: 26px !important;
  }
  .pcshop-hero-price .woocommerce-Price-amount {
    font-size: 22px;
  }
}

/* ========================================
   TABLET (768px)
   ======================================== */
@media (max-width: 768px) {
  .pcshop-hero-showcase {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: 480px;
    min-height: 480px;
    padding: 0;
    gap: 0;
    overflow: hidden;
    border-radius: 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  }

  /* Image area - takes remaining space */
  .pcshop-hero-main-img {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108,92,231,0.12) 0%, rgba(245,87,108,0.08) 100%);
    border-radius: 0;
    overflow: hidden;
    padding: 20px 20px 0;
    min-height: 0;
  }
  .pcshop-hero-main-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(22,33,62,1));
    pointer-events: none;
    z-index: 2;
  }
  .pcshop-hero-main-img a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  .pcshop-hero-main-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 30px rgba(0,0,0,0.4));
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .pcshop-hero-main-img .pcshop-hero-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 9px !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 16px rgba(102,126,234,0.5);
    z-index: 3;
    font-weight: 700;
  }

  /* Thumbnails - compact strip */
  .pcshop-hero-thumbs {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 12px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    justify-content: center;
    background: rgba(22,33,62,0.8);
    flex-shrink: 0;
  }
  .pcshop-hero-thumbs::-webkit-scrollbar {
    display: none;
  }
  .pcshop-hero-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
    scroll-snap-align: center;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    transition: all 0.25s ease;
    cursor: pointer;
  }
  .pcshop-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .pcshop-hero-thumb:hover {
    border-color: rgba(255,255,255,0.4);
  }
  .pcshop-hero-thumb.active {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.25);
    transform: scale(1.06);
  }

  /* Product info - bottom section */
  .pcshop-hero-info {
    flex-shrink: 0;
    align-items: flex-start;
    text-align: left;
    padding: 16px 20px 20px;
    gap: 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(22,33,62,0.95);
    width: 100%;
  }
  .pcshop-hero-info h2 {
    font-size: 20px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.3px;
    font-weight: 700;
    margin: 0;
    color: #fff;
  }
  .pcshop-hero-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 2px 0 0;
  }
  .pcshop-hero-price .woocommerce-Price-amount {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
  }
  .pcshop-hero-price del .woocommerce-Price-amount {
    font-size: 15px;
    opacity: 0.45;
    font-weight: 500;
  }
  .pcshop-hero-price del {
    text-decoration: line-through;
  }
  .pcshop-hero-desc {
    display: none;
  }

  /* Buttons - pill row */
  .pcshop-hero-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 0;
    margin-top: 12px;
  }
  .btn-hero {
    flex: 1;
    padding: 12px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: center;
    white-space: nowrap;
  }
  .btn-hero-outline {
    flex: 1;
    padding: 11px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff;
  }
  .btn-hero-outline:hover {
    background: rgba(255,255,255,0.18) !important;
  }

  /* Carousel dots - above info */
  .pcshop-carousel-dots {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    justify-content: center;
    padding: 0;
    gap: 5px;
    background: rgba(22,33,62,0.95);
    flex-shrink: 0;
  }
  .pcshop-carousel-dot {
    width: 6px !important;
    height: 6px !important;
    background: rgba(255,255,255,0.3) !important;
  }
  .pcshop-carousel-dot.active {
    width: 20px !important;
    border-radius: 3px !important;
    background: #fff !important;
  }

  .pcshop-carousel-btn {
    display: none;
  }
}

/* ========================================
   PHONE (480px)
   ======================================== */
@media (max-width: 480px) {
  .pcshop-hero-showcase {
    height: 440px;
    min-height: 440px;
  }

  .pcshop-hero-thumbs {
    gap: 7px;
    padding: 10px 16px;
  }
  .pcshop-hero-thumb {
    width: 44px;
    height: 44px;
  }

  .pcshop-hero-info {
    padding: 14px 16px 18px;
  }
  .pcshop-hero-info h2 {
    font-size: 18px !important;
  }
  .pcshop-hero-price .woocommerce-Price-amount {
    font-size: 24px;
  }
  .btn-hero {
    padding: 11px 14px !important;
    font-size: 12px !important;
  }
  .btn-hero-outline {
    padding: 10px 14px !important;
    font-size: 12px !important;
  }
}

/* ========================================
   SMALL PHONE (360px)
   ======================================== */
@media (max-width: 360px) {
  .pcshop-hero-showcase {
    height: 400px;
    min-height: 400px;
  }
  .pcshop-hero-thumb {
    width: 40px;
    height: 40px;
  }
  .pcshop-hero-info h2 {
    font-size: 17px !important;
  }
  .pcshop-hero-price .woocommerce-Price-amount {
    font-size: 22px;
  }
}

