/* Buttons Container */
.attribute-buttons-container {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* Individual Buttons */
.attribute-button {
    flex: 1;
    min-width: 200px;
    padding: 10px 10px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.attribute-button:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.button-label {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
    color: #212529;
}

.button-value {
    font-size: 16px;
    color: #007bff;
    font-weight: 600;
}

/* Sidebar Styling */
.attribute-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 90%;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    overflow-y: auto;
    padding: 40px 30px 30px;
}

.sidebar-active {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    display: none;
}

.sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #495057;
    width: 40px;
    height: 40px;
    line-height: 1;
    z-index: 100;
    transition: color 0.2s;
}

.sidebar-close:hover {
    color: #dc3545;
}

/* Content Styling */
.sidebar-content h3 {
    color: #007bff;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.term-content {
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.term-content:last-child {
    border-bottom: none;
}

.term-content h4 {
    color: #e83e8c;
    margin-top: 0;
}

/* Hidden Content */
.attribute-content-wrapper {
    display: none;
}

/* Stock status colors */
.button-value[data-term="instock"] {
    color: #28a745 !important; /* Green for in stock */
}

.button-value[data-term="onbackorder"] {
    color: #ffc107 !important; /* Yellow for backorder */
}

.button-value[data-term="outofstock"] {
    color: #dc3545 !important; /* Red for out of stock */
}	

/* Responsive Design */
@media (max-width: 768px) {
    .attribute-buttons-container {
        flex-direction: column;
    }
    
    .attribute-button {
        width: 100%;
    }
    
    .attribute-sidebar {
        max-width: 100%;
        padding: 30px 20px 20px;
    }
}