.container {
    display: flex;
    margin: 0 auto;
    width: 60%; /* 60% width to allow 20% space on each side */
}

.sidebar {
    width: 25%;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
    background-color: #f8e71c;
    padding: 10px;
    margin: 0;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #888;
}

.nav>ul>li>a {
    color: black;
}

.sidebar ul li a.active {
    color: #f8e71c;
}

.submenu {
    display: none;
    list-style-type: none;
    padding-left: 20px;
    margin-top: 10px;
}

.sidebar .contact {
    margin-top: 30px;
	text-align: justify;
}

.sidebar .contact p {
    margin: 10px 0;
}

.content {
    width: 75%;
    padding: 20px;
}

.content h1 {
    margin: 0 0 20px;
}

.tab-content {
    display: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px;
}

.product {
    background-color: #ffffff;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
	transition: transform 0.5s ease, box-shadow 0.5s ease;
	cursor: pointer;
}

.product img:hover {
    transform: scale(1.1) rotate(5deg); /* 放大并旋转 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); /* 添加阴影 */
}

.product p {
    margin: 0;
    font-weight: bold;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination button {
    padding: 5px 10px;
    margin: 0 5px;
    font-size: 16px;
}

.pagination span {
    margin: 0 10px;
    font-size: 16px;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    position: relative;
    cursor: default; /* Ensure the content area does not close modal on click */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-image {
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
}


.modal-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.modal-image img.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}
