/* Yami Seeds - Global Styles */

body {
  font-family: "Manrope", sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
}

html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #064e3b;
  border-radius: 4px;
}

/* Utility */
.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Animation Utilities */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 100ms;
}

.stagger-2 {
  transition-delay: 200ms;
}

.stagger-3 {
  transition-delay: 300ms;
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 0.5rem;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-product {
  display: flex;
  flex-direction: column;
}

.skeleton-product-image {
  width: 100%;
  height: 300px;
  margin-bottom: 1rem;
  border-radius: 1rem;
}

.skeleton-product-title {
  width: 70%;
  height: 1.5rem;
  margin-bottom: 0.5rem;
}

.skeleton-gallery-item {
  width: 100%;
  height: 400px;
  border-radius: 1rem;
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .skeleton-product-image {
    height: 180px;
  }

  .skeleton-gallery-item {
    min-width: 280px;
  }
}

@media (min-width: 640px) {
  .skeleton-gallery-item {
    min-width: 350px;
  }
}

/* Pinterest-style Masonry Grid */
.masonry-grid {
  column-count: 2;
  column-gap: 0.75rem;
}

@media (min-width: 640px) {
  .masonry-grid {
    column-count: 2;
    column-gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 3;
    column-gap: 1rem;
  }
}

@media (min-width: 1280px) {
  .masonry-grid {
    column-count: 4;
    column-gap: 1rem;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .masonry-item {
    margin-bottom: 1rem;
  }
}

.gallery-img-short {
  height: 200px;
}

.gallery-img-medium {
  height: 280px;
}

.gallery-img-tall {
  height: 360px;
}

@media (min-width: 640px) {
  .gallery-img-short {
    height: 250px;
  }

  .gallery-img-medium {
    height: 350px;
  }

  .gallery-img-tall {
    height: 450px;
  }
}

/* Homepage Gallery Scroll */
.gallery-scroll-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-scroll-container::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) {
  .gallery-scroll-container {
    display: flex;
    gap: 1rem;
  }

  .gallery-scroll-item {
    min-width: 280px;
    flex-shrink: 0;
  }
}

/* Products Grid - Mobile 2 columns, Desktop 5 columns */
#products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  #products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  #products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  #products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

/* Products Preview - Keep 3 columns max */
#products-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  #products-preview {
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  #products-preview {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  #products-preview {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Adjust product card sizes on mobile */
@media (max-width: 639px) {
  #products-grid .h-\[300px\],
  #products-grid .h-\[400px\],
  #products-preview .h-\[400px\] {
    height: 180px;
  }

  #products-grid .text-lg,
  #products-grid .text-xl,
  #products-preview .text-xl {
    font-size: 0.875rem;
  }

  #products-grid .text-sm,
  #products-preview .text-sm {
    font-size: 0.75rem;
  }

  #products-preview .group > div:last-child {
    padding: 1rem;
  }
}

/* Footer Responsive Fixes */
footer {
  overflow-x: hidden;
}

footer * {
  max-width: 100%;
  word-wrap: break-word;
}

/* Fix social buttons wrapping on mobile */
@media (max-width: 640px) {
  footer .flex.gap-4 {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  footer button {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
  }

  /* Make footer columns stack better on mobile */
  footer .grid.grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Adjust footer text size on mobile */
  footer h3 {
    font-size: 1.125rem;
    line-height: 1.4;
  }

  footer .text-2xl {
    font-size: 1.25rem;
  }

  /* Center footer bottom text on mobile */
  footer .flex-col {
    gap: 0.75rem;
    text-align: center;
  }

  /* Stack footer on mobile */
  footer .lg\:grid-cols-4 {
    grid-template-columns: 1fr;
  }

  footer .lg\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Stack footer columns on tablets */
  footer .md\:grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* Gallery Item Styles */
.gallery-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  break-inside: avoid;
  margin-bottom: 1rem;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Skeleton Loader for Gallery */
.skeleton-loader {
  width: 100%;
  height: 300px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 1rem;
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state svg {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  opacity: 0.3;
  stroke: currentColor;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
}

.empty-state p {
  color: #6b7280;
}

/* Pagination Styles */
.pagination-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  background-color: white;
  color: #374151;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #065f46;
  color: white;
  border-color: #065f46;
}

.pagination-btn.active {
  background-color: #065f46;
  color: white;
  border-color: #065f46;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-ellipsis {
  padding: 0.5rem 1rem;
  color: #6b7280;
}

.pagination-info {
  margin-left: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Lightbox Animations */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.animate-scroll-left {
  animation: scroll-left 40s linear infinite;
}
.animate-scroll-right {
  animation: scroll-right 40s linear infinite;
}

.pause-on-hover:hover {
  animation-play-state: paused;
}

/* Animation Utilities */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 {
  transition-delay: 100ms;
}

/* Hero Video Placeholder Animations */
@keyframes breathe {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@keyframes grow-subtle {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-8px) scale(1.03);
    opacity: 0.15;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(2deg);
  }
  66% {
    transform: translateY(-5px) rotate(-2deg);
  }
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.animate-breathe {
  animation: breathe 4s ease-in-out infinite;
}

.animate-grow-subtle {
  animation: grow-subtle 6s ease-in-out infinite;
}

.animate-grow-subtle-delayed {
  animation: grow-subtle 6s ease-in-out infinite;
  animation-delay: 1.5s;
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}
