Rounded Add to Cart Button Product Page

Topic summary

A Shopify store owner seeks help rounding the “Add to Cart” button corners (20px border-radius) and extending its width on desktop.

Initial Solutions Provided:

  • Multiple users offered CSS code snippets to add to base.css or component-card.css files
  • Code targets .product-form__buttons button with border-radius: 20px !important
  • Screenshots demonstrate successful rounded button implementation

Follow-up Requests:
The original poster requested additional modifications:

  1. Extend button width on desktop (mobile width already acceptable)
  2. Center popup text “click to reveal secret ingredient” on mobile
  3. Center product description, price, and heading on mobile only

Additional Solutions:

  • B2Bridge provided CSS to remove max-width constraints and center popup text using media queries for mobile screens
  • PageFly-Richard suggested adding code to theme.liquid file above </head> tag

Current Status:
The popup centering issue is resolved. The discussion remains open with the latest request for centering product details on mobile awaiting response.

Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

Hello,

Does anyone know how to make my add to cart button rounded? Maybe by 20px?

I would also like to extend it a little.

URL: https://www.samiyaskincare.com.au/products/throat-chakra-face-oil

Hi @ellacoker

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file

.product-form__buttons button::after,
.product-form__buttons button::before,
.product-form__buttons button {
    border-radius: 20px !important;
}

Result

Best,

Daisy

Hi @ellacoker , you can follow these steps:

Step 1: Open Online Store → Themes → Edit code.

Step 2: Find component-card.css file

Step 3: Paste this code at the bottom of the file

.product-form__buttons > button.button,
.product-form__buttons > button.button::before,
.product-form__buttons > button.button::after {
  border-radius: 20px !important;
}

If this is helpful, please let us know by giving us a like and marking it as a solution. Thank you :heart_eyes:

Thank you,

do you know how to

  1. also extend the button on desktop? the mobile width is fine. please see image

  2. centre the pop up text “click to reveal secret ingredient” on mobile

Hello Ella @ellacoker I think you should give this code a try and let me know how the button appears in your store afterwards.
}
button.btn.btn–full.add-to-cart {
border-radius: 78px !important;
}

Hi @ellacoker ,
Paste this code at the bottom of the file:

.product-form__buttons {
   max-width: unset !important;
}
@media screen and (max-width: 749px) {
    .product-popup-modal__opener.quick-add-hidden {
        width: 100% !important;
        text-align: center !important;
    }
}

If this is helpful, please let us know by giving us a like and marking it as a solution. Thank you :heart_eyes:

Hi @ellacoker

This is Richard from PageFly - Shopify Page Builder App

Please add this code to your theme.liquid above the to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the


Hope this can help you solve the issue

Best regards,

Richard | PageFly

Hello,

Thank you so much. My pop up is now centred. Can I add something to also make my product description, price and heading all centred too on mobile only?