/* ACF Product Repeater Container */
.acf-product-repeater {
    margin: 2em 0;
    display: grid;
    row-gap: 40px;
}

/* Hide one version depending on device */
.product-desktop {
    display: none;
}

.product-mobile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
}

/* Shared Image Styling */
.product-image img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

/* Shared Content Structure */
.product-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Shared Typography */
.product-counter {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    color: #595959;
    font-size: 0.875rem;
    line-height: 1;
    text-align: center;
}

.product-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    color: black;
    font-size: 1.5rem;
    line-height: 1.35em;
    margin: 0;
    text-align: center;
}

.product-details {
    font-family: 'Lora', serif;
    font-weight: 400;
    color: black;
    font-size: 1.125rem;
    line-height: 1.35em;
    text-align: justify;
}

/* Buy Button */
.buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    color: black;
    font-size: 0.75rem;
    line-height: 1em;
    text-transform: uppercase;
    background-color: #ff4e33;
    width: 200px;
    height: 40px;
    border-radius: 30px;
    text-decoration: none;
    margin: 0 auto; /* default: center for mobile */
    transition: all 0.3s ease;
}

.buy-button:hover {
    background-color: white;
    border: 2px solid #ff4e33;
}

/* Tablet & Desktop Styles */
@media (min-width: 768px) {
    .product-mobile {
        display: none;
    }

    .product-desktop {
        display: flex;
        gap: 40px;
        padding: 0;
        align-items: flex-start;
    }

    .product-image,
    .product-content {
        flex: 1 1 50%;
    }

    .product-content {
        align-items: flex-start;
    }

    .product-counter,
    .product-name,
    .buy-button {
        text-align: left;
    }

    .buy-button {
        margin: 0; /* align left on desktop */
    }
}
