/* Kaira Custom CSS for Thejoflowers - Korean Florist Theme */

:root {
  --primary-color: #ff6b9d;
  --secondary-color: #c44569;
  --accent-color: #f8b500;
  --light-pink: #ffe0ec;
  --soft-white: #fff5f8;
}

body.homepage {
  background-color: #fffaf0;
}

/* New Season Flowers Grid Fix */
#new-arrival .product-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

#new-arrival .product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

#new-arrival .image-holder {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1; /* Membuat aspect ratio 1:1 */
}

#new-arrival .image-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#new-arrival .product-item:hover .image-holder img {
  transform: scale(1.1);
}

#new-arrival .product-content {
  padding: 1rem;
  background: #fff;
  flex-grow: 0;
}

#new-arrival .btn-icon.btn-wishlist {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #ff6b9d;
  transition: all 0.3s ease;
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#new-arrival .btn-icon.btn-wishlist:hover {
  background: #ff6b9d;
  color: white;
  transform: scale(1.1);
}

/* Ensure proper grid display on all screen sizes */
@media (max-width: 991px) {
  #new-arrival .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (max-width: 767px) {
  #new-arrival .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575px) {
  #new-arrival .product-content h6 {
    font-size: 0.85rem;
  }

  #new-arrival .product-content p {
    font-size: 0.75rem;
  }
}

/* Navbar customization */
.navbar.bg-light {
  background-color: #ffffff !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Button customization */
.btn-common {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white !important;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-common:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 107, 157, 0.3);
}

.btn-link {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.btn-link:hover {
  color: var(--secondary-color) !important;
}

.btn-dark {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
}

/* Banner styling */
.banner-item {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: white;
  transition: transform 0.3s ease;
}

.banner-item:hover {
  transform: translateY(-5px);
}

/* Product card styling */
.product-item {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  background: white;
  transition: all 0.3s ease;
}

.product-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-item .product-content {
  padding: 1.25rem;
  background: white;
}

.product-item .product-content h5 {
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

/* Removed old data-after selector - now using .add-to-cart-link in spring-florist-theme.css */

.btn-wishlist {
  background: rgba(255, 255, 255, 0.9);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 15px;
  right: 15px;
  transition: all 0.3s ease;
  z-index: 10;
}

.btn-wishlist:hover {
  background: var(--primary-color);
  color: white;
}

/* Product badges */
.product-item .badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  z-index: 5;
}

.product-item .image-holder {
  position: relative;
  overflow: hidden;
}

/* Category items */
.cat-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cat-item .image-holder {
  position: relative;
  width: 100%;
  padding-top: 125%; /* Aspect ratio 4:5 (800:1000) - portrait orientation seperti Category 2 */
  overflow: hidden;
}

.cat-item .image-holder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image fills container without distortion */
  object-position: center;
}

.cat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 30px;
}

/* Testimonials */
.testimonial-item {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin: 15px;
}

.testimonial-item blockquote p {
  font-style: italic;
  color: #666;
  font-size: 18px;
  line-height: 1.6;
}

/* Newsletter section */
.newsletter {
  background: linear-gradient(135deg, var(--light-pink), var(--soft-white)) !important;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ff6b9d" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.form-control-lg {
  border-radius: 25px;
  border: 2px solid #e0e0e0;
  padding: 12px 25px;
  font-size: 16px;
}

.form-control-lg:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.25);
}

/* Footer */
#footer {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

#footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

#footer a:hover {
  color: white;
}

.widget-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Instagram section */
.insta-item {
  position: relative;
  overflow: hidden;
}

.insta-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.insta-item:hover::before {
  opacity: 0.7;
}

.insta-item img {
  transition: transform 0.3s ease;
}

.insta-item:hover img {
  transform: scale(1.1);
}

/* Swiper customization */
.swiper-pagination-bullet {
  background: var(--primary-color);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

.icon-arrow {
  background: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon-arrow:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.icon-arrow svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.image-zoom-effect img {
  transition: transform 0.5s ease;
}

.image-zoom-effect:hover img {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .testimonial-item {
    padding: 30px 20px;
    margin: 10px 5px;
  }

  .banner-item,
  .product-item {
    border-radius: 15px;
  }

  .btn-common {
    padding: 10px 25px;
    font-size: 14px;
  }
}

/* Loading animation with beautiful CSS animation */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Match homepage gradient background */
  background: linear-gradient(180deg, 
    #87CEEB 0%,      /* Sky blue top */
    #aad8ff 20%,     /* Light sky */
    #B8E2FF 40%,     /* Soft blue */
    #C4E8FF 60%,     /* Lighter */
    #D4F1FF 80%,     /* Very light */
    #E8F6FF 100%     /* Almost white horizon */
  );
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.preloader-logo {
  max-width: 200px;
  width: 50%;
  height: auto;
  animation: floatBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(135, 206, 235, 0.3));
}

/* Floating bounce animation */
@keyframes floatBounce {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  25% {
    transform: translateY(-15px) scale(1.05);
  }
  50% {
    transform: translateY(0px) scale(1);
  }
  75% {
    transform: translateY(-8px) scale(1.02);
  }
}

.preloader-text {
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.preloader-text .brand-name {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #333333;
  margin: 0;
  letter-spacing: 1px;
  animation: slideInFromLeft 0.8s ease-out;
}

.preloader-text .brand-tagline {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-style: italic;
  color: #666666;
  margin: 5px 0 0 0;
  letter-spacing: 2px;
  animation: slideInFromRight 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.preloader::after {
  content: '';
  display: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Landscape Banner Styles */
.landscape-banner {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 0;
  overflow: hidden;
}

.landscape-banner .image-holder {
  position: relative;
  width: 100%;
  height: 100%;
}

.landscape-banner .banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.landscape-banner:hover .banner-image {
  transform: scale(1.05);
}

.landscape-banner .banner-content {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  z-index: 2;
}

.banner-title {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}

.banner-description {
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  max-width: 600px;
}

.banner-button {
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.banner-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Main Swiper Navigation */
.main-swiper .swiper-button-next,
.main-swiper .swiper-button-prev {
  background: rgba(255,255,255,0.9);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: var(--primary-color);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.main-swiper .swiper-button-next::after,
.main-swiper .swiper-button-prev::after {
  content: none !important;
  display: none !important;
}

.main-swiper .swiper-button-next:hover,
.main-swiper .swiper-button-prev:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.main-swiper .swiper-pagination-bullet {
  background: white;
  opacity: 0.5;
  width: 12px;
  height: 12px;
}

.main-swiper .swiper-pagination-bullet-active {
  background: var(--primary-color);
  opacity: 1;
}

/* Responsive Banner */
@media (max-width: 768px) {
  .landscape-banner {
    height: 400px;
  }

  .banner-title {
    font-size: 2rem;
  }

  .banner-description {
    font-size: 1rem;
  }

  .banner-button {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .landscape-banner {
    height: 300px;
  }

  .banner-title {
    font-size: 1.5rem;
  }

  .banner-description {
    font-size: 0.9rem;
  }

  .banner-button {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

/* Category Carousel Styles */
.category-carousel-wrapper {
  padding: 0 40px;
}

.category-carousel .swiper-slide {
  padding: 0 10px;
}

.category-nav-prev,
.category-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.category-nav-prev {
  left: -25px;
}

.category-nav-next {
  right: -25px;
}

.category-nav-prev:hover,
.category-nav-next:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

/* Swiper pagination for categories */
.category-carousel .swiper-pagination {
  bottom: -40px;
}

.category-carousel .swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
}

.category-carousel .swiper-pagination-bullet-active {
  background: var(--primary-color);
}

/* Best Sellers Section */
.best-sellers {
  background: #fafafa;
}

.product-swiper {
  padding: 20px 5px 40px;
  margin: 0 -5px;
}

.product-swiper .swiper-slide {
  height: auto;
  padding: 0 10px;
}

.product-swiper .swiper-pagination {
  bottom: 0;
}

.product-swiper .product-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-swiper .image-holder {
  flex-shrink: 0;
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
  background: #f5f5f5;
}

.product-swiper .image-holder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-swiper .product-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Best Sellers Section Styles */
.best-sellers {
  background: white;
}

.bestsellers-carousel-wrapper {
  padding: 0 40px;
}

.bestsellers-carousel .swiper-slide {
  padding: 0 10px;
}

.best-seller-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: white;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.best-seller-item .image-holder {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
  background: #f5f5f5;
}

.best-seller-item .image-holder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.best-seller-item .image-holder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.bestseller-content {
  padding: 1.25rem;
  background: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bestseller-content h5 {
  margin-bottom: 0.75rem;
  line-height: 1.4;
  font-size: 0.95rem;
}

.bestseller-content p {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

/* Swiper pagination for best sellers */
.bestsellers-carousel .swiper-pagination {
  bottom: -40px;
}

.bestsellers-carousel .swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
}

.bestsellers-carousel .swiper-pagination-bullet-active {
  background: var(--primary-color);
}

/* Navigation arrows for best sellers */
.bestsellers-nav-prev,
.bestsellers-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.bestsellers-nav-prev {
  left: -25px;
}

.bestsellers-nav-next {
  right: -25px;
}

.bestsellers-nav-prev:hover,
.bestsellers-nav-next:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}