/* Style Suite Styled Look - Enhanced Layout */
.styled-look-app-block { 
  max-width: 1400px; 
  margin: 0 auto; 
  padding: 0.5rem 1rem; 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}


/* Reduce top padding when no description */
.styled-look-app-block.no-description {
  padding-top: 0.25rem;
}

.styled-look-nav.bottom-nav { 
  margin-top: 1.5rem; 
  text-align: center;
}

.back-link { 
  display: inline-flex; 
  align-items: center; 
  color: #000; 
  text-decoration: none; 
  font-weight: 500; 
  padding: 0.5rem 1rem; 
  border: 1px solid #000; 
  border-radius: 6px; 
  transition: all 0.3s ease;
}

.back-link:hover { 
  background: #000; 
  color: #fff;
}

.styled-look-loading { 
  text-align: center; 
  padding: 4rem 2rem;
}

.loading-spinner { 
  width: 40px; 
  height: 40px; 
  border: 4px solid #f3f3f3; 
  border-top: 4px solid #000; 
  border-radius: 50%; 
  animation: spin 1s linear infinite; 
  margin: 0 auto 1rem;
}

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

/* Product Action Buttons - Heart and Share */
.product-action-buttons {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.carousel-product-card:hover .product-action-buttons {
  opacity: 1;
}

.product-favorite-btn,
.product-share-btn {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.product-favorite-btn:hover,
.product-share-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-favorite-btn {
  color: #333;
}

.product-favorite-btn.favorited {
  color: #e74c3c;
}

.product-share-btn {
  color: #666;
}

.product-share-btn:hover {
  color: #333;
}

/* Heart icon animations */
.heart-outline,
.heart-filled {
  transition: all 0.2s ease;
}

.product-favorite-btn:hover .heart-outline,
.product-favorite-btn:hover .heart-filled {
  transform: scale(1.1);
}

/* Cart update animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Cart count bounce animation */
.cart-count-bounce {
  animation: cartBounce 0.3s ease;
}

@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Enhanced cover image container */
.look-cover-container {
  position: relative;
  margin-bottom: 2rem;
}

.look-cover-container.has-description {
  margin-bottom: 2rem;
}

.look-cover-container.no-description {
  margin-bottom: 1rem;
}

/* Vertical aspect ratio for covers */
.look-cover-image, .look-cover-video {
  width: 100%;
  height: auto;
  aspect-ratio: 9/16;
  max-height: 80vh;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* Fallback for landscape images */
.look-cover-image.landscape, .look-cover-video.landscape {
  aspect-ratio: 16/9;
  max-height: 400px;
}

.look-products { 
  margin-top: 1rem;
}

.shop-look-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 2rem; 
  flex-wrap: wrap; 
  gap: 1rem;
}

.look-products h3 { 
  font-size: 1.8rem; 
  color: #000; 
  margin: 0;
}

.add-full-look-btn { 
  background: transparent;
  color: #000; 
  border: none; 
  padding: 0; 
  border-radius: 0; 
  font-weight: 400; 
  font-size: 0.875rem; 
  cursor: pointer; 
  transition: opacity 0.2s ease; 
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-transform: uppercase;
}

.add-full-look-btn:hover { 
  opacity: 0.7;
}

.products-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 2rem; 
  margin-top: 2rem;
}

.product-card { 
  background: #fff; 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border-color: rgba(0,0,0,0.1);
}

.product-image { 
  width: 100%; 
  height: 320px; 
  object-fit: cover;
}

.product-info { 
  padding: 1.5rem;
}

.product-title { 
  font-size: 1.1rem; 
  font-weight: 600; 
  color: #000; 
  margin-bottom: 0.5rem; 
  line-height: 1.3;
}

.product-price { 
  font-size: 1.3rem; 
  font-weight: 700; 
  color: #000; 
  margin-bottom: 1rem;
}

.variant-selector { 
  margin: 1rem 0;
}

.variant-selector label { 
  display: block; 
  font-size: 0.9rem; 
  font-weight: 500; 
  color: #000; 
  margin-bottom: 0.5rem;
}

.variant-select { 
  width: 100%; 
  padding: 0.75rem; 
  border: 2px solid #e5e5e5; 
  border-radius: 8px; 
  font-size: 0.9rem; 
  background: #fff; 
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.variant-select:focus { 
  outline: none; 
  border-color: #000;
}

.view-details-btn { 
  display: inline-block; 
  background: transparent; 
  color: #000; 
  border: 2px solid #000; 
  padding: 0.75rem 1rem; 
  border-radius: 8px; 
  text-decoration: none; 
  font-size: 0.9rem; 
  font-weight: 600; 
  margin-bottom: 0.75rem; 
  text-align: center; 
  width: 100%;
  transition: all 0.2s ease;
}

.view-details-btn:hover { 
  background: #000; 
  color: #fff;
}

.add-to-cart-btn { 
  width: 100%; 
  background: linear-gradient(135deg, #000 0%, #333 100%);
  color: #fff; 
  border: none; 
  padding: 1rem; 
  border-radius: 8px; 
  font-weight: 700; 
  cursor: pointer; 
  transition: all 0.3s ease;
  font-size: 1rem;
}

.add-to-cart-btn:hover:not(:disabled) { 
  background: linear-gradient(135deg, #333 0%, #555 100%);
  transform: translateY(-1px);
}

.add-to-cart-btn:disabled { 
  background: #ccc; 
  cursor: not-allowed;
  transform: none;
}

/* Mobile optimizations */
@media (max-width: 768px) { 
  .styled-look-app-block {
    padding: 0.25rem;
  }
  
  /* Compact mobile cover layout */
  .look-cover-image, .look-cover-video {
    border-radius: 12px;
    max-height: 50vh;
    aspect-ratio: 9/16;
  }
  
  /* Compact mobile text */
  .look-cover-container h3 {
    font-size: 1.1rem !important;
    margin: 0 0 0.25rem 0 !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
  }
  
  .look-cover-container p {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    color: #666 !important;
  }
  
  .look-cover-container {
    margin-bottom: 1rem !important;
    text-align: center;
  }
  
  .look-products {
    margin-top: 1rem !important;
  }
  
  .shop-look-header {
    flex-direction: column; 
    align-items: stretch; 
    text-align: center;
    margin-bottom: 1rem !important;
  }
  
  .shop-look-header h3 {
    font-size: 1rem !important;
    margin: 0 !important;
    font-weight: 500 !important;
    color: #666 !important;
  }
  
  .add-full-look-btn {
    width: 100%;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  } 
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .product-card {
    border-radius: 12px;
  }
}

/* Products Carousel Styles */
.products-carousel-container {
  position: relative;
  margin: 2rem 0;
}

.products-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.products-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-product-card {
  flex: 0 0 260px;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.carousel-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.product-image-container {
  position: relative;
  cursor: pointer;
  padding-top: 150%;
  background: #f8f9fa;
  overflow: hidden;
}

.carousel-product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.product-image-container:hover .carousel-product-image {
  opacity: 0.9;
}

.product-share-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
  z-index: 2;
}

.product-share-btn:hover {
  background: rgba(255,255,255,1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-product-info {
  padding: 0.75rem;
}

.carousel-product-title {
  font-size: 0.875rem;
  font-weight: 300;
  font-family: var(--font-body-family, inherit);
  margin: 0 0 0.25rem 0;
  color: #333;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-product-price {
  font-size: 0.875rem;
  font-weight: 400;
  font-family: var(--font-body-family, inherit);
  color: #000;
  margin: 0 0 0.5rem 0;
}

.carousel-add-btn {
  width: 100%;
  background: linear-gradient(135deg, #000 0%, #333 100%);
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.carousel-add-btn:hover:not(.carousel-add-btn-disabled) {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  transform: translateY(-1px);
}

.carousel-add-btn-disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.carousel-variant-selector {
  margin: 0.75rem 0;
}

.carousel-variant-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.carousel-variant-select {
  width: 100%;
  padding: 0.5rem;
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
  font-weight: 500;
}

.carousel-variant-select:focus {
  outline: none;
  border-color: #000;
}

.carousel-variant-select:hover {
  border-color: #ccc;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  color: #333;
}

.carousel-nav:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-prev {
  left: -24px;
}

.carousel-next {
  right: -24px;
}

/* Tablet optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .carousel-product-card {
    flex: 0 0 220px;
  }
  
  .carousel-nav {
    display: none;
  }
}

/* Mobile optimizations for carousel */
@media (max-width: 768px) {
  /* Hide desktop elements on mobile */
  .look-title-desktop,
  .look-description-desktop,
  .shop-look-header-desktop {
    display: none !important;
  }
  
  /* Show mobile-only elements */
  .look-title-mobile,
  .look-description-mobile,
  .shop-look-header-mobile {
    display: block !important;
  }
  
  /* Change to vertical scroll on mobile */
  .products-carousel-container {
    margin: 1rem 0 !important;
  }
  
  .products-carousel {
    display: block !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    gap: 0 !important;
    padding: 0 !important;
    flex-direction: column !important;
  }
  
  .carousel-product-card {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
  }
  
  .product-image-container {
    padding-top: 0 !important;
    height: 400px !important;
    min-height: unset !important;
  }
  
  .carousel-product-image {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  
  .carousel-product-info {
    padding: 1rem !important;
  }
  
  .carousel-product-title {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .carousel-product-price {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .carousel-nav {
    display: none !important;
  }
}

/* Hotspot Styles */
.styled-look-hotspot {
  transition: transform 0.2s ease;
}

.styled-look-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.styled-look-hotspot:hover .hotspot-button {
  background: rgba(255, 255, 255, 1);
  border-color: #333;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Hotspot Animations */
@keyframes hotspotPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.4;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Hotspot tooltip styles */
.hotspot-tooltip {
  animation: tooltipFadeIn 0.2s ease;
}
