// salla · product page · custom css
CSS Codes for the Product Page in Salla: 6 Tweaks That Help Shoppers Finish the Purchase

CSS codes for the product page in Salla are the shortest route to improving the page where the buying decision is actually made. The homepage attracts the visitor, but the product page is where they read the price and the description and then tap “Add to cart” or leave. On the Raed theme this page is tidy but generic: a normal-sized price, dense description text, and a buy button that does not stand out on mobile.
The short answer: copy the full code below, paste it into the custom CSS box in your Salla dashboard, then open any product page on your phone and check six things: the price, the price before discount, the buy button, the promotion badge, the description, and the out-of-stock notice.
This is part three of the free Salla codes series, after CSS codes for product cards and seven JavaScript add-ons. The first two improve the storefront and its interactions. This one is for the product page only.
The code inherits your store color from the --color-primary variable that the theme sets, so you do not need to change any colors. Paste it as it is below any code you already have, then read what each part does so you know what to delete if it does not suit you.
/* ===== Kx Product | Salla - product page (Raed theme) ===== */
:root{
--kx-brand: var(--color-primary, #0f766e);
--kx-on-brand: var(--color-primary-reverse, #fff);
}
/* 1) Price (under the title and in the buy bar) */
.product-single .main-content > .whitespace-nowrap p.font-bold,
.product-form .price-wrapper .total-price{
font-size: clamp(1.5rem, 4.5vw, 2rem);
font-weight: 800;
line-height: 1.3;
color: var(--kx-brand);
}
/* 2) Price before discount */
.product-single .main-content > .whitespace-nowrap .line-through,
.product-form .before-price{
font-size: .95rem;
font-weight: 400;
opacity: .6;
}
/* 3) Buy button in the bar */
.sticky-product-bar .s-button-element{
min-height: 48px;
font-weight: 800;
}
/* 4) Promotion badge over the gallery */
.promotion-title{
background: var(--kx-brand);
color: var(--kx-on-brand);
font-weight: 700;
}
/* 5) Description */
.product__description{
line-height: 1.9;
}
.product__description img{
max-width: 100%;
height: auto;
border-radius: 12px;
}
.product__description table{
display: block;
max-width: 100%;
overflow-x: auto;
}
/* 6) Out-of-stock notice (visible one only) */
.product-form .out-of-stock:not(.hidden){
display: inline-block;
padding: 6px 14px;
border-radius: 999px;
background: #fef2f2;
color: #b91c1c;
font-weight: 700;
opacity: 1 !important;
}The price is the first thing a shopper looks for after the image. The Raed theme shows it in two places: under the product name and inside the buy bar. This part enlarges both, makes them bolder and colors them with your brand color. It uses clamp so the size stays right on mobile and desktop without breaking the line.
When there is a discount, two prices sit side by side. If they carry similar weight, the eye gets lost between them. This part tones down the old price in both places, so the discounted price stands out without any extra badge.

On mobile the Raed theme pins the quantity field and the “Add to cart” button to the bottom of the screen, and gives that bar its own shadow and rounded corners, so the bar itself needs no changes. This part only touches the button: it makes it at least 48 pixels tall so it is easy to tap with a thumb, and makes its text bolder.
The promotion text you write for a product, such as “Free shipping” or “Weekend offer”, appears over the image gallery. This part gives it your store color and a heavier font so it reads at first glance.
It increases the spacing between description lines, stops images you place inside the description from overflowing the screen and rounds their corners, and lets tables, such as a size chart, scroll sideways on mobile instead of breaking the page.
It turns the out-of-stock message into a clear badge with a light red background and removes the transparency the theme puts on it. Mind this if you edit the code: the theme places the out-of-stock element on every product page and hides it when the product is available, which is why the code targets only the visible one with :not(.hidden). Remove that and the badge will show on products that are in stock.

These CSS codes work as they are on any Salla product page that runs the Raed theme, but every store has its own taste. Here are four simple adjustments, and each one is a change to a single number or line.
The code takes the color of the price and the promotion badge from the theme color. If you want a different one, such as a green price in a store with a black identity, change the first line inside :root and write the color directly:
--kx-brand: #0f766e;Pick a color dark enough to read on the white background. A faded price is worse than a small one.
The price size is written as clamp(1.5rem, 4.5vw, 2rem). The first number is the smallest size on mobile, the last is the largest size on desktop, and the middle one sets how fast it grows between them. To enlarge the price, raise the first and last together by a small amount, such as 1.7rem and 2.2rem, then check a product with a four-digit price to make sure it does not wrap to a second line.
Each part starts with a numbered comment such as /* 4) Promotion badge over the gallery */. To remove a part, delete from its comment down to the last closing brace } before the next comment. The parts are independent, so removing one does not affect the rest. The only exception is :root at the top of the code. Keep it, because the price and the promotion badge read the color from it.
In part six, background is the badge background and color is the text color. If you change them, keep a light background with dark text of the same hue so the badge stays readable. In part three you can raise min-height from 48 to 52 pixels if you want a taller button. Do not go below 44 pixels, because smaller buttons are hard to tap with a finger.
One rule when adjusting: change one thing at a time, then save and check a product page on your phone in a private window. If you change three numbers together and dislike the result, you will not know which one caused it. Keep a copy of the original code in a file so you can return to it with one paste. And if the box already holds other code that styles the price or the buy button, put your adjustments at the end of the box, because the browser applies the last rule when two rules have equal strength.
The code improves presentation, but it does not make up for missing content. Weak product photos, a description that does not answer the shopper’s questions, and no shipping or returns information all cost you sales however good the styling is. I covered these points in 7 leaks that lose customers in a Salla store. And if you spend on ads, first make sure you measure what happens on the product page with Salla conversion tracking.
I tested the code on the official Raed theme demo store at mobile width on November 13, 2026, on a discounted product and a sold-out product. I confirmed the price in both places, the price before discount, the description and its images, and the out-of-stock badge. I also confirmed that the badge does not show on an available product and that the page does not scroll sideways.
There are two parts whose result I did not see with my own eyes: the buy button, because it did not finish loading in my test session, and the promotion badge. Their class names come from the theme’s own stylesheet, so check both on your store after pasting. Your store may also be on a different theme version or carry earlier edits, so test on a regular product, a discounted product and a sold-out product before you rely on the code.
Where do I put CSS code for the Salla product page?
In the custom CSS box inside the theme customization screen of your Salla dashboard. Save, then open a product page in a new window. The name, location and availability of that box depend on your plan and on platform updates.
Does the code work on themes other than Raed?
The class names come from the Raed theme product page. On another theme only some parts may work, because every theme names the product page elements in its own way.
Will the code change my store colors?
No. The code reads your store color from the --color-primary variable that the theme sets, so the price and the promotion badge follow your own brand color.
Does the code slow down the product page?
Barely. It is about fifty lines and loads no fonts, images or scripts. The heaviest thing on a product page is usually the product images themselves.
What if nothing changes after I paste the code?
Make sure you saved, then open the page in a private window to skip the cache. If one part still does not work, open the browser developer tools and check that the class name in your store matches the one in the code.
If you do not want to paste all the CSS codes for the product page in Salla, start with parts one and three: a clear price and a buy button that is easy to tap on mobile. They sit closest to the buying decision, and the rest are refinements that complete the picture.
Read next: Free CSS Codes for Salla and Zid.
Want a product page designed for your store specifically?
I customize Salla and Zid stores with a unique identity, improve the product page and cart, and connect ad tracking. Send me your store link and I will tell you honestly what is worth changing first.