/* Buton personalizat */
.cc-add-to-cart-button {
    background: transparent !important;
    color: black !important;
    padding: 12px 30px !important;
    border: 1px solid black !important; /* border negru */
    cursor: pointer !important;
    font-weight: bold !important;
    border-radius: 100px !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
    display: inline-block;
    vertical-align: middle;
}

.cc-add-to-cart-button:hover:not(:disabled) {
    background-color: black !important;
    color: white !important;
    border-color: black !important;
}

.cc-add-to-cart-button:disabled {
    background-color: transparent !important;
    color: #666 !important;
    border-color: black !important;
    cursor: not-allowed !important;
}

/* Card selectabil (radio inputs) */
.cc-product-checkbox:checked + label {
    border: 1px solid #1D9C7E !important; /* doar border verde */
    box-shadow: none !important; /* fără glow */
    background-color: transparent !important; /* fără fundal */
    position: relative; /* pentru icon */
}

/* Cursor pointer pe label */
label.cursor-pointer {
    cursor: pointer !important;
    user-select: none !important;
}

/* Card full height și padding */
.card.h-100 {
    height: 100% !important;
    min-height: 175px !important;
    padding: 20px 30px 20px 30px !important;
    box-sizing: border-box;
    margin: 0 !important;
}

/* Imaginea în card să aibă max-height și să fie centrată */
.card-img-top {
    object-fit: contain !important;
    max-height: 100px !important;
    max-width: 100px !important;
    display: block !important;
    margin-right: auto !important;
    padding: 0 0 20px 0 !important;
}
.card-body{
    padding: 0 !important; 
    display: flex !important;
    flex-direction: column !important;
}

/* Titlu și text card */
.card-title {
    font-size: 1rem !important;
    font-weight: normal !important;
    color: black !important;
    line-height: 1.2 !important;
    margin-bottom: 15px!important;
}

.cc-product-radio:checked + label .card-title {
    color: #1D9C7E !important;
}

.card-text {
    font-size: 0.9rem !important;
    color: #333 !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
}

/* Spațiu între carduri */
.row.g-3 > [class*="col-"] {
    margin-bottom: 1rem !important;
}

/* Footer card (preț + icon) - aliniat jos, spațiu între ele */
.cc-card-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    margin-top: auto !important; /* împinge footer jos */
    padding-top: 10px !important;
    position: relative;
}

/* Preț în dreapta jos */
.cc-card-price {
    font-weight: normal !important;
    color: #000;
    font-size: 1rem !important;
    margin: auto 0px;
}

/* Wrapper icon selectare - poziționat în stânga jos, mai mare */
.cc-card-icon-wrapper {
    width: 50px !important;
    height: 50px !important;
    border: 1px solid rgb(33, 37, 41) !important; 
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

/* Icon personalizat */
.cc-card-icon {
    display: block;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Săgeata pentru card nemarcat */
.cc-product-checkbox:not(:checked) + label .cc-card-icon {
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23000" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><line x1="4" y1="12" x2="20" y2="12"/><polyline points="14 6 20 12 14 18"/></svg>');
}

/* Icon pentru card selectat checkbox */
.cc-product-checkbox:checked + label .cc-card-icon {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%231D9C7E" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.285 6.709l-11.4 11.4-5.4-5.4 1.414-1.414 3.986 3.986 9.986-9.986z"/></svg>');
}

/* Icon checkmark - centrat în interiorul cercului, nu mai folosește pseudo ::before */
.cc-card-icon::before {
    display: none !important;
}

/* Border verde la selectare pe wrapper */
.cc-product-checkbox:checked + label .cc-card-icon-wrapper {
    border-color: #1D9C7E !important;
}

.cc-configurator.container{
    width: 100% !important;
    margin: 0 !important;
    max-width: max-content!important;
    padding: 0 !important;
}

.cc-price-button-wrapper {
  display: flex;
  align-items: center;
  gap: 15px; /* spațiu între preț și buton */
  margin-top: 1rem; /* spațiu sus dacă vrei */
}

.cc-total-price {
  margin: 0; 
  font-size: 1.5rem;
  font-weight: 600;
}

.cc-add-to-cart-button {
  margin: 0; /* elimină marginile implicite */
  font-size: 16px;
}
