.dd-csb-wrapper {
    margin: 25px 0;
    padding: 20px 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
}

.dd-csb-header {
    margin-bottom: 15px;
}

.dd-csb-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 700;
    color: #1a202c;
}

/* Slider kontejner bez scrollbar-a */
.dd-csb-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.dd-csb-cards-container {
    display: flex;
    gap: 15px;
    overflow-x: hidden; /* Skriva horizontalni scrollbar potpunosti */
    scroll-behavior: smooth;
    padding: 6px 3px;
    width: 100%;
    
    /* Dodatno osiguranje za sakrivanje scrollbar-a na svim pretraživačima */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.dd-csb-cards-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Navigacione strelice */
.dd-csb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: all 0.2s ease;
    color: #4a5568;
    font-size: 14px;
}

.dd-csb-nav:hover {
    background: #2b6cb0;
    color: #ffffff;
    border-color: #2b6cb0;
}

.dd-csb-prev { left: -14px; }
.dd-csb-next { right: -14px; }

/* Kartica proizvoda */
.dd-csb-card {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 280px; /* Fiksna širina svake kartice */
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    box-sizing: border-box;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dd-csb-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.dd-csb-save-tag {
    position: absolute;
    top: -8px;
    left: 10px;
    background: #e53e3e;
    color: #fff;
    font-size: 0.68em;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 4px;
    z-index: 2;
}

/* Slika lijevo */
.dd-csb-image {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dd-csb-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Sadržaj desno */
.dd-csb-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    position: relative;
    min-height: 65px;
}

.dd-csb-item-title {
    font-size: 0.85em;
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.dd-csb-item-title:hover {
    color: #2b6cb0;
}

.dd-csb-pricing del {
    color: #a0aec0;
    font-size: 0.78em;
    margin-right: 4px;
}

.dd-csb-pricing ins {
    color: #2b6cb0;
    font-weight: 700;
    font-size: 0.9em;
    text-decoration: none;
}

.dd-csb-add-btn {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    
    /* Fiksne dimenzije koje sprečavaju elipsu */
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    
    background-color: #2b6cb0 !important;
    color: #ffffff !important;
    border: none !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 5;
    transition: background-color 0.2s, transform 0.1s;
}

.dd-csb-add-btn:hover {
    background-color: #2c5282 !important;
    transform: scale(1.08);
}

.dd-csb-add-btn.added {
    background-color: #38a169 !important;
}

/* Osigurava da ikonica unutar dugmeta ostane centrirana i ne deformiše se */
.dd-csb-cart-icon {
    stroke: #ffffff;
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 auto;
}

/* Tooltip za dugme */
.dd-csb-add-btn[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    right: 0;
    white-space: nowrap;
    background-color: #1a202c;
    color: #ffffff;
    font-size: 0.72em;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dd-csb-add-btn[data-tooltip]:hover::after {
    content: '';
    position: absolute;
    bottom: 105%;
    right: 12px;
    border-width: 5px;
    border-style: solid;
    border-color: #1a202c transparent transparent transparent;
    pointer-events: none;
    z-index: 20;
}