body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header {
    background-color: #88cbfb;
    color: #FF5733;
    padding: 0.5rem;
    text-align: center;
}
header .logo {
    left: 1rem;
    display: flex;
    align-items: center;
}
header .logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}
main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem auto;
    max-width: 1200px;
    flex: 1;
    overflow-y: auto;
}
.product {
    background: #f7c4ff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 1rem;
    padding: 1rem;
    text-align: center;
    width: auto;
    width: 300px;
    align-self: flex-start;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
.product:hover {
    transform: scale(1.05);
}
.product img {
    max-width: 100%;
    border-radius: 5px;
}
.product h2 {
    color: #6A5ACD;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}
.product p {
    color: #555;
}
.product button {
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}
.product button:hover {
    background-color: #218838;
}
footer {
    text-align: center;
    background-color: #75a7de;
    color: #FF5733;
    font-weight: bold;
    padding: 1rem;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}
a.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.dark-mode {
    background-color: #121212;
    color: white;
}
.dark-mode header, .dark-mode footer {
    background-color: #1e1e1e;
}
.dark-mode .product {
    background-color: #6A5ACD;
    border: 1px solid #141414;
}
.dark-mode .product h2 {
    color: #f7c4ff;
}
.dark-mode-icon {
    filter: invert(42%) sepia(80%) saturate(2020%) hue-rotate(339deg) brightness(100%) contrast(103%);
    position: absolute; 
    right: 1rem; 
    width: 40px; 
    height: 40px; 
    cursor: pointer; 
    transition: transform 0.2s ease; 
}

.dark-mode-icon:hover {
    transform: scale(1.1); 
}
.product-info {
    max-width: 600px;
    margin-left: 2rem;
}

.product-info h2 {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.product-info p {
    color: #555;
    font-size: 1.2rem;
}

.product-info .price {
    font-size: 1.5rem;
    color: #28a745;
    margin: 1rem 0;
}

.product-info button {
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
    width: 100%;
}

.product-info button:hover {
    background-color: #218838;
}
.product-detail {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem;
    flex: 1;
}

.product-images {
    position: relative;
    max-width: 400px;
    max-height: 400px;
}

.product-images img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
