/* Purchasing Container */
.purchasing-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two-column layout for large screens */
    gap: 20px;
    padding: 20px;
    background-color: #2e2e2e;
    margin-top: 30px;
}

/* Adjust layout for small screens */
@media (max-width: 768px) {
    .purchasing-container {
        grid-template-columns: 1fr; /* Single column on small screens */
        padding: 10px;
    }

    .purchase-locations-container {
        order: 2; /* Moves this section below */
    }

    .product-sale-container {
        order: 3; /* Moves this section below */
    }
}

/* Purchase Locations Container - Full Width & Centered */
.purchase-locations-container {
    max-width: 900px;
    margin: 20px auto;
    text-align: center;
    background-color: #2e2e2e; /* Matches theme */
    padding: 10px;
    border-radius: 5px;
}

/* Store Links */
.store-link {
    color: white;
    text-decoration: none;
    padding: 0 10px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.store-link:hover {
    border-color: red; /* Red underline on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .purchase-locations-container {
        order: 2; /* Moves it lower in mobile layout */
        width: 100%;
        padding: 15px;
    }
}
/* Product Sale Button */
.product-sale-container .sale-button {
    display: block;
    background-color: red;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    width: 100%;
    margin-top: 20px;
}

.product-sale-container .sale-button:hover {
    background-color: darkred;
}

/* Vision Control Section (Now Separate) */
.vision-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
}

/* Dropdown Styles */
.background-dropdown-container select {
    font-size: 14px;
    padding: 8px;
    border-radius: 5px;
    background-color: white;
    color: #333;
    border: 1px solid #ccc;
}
.toggle-goggles {
    display: flex;
    flex-direction: row !important; /* Ensure row layout */
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap !important; /* Prevent wrapping */
    width: auto; /* Prevent it from being too narrow */
}
/* Toggle Buttons */
.toggle-goggles button {
    flex-grow: 0 !important; /* Prevent buttons from growing too much */
    max-width: none !important; /* Allow natural button width */
    white-space: nowrap;
    padding: 10px 20px;
    font-size: 16px;
    background-color: orange;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.toggle-goggles button:hover {
    background-color: darkorange;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .vision-control {
        flex-direction: column;
        align-items: center;
    }

    .background-dropdown-container select {
        width: 100%;
    }
}
/* Wide Screen Purchase Locations - Reduce Height */
.purchase-locations-container.wide-screen {
    display: none;
    padding: 5px 10px;  /* Reduce padding */
    font-size: 14px;  /* Slightly smaller text */
    line-height: 1.2;  /* Reduce line height */
    max-height: 40px;  /* Limit height */
}

/* Show only on wide screens */
@media (min-width: 769px) {
    .purchase-locations-container.wide-screen {
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto; /* Let content define height */
        max-width: 900px; /* Keep it aligned with other elements */
        margin: 5px auto; /* Reduce vertical spacing */
    }
}

/* Mobile Styling */
@media (max-width: 768px) {
    .purchase-locations-container {
        width: 100%;
        text-align: center;
        padding: 10px; /* Adjusted for mobile */
    }
}
/* Reduce size for smaller screens */
@media (max-width: 768px) {

    /* Reduce dropdown size */
    .background-dropdown-container select {
        font-size: 12px;
        padding: 6px;
        width: 90%; /* Slightly smaller width */
    }

}
@media (max-width: 768px) {
    /* Ensure buttons stay in one row */
    .toggle-goggles {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap; /* Prevent wrapping */
    }
    
    .toggle-goggles button {
        flex: 1; /* Makes buttons take equal space */
        max-width: 140px; /* Prevents them from stretching too much */
        white-space: nowrap; /* Ensures text doesn’t wrap */
    }
}
