/* shop.css - Styles for shop pages */

/* Hero Section Styles */
.shop-hero {
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
  z-index: 1;
}

.shop-hero .container {
  position: relative;
  z-index: 2;
}

/* Category Card Styles */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

/* Disable transform on cards with dropdowns to prevent z-index stacking issues */
.card.content-gray-bg {
  overflow: visible;
}

.card.content-gray-bg:hover {
  transform: none;
}

/* Only apply hover transform to cards without dropdowns */
.card:not(.content-gray-bg):hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* On touch devices, disable hover transform entirely */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
  }
}

.card .card-img-top {
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.d-flex:hover .feature-icon {
  transform: scale(1.1);
}

/* Feature Section Styles */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* FAQ Accordion Styles */
.accordion-button:not(.collapsed) {
  color: var(--ssc-primary);
  background-color: rgba(25, 148, 80, 0.1);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(25, 148, 80, 0.25);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23199450'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Location dropdown z-index fix for mobile */
.location-dropdown .dropdown-menu {
  z-index: 1050 !important;
}

/* Highlight active location in dropdown */
.location-dropdown .dropdown-item.active,
.location-dropdown .dropdown-item.active:hover {
  background-color: var(--ssc-primary, #199450);
  color: white;
  font-weight: 600;
}

.location-dropdown .dropdown-item.active::before {
  content: '✓ ';
  margin-right: 0.5rem;
}

/* On mobile, use fixed positioning to break out of parent stacking context */
@media (max-width: 991.98px) {
  .location-dropdown .dropdown-menu {
    position: fixed !important;
    transform: translate3d(0, 0, 0) !important;
  }
  
  /* Ensure parent card allows dropdown to overflow */
  .card.content-gray-bg .card-body {
    overflow: visible !important;
  }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .shop-hero {
    min-height: 25vh;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  
  .feature-icon i {
    font-size: 1.5rem !important;
  }
}

/* Card category labels */
.position-absolute.top-0.end-0 {
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

/* CTA section enhancements */
.bg-primary.text-white {
  position: relative;
  overflow: hidden;
}

.bg-primary.text-white::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.1;
}
