.product-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.sidebar-left {
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
}

.product-main {
    flex: 1;
    min-width: 0;
}

.filter-sidebar {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-sidebar h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-sidebar h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: #ff69b4;
    margin-top: 8px;
    border-radius: 2px;
}

.filter-cate-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.filter-cate-list li {
    border-bottom: 1px solid #f0f0f0;
}

.filter-cate-list li:last-child {
    border-bottom: none;
}

.filter-cate-list li a {
    display: block;
    padding: 14px 0;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.filter-cate-list li a::before {
    content: "›";
    margin-right: 8px;
    color: #ccc;
    transition: all 0.3s ease;
}

.filter-cate-list li a:hover,
.filter-cate-list li a.active {
    color: #ff69b4;
    padding-left: 10px;
}

.filter-cate-list li a:hover::before,
.filter-cate-list li a.active::before {
    color: #ff69b4;
    margin-right: 12px;
}


.price-filter {
    margin-top: 20px;
}

.price-filter h3 {
    margin-bottom: 15px;
}

.price-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.price-option:hover {
    color: #ff69b4;
}

.price-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    accent-color: #ff69b4;
    flex-shrink: 0;
}

.price-option label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.price-option:hover label {
    color: #ff69b4;
}

.price-option input[type="checkbox"]:checked + label {
    color: #ff69b4;
    font-weight: bold;
}

.apply-filter-btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 20, 147, 0.3);
}

.apply-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.4);
}

.reset-filter-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-filter-btn:hover {
    background: #eee;
    color: #ff69b4;
    border-color: #ff69b4;
}

.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fff0f5, #ffe4ec);
    border-radius: 15px;
    border: 2px solid #ffc0cb;
}

.sort-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-left label {
    font-weight: bold;
    color: #d63384;
    font-size: 14px;
}

.sort-left select {
    padding: 8px 30px 8px 15px;
    border-radius: 20px;
    border: 2px solid #ffb6c1;
    background: white;
    font-family: arial;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d63384' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.product-count-badge {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

html {
    scroll-behavior: smooth;
}

.cate:target {
    animation: highlightCate 2s ease;
}

@keyframes highlightCate {
    0% { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 105, 180, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0); }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #ff69b4, #ff1493);
    z-index: 9999;
    transition: width 0.1s;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.product {
    transition: all 0.3s ease;
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 105, 180, 0.2);
    border-color: #ff69b4;
}

@media only screen and (max-width: 768px) {
    .product-layout {
        flex-direction: column;
    }
    .sidebar-left {
        width: 100%;
        min-width: auto;
    }
}
