/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Aug 30 2026 | 00:55:20 */
/* ===== POPULAR CATEGORIES – HASSAN COMPUTER BRAND COLORS ===== */
/* Scoped under .catti – Primary: #1E3B86 | Accent: #0395D4 | Black/White */

.catti *,
.catti *::before,
.catti *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.catti .categories-section {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 32px;
  padding: 44px 32px 50px;
  box-shadow: 0 20px 60px rgba(0, 20, 40, 0.08);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ----- Section Header ----- */
.catti .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.catti .section-header > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.catti .section-badge {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #1E3B86, #0395D4);
  padding: 4px 14px;
  border-radius: 40px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.catti .section-header h2 {
  font-size: 30px;
  font-weight: 700;
  color: #1E3B86;
  letter-spacing: -0.5px;
  margin: 0;
}

.catti .view-all {
  font-size: 14px;
  font-weight: 600;
  color: #0395D4;
  text-decoration: none;
  padding: 8px 18px;
  border: 2px solid #0395D4;
  border-radius: 40px;
  transition: all 0.25s ease;
}

.catti .view-all:hover {
  background: #1E3B86;
  color: #ffffff;
  border-color: #1E3B86;
}

/* ----- Category Grid ----- */
.catti .categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

/* ----- Category Card ----- */
.catti .category-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid #eef2f8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  position: relative;
}

.catti .category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, transparent 40%, #0395D4 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.catti .category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(3, 149, 212, 0.15);
  border-color: #b8dff0;
}

.catti .category-card:hover::after {
  opacity: 1;
}

/* ----- Image Wrapper (1:1) ----- */
.catti .category-image-wrap {
  position: relative;
  padding-top: 100%;
  background: #f8fafd;
  overflow: hidden;
}

.catti .category-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.catti .category-card:hover .category-image-wrap img {
  transform: scale(1.08);
}

/* ----- Content (text area) ----- */
.catti .category-content {
  padding: 18px 12px 20px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-top: 1px solid #f0f4fa;
}

.catti .category-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1E3B86;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
  transition: color 0.3s ease;
}

.catti .category-card:hover .category-content h3 {
  color: #0395D4;
}

.catti .category-content .product-count {
  font-size: 12px;
  font-weight: 500;
  color: #555555;
  background: #f1f4fa;
  padding: 2px 14px;
  border-radius: 30px;
  transition: background 0.3s ease, color 0.3s ease;
}

.catti .category-card:hover .product-count {
  background: #e1f0f8;
  color: #0395D4;
}

/* ===== RESPONSIVE (scoped) ===== */

/* Large tablets / small desktops */
@media (max-width: 1100px) {
  .catti .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .catti .categories-section {
    padding: 32px 24px 40px;
  }
  .catti .section-header h2 {
    font-size: 26px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .catti .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .catti .categories-section {
    padding: 28px 16px 34px;
    border-radius: 24px;
  }
  .catti .section-header h2 {
    font-size: 22px;
  }
  .catti .section-badge {
    font-size: 11px;
    padding: 3px 12px;
  }
  .catti .view-all {
    font-size: 13px;
    padding: 6px 14px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .catti .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .catti .categories-section {
    padding: 20px 12px 28px;
    border-radius: 20px;
  }
  .catti .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .catti .section-header h2 {
    font-size: 20px;
  }
  .catti .section-header > div {
    gap: 10px;
  }
  .catti .view-all {
    align-self: flex-start;
    font-size: 12px;
    padding: 5px 14px;
  }
  .catti .category-content {
    padding: 14px 8px 16px;
  }
  .catti .category-content h3 {
    font-size: 13px;
  }
  .catti .category-content .product-count {
    font-size: 11px;
    padding: 2px 10px;
  }
}