/* index, cloud, images */
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.button-container .button {
    flex: 0 0 auto;
}

.button-index {
    color: #ffaa66; 
    padding: 10px 5px;
    border: 2px solid #ffaa66;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.5); 
}

.button-index:hover,
.button-index:focus {
    background-color: #793b3b;
    color: #ffaa66;
    box-shadow: 31x 3px 5px rgba(0, 0, 0, 0.3);
}

.button {
    min-width: 96px;
    padding: 1px 5px;
    border: 2px solid #DECEBE;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.5); 
    color: #DECEBE;
}

.button:hover,
.button:focus {
    background-color: #FA9386;
    color: rgba(0, 0, 0, 0.3); 
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

.button.active {
    background-color: #FA9386;
    color: rgba(108, 76, 36);
    font-weight: bold;
}

.button.button-search {
    width: 150px; 
}


.add-to-cart-btn {
    background-color: #ff6b6b; /* Bright red background */
    color: white;
    border: 2px dashed #fff; /* White dashed border */
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 8px 4px;
    cursor: pointer;
    border-radius: 20px;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3); /* Shadow effect */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease; /* Transition */
    position: relative; /* For pseudo-element */
}

.add-to-cart-btn:hover {
  background-color: #ff4b4b; /* Darker red on hover */
    transform: scale(1.1); /* Scale up */
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.5); /* Enhanced shadow */
}

.add-to-cart-btn::before {
    content: "⚡"; /* Adding a pseudo-element with lightning symbol */
    position: absolute;
    left: 10px; /* Position the pseudo-element */
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.add-to-cart-btn:hover::before {
    opacity: 1; /* Show the pseudo-element on hover */
}


/* pagination */
.pagination button {
    padding: 3px 6px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
  }
  
  .pagination button:hover {
    background-color: #0056b3;
  }
  

.button-pagination {
    padding: 0.1rem 0.1rem;
    background-color: #007bff;
    color: #DECEBE;
    font-size: 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    width: 78px; 
    text-align: center;  /* Center the text inside the button */
    text-decoration: none;
  }

.button-search {
    padding: 0.2rem 1rem;
    background-color: #0004fd;
    border: 3px solid #82907d;
    color: #DECEBE;
    font-size: 1.1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    width: 300px; 
    text-align: center;  /* Center the text inside the button */
  }
  
  .button-search:hover {
    background-color: #FA9386;
    color: rgba(0, 0, 0, 0.3); 
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
  }


.button-to-category {
    width: 160px;
    padding: 5px 5px;
    border: 3px solid #DECEBE;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.5); 
    color: #DECEBE;
  }

.button-to-category:hover,
.button-to-category:focus {
    background-color: rgba(243, 123, 123, 0.95);
    color: #222;
    box-shadow: 3px;
}

.button-to-category.active {
    background-color: rgba(246, 80, 80, 0.95);
    font-weight: bold;
}  


.toggle-button {
    background-color: #4CAF50; /* Green */
    border: 3px solid #fff;
    color: #fff;
    padding: 1px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.toggle-button:hover {
    background-color: rgba(246, 80, 80, 0.5);
}


/* If you need it to be smaller on mobile */
@media (max-width: 768px) {
    .button.button-search {
        width: 100%;  /* full width on mobile */
    }
}

/* Add responsive adjustments if needed */
@media (max-width: 420) {
    :root {
        --button-width: 100px;  /* Smaller width on mobile */
    }
}