#sc-customizer {
    font-family: "Inter", sans-serif;
    max-width: 1080px;
    margin: 0 auto;
    padding: 30px 15px;
}

/* STEP HEADER */
.sc-step-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sc-step-header-title {
    font-size: 20px;
    font-weight: 700;
}

/* PROGRESS BAR */
.sc-progress-bar {
    position: relative;
    height: 6px;
    border-radius: 6px;
    background: #e5e5e5;
    margin-bottom: 25px;
}
.sc-progress-fill {
    height: 6px;
    width: 0%;
    border-radius: 6px;
    background: #111;
    transition: width .3s ease;
}

.sc-back-btn {
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 0;
    background: transparent;
    color: #555;
}
.sc-back-btn:hover { color: #111; }

/* HIDDEN */
.hidden { display: none; }

/* GRID */
.sc-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* CARD UI */
.sc-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .25s ease;
    box-shadow: 0 5px 14px rgba(0,0,0,0.06);
    position: relative;
}

.sc-item:hover {
    transform: translateY(-3px);
}

/* SELECTED STATE */
.sc-item.selected {
    border-color: #111;
}

.sc-selected-check {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #111;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.sc-item.selected .sc-selected-check {
    display: flex;
}

/* IMAGES */
.sc-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* CARD TITLE */
.sc-item div:last-child {
    padding: 14px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* ADD TO CART BUTTON */
.sc-btn {
    width: 100%;
    background: #111;
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    border: none;
}
.sc-btn:hover { background: #000; }

/* ATTRIBUTES */
#sc-attributes { margin-top: 10px; }

.variations_form select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

/* AJAX Loader */
.sc-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.sc-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #ccc;
    border-top-color: #111;
    border-radius: 50%;
    animation: sc-spin 0.7s linear infinite;
}

@keyframes sc-spin {
    to { transform: rotate(360deg); }
}

.hidden { display: none !important; }

/* Skeleton */
.sc-skel-card {
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.06);
    animation: sc-pulse 1.2s infinite ease-in-out;
}

.sc-skel-img {
    width: 100%;
    height: 160px;
    background: #e6e6e6;
    border-radius: 10px;
    margin-bottom: 10px;
}

.sc-skel-text {
    width: 80%;
    height: 14px;
    background: #ddd;
    border-radius: 6px;
    margin: 0 auto;
}

.sc-skel-line {
    height: 14px;
    background: #ddd;
    border-radius: 6px;
    margin-bottom: 14px;
    width: 100%;
}

.sc-skel-line.short {
    width: 60%;
}

.sc-skel-btn {
    height: 44px;
    background: #e0e0e0;
    border-radius: 8px;
    margin-top: 20px;
}

@keyframes sc-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}


/* MOBILE */
@media(max-width: 600px){
    .sc-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .sc-item img { height: 160px; }
}
