/* Custom CSS Fixes for Kinoko Website */

/* Fix main heading sizes across all pages */
.heading-4,
.heading-2 {
  font-size: 3rem !important; /* Changed from 4rem to 3rem (75% of original) */
  line-height: 1.4 !important;
}

.heading-5 {
  font-size: 2.625rem !important; /* Changed from 3.5rem to 2.625rem (75% of original) */
  line-height: 1.3 !important;
}

/* Responsive heading sizes */
@media screen and (max-width: 991px) {
  .heading-4,
  .heading-2 {
    font-size: 2.7rem !important;
  }
  
  .heading-5 {
    font-size: 2.3rem !important;
  }
}

@media screen and (max-width: 767px) {
  .heading-4,
  .heading-2 {
    font-size: 2.4rem !important;
  }
  
  .heading-5 {
    font-size: 2rem !important;
  }
}

@media screen and (max-width: 479px) {
  .heading-4,
  .heading-2 {
    font-size: 2.1rem !important;
  }
  
  .heading-5 {
    font-size: 1.8rem !important;
  }
}

/* Fix carousel text sizes - make them smaller and more readable */
.heading-8 {
  font-size: 1.5rem !important;
  line-height: 2rem !important;
}

.heading-8.body {
  font-size: 1.1rem !important;
  line-height: 1.6rem !important;
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
  .heading-8 {
    font-size: 1.3rem !important;
    line-height: 1.8rem !important;
  }
  
  .heading-8.body {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
  }
}

@media screen and (max-width: 767px) {
  .heading-8 {
    font-size: 1.2rem !important;
    line-height: 1.6rem !important;
  }
  
  .heading-8.body {
    font-size: 0.95rem !important;
    line-height: 1.4rem !important;
  }
}

@media screen and (max-width: 479px) {
  .heading-8 {
    font-size: 1rem !important;
    line-height: 1.3rem !important;
  }
  
  .heading-8.body {
    font-size: 0.75rem !important;
    line-height: 1.1rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 90% !important;
  }
}

/* Extra small screens (very small phones) */
@media screen and (max-width: 380px) {
  .heading-8 {
    font-size: 0.9rem !important;
    line-height: 1.2rem !important;
  }
  
  .heading-8.body {
    font-size: 0.7rem !important;
    line-height: 1rem !important;
  }
}

/* Ensure carousel wrapper has proper padding and text doesn't overflow */
.div-block-9 {
  padding: 1rem !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Make sure carousel images don't cover text */
.carouselwrap {
  position: relative;
  overflow: hidden !important;
}

/* Carousel text should wrap properly on all screens */
.heading-8.body {
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* Fix contact details styling */
.text-block-3 {
  font-size: 1.1rem !important;
  line-height: 1.8 !important;
  margin-bottom: 1rem !important;
  color: #333 !important;
}

.text-block-3 strong {
  font-weight: 600 !important;
  color: #000 !important;
}

.centered-heading {
  font-size: 2.5rem !important;
  line-height: 1.3 !important;
  margin-bottom: 2rem !important;
}

/* Fix map interaction - prevent scroll zoom */
.map.w-widget-map {
  pointer-events: none !important;
  margin-top: 2rem !important;
}

.map.w-widget-map:hover {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Add a hint for map interaction */
.map.w-widget-map::before {
  content: "Click to interact with map";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #666;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.map.w-widget-map:hover::before {
  opacity: 1;
}

/* Responsive adjustments for contact details */
@media screen and (max-width: 767px) {
  .text-block-3 {
    font-size: 1rem !important;
  }
  
  .centered-heading {
    font-size: 2rem !important;
  }
}

@media screen and (max-width: 479px) {
  .text-block-3 {
    font-size: 0.95rem !important;
  }
  
  .centered-heading {
    font-size: 1.8rem !important;
  }
}

/* ============================================ */
/* PRODUCT DETAIL PAGE - FIX OVERLAPPING */
/* ============================================ */

/* Fix product detail page layout */
.product-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  padding: 2rem !important;
}

/* Product title section - make visible and properly positioned */
.product-title {
  opacity: 1 !important;
  margin-bottom: 1rem !important;
}

.product-title .heading-5 {
  font-size: 2rem !important;
  line-height: 1.3 !important;
  color: #2c2c2c !important;
  margin-bottom: 0 !important;
}

/* Product description section - make visible and properly positioned */
/* FORCE OVERRIDE WEBFLOW ANIMATIONS */
.product-description,
.product-description[data-w-id] {
  opacity: 1 !important;
  margin-bottom: 0 !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  transform: none !important;
}

.product-description > div:first-child {
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  color: #4a4a4a !important;
  margin-bottom: 1.5rem !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Info tag (category and price) - properly positioned below description */
/* FORCE OVERRIDE ANY HIDING */
.info-tag,
.product-description .info-tag {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid #e5e5e5 !important;
  margin-top: 1rem !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.info-tag .opacity-60,
.info-tag .opacity-60 * {
  margin-bottom: 0.5rem !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.info-tag .text-size-small,
.info-tag .text-size-small.caps,
.info-tag .opacity-60 .text-size-small {
  font-size: 0.9rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #888 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Price tag styling - FORCE VISIBLE */
.price-tag,
.info-tag .price-tag {
  display: flex !important;
  align-items: baseline !important;
  gap: 0.8rem !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.price-tag > div,
.price-tag > div *,
.info-tag .price-tag > div {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.price-tag > div:last-child {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #2d5016 !important;
}

.price-tag .opacity-50,
.price-tag .opacity-50 * {
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  color: #999 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Product button - better styling */
.product-button {
  margin-top: 1.5rem !important;
  opacity: 1 !important;
}

/* Product component wrapper - ensure proper layout */
.product-component {
  display: flex !important;
  gap: 3rem !important;
  align-items: flex-start !important;
}

/* Product image section */
.product-image {
  flex: 0 0 45% !important;
  max-width: 45% !important;
}

/* Product info section */
.product-info {
  flex: 1 !important;
  min-width: 0 !important;
}

/* Responsive adjustments for product detail page */
@media screen and (max-width: 991px) {
  .product-component {
    flex-direction: column !important;
    gap: 2rem !important;
  }
  
  .product-image,
  .product-info {
    flex: 1 !important;
    max-width: 100% !important;
  }
  
  .product-title .heading-5 {
    font-size: 1.8rem !important;
  }
  
  .price-tag > div:last-child {
    font-size: 1.8rem !important;
  }
}

@media screen and (max-width: 767px) {
  .product-info {
    padding: 1.5rem !important;
  }
  
  .product-title .heading-5 {
    font-size: 1.6rem !important;
  }
  
  .product-description > div {
    font-size: 1rem !important;
  }
  
  .price-tag > div:last-child {
    font-size: 1.6rem !important;
  }
}

/* ============================================ */
/* PRODUCT CARDS - BEAUTIFUL STYLING */
/* ============================================ */

/* Make product cards grid more compact and elegant */
.products-cards {
  grid-template-columns: repeat(4, 1fr) !important;
  grid-column-gap: 1.5rem !important;
  grid-row-gap: 2rem !important;
  padding: 1rem 0 !important;
}

/* Product card styling - modern and clean */
.product-link {
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  background: #fff !important;
  border: 1px solid #f0f0f0 !important;
}

.product-link:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
  border-color: #e0e0e0 !important;
}

/* Product card image container - smaller and proportional */
.product-card-image {
  width: 100% !important;
  height: 220px !important;
  overflow: hidden !important;
  position: relative !important;
  background: #f9f9f9 !important;
}

.product-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}

.product-link:hover .product-card-image img {
  transform: scale(1.05) !important;
}

/* Product card content - better spacing */
.product-card-content {
  padding: 1.2rem !important;
}

/* Product name - smaller and cleaner */
.product-name {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin-bottom: 0.5rem !important;
  color: #2c2c2c !important;
  min-height: 2.8rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Product description - compact */
.product-description {
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  color: #666 !important;
  margin-bottom: 0.8rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.7rem !important;
}

/* Product price - prominent but not huge */
.product-price {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: #2d5016 !important;
  margin-top: 0.8rem !important;
}

/* Responsive adjustments for product cards */
@media screen and (max-width: 1200px) {
  .products-cards {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .product-card-image {
    height: 200px !important;
  }
}

@media screen and (max-width: 991px) {
  .products-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-column-gap: 1.2rem !important;
  }
  
  .product-card-image {
    height: 220px !important;
  }
  
  .product-name {
    font-size: 1rem !important;
  }
  
  .product-price {
    font-size: 1.2rem !important;
  }
}

@media screen and (max-width: 767px) {
  .products-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-column-gap: 1rem !important;
    grid-row-gap: 1.5rem !important;
  }
  
  .product-card-image {
    height: 180px !important;
  }
  
  .product-card-content {
    padding: 1rem !important;
  }
  
  .product-name {
    font-size: 0.95rem !important;
    min-height: 2.5rem !important;
  }
  
  .product-description {
    font-size: 0.85rem !important;
  }
  
  .product-price {
    font-size: 1.1rem !important;
  }
}

@media screen and (max-width: 479px) {
  .products-cards {
    grid-template-columns: 1fr !important;
    grid-row-gap: 1.2rem !important;
  }
  
  .product-card-image {
    height: 240px !important;
  }
  
  .product-name {
    font-size: 1.05rem !important;
  }
  
  .product-description {
    font-size: 0.9rem !important;
  }
}
