/* Category Selector Styles - Converted from Shopify Liquid */

.homepage-categories {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.banner-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.banner-image-container {
  position: relative;
  width: 100%;
  min-height: 400px; /* Minimum height to ensure content fits */
  height: 0;
  padding-bottom: 65%; /* Fallback aspect ratio for larger screens */
  overflow: hidden;
}

.banner-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.2); /* Zoom effect */
  width: 110%;
  height: 110%;
  object-fit: cover;
}

.category-selection {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%; 
  max-width: 800px;
  padding: 35px 30px; /* Increased vertical padding */
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  backdrop-filter: blur(3px);
}

.category-content {
  width: 100%;
}

.category-selection h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #333;
  font-size: 28px;
}

.category-selection p {
  margin-bottom: 20px;
  color: #555;
}

/* Desktop layout (horizontal) */
.category-buttons {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 25px;
}

.category-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 120px;
  padding: 0;
  margin: 0;
}

.category-button:hover {
  transform: translateY(-5px);
}

.icon-container {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  box-shadow: 0 3px 10px rgba(221, 39, 11, 0.2);
  margin-bottom: 12px;
  border: 2px solid rgba(221, 39, 11, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
  flex-grow: 0;
  position: relative;
}

.icon-container img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.category-button:hover .icon-container {
  border-color: #d04833;
  box-shadow: 0 5px 15px rgba(221, 39, 11, 0.3);
}

.category-button span {
  color: #333;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  line-height: 1.2;
  margin-top: 0;
}
/* Styling */
@media (max-width: 930px) {
    .banner-image-container {
    min-height: 60vh; /* Responsive height based on viewport */
    width: 120%;
  }
}
/* Tablet Styling */
@media (max-width: 768px) {
  .banner-image-container {
    min-height: 70vh; /* Responsive height based on viewport */
    width: 170%;
  }
  
  .category-selection {
    padding: 30px 20px;
    width: 85%;
    max-width: 500px;
  }
  
  .category-selection h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .category-selection p {
    font-size: 15px;
    margin-bottom: 18px;
  }
  
  .category-buttons {
    gap: 15px;
    margin-top: 15px;
  }
  
  .icon-container {
    width: 70px; /* Reduced from 80px */
    height: 70px; /* Reduced from 80px */
  }
}

/* Mobile Styling - Switch to vertical layout */
@media (max-width: 576px) {
  .homepage-categories {
    padding: 5px;
  }
  
  .banner-container {
    border-radius: 10px;
  }
  
  .banner-image-container {
    min-height: 100vh; /* Reduced to account for mobile browser chrome */
  }
  
  .category-selection {
    padding: 25px 15px;
    width: 85%;
    max-width: 450px;
    border-radius: 10px;
  }
  
  .category-selection h2 {
    font-size: 20px;
  }
  
  .category-selection p {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  /* Switch to vertical layout for mobile */
  .category-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
  }
  
  .category-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 300px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 12px;
    border: 2px solid rgba(221, 39, 11, 0.1);
    margin: 0;
  }
  
  .category-button:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #d04833;
    box-shadow: 0 5px 15px rgba(221, 39, 11, 0.3);
  }
  
  .icon-container {
    width: 65px;
    height: 65px;
    min-width: 65px;
    min-height: 65px;
    margin-right: 15px;
    margin-bottom: 0;
    flex-shrink: 0;
    flex-grow: 0;
    position: relative;
  }
  
  .category-button span {
    font-size: 14px;
    text-align: left;
    flex: 1;
    margin-top: 0;
    line-height: 1.3;
  }
  
  .icon-container img {
    width: 25px;
    height: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Very Small Screens */
@media (max-width: 360px) {
  .banner-container {
    border-radius: 8px;
  }
  
  .banner-image-container {
    min-height: 70vh; /* Reduced height to eliminate top gap on very small screens */
  }
  
  .category-selection {
    padding: 20px 12px;
    width: 90%;
    border-radius: 8px;
  }
  
  .category-selection h2 {
    font-size: 18px;
  }
  
  .category-selection p {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  .icon-container {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    flex-shrink: 0;
    flex-grow: 0;
    position: relative;
  }
  
  .category-button span {
    font-size: 13px;
    flex: 1;
    margin-top: 0;
    line-height: 1.2;
  }
  
  .icon-container img {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Extra Small Screens */
@media (max-width: 305px) {
  .banner-image-container {
    min-height: 80vh; /* Slightly more space for extra small screens */
  }
}

/* Update button highlight colors */
.category-button:hover .icon-container {
  border-color: #d04833;
  box-shadow: 0 5px 15px rgba(221, 39, 11, 0.3);
}

/* Update active/selected states */
.category-button.active .icon-container {
  border-color: #d04833;
  box-shadow: 0 5px 15px rgba(221, 39, 11, 0.3);
}

/* Update any text highlights or accents */
.category-button:hover span,
.category-button.active span {
  color: #d04833;
}

/* Update any call-to-action buttons */
.category-cta-button {
  background-color: #d04833;
  color: white;
}

.category-cta-button:hover {
  background-color: #c12209;
}

/* Update any banner gradients or overlays that use the brand color */
.banner-overlay {
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(221, 39, 11, 0.1));
} 