/* ~/monolithtest/storefront/app/static/css/home.css */

/* Reset container padding and margins */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    background-color: var(--background-color);
}

main.container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Category Showcase */
.category-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.category-block {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mens-block, .womens-block {
    position: relative;
    overflow: hidden;
}

.preview-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.85;
    z-index: 1;

    /* Ensure the image stays within bounds */
    object-fit: cover;
    background-repeat: no-repeat;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    text-align: center;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 100%);
}

.category-overlay h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.category-link {
    display: inline-block;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    position: relative;
    z-index: 10;
    cursor: pointer;
    /* Make sure the link is above everything else */
    pointer-events: auto;
}

.category-link:hover {
    background: var(--button-primary-hover);
    transform: translateY(-2px);
}

/* Ensure both blocks have the same styling for consistency */
.mens-block .category-overlay,
.womens-block .category-overlay {
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 100%);
}

/* Make sure the buttons are highly visible */
.mens-block .category-link,
.womens-block .category-link {
    background: var(--button-primary);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-showcase {
        grid-template-columns: 1fr;
    }

    .category-block {
        height: 400px;
    }

    .category-overlay h2 {
        font-size: 2.5rem;
    }
}

.category-overlay .btn-glass-primary {
  background: #000000;
  border: none;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.category-overlay .btn-glass-primary:hover {
  background: rgba(51, 51, 51, 0.7); /* Semi-transparent dark background */
  color: #ffffff;
  transform: none; /* Remove the transform to keep it in place */
  box-shadow: none;
  border-bottom: 2px solid #0066cc; /* Blue underline on hover */
}

/* Fix for the span inside button */
.category-overlay .btn-glass-primary span {
  color: #ffffff;
}

.category-overlay .btn-glass-primary:hover span {
  color: #ffffff; /* Keep text white on hover */
}
