Add border around each product tile

Topic summary

A user seeks help adding borders and shadow effects to product tiles on their Enterprise theme store.

Initial Solution:

  • Another user provides CSS code to add borders and shadows to product cards
  • After initial failure, the solution successfully works

Follow-up Requests:

  • The original poster asks about increasing card size and spacing (resolved independently)
  • New request: Add a bottom border divider on mobile layout only, constrained to box item width rather than full edge-to-edge

Current Status:

  • CSS code provided for mobile border using media queries and :after pseudo-element
  • Implementation unsuccessful - border not appearing
  • Helper requests clarification on which file the CSS was added to, noting it’s not visible in the storefront source
  • Discussion remains open with troubleshooting in progress
Summarized with AI on October 28. AI used: claude-sonnet-4-5-20250929.

Hey folks,

I was wondering if someone could help me add a border around the product tiles which would be visible on all pages.

The look would be like the below (just the border and shadow effect)

I’m on the enterprise theme, thanks a lot!

Hi @cardboardhouse

let try to add this custom css to your file main.css:

product-card.card {
  border: 1px solid rgba(var(--text-color) / .15);
    box-shadow: 0px 1px 6px rgba(var(--text-color) / .15);
    padding: 6px 9px;
}

the result will be:

Sorry it didn’t do anything :disappointed_face:

You are too good :rofl: - Thanks a lot!

Do you know how I can increase the size of the cards and actually everything on the page? it seems too bunched togther

1 Like

Yes I’m still here :joy:

can you detail this will a screenshot?

All good, I fixed it myself - Thanks!

Okay. Let me know if you need support

Thank you! Do you know how to add a bottom border just on mobile layout? Like below - The divider should only stretch the length of the box item, not from the full edge to edge

let try this css:

@media screen and (max-width: 599px) {
  .shopify-section-group-footer-group ul.slider__grid li:not(:last-child) {
    position: relative;
  }
  .shopify-section-group-footer-group
    ul.slider__grid
    li:not(:last-child):after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(var(--scrollbar-color, 60 60 60));
  }
}

Didn’t work :disappointed_face: - Nothing shows

which file did you add that css code? I don’t see it on storefront source