/* =========================================
   Reset & Base
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* :root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #ec4899;
  --accent-color: #f59e0b;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, .12);
  --shadow-lg: 0 10px 20px -5px rgba(0, 0, 0, .15);
  --shadow-xl: 0 20px 30px -8px rgba(0, 0, 0, .2);
} */
:root {
  /* PRAN red base */
  --primary-color: #ff0001;
  /* main brand red */
  --primary-dark: #ff0001;
  /* deeper red shade */
  --primary-light: #ff0001;
  /* lighter red tint */
  --secondary-color: #fff;
  /* warm complementary accent */
  --accent-color: #fff;
  /* gold-yellow accent */

  /* Neutral + base colors */
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-gradient: linear-gradient(135deg, #ff0001 0%, #ff0001 100%);
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --danger-color: #ff0001;
  /* same as brand red */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, .12);
  --shadow-lg: 0 10px 20px -5px rgba(0, 0, 0, .15);
  --shadow-xl: 0 20px 30px -8px rgba(0, 0, 0, .2);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   Header
========================================= */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--bg-gradient);
  color: #fff;
  padding: 12px 0;
  font-size: 14px;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-contact span {
  margin-right: 20px;
}

.header-main {
  padding: 20px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color .3s;
  font-size: 15px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

/* =========================================
   Hero Slider
========================================= */
.hero-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
/*   background: var(--bg-light); */
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  text-align: center;
  max-width: 700px;
  padding: 40px;
}

.slide-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.slide-content p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--bg-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all .3s ease;
  border: none;
  cursor: pointer;
  font-size: 15px;
  box-shadow: var(--shadow-md);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  border: none;
  cursor: pointer;
  transition: all .3s;
}

.slider-dot.active {
  background: #fff;
  width: 32px;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}

/* =========================================
   Sections
========================================= */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   Category Grid
========================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.category-card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .4s ease;
  text-decoration: none;
  color: var(--text-dark);
  border: 2px solid var(--border-color);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category-info {
  padding: 20px;
  text-align: center;
}

.category-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.category-info p {
  color: var(--text-light);
  font-size: 14px;
}

/* =========================================
   PRODUCT GRID + CARD (final, conflict-free)
========================================= */
/* Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(99, 102, 241, .35);
}

/* Image area — consistent size */
.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fff;
}

@supports not (aspect-ratio: 1 / 1) {
  .product-image-wrapper {
    height: 240px;
  }
}

.product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

/* Optional subtle zoom without layout shift */
.product-card:hover .product-image {
  transform: scale(1.03);
  transition: transform .25s ease;
}

/* Badge */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: var(--shadow-md);
}

/* Content */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  flex: 1;
}

.product-title {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.product-title:hover {
  color: var(--primary-color);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.current-price {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .2px;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.old-price {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-description {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.5;
}

/* Footer actions pinned to bottom */
.product-footer {
  margin-top: auto;
  padding: 0 16px 16px;
}

.btn-block {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Buttons (shared) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--bg-gradient);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px -10px rgba(99, 102, 241, .8);
}

/* Skeletons (loading) */
.product-card.skeleton {
  pointer-events: none;
}

.product-card.skeleton .product-image-wrapper {
  aspect-ratio: 4 / 3;
}

.product-card.skeleton .skeleton-box,
.product-card.skeleton .skeleton-line {
  background: linear-gradient(100deg, #f2f3f5 40%, #eceff3 50%, #f2f3f5 60%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.product-card.skeleton .skeleton-box {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.product-card.skeleton .skeleton-line {
  height: 12px;
  border-radius: 6px;
}

.product-card.skeleton .product-info {
  padding-top: 10px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Small screens: square thumbnails if you prefer */
@media (max-width: 480px) {
  .product-image-wrapper {
    aspect-ratio: 1 / 1;
  }
}

/* =========================================
   Product Details Page
========================================= */
.product-details {
  padding: 60px 0;
}

.product-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
}

.thumbnail-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.thumbnail {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .3s;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--primary-color);
}

.product-details-info h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.product-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 14px;
}

.product-details-price {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.product-details-price .current-price {
  font-size: 42px;
}

.product-details-price .old-price {
  font-size: 28px;
}

.discount-badge {
  background: var(--danger-color);
  color: #fff;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 600;
}

.product-full-description {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 16px;
}

.product-specs {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.product-specs h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.spec-list {
  list-style: none;
}

.spec-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 600;
  color: var(--text-dark);
}

.spec-value {
  color: var(--text-light);
}

/* =========================================
   Contact Page
========================================= */
.contact-section {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-card {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 12px;
}

.contact-info-card h3 {
  font-size: 24px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: start;
  gap: 20px;
  margin-bottom: 25px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-details p {
  color: var(--text-light);
}

.contact-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 15px;
  transition: all .3s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* =========================================
   Company Profile
========================================= */
.company-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

.company-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.company-hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.company-content {
  padding: 80px 0;
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.company-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
}

.company-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.company-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.stat-card {
  text-align: center;
  padding: 30px;
  background: var(--bg-light);
  border-radius: 12px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--text-light);
  font-size: 16px;
}

/* =========================================
   Footer
========================================= */
.footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
}

/* optional: soft overlay shimmer for depth */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 70%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.05), transparent 70%);
  z-index: 0;
}

.footer>* {
  position: relative;
  z-index: 1;
}


.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3,
.footer-links h4 {
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-about p {
  color: rgba(255, 255, 255, .7);
  line-height: 1.8;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all .3s;
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  transition: color .3s;
}

.footer-links ul li a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .7);
}

/* =========================================
   Breadcrumb
========================================= */
.breadcrumb {
  background: var(--bg-light);
  padding: 20px 0;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  gap: 10px;
  align-items: center;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb-list a {
  color: var(--text-light);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--primary-color);
}

.breadcrumb-list li:not(:last-child)::after {
  content: '›';
  color: var(--text-light);
}

/* =========================================
   Products Page Layout (filters + grid)
========================================= */
.products-page {
  padding: 60px 0;
}

.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.filter-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.filter-section {
  background: var(--bg-white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.filter-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.filter-option label {
  cursor: pointer;
  flex: 1;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 1024px) {
  .products-layout {
    grid-template-columns: 250px 1fr;
    gap: 30px;
  }

  .product-details-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: var(--shadow-xl);
    transition: left .3s;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-slider {
    height: 400px;
  }

  .slide-content h1 {
    font-size: 32px;
  }

  .slide-content p {
    font-size: 16px;
  }

  .section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
  }

  .product-details-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-gallery {
    position: static;
  }

  .main-image {
    height: 400px;
  }

  .product-details-info h1 {
    font-size: 28px;
  }

  .product-details-price .current-price {
    font-size: 32px;
  }

  .contact-grid,
  .company-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .company-hero h1 {
    font-size: 36px;
  }

  .company-hero p {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .header-top {
    font-size: 12px;
  }

  .header-top .container {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .header-contact span {
    margin-right: 10px;
  }

  .logo {
    font-size: 24px;
  }

  .hero-slider {
    height: 350px;
  }

  .slide-content {
    padding: 20px;
  }

  .slide-content h1 {
    font-size: 24px;
  }

  .slide-content p {
    font-size: 14px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .main-image {
    height: 300px;
  }

  .thumbnail-images {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-details-info h1 {
    font-size: 24px;
  }

  .product-details-price .current-price {
    font-size: 28px;
  }

  .product-details-price .old-price {
    font-size: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .company-hero {
    padding: 60px 0;
  }

  .company-hero h1 {
    font-size: 28px;
  }

  .company-hero p {
    font-size: 16px;
  }

  .company-text h2 {
    font-size: 24px;
  }

  .stat-number {
    font-size: 36px;
  }
}

/* --- Hero slider image layering --- */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

/* Put the background image behind content without z-index:-1 issues */
.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* behind content, but still visible */
  pointer-events: none;
}

/* Ensure content sits above the image */
.slide-content {
  position: relative;
  z-index: 1;
}

/* Optional: darken image slightly for readability */
.hero-slider::after {
  content: '';
  position: absolute;
  inset: 0;
/*   background: linear-gradient(0deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .25)); */
  pointer-events: none;
  z-index: 0;
  /* same layer as image; content stays above via z-index:1 */
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 22px;
}

.company-logo {
  height: 65px;
  width: auto;
  display: block;
  object-fit: contain;
  margin: 0;
  padding: 0;
  background: transparent;
  line-height: 0;
  border: none;
  vertical-align: middle;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.15));
  /* soft shadow for contrast */
}

/* .header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--secondary-color);
}
 */



/* =========================================
   Category Grid — 8 per row (full style)
   Paste this AFTER your existing CSS
========================================= */

/* Grid: force 8 columns on large screens */
@media (min-width: 1200px) {
  .category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
    /* tighter spacing to fit 8 */
    margin-bottom: 40px;
  }

  .category-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }

  .category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, .35);
    /* subtle brand tint */
  }

  /* Smaller image to fit 8 per row */
  .category-image {
    width: 100%;
    height: 120px;
    /* ↓ from 200px */
    object-fit: cover;
    display: block;
    background: #fff;
  }

  .category-info {
    padding: 10px;
    /* ↓ from 20px */
    text-align: center;
  }

  .category-info h3 {
    font-size: 14px;
    /* ↓ from 20px */
    line-height: 1.25;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .category-info p {
    font-size: 12px;
    /* ↓ from 14px */
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
  }
}

/* Smooth step-downs so it still looks good on smaller screens */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }

  .category-image {
    height: 130px;
  }

  .category-info {
    padding: 12px;
  }

  .category-info h3 {
    font-size: 15px;
  }

  .category-info p {
    font-size: 12px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .category-image {
    height: 150px;
  }

  .category-info {
    padding: 14px;
  }

  .category-info h3 {
    font-size: 16px;
  }

  .category-info p {
    font-size: 13px;
  }
}

@media (min-width: 600px) and (max-width: 767.98px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .category-image {
    height: 150px;
  }

  .category-info h3 {
    font-size: 15px;
  }

  .category-info p {
    font-size: 12px;
  }
}

@media (max-width: 599.98px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .category-image {
    height: 140px;
  }

  .category-info {
    padding: 12px;
  }

  .category-info h3 {
    font-size: 14px;
  }

  .category-info p {
    font-size: 12px;
  }
}

/* Nice focus style for accessibility */
.category-card:focus-visible,
.category-card:has(.category-image:focus-visible) {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .25);
  border-color: var(--primary-color);
}

/* Optional: subtle “press” effect on tap/click */
.category-card:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* ---- Product grid: 4 → 3 → 2 → 2 (mobile) ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* lg */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* md */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* sm (phones) — force TWO per row */
@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* xs (very narrow phones) — optionally fall back to one column */
@media (max-width: 360px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================
   Core Values (dynamic)
========================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 26px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, .35);
}

/* Icon / Image wrapper */
.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .06), rgba(236, 72, 153, .06));
}

.value-icon img {
  max-width: 42px;
  max-height: 42px;
  display: block;
}

.value-icon i {
  font-size: 38px;
  color: var(--primary-color);
}

/* Title + Excerpt */
.value-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  margin: 6px 0 6px;
}

.value-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.55;
  max-width: 30ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /* clamp to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tighter layout on wide screens (up to 8 per row nicely) */
@media (min-width: 1200px) {
  .values-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
  }

  .value-card {
    padding: 22px 14px;
  }

  .value-title {
    font-size: 14px;
  }

  .value-excerpt {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .value-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
  }

  .value-icon img {
    max-width: 36px;
    max-height: 36px;
  }

  .value-icon i {
    font-size: 32px;
  }
}

/* Mid breakpoints */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .values-grid {
    gap: 16px;
  }

  .value-excerpt {
    -webkit-line-clamp: 3;
  }
}

/* Small screens */
@media (max-width: 480px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .value-card {
    padding: 18px 12px;
    border-radius: 12px;
  }

  .value-icon {
    width: 52px;
    height: 52px;
  }

  .value-icon img {
    max-width: 34px;
    max-height: 34px;
  }

  .value-icon i {
    font-size: 30px;
  }
}