/* Responsive overrides for small screens */
:root {
  --vycks-dark-brown: #3a312c;
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Hero adjustments: smaller height on narrow screens */
.hero-section {
  height: 70vh;
}

@media (min-width: 768px) {
  .hero-section {
    height: 90vh;
  }
}

/* Make product titles behave naturally on small screens */
@media (max-width: 640px) {
  .truncate.w-full { /* Tailwind utility combined class override */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  /* Increase clickable areas for mobile */
  button, .group a, .accordion-toggle {
    padding: 0.5rem 0.75rem;
  }

  /* Footer newsletter: stack nicely */
  footer form .flex {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  /* Cookie banner smaller and above content */
  #cookie-banner {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
}

/* Make tables inside admin responsive */
.admin-table-wrapper {
  overflow-x: auto;
}

/* Utility: ensure aspect-square fallback works on older browsers */
.aspect-square {
    position: relative;
}
.aspect-square > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure accordion content links are fully visible */
.accordion-content a {
    display: block;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0.25rem 0;
    line-height: 1.5;
}