/* =============================================================================
   Sims Smart Cart — styles
   ============================================================================= */

/* ── Free Delivery Bar ─────────────────────────────────────────────────────── */
.sims-sc-bar-wrap {
    background: var(--bar-bg, #1a1210);
    color: var(--bar-text, #fff);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.sims-sc-bar-inner {
    max-width: 100%;
}

.sims-sc-bar-msg {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--bar-text, #fff);
}

.sims-sc-bar-msg strong {
    color: var(--bar-fill, #CAA854);
}

.sims-sc-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 6px;
}

.sims-sc-fill {
    height: 100%;
    background: var(--bar-fill, #CAA854);
    border-radius: 100px;
    transition: width 0.5s ease;
}

.sims-sc-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
}

.sims-sc-bar-sub {
    margin: 8px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}


/* ── Cross-Sell Section ────────────────────────────────────────────────────── */
.sims-sc-cross-sell {
    margin: 30px 0 10px;
    padding: 0;
}

.sims-sc-cs-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1210;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.sims-sc-cs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

@media (max-width: 480px) {
    .sims-sc-cs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Product card */
.sims-sc-cs-card {
    border: 1px solid #ece8e3;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}

.sims-sc-cs-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sims-sc-cs-img {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f7f5f2;
}

.sims-sc-cs-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.sims-sc-cs-card:hover .sims-sc-cs-img img {
    transform: scale(1.04);
}

.sims-sc-cs-info {
    padding: 10px 10px 6px;
    flex: 1;
}

.sims-sc-cs-name {
    display: block;
    font-size: 12px;
    color: #1a1210;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 4px;
    font-weight: 500;
}

.sims-sc-cs-name:hover {
    color: #CAA854;
}

.sims-sc-cs-price {
    font-size: 13px;
    font-weight: 600;
    color: #1a1210;
}

.sims-sc-cs-price .woocommerce-Price-amount {
    color: #1a1210;
}

.sims-sc-cs-action {
    padding: 0 10px 10px;
}

/* Buttons */
.sims-sc-cs-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
    letter-spacing: .03em;
}

.sims-sc-cs-btn--add {
    background: #1a1210;
    color: #CAA854;
    border: none;
}

.sims-sc-cs-btn--add:hover {
    background: #2d1c10;
    color: #fff;
}

.sims-sc-cs-btn--view {
    background: transparent;
    color: #1a1210;
    border: 1px solid #d5ccc4;
}

.sims-sc-cs-btn--view:hover {
    background: #1a1210;
    color: #fff;
    border-color: #1a1210;
}

/* Loading state */
.sims-sc-cs-btn--loading {
    opacity: .6;
    pointer-events: none;
}

.sims-sc-cs-btn--loading::after {
    content: ' …';
}

/* Added state */
.sims-sc-cs-btn--added {
    background: #3B6D11 !important;
    color: #fff !important;
    pointer-events: none;
}
