/* Basic styles for loading and error states */
.ss360-loading-text {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.ss360-error {
    background: #fff2cd;
    border: 1px solid #ffeaa7;
    color: #d68910;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
}

/* Swiper container */
.swiper-container {
    padding: 0 0 30px;
    overflow: visible;
}

.swiper-wrapper {
    box-sizing: border-box;
}

.swiper-slide {
    width: auto;
    height: auto;
}

/* Product item styling */
.ss360-product-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 200px;
    position: relative;
    overflow: hidden;
}

.ss360-product-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ss360-product-image {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}

.ss360-product-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
}

/* Badge for reduction */
.kmt-productbox-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.kmt-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #e60000;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 2px;
    line-height: 1.2;
}

/* Product details */
.ss360-product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ss360-product-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    flex-grow: 1;
}

.ss360-product-title a {
    color: #333;
    text-decoration: none;
}

.ss360-product-title a:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* Price styling */
.ss360-product-price {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.ss360-current-price {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.ss360-original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

/* Navigation buttons */
.kmt-sliderfeed-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.swiper-container:hover .kmt-sliderfeed-button {
    opacity: 1;
}

.kmt-sliderfeed-button--prev {
    left: -20px;
}

.kmt-sliderfeed-button--next {
    right: -20px;
}

.kmt-sliderfeed-button:after {
    content: '';
    width: 10px;
    height: 10px;
    border: solid #333;
    border-width: 0 2px 2px 0;
    display: inline-block;
    transform: rotate(135deg);
}

.kmt-sliderfeed-button--next:after {
    transform: rotate(-45deg);
}

/* Scrollbar */
.swiper-scrollbar {
    height: 4px;
    background: rgba(0,0,0,0.05);
    border-radius: 2px;
    bottom: 5px;
    left: 10%;
    width: 80%;
}

.swiper-scrollbar-drag {
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ss360-product-item {
        width: 180px;
    }
    
    .ss360-product-image img {
        height: 180px;
    }
    
    .kmt-sliderfeed-button {
        display: none;
    }
}

@media (max-width: 480px) {
    .ss360-product-item {
        width: 160px;
    }
    
    .ss360-product-image img {
        height: 160px;
    }
}