.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}
.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
}
.main-image {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.main-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}
.product-map {
    height: 300px;
    background-color: white;
    border-radius: 10px;
    margin-top: 20px;
}
.product-details {
    width: 50%;
}

.leaflet-tooltip {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    padding: 5px 10px !important;
    color: black !important;
    font-size: 12px !important;
}

.location-tooltip {
    max-width: 200px !important;
}
.map-legend {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.map-legend h4 {
    margin: 0 0 10px 0;
    text-align: center;
    color: black;
}
.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    color: black;
}
.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
    display: inline-block;
}
.product-title {
    font-size: 2rem;
    margin-bottom: 20px;
}
.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.sale-price {
    color: #ff1493;
    font-size: 1.5rem;
    font-weight: bold;
}
.sku {
    color: #888;
    margin-bottom: 20px;
}
.description {
    margin-bottom: 20px;
}
.add-to-cart {
    background: linear-gradient(45deg, #007bff, #00c4ff);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 24px;
    gap: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.add-to-cart:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
.add-to-cart:active {
    transform: translateY(0);
}
.store-info {
    color: #888;
}
.product-details ul {
    padding-left: 20px;
}

/* Recommendations Section Styling */
.recommendations-container {
    max-width: 1200px;
    margin: 0 auto;
}

.recommendations-container h2 {
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-image {
    background-color: white;
    padding: 10px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card-image img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.product-card-info {
    padding: 15px;
}

.product-card-info h3 {
    font-size: 1rem;
    margin: 0 0 10px 0;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.product-card:hover .product-card-info h3 {
    height: auto;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    color: #007bff;
    text-decoration: underline;
}

/* To handle layout shifts, you might want to add a min-height to the card */
.product-card {
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
}

.product-card:hover {
    z-index: 2; /* Bring hovered card to front */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card-division {
    color: #999;
    font-size: 0.8rem;
    margin: 0 0 5px 0;
}

.product-card-price {
    color: #ff1493;
    font-weight: bold;
    margin: 5px 0 0 0;
}

.error {
    text-align: center;
    padding: 20px;
    color: #ff6b6b;
}
.store-list {
    margin: 10px;
}
.store-item {
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.store-item:hover, .store-item.active {
    background-color: white;
    color: black;
}
.store-item.active {
    font-weight: bold;
    border: 1px solid white;
    color: black;
}

/* Default state - show desktop map, hide mobile map */
#desktop-map {
    display: block;
    height: 300px;
}

#mobile-map {
    display: none;
    height: 300px;
}

/* Mobile Portrait View */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .container {
        flex-direction: column;
        gap: 20px;
    }
    .product-images, 
    .product-details {
        width: 100%;
    }
    .product-title {
        font-size: 1rem;
    }

    /* Hide desktop map */
    #desktop-map {
        display: none;
    }

    /* Show mobile map */
    #mobile-map {
        display: block;
        margin-top: 20px;
        height: 300px;
    }
}

/* Mobile responsive for modern view */
@media screen and (max-width: 1200px) {
    .recommendations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Page Light Theme Styles */

/* Recommendations Section - Light */
[data-theme="light"] .product-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .product-card-image {
    background-color: white;
    border-bottom: 1px solid #dee2e6;
}

[data-theme="light"] .product-card-info h3 {
    color: #212529;
}

[data-theme="light"] .product-card:hover .product-card-info h3 {
    color: #007bff;
}

[data-theme="light"] .product-card-division {
    color: #6c757d;
}

[data-theme="light"] .product-card-price {
    color: #e91e63;
}