.product {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: left;
    background: #ffffff;
    margin-top: 0;
}

.product .sidebar {
    position: absolute;
    background-color: #ffffff;
    width: 80px;
    height: 480px;
    top: 35px;
    transition: 0.5s;
    overflow: hidden;
    border-radius: 8px;
    transition: width .5s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .25);
}

.product .sidebar.active {
    width: 250px;
}

.product .sidebar ul {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    list-style: none;
}

.product .sidebar ul li {
    position: relative;
    width: 100%;
}

.product .sidebar ul li:hover {
    background: #d3d3d3;
    color: #000;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.product .sidebar ul li a {
    display: flex;
    position: relative;
    width: 100%;
    text-decoration: none;
    color: #535353;
    font-size: 15px;
    font-weight: 500;
}

.product .sidebar ul li a .icon {
    position: relative;
    display: block;
    min-width: 80px;
    height: 60px;
    line-height: 60px;
    min-width: 80px;
    text-align: center;
}

.product .sidebar ul li a .icon .fa {
    font-size: 24px;
}

.product .sidebar ul li a .title {
    position: relative;
    display: block;
    height: 60px;
    line-height: 60px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s;
}

.toggle {
    position: absolute;
    top: 275px;
    left: 65px;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: #ffffff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.5s, transform 0.5s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .25);

}

.product .sidebar.active+.toggle {
    left: 235px;
    top: 275px;
}

.toggle::before {
    position: absolute;
    width: 100%;
    height: 100%;
    line-height: 30px;
    text-align: center;
    font-size: 16px;
    color: #000000;
}

.toggle i {
    font-size: 16px;
    color: #000000;
}

.toggle:hover {
    background: #d3d3d3;
    color: #000; 
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.toggle::before {
    position: absolute;
    width: 100%;
    height: 100%;
    line-height: 30px;
    text-align: center;
    font-size: 16px;
    color: #000000;
}

.product-showcase {
    flex-grow: 1;
    padding: 20px 30px 20px 120px;
    transition: padding-left 0.5s;
}

.sidebar.active+.toggle+.product-showcase {
    padding-left: 280px;
}

.product-showcase h2 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: 40px;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card{
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* 相關響應式設計 */
@media screen and (max-width: 768px) {
    .toggle {
        top: 275px;
    }
}

@media (max-width: 1400px) {
    .toggle {
        top: 275px;
    }
}

@media (max-width: 1200px) {
    .toggle {
        top: 275px;
    }
}

@media (max-width: 900px) {
    .toggle {
        top: 275px;
    }
}

@media (max-width: 600px) {
    .toggle {
        top: 275px;
    }
}