
body[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

body[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

#lang-dropdown .lang-option img {
    flex-shrink: 0;
}

#lang-dropdown[style*="direction:rtl"] .lang-option {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}
#lang-dropdown {
    min-width: 100px;
    white-space: nowrap;
}
#sort a{
    text-decoration: none;
}
#sort{
    max-height: 100vh;
    transform: translateX(0);
}


.product p{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

#productImageDiv {
    position: relative;
    width: 400px;
    height: 400px;
    overflow: hidden; 
    background-color: white;
}

#productImageContainer,
.productImage {
    width: 100%;
    height: 100%;
}

.productImage {
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

.display_none{
    display: none;
}
.productVariationButton:checked + .label_radio {
    background-color: #007bff;
    color: #DDDDDD;
    border-color: #007bff;
}
.label_radio:hover{
        background-color: #AAAAAA;

}

.label_radio {
    display: inline-block; /* make it look like a button */
    padding: 10px 20px;
    background-color: #DDDDDD;
    border: 2px solid #cccccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    margin: 5px;
    color: #1C1C1C;
}

.product {
    background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
    width: 350px;
    height: 455px;
    border-radius: 0.75rem;
    box-shadow:
        0 0 15px rgba(0, 0, 0, 0.25),
        0 0 5px rgba(31, 41, 55, 0.4) inset;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.product::before {
    /* Rimlight effect (thin gradient border glow) */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(31,41,55,0.6), rgba(0,0,0,0.8));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.product:hover, #category:hover{
    transform: scale(1.02);
    box-shadow:
        0 0 25px rgba(0, 0, 0, 0.50),
        0 0 8px rgba(31, 41, 55, 0.6) inset;
}

.product_text{
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
}

.product p{
    width: 300px;
    height: 3rem;
    -webkit-line-clamp: 2; /* Limit number of lines to 2 */
    line-clamp: 2;
}

.product img{
    width: 350px;
    height: 350px;
    object-fit: contain;
}

#categoryName{
    text-decoration: none;
}
.fade-in {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.4s ease-in-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateX(0);
}
.blank:after{
	content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
	margin: 0 3px 0 5px;
    color: currentColor;
}