.h2h-shop-promo {
    margin: 3rem 0;
    padding: 1.75rem;
    border-radius: 14px;
    background: #FFFFFF;
    color: #e7f1eb;
}

.h2h-shop-text {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: #d6e4da;
}

.h2h-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: 80%;
    margin: 0 auto;
}

.h2h-shop-item {
    position: relative;
    width: 100%;
    max-width: 200px;       /* cap width */
    aspect-ratio: 1 / 1;    /* perfect square */
    max-height: 200px;      /* cap height */

    overflow: hidden;       /* crop the image to the square */
    border-radius: 12px;
    background: #000;       /* fallback background */

    display: block;         /* works well with the <a> */
    text-decoration: none;
    cursor: pointer;

    transition: transform 0.15s ease,
                box-shadow 0.15s ease,
                border-color 0.15s ease;
}

.h2h-shop-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.18);
}
/* Image scales to fit inside square without cropping */
.h2h-shop-image {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;   /* 🔥 fills the square and crops */
    object-position: center center;  /* keep subject centered */
}

.h2h-shop-name {
    font-size: 0.9rem;
    text-align: center;
    color: #f4faf7;
}

.h2h-shop-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.18);
}

/* Top heading */
.h2h-shop-heading-top {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 0.75rem;
}

/* Bottom heading */
.h2h-shop-heading-bottom {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    margin: 0.75rem 0 0;
}

.h2h-shop-heading-top,
.h2h-shop-heading-bottom  {
    color: #000000;

}

/* Top & bottom headings */
.h2h-shop-heading-top,
.h2h-shop-heading-bottom {
    text-align: center;
    margin: 0;
    margin-bottom: 30px;
}

.h2h-shop-main-cta {
    display: block;               /* <-- makes centering possible */
    width: max-content;           /* keeps it button-sized */
    margin: 1rem auto 0;          /* <-- centers horizontally */
    padding: 0.55rem 1.25rem;

    border-radius: 999px;
    border: 1px solid rgba(223, 232, 227, 0.6);
    background: rgba(223, 232, 227, 0.06);

    font-size: 0.9rem;
    font-weight: 500;
    color: #000000;
    text-decoration: none;

    transition: background 0.15s ease,
                border-color 0.15s ease,
                transform 0.15s ease,
                box-shadow 0.15s ease;
}

.h2h-shop-main-cta:hover {
    background: rgba(223, 232, 227, 0.18);
    border-color: rgba(223, 232, 227, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* Make it obvious grid items are clickable */
.h2h-shop-item {
    cursor: pointer;
    position: relative;
}

/* Optional: subtle “View” hint on hover */
.h2h-shop-item::after {
    content: "Buy now";
    position: absolute;
    right: 6px;
    bottom: 6px;

    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;

    background: rgba(0, 0, 0, 0.55);
    padding: 2px 6px;
    border-radius: 4px;

    opacity: 0.85;
    pointer-events: none;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.h2h-shop-item:hover::after {
    background: rgba(0, 0, 0, 0.75);
    opacity: 1;
}

@media (max-width: 480px) {
    .h2h-shop-subcopy {
        font-size: 0.85rem;
    }

    .h2h-shop-main-cta {
        font-size: 0.85rem;
        padding: 0.45rem 1rem;
    }

    .h2h-shop-item::after {
        bottom: 4px;
        font-size: 0.65rem;
    }
}



/* Optional: tighten spacing on mobile */
@media (max-width: 480px) {
    .h2h-shop-heading-top {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .h2h-shop-heading-bottom {
        font-size: 0.95rem;
        margin-top: 0.5rem;
    }

    h2h-shop-item::after {
        font-size: 0.55rem;
        padding: 1px 4px;
        bottom: 4px;
        right: 4px;
    }
}


@media (max-width: 700px) {
    .h2h-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .h2h-shop-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));  /* 2 columns */
        gap: 0.75rem;
    }

    .h2h-shop-item {
        max-width: none;   /* let the grid cell control the width */
        margin: 0;
    }
}
