/* Main container */
.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

/* Item details section */
.item-details {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.item-image {
    width: 30%;
}
.item-image img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Styling for highlighted features in item-info-box */
.item-info-box {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
	width: 70%;
}

.item-info-box h1 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 8px;
}

.item-info-box p {
    font-size: 1em;
    color: #666;
    margin-bottom: 12px;
}
.highlighted-features {
    list-style-type: none; /* Remove default bullet points */
    padding: 0;
    margin: 0;
}

.highlighted-features li {
    font-size: 1em;
    padding: 8px 12px;
    border-left: 4px solid #d94a8c; /* Accent color */
    margin-bottom: 8px;
}

.highlighted-features li strong {
    color: #333;
    font-weight: bold;
    margin-right: 5px;
}





/* Tabs styling */
.tabs {
    width: 100%;
    background-color: #ffffff;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.tab-button {
    padding: 10px 20px;
    background-color: #f1f1f1;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    transition: background-color 0.3s;
}

.tab-button.active {
    background-color: #ffffff;
    font-weight: bold;
    border-bottom: 2px solid #007bff;
}

/* Consistent spacing and styling for all tab content sections */
.tab-content {
    margin-top: 0px;
    padding: 20px;
    background-color: transparent;
}

.tab-content h2 {
    margin-bottom: 5px;
}

/* All Prices store list */
.store-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

/* Individual store item styling */
.store-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Store logo styling */
.store-logo img {
    width: 100px;
    max-width: 100px;
}

/* Store information */
.store-info {
    flex: 1;
}

.store-name {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Price information styling */
.price-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price {
    font-size: 1rem;
    color: #28a745;
    font-weight: bold;
}

.visit-store {
    background-color: #007bff;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.visit-store:hover {
    background-color: #0056b3;
}

/* Chart container styling */
.chart-container {
    width: 100%;
    margin: 0 auto;
    margin-top: 20px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px; /* Rounded borders to match other elements */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* List View Table Styles */
#price-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

#price-history-table th, #price-history-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#price-history-table th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
}

#price-history-table td {
    color: #555;
    font-size: 14px;
}

#price-history-table td:nth-child(4) {
    font-weight: bold;
    color: black;
}

#price-history-table td.positive {
    color: #48A77B;
}

#price-history-table td.negative {
    color: #B62454;
}

#price-history-table tr:hover {
    background-color: #f9f9f9;
}

#show-more {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #48A77B;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#show-more:hover {
    background-color: #3e8e68;
}

/* Smaller icons for chart and list view toggle */
button#chartViewButton, button#listViewButton {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    margin-left: 10px;
}

button#chartViewButton:focus, button#listViewButton:focus {
    outline: none;
}

/* Style for the list view container to match the chart view */
.list-view-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-family: Arial, sans-serif;
}

.price-table th, .price-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.price-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.price-table tr:hover {
    background-color: #f1f1f1;
}

#showMoreButton {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 1em;
    cursor: pointer;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
}

#showMoreButton:hover {
    background-color: #0056b3;
}

/* Features Section */
#featuresList {
    padding: 20px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.feature-group h3 {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    padding-bottom: 5px;
    border-bottom: 2px solid #f1f1f1;
    margin-bottom: 10px;
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
}

.feature-table td {
    padding: 8px 5px;
    font-size: 0.95em;
    color: #555;
    border-bottom: 1px solid #f4f4f4;
    text-align: left; /* Ensures left alignment for all table cells */
}

.feature-table td:first-child {
    font-weight: bold;
    color: #333;
    width: 40%;
}

.feature-table td:last-child {
    text-align: left; /* Left-align feature values */
    color: #007bff;
}

.disclaimer {
    margin-top: 15px;
    padding: 10px;
    border-left: 4px solid #d94a8c;
    font-size: 0.9em;
    color: #000;
}

.disclaimer em {
    font-weight: bold;
    color: #333;
}

.disclaimer-link {
    color: #007bff;
    text-decoration: underline;
    font-weight: bold;
}

.disclaimer-link:hover {
    text-decoration: none;
    color: #0056b3;
}
        /* Enhanced image gallery styles */
        .item-image-gallery {
            position: relative;
            width: 100%;
            max-width: 500px;
        }
        
        .main-image-container {
            position: relative;
            width: 100%;
            aspect-ratio: 1;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            background: #f9f9f9;
        }
        
        .main-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            cursor: zoom-in;
        }
        
        .image-thumbnails {
            display: flex;
            gap: 8px;
            margin-top: 10px;
            flex-wrap: wrap;
        }
        
        .thumbnail {
            width: 60px;
            height: 60px;
            border: 2px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
            object-fit: cover;
            transition: border-color 0.2s;
        }
        
        .thumbnail:hover {
            border-color: #007bff;
        }
        
        .thumbnail.active {
            border-color: #007bff;
            box-shadow: 0 0 0 1px #007bff;
        }
        
        .image-counter {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
        }
        
        .no-image-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            background: #f0f0f0;
            color: #666;
            font-size: 14px;
        }
        
        /* Image zoom modal */
        .image-modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            cursor: pointer;
        }
        
        .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 90%;
            max-height: 90%;
        }
        
        .modal-image {
            width: 100%;
            height: auto;
            border-radius: 4px;
        }
        
        .close-modal {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
        }
        
        .close-modal:hover {
            color: #bbb;
        }
        
        /* Variations styles */
        .variations-section {
            margin-top: 20px;
            padding: 15px;
            background-color: #f9f9f9;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
        }
        
        .variations-section h3 {
            margin-top: 0;
            margin-bottom: 15px;
            color: #333;
            font-size: 18px;
        }
        
        .variation-group {
            margin-bottom: 20px;
        }
        
        .variation-group-title {
            font-weight: bold;
            margin-bottom: 10px;
            color: #555;
            font-size: 16px;
        }
        
        .variation-options {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .variation-option {
            padding: 8px 15px;
            border: 2px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
            background-color: white;
        }
        
        .variation-option:hover {
            border-color: #007bff;
            background-color: #f0f8ff;
        }
        
        .variation-option.active {
            border-color: #007bff;
            background-color: #e6f2ff;
            font-weight: bold;
        }
        
        .variation-option.linked {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .variation-option.linked img {
            width: 30px;
            height: 30px;
            object-fit: cover;
            border-radius: 3px;
        }
        
        .variation-option.unavailable {
            opacity: 0.5;
            cursor: not-allowed;
            text-decoration: line-through;
        }
        
        .variation-info {
            margin-top: 15px;
            padding: 10px;
            background-color: #e8f4ff;
            border-radius: 4px;
            border-left: 4px solid #007bff;
        }