.personal-color {
    display: flex;
    gap: 30px;
    width: 100%;
    background-color: #ffffff;
}

.pc-sidebar {
    padding: 20px 10px;
    width: 225px;
    flex-shrink: 0;
    overflow-y: auto;
    background-color: #FFC8DF;
}

.pc-accordion-item {
    background-color: #ffffff;
}

.pc-accordion-item:not(:first-child) {
    border-top: 1px solid rgba(0, 0, 0, 0.5);
}

.pc-accordion-item__header {
    padding: 10px;
    display: flex;
    cursor: pointer;
    column-gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.pc-accordion-item.open .pc-accordion-item__header {
    background-color: #ECECEC;
}

.pc-accordion-item__title {
    display: flex;
    column-gap: 5px;
    align-items: center;
}

.pc-accordion-item__heading {
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.5);
}

.pc-accordion-item__icon {
    line-height: 0;
    transition: transform 0.3s ease;
}

.pc-accordion-item.open .pc-accordion-item__icon {
    transform: rotate(180deg);
}

.pc-accordion-item.open .pc-accordion-item__content {
    display: block;
}

.pc-sidebar__filter-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pc-sidebar__filter-item {
    padding: 5px 10px;
    transition: all .2s ease-in-out;
}

.pc-sidebar__filter-item:hover {
    background-color: #E9E9E9;
}

.pc-sidebar__label {
    margin-bottom: 0;
    display: flex;
    column-gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.pc-sidebar__checkbox {
    padding: 0;
    position: relative;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
    border: 1px solid #000000;
    background-color: #ffffff;
    
    appearance: none;
    -webkit-appearance: none;
}

.pc-sidebar__checkbox:checked {
    background-color: #000;
}

.pc-sidebar__checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.pc-sidebar__text {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
}

.pc-accordion-item__actions {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

button.pc-accordion-item__btn {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    background-color: transparent;
}

.pc-main {
    display: flex;
    flex-grow: 1;
    row-gap: 24px;
    flex-direction: column;
}

.pc-categories-row {
    display: grid;
    gap: 50px;
    grid-template-columns: repeat(3, 1fr);
}

.pc-category-block {
    display: flex;
    flex: 1;
    row-gap: 10px;
    flex-direction: column;
    background-color: #ffffff;
}

.pc-category-block__header {
    padding: 10px;
    background-color: #FF85B8;
}

.pc-category-block__title {
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: #ffffff;
}

.pc-swatch-list {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: repeat(4, 1fr);

    border-style: solid;
    border-width: 0 1px 1px 0;
    border-color: rgba(0, 0, 0, 0.3);

    max-height: 272px;
    overflow-y: auto;
}

/* Tùy biến thanh cuộn scrollbar gọn gàng */
.pc-swatch-list::-webkit-scrollbar {
    width: 3px;
}
.pc-swatch-list::-webkit-scrollbar-track {
    background: transparent;
}
.pc-swatch-list::-webkit-scrollbar-thumb {
    background: #C6C6C6;
    border-radius: 20px;
}

.pc-swatch-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    border-style: solid;
    border-width: 1px 0 0 1px;
    border-color: rgba(0, 0, 0, 0.3);
    background-color: #D0FFA7;
}

.pc-swatch-cell.has-product::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    visibility: hidden;
    background-color: #00000040;
    transition: all .2s ease-in-out;
}

.pc-swatch-cell.has-product:hover::before {
    opacity: 1;
    visibility: visible;
}

.pc-swatch-cell__img {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.pc-swatch-cell__tick {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    border-radius: 2px;
    background-color: #ffffff;
}

.pc-swatch-cell__tick svg {
    display: none;
}

.pc-swatch-cell.has-product.selected .pc-swatch-cell__tick svg {
    display: block;
}

.pc-bottom-row {
    padding: 26px 36px;
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: start;
    gap: 30px 60px;
    background: linear-gradient(180deg, rgba(252, 233, 239, 0.2) 0%, rgba(255, 120, 156, 0.2) 99.52%);
}

.pc-product-variant {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pc-product-variant__header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

.pc-product-variant__title {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 14px;
    color: #000000;
}

.pc-product-variant__hint {
    font-size: 12px;
    font-style: italic;
    color: rgba(0, 0, 0, 0.5);
}

.pc-product-variant__list {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;

    padding-right: 3px;
    min-height: 480px;
    max-height: 480px;
    overflow-y: auto;
}

/* Tùy biến thanh cuộn scrollbar gọn gàng */
.pc-product-variant__list::-webkit-scrollbar {
    width: 3px;
}
.pc-product-variant__list::-webkit-scrollbar-track {
    background: #ffffff;
}
.pc-product-variant__list::-webkit-scrollbar-thumb {
    background: #C6C6C6;
    border-radius: 20px;
}

.pc-product-variant__item {
    position: relative;
    padding: 6px;
    display: flex;
    gap: 12px;
    cursor: pointer;
    align-items: center;
}

.pc-product-variant__item:not(:first-child) {
    margin-top: 6px;
}

.pc-product-variant__item-img {
    width: 50px;
    height: 50px;
    display: block;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.pc-product-variant__item-variable {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}

.pc-product-variant__item-price {
    font-size: 12px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.5);
}

.pc-product-variant__item-name {
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.5);
}

.pc-product-variant__item-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: transparent;
}

/* Loading state */
.pc-loading {
    padding: 16px;
    font-size: 12.5px;
    color: #aaa;
    text-align: center;
    list-style: none;
    font-style: italic;
}

/* Product / variation item */
.pc-product-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #fce4ec;
    gap: 10px;
    cursor: pointer;
    transition: background .12s;
}
.pc-product-item:last-child { border-bottom: none; }
.pc-product-item:hover { background: #fce4ec55; }

/* Pulse animation when added */
@keyframes pc-item-added {
    0%   { background: #fce4ec; }
    50%  { background: #f8bbd0; }
    100% { background: transparent; }
}
.pc-item--added { animation: pc-item-added .55s ease; }

/* Swatch thumbnail */
.pc-product-item__swatch {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
    display: block;
    border: 1px solid rgba(0,0,0,.06);
}
.pc-product-item__swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pc-product-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.pc-product-item__name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pc-product-item__sku {
    font-size: 11px;
    color: #aaa;
}

/* Attribute tags */
.pc-product-item__attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}
.pc-attr-tag {
    background: #fce4ec;
    color: #c2185b;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

/* Add button */
.pc-product-item__add {
    background: #fce4ec;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e91e63;
    font-size: 14px;
    flex-shrink: 0;
    transition: background .12s, transform .12s;
}
.pc-product-item__add:hover {
    color: #fff;
    background: #e91e63;
    transform: scale(1.1);
}

.pc-slot-wrap {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-direction: column;
    width: 330px;
}

/* Search */
.pc-search-bar { 
    position: relative; 
}

.pc-search-bar input {
    padding: 7px 14px;
    font-size: 14px;
    line-height: 1;
    width: 100%;
    outline: none;
    border-radius: 25px;
    color: rgba(0, 0, 0, 0.5);
    background-color: #ffffff;
}

.pc-search-bar svg {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
}

/* Slot chips */
.pc-slot-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.pc-slot-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    min-width: 36px;
    height: 36px;
    color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 50%;
    transition: all .15s ease-in-out;
    background-color: rgba(255, 133, 184, 0.4);
}
.pc-slot-chip:hover { 
    background-color: rgba(255, 133, 184, 0.8);; 
}

.pc-slot-chip.active {
    background: rgba(0, 0, 0, 0.8);
}

.pc-slot-chip--clear {
    font-size: 10px;
    background-color: rgba(0, 0, 0, 0.5);
}

.pc-slot-chip--clear:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Case grid */
.pc-case-grid {
    position: relative;
    padding: 12px;
    display: grid;
    gap: 6px;
    flex: 1;
    min-height: 235px;
    overflow: hidden;
    align-content: start;
    border-radius: 5px;
    border: 1px solid #000000B2;
    background-color: #ffffff;
    box-shadow: 5px 5px 5px 0px #00000026;
}

.pc-case-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    font-size: 12px;
    color: #000000;
    text-align: center;
    pointer-events: none;
}

.pc-case-empty__icon {
    font-size: 22px;
}

.pc-case-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border-radius: 5px;
    border: 1px solid transparent;
    transition: all .2s ease-in-out;
}

.pc-case-slot:hover { 
    border-color: #e91e63; 
}

.pc-case-slot.active {
    border-color: #e91e63;
}

.pc-case-slot.filled {
    opacity: 1;
}

.pc-case-slot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.pc-case-slot .pc-case-slot__label {
    padding: 2px;
    font-size: 9px;
    color: #000000;
    text-align: center;
    pointer-events: none;
}

/* Slot clear button */
.pc-slot-clear-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255,255,255,.92);
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: #c62828;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.pc-case-slot:hover .pc-slot-clear-btn { display: flex; }

/* Actions */
.pc-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.pc-btn {
    padding: 8px 18px;
    font-weight: 500;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    border: none;
    color: #FFFFFF;
    border-radius: 20px;
    transition: all .15s ease-in-out;
}

.pc-btn--ghost { 
    background-color: #ABABAB; 
}

.pc-btn--ghost:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.pc-btn--primary { 
    background-color: #FF539B;
}

.pc-btn--primary:hover { 
    background: #c2185b; 
}

@media(max-width: 1024px) {
    .pc-categories-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .pc-slot-wrap {
        width: 50%;
    }
}

@media (max-width: 991px) {
    .personal-color {
        flex-wrap: wrap;
    }

    .pc-sidebar {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .pc-categories-row {
        grid-template-columns: 1fr;
    }

    .pc-bottom-row {
        padding: 20px;
    }

    .pc-slot-wrap {
        width: 100%;
    }   
}