/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Khula:wght@300;400;600&display=swap');

@font-face {
    font-family: 'The Seasons';
    src: url('https://thegardenfleurs.com/wp-content/uploads/2026/01/The-Seasons-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* Flower Grid Styles */
.flower-grid-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Categories Filter */
.flower-categories {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 18px 40px;
  border: 1px solid #670B05;
  border-radius: 40px;
  flex-wrap: wrap;
  width: fit-content;
  margin: 0 auto 32px;
}

.category-btn {
  font-family: "The Seasons"!important;
  background: transparent;
  border: none;
  font-size: 18px;
  font-family: inherit;
  color: #670B05;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
  text-transform: capitalize;
}

.category-btn::before {
  content: '•';
  position: absolute;
  left: -8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-btn:hover {
  color: #000;
}

.category-btn.active {
  color: #670B05;
  text-decoration: underline!important;
  font-weight: 600;
}

.category-btn.active::before {
  opacity: 1;
}

/* Sort Dropdown */
.flower-sort {
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.sort-dropdown {
  position: relative;
}

.sort-btn {
  background: transparent;
  border: 1px solid #ddd;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.sort-btn:hover {
  border-color: #999;
}

.sort-btn .arrow-down {
  transition: transform 0.3s ease;
  font-size: 10px;
}

.sort-dropdown.active .sort-btn .arrow-down {
  transform: rotate(180deg);
}

.sort-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.sort-dropdown.active .sort-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sort-option {
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 14px;
  color: #670B05;
}

.sort-option:hover {
  background: #f5f5f5;
}

.sort-option.active {
  background: #f0f0f0;
  font-weight: 600;
  color: #000;
}

/* Products Grid */
.flower-grid-container {
  position: relative;
  min-height: 400px;
}

.flower-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(416px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .flower-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

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

.flower-card:hover {
  transform: translateY(-5px);
}

/* Image Wrapper */
.flower-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.flower-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.flower-card:hover .flower-image-wrapper img {
  transform: scale(1.05);
}

.flower-image-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Size Badge */
.size-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #670B05;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Hover Add to Cart */
.hover-cart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 5;
}

.flower-card:hover .hover-cart {
  opacity: 1;
}

.add-to-cart-btn {
  border: none;
  background: #F9F5F7;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 400;
  font-family: "The Seasons" !important;
  width: fit-content;
  margin: 0 auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  color: #670B05;
}

.add-to-cart-btn:hover {
  background: white;
  transform: scale(1.05);
}

.add-to-cart-btn svg {
  width: 18px;
  height: 18px;
}

/* Product Info */
.flower-info {
  padding: 10px 0 0 0;
}

.flower-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.flower-title {
  margin: 0;
  font-family: 'The Seasons', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;
  text-transform: capitalize;
  flex: 1;
}

.flower-title a {
  color: #670B05;
  text-decoration: none;
  transition: color 0.3s ease;
}

.flower-title a:hover {
  color: #000;
}

/* Bottom Section */
.flower-price {
  display: block;
  font-family: 'Khula', sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
  text-transform: uppercase;
  color: #000;
}

.flower-price .amount {
  font-weight: 300;
}

/* Size Variations */
.flower-variations {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.size-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #bf9897;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #660c05;
}

.size-btn:hover {
  border-color: #670B05;
  color: #670B05;
}

.size-btn.active {
  background: #670B05;
  color: white;
  border-color: #670B05;
}

/* Loading Spinner */
.flower-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #670B05;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.flower-grid.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* No Products Message */
.no-products {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: #666;
  grid-column: 1 / -1;
}

/* Load More */
.flower-load-more-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 0;
  padding-bottom: 20px;
}

.flower-load-more-btn {
  border: none;
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-family: "The Seasons", serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #670B05;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.flower-load-more-btn:hover:not(:disabled) {
  background: #ffffff;
  transform: translateY(-1px);
}

.flower-load-more-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.flower-load-more-end {
  font-family: 'Khula', sans-serif;
  font-size: 14px;
  color: #670B05;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
	.add-to-cart-btn {
		padding: 12px 15px;
	}
	
	.flower-grid-wrapper {
		padding: 40px 0px;
	}
	
  .flower-categories {
    padding: 15px;
    gap: 0px;
  }
  
  .category-btn {
    font-size: 14px;
    padding: 6px;
  }
  
  .flower-title-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .flower-title {
    font-size: 16px;
  }
  
  .flower-price {
    font-size: 14px;
  }
  
  .size-btn {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  
  .flower-variations {
    gap: 5px;
  }
}
