body {
    background-color: #f0f2f5;
}

.mdc-top-app-bar {
    background: linear-gradient(to right, #4caf50, #004d40);
}

main {
    padding: 16px;
}

#product-details, #product-infomercial {
    margin-bottom: 24px;
}

.mdc-card__secondary {
    padding: 0 1rem 1rem 1rem;
}

.mdc-card__primary {
    padding: 1rem;
}

#product-price {
    color: #0d47a1;
    font-weight: bold;
}

#language-selector .mdc-select__selected-text,
#language-selector .mdc-floating-label,
#language-selector .mdc-select__dropdown-icon {
    color: white !important;
}

#language-selector .mdc-notched-outline__leading,
#language-selector .mdc-notched-outline__notch,
#language-selector .mdc-notched-outline__trailing {
    border-color: transparent !important;
}

#language-selector {
    margin-bottom: 0;
    padding-bottom: 0;
    height: 48px; /* Standard MDC button height */
    display: flex;
    align-items: center;
}

#language-selector .mdc-select__anchor {
    height: 100%;
}

.flag-icon {
    width: 24px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.mdc-list-item__text {
    display: flex;
    align-items: center;
    justify-content: space-between; /* This will push the text to the right */
    width: 100%;
}

#language-selector .mdc-select__selected-text {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

/* Video Player Styling */
#product-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 16px;
}

#product-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#product-video-name {
    margin-top: 0;
    margin-bottom: 8px;
    color: #333; /* Darker color for better visibility */
    font-weight: bold;
}

.product-image-container {
    width: 100%;
    /* Maintain aspect ratio, e.g., 1:1 for square */
    padding-top: 100%; 
    position: relative;
    overflow: hidden;
    border-radius: 4px; /* Optional: for rounded corners */
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    display: block;
    transition: opacity 0.5s ease-in-out; /* Add transition for fade effect */
}

.mdc-dialog__content .mdc-text-field {
    width: 100%;
    margin-bottom: 16px; /* Add some space between text fields */
}

/* Custom Toast Styles */
.custom-toast {
    min-width: 250px;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 9999; /* High z-index to be on top */
    top: 30px;
    right: -100%; /* Start off-screen to the right */
    font-size: 17px;
    opacity: 0; /* Start invisible */
    transition: right 0.5s ease-out, opacity 0.5s ease-out; /* Slide and fade transition */
}

.custom-toast.show {
    right: 30px; /* Slide in to 30px from right */
    opacity: 1; /* Fade in */
}

/* Toast Types */
.custom-toast.info {
    background-color: #333; /* Dark grey */
    color: #fff;
}

.custom-toast.success {
    background-color: #28a745; /* Green */
    color: #fff;
}

.custom-toast.error {
    background-color: #dc3545; /* Red */
    color: #fff;
}

.custom-toast.warning {
    background-color: #ffc107; /* Yellow */
    color: #333;
}

#product-media-container {
    padding: 16px;
}

#product-details {
    padding: 16px;
}

.mdc-button--large {
    height: 48px;
    width: 100%;
}

@media (max-width: 839px) {
    #product-media-container {
        margin-bottom: 24px;
    }
}
