/**
 * Product Card Rounded Corners
 * Adds modern rounded corners to product cards on all devices
 */

/* Product card container */
.wsus__single_product_item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.wsus__single_product_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Product image container - rounded top corners */
.wsus__single_product_item .img,
.wsus__single_product_item .wsus__pro_img,
.wsus__pro_img {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

/* Product image itself */
.wsus__single_product_item .img img,
.wsus__single_product_item .wsus__pro_img img,
.wsus__pro_img img {
    border-radius: 16px 16px 0 0;
    transition: transform 0.4s ease;
}

.wsus__single_product_item:hover .img img,
.wsus__single_product_item:hover .wsus__pro_img img {
    transform: scale(1.05);
}

/* Price badge - rounded */
.wsus__single_product_item .wsus__pro_img span,
.wsus__pro_img span.price_badge,
.price_badge {
    border-radius: 8px;
}

/* Product text area */
.wsus__single_product_item .text,
.wsus__single_product_item .wsus__pro_text {
    padding: 15px;
}

/* Category cards - also round them */
.wsus__categories_item {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wsus__categories_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Blog cards */
.wsus__single_blog {
    border-radius: 16px;
    overflow: hidden;
}

.wsus__single_blog .img,
.wsus__single_blog .img img {
    border-radius: 16px 16px 0 0;
}

/* Gallery items */
.wsus__gallery_item,
.wsus__gallery_item_img {
    border-radius: 12px;
    overflow: hidden;
}

/* Buttons - subtle rounding */
.common_btn,
.wsus__single_product_item .add_cart,
button[type="submit"] {
    border-radius: 8px;
}

/* Search form */
.wsus__banner_text form {
    border-radius: 12px;
    overflow: hidden;
}

.wsus__banner_text form input {
    border-radius: 8px 0 0 8px;
}

.wsus__banner_text form button {
    border-radius: 0 8px 8px 0;
}

/* Nice select dropdown */
.nice-select {
    border-radius: 8px !important;
}

/* FIX: Remove Bootstrap's form-select arrow when nice-select is used */
.nice-select.form-select {
    background-image: none !important;
    background: #fff !important;
}

/* Hide the original select arrow that might be showing */
.nice-select select {
    display: none !important;
}

/* Ensure only one arrow shows */
.nice-select::after {
    content: '\f078' !important;
    font-family: "font awesome 5 free" !important;
    font-weight: 600 !important;
    display: block !important;
}

/* Hide any extra arrow icons */
.nice-select .fa,
.nice-select .fas,
.nice-select i:not(.current i) {
    display: none !important;
}

.nice-select .list {
    border-radius: 8px;
    margin-top: 5px;
}

/* Modal rounded corners */
.modal-content {
    border-radius: 16px !important;
    overflow: hidden;
}

/* Sidebar widgets */
.wsus__sidebar_item,
.wsus__sidebar_author {
    border-radius: 16px;
    overflow: hidden;
}

/* Input fields */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    border-radius: 8px;
}

/* Toast notifications */
.toast {
    border-radius: 12px !important;
}

/* Mobile optimizations */
@media (max-width: 991px) {
    .wsus__single_product_item {
        border-radius: 12px;
    }

    .wsus__single_product_item .img,
    .wsus__single_product_item .img img,
    .wsus__pro_img,
    .wsus__pro_img img {
        border-radius: 12px 12px 0 0;
    }

    .wsus__categories_item {
        border-radius: 12px;
    }

    .modal-content {
        border-radius: 16px !important;
    }
}