/* Main Content */
.main-content {
    padding: 0px 160px;
    display: flex;
    flex: 1;
    justify-content: center;
    min-height: 100vh;
}

.content-container {
    display: flex;
    flex-direction: column;
    max-width: 960px;
    flex: 1;
}

/* Page Header */
.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0px;
    padding: 70px 0 10px 0px;
}

.left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-title {
    color: #1D4F25;
    font-size: 60px;
    font-weight: 500;
    line-height: 1;
    min-width: 280px;
}

.icon{
    width: 120px;
    height: auto;
}
/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 0px;
    padding-bottom: 80px;
}

.product-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 12px;
    max-width: 300px; /* Match the image max-width */
    margin: 0 auto; /* Center the entire product item */
}
.product-link{
    text-decoration: none;
    color: inherit;
}

.product-link:visited{
    color: inherit;
}

.product-link:hover{
    text-decoration: none;
}

.product-link:hover .card-button {
  transform: translate(-50%, 50%);
  opacity: 1;
}

.product-link:hover .product-image {
  transform: scale(1.02);
  box-shadow: 0 4px 18px 0 rgba(0,0,0,0.25);
}
.product-image {
    position: relative; /* Enable absolute positioning inside */
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1.8;
    border-radius: 20px;
    background-color: #fcfbf1;
   
    overflow: visible; 
    margin: 0 auto;
    outline: none;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    transition: 0.5s ease-out;
}
.image-wrapper {
    position: absolute;
    inset: 0;            /* top:0 right:0 bottom:0 left:0 */
    overflow: hidden;
    border-radius: 20px;
    z-index: 1;
}

.product-image:hover {
    transform: scale(1.02); 
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
}

.card-button {
    transform: translate(-50%, 125%);
    width: 60%;
    border-radius: 1rem;
    border: none;
    background-color: #ffbba6;
    color: #fff;
    font-size: 1rem;
    padding: .5rem 1rem;
    position: absolute;
    left: 50%;
    bottom: 0;
    opacity: 0;
    transition: 0.3s ease-out;
    text-align: center;
    z-index: 4;
    font-family: Host Grotesk, prompt, sans-serif;
}

.product-image:hover .card-button {
    transform: translate(-50%, 50%);
    opacity: 1;
}


/* Overlay image on top of the base image */
.product-bottle {
    position: absolute;
    top: 8%;
    left: 50%;
    width: 30%;
    transform: translateX(-50%);
    height: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
}

.product-text{
    position: relative;  /* NOT absolute */
    z-index: 3;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 30px 30px;
    padding-bottom: 35px;
}

.product-title {
    color: black;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.product-description {
    color: black;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    font-family: noto sans mono, prompt, sans-serif;
}

/* Tablet Styles */
@media (max-width: 1280px) {
    .main-content {
        padding: 0px 80px;
    }
    
    .page-title {
        font-size: 55px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
}

/* Switch to single column when hamburger menu appears */
@media (max-width: 990px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-header {
        align-self: center;
    }
    .product-title {
        font-size: 25px;
    }
    .page-title {
        font-size: 50px;
    }
}
/* Small Tablet Styles */

/* Mobile Styles */
@media (max-width: 480px) {
    .product-grid {
        gap: 20px;
    }
    
    .product-item {
        max-width: 100%;
        gap: 10px;
    }
    .page-title {
        font-size: 45px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .page-header {
        padding: 40px 0 20px 60px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .product-grid {
        gap: 12px;
    }
}