.categoryTitle {
    font-size: 1.25rem;

}

:is(.dark .categoryTitle) {
    --tw-text-opacity: 1;
    color: rgb(229 231 235 / var(--tw-text-opacity));
}

.productCard {
    margin-bottom: 0.5rem;
    border-radius: 1rem;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity));
    --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color),
        0 2px 4px -2px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
        var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

:is(.dark .productCard) {
    --tw-bg-opacity: 1;
    background-color: rgb(32 33 31 / var(--tw-bg-opacity));
}

.productImgContainer {
    position: relative;
    aspect-ratio: 5/6;
    width: 100%;
}

.productImgContent {
    position: absolute;
    inset: 0px;
    margin: 0px;
    box-sizing: border-box;
    display: block;
    height: initial;
    width: initial;
    overflow: hidden;
    border-width: 0px;
    background-image: none;
    padding: 0px;
    opacity: 1;
}

.productImg {
    position: absolute;
    inset: 0px;
    margin: auto;
    box-sizing: border-box;
    display: block;
    height: 0px;
    max-height: 100%;
    min-height: 100%;
    width: 0px;
    min-width: 100%;
    max-width: 100%;
    border-radius: 1rem;
    border-color: none;
    -o-object-fit: fill;
    object-fit: fill;
    padding: 0px;
}

.productTitle {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
}

:is(.dark .productTitle) {
    --tw-text-opacity: 1;
    color: rgb(253 253 245 / var(--tw-text-opacity));
}

.productPrice {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-left: 0.5rem;
    --tw-text-opacity: 1;
    color: rgb(112 72 236 / var(--tw-text-opacity));
}

:is(.dark .productPrice) {
    --tw-text-opacity: 1;
    color: rgb(253 253 245 / var(--tw-text-opacity));
}

.discountBox {
    position: absolute;
    bottom: 0px;
    right: 0px;
    left: 0px;
    display: flex;
    justify-content: center;
}

.discount {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    --tw-bg-opacity: 1;
    background-color: rgb(112 72 236 / var(--tw-bg-opacity));
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    padding-top: 1.5px;
    padding-bottom: 1.5px;
    padding-top: 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 900;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));
}

:is(.dark .discount) {
    --tw-bg-opacity: 1;
    background-color: rgb(253 253 245 / var(--tw-bg-opacity));
}

.skelton {
    background-image: linear-gradient(90deg, #fff, gray);
    background-size: 200% 200%;

    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.product-item {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.product-item img {
    max-width: 200px;
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
}

.product-item h2 {
    font-size: 18px;

}

.product-item p {
    font-size: 14px;

}

.product-item .price {

    font-size: 17px;
    color: #5cb85c;
}

.product-item .special-price {
    font-size: 18px;
}

.product-item .old-price {
    text-decoration: line-through;
    margin-left: 10px;
}


.product-item .dropdown {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
}

.product-item .dropdown div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.product-item .dropdown label {
    font-size: 14px;
}

.product-item .dropdown select {
    padding: 5px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    width: 48%;
    appearance: auto !important;
    background-image: none !important;



}

.product-item .buy-btn {
    display: inline-block;
    background-color: #5cb85c;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    margin-top: 10px;
}

.product-item .buy-btn:hover {
    background-color: #4cae4c;
}

.product-item .btn-style
{
    padding: 10px 15px;
    border-radius: 4px;
}


@media (min-width: 1279px) {
    .product-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1279px) {
    .product-list {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 1024px) {
    .product-list {
        grid-template-columns: 1fr 1fr;
    }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .product-list {
        grid-template-columns: 1fr;
    }

    .product-item .dropdown div {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-item .dropdown select {
        width: 100%;
        margin-bottom: 10px;
    }


}

/* ریسپانسیو برای موبایل‌های کوچک */
@media (max-width: 480px) {
    .product-item {
        padding: 10px;
    }

    .product-item .dropdown div {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-item .dropdown select {
        width: 100%;
    }

}

.button-container {
  align-self: flex-end;
  width: 100%;
}