/* ==========================================================================
   SHOP.CSS - MODERN CATALOG & PRODUCT SHOWCASE STYLES
   Project: High Resolution Technologies - E-Commerce Storefront
   ========================================================================== */

/* --- 1. HERO BANNER SECTION (Exact Match with Reference Design) --- */
.shop-hero-section {
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 50%, #eff6ff 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.shop-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0d9488;
  margin-bottom: 0.75rem;
}

.hero-main-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-main-title .highlight {
  color: #0d9488;
}

.hero-description {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 2rem;
}

/* 3 Feature Badges in Row */
.hero-feature-badges {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #ccfbf1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.08);
}

.feature-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  display: block;
  line-height: 1.2;
}

.feature-sub {
  font-size: 0.76rem;
  color: #64748b;
  display: block;
}

/* Hero Right Side Photography Display */
.shop-hero-img-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.15), 0 6px 18px rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #ffffff;
}

.shop-hero-img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-hero-img-box:hover .shop-hero-img {
  transform: scale(1.03);
}

/* --- 2. BREADCRUMB & TOOLBAR BAR --- */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2.75rem 0 2.25rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.shop-breadcrumbs {
  font-size: 0.92rem;
  color: #64748b;
}

.shop-breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.shop-breadcrumbs a:hover {
  color: #0d9488;
}

.shop-breadcrumbs span {
  color: #0f172a;
  font-weight: 700;
}

.shop-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Search Input */
.shop-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.55rem 1rem;
  width: 260px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.shop-search-bar:focus-within {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.shop-search-bar input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.88rem;
  color: #0f172a;
}

.shop-search-bar input::placeholder {
  color: #94a3b8;
}

/* Sort Select */
.shop-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #64748b;
}

.shop-sort-select {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.55rem 1.25rem 0.55rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.shop-sort-select:focus {
  border-color: #0d9488;
}

/* --- 3. MODERN PRODUCT GRID (Full Width, 3 Columns) --- */
.modern-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.25rem;
  margin-bottom: 5.5rem;
}

/* --- 4. MODERN PRODUCT CARD --- */
.modern-product-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -8px rgba(13, 148, 136, 0.18), 0 6px 16px rgba(15, 23, 42, 0.04);
  border-color: rgba(13, 148, 136, 0.35);
}

/* Card Top Bar with Badges and Wishlist */
.card-top-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

.card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: 30px;
  letter-spacing: 0.03em;
  text-transform: capitalize;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.badge-new {
  background: #10b981;
  color: #ffffff;
}

.badge-bestseller {
  background: #0f766e;
  color: #ffffff;
}

.badge-limited {
  background: #f59e0b;
  color: #ffffff;
}

.wishlist-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.25s ease;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.wishlist-btn:hover {
  color: #ef4444;
  background: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.18);
}

/* Product Thumbnail Image */
.card-image-box {
  position: relative;
  background: #ffffff;
  padding: 2rem 1.5rem 1.5rem;
  aspect-ratio: 1 / 0.95;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
}

.card-img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.06));
}

.modern-product-card:hover .card-img {
  transform: scale(1.08);
}

/* Product Card Auto Image Slider */
.card-image-box.card-slider-box {
  padding: 1.5rem 1rem 1.6rem;
  overflow: hidden;
  position: relative;
}

.card-slider-link {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.card-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.card-slider-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-slider-slide .card-img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.06));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-product-card:hover .card-slider-slide .card-img {
  transform: scale(1.08);
}

/* Slider Dots Indicator */
.card-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 6;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.card-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-slider-dot:hover {
  background: #94a3b8;
}

.card-slider-dot.active {
  width: 18px;
  border-radius: 999px;
  background: #0d9488;
}

/* Card Body Content (Product Name & Enquiry Badge) */
.card-body {
  padding: 1.15rem 1rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  background: #ffffff;
  flex: 1;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

.card-title a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}

.card-title a:hover,
.modern-product-card:hover .card-title a {
  color: #0d9488;
}

.card-desc {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1rem;
  min-height: 2.6em;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 1.25rem;
}

.card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
}

.card-price-unit {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Action Buttons (View Details + Cart Icon) */
.card-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.btn-view-details {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0d9488;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-view-details:hover {
  background: #0f766e;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-add-cart-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0d9488;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.btn-add-cart-icon:hover {
  background: #f0fdfa;
  border-color: #0d9488;
  color: #0f766e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.15);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .shop-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-main-title {
    font-size: 2.75rem;
  }
  .modern-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 640px) {
  .shop-hero-section {
    padding: 2.5rem 0 2rem;
  }
  .hero-main-title {
    font-size: 2.2rem;
  }
  .hero-feature-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }

  .hero-feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  .feature-icon-box {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 9px;
    flex-shrink: 0;
  }

  .feature-icon-box svg {
    width: 16px;
    height: 16px;
  }

  .feature-title {
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
  }

  .feature-sub {
    font-size: 0.68rem;
    line-height: 1.15;
    white-space: nowrap;
  }
  /* Breadcrumbs on left & Search bar on right side-by-side in one horizontal row */
  .shop-toolbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1.25rem;
    flex-wrap: nowrap;
    width: 100%;
  }

  .shop-breadcrumbs {
    font-size: 0.84rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .shop-toolbar-controls {
    width: auto;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .shop-search-bar {
    width: 100%;
    max-width: 180px;
    padding: 0.42rem 0.65rem;
    border-radius: 10px;
    gap: 6px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  }

  .shop-search-bar svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }

  .shop-search-bar input {
    font-size: 0.78rem;
    width: 100%;
  }

  /* Products in 1 row 2 columns (2-column grid on mobile) */
  .modern-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 3.5rem;
  }

  .modern-product-card {
    border-radius: 14px;
  }

  .card-image-box {
    padding: 1rem 0.65rem 0.75rem;
    aspect-ratio: 1 / 0.95;
    min-height: 120px;
  }

  .card-img {
    max-height: 110px;
  }

  .card-body {
    padding: 0.75rem 0.45rem 0.85rem;
    gap: 0.4rem;
  }

  .card-title {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .card-enquiry-badge {
    padding: 0.32rem 0.65rem;
    font-size: 0.72rem;
    gap: 4px;
  }

  /* Stationery Products in 2 columns */
  .stationery-product-card {
    padding: 0.75rem 0.5rem 0.7rem;
    border-radius: 14px;
  }

  .stationery-card-image-stage {
    aspect-ratio: 1 / 0.92;
    margin-bottom: 0.5rem;
    border-radius: 10px;
  }

  .stationery-card-img {
    max-height: 95px;
  }

  .stationery-card-title {
    font-size: 0.74rem;
  }

  .stationery-enquiry-badge {
    padding: 0.26rem 0.55rem;
    font-size: 0.7rem;
  }
}
