/* layout.css */

#search-input:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5); /* Add a custom focus style */
}

/* General layout for items */
.item {
    display: flex;
    flex-direction: column;
    margin: var(--spacing-medium) 0;
    padding: var(--spacing-medium);
    border: 1px solid var(--menu-color);
    border-radius: var(--border-radius-small);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.4); /* Darker shadow */
}

.item:hover {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Layout for item details */
.item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.item-details > div {
    flex: 1;
}

/* Layout for item name and ID */
.item-name {
    display: flex;
    flex-direction: column;
}

.item-id {
    font-size: 10px !important;
    color: var(--greish-color);
}

/* Hide category and tags in the main view */
.item-category, .item-tags {
    display: none;
}

/* Layout for item price */
.item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
}

/* Price styling */
.price {
    font-size: var(--font-size-large);
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
}

.price.crossed {
    text-decoration: line-through;
    font-size: var(--font-size-small) !important; /* Make it smaller */
    color: var(--greish-color); /* Change color to greish */
    position: absolute;
    transform: translateY(-50%);
}

/* Main item list discount price */
.discount-price {
    font-size: var(--font-size-large);
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
    left: 0; /* Place it where the normal price was */
}

.sticky-button {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--spacing-small) var(--spacing-small);
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    z-index: 1100;
    position: relative;
}

@keyframes shake {
    0% { transform: translateX(-50%) translateY(0); }
    25% { transform: translateX(-50%) translateY(-5px); }
    50% { transform: translateX(-50%) translateY(5px); }
    75% { transform: translateX(-50%) translateY(-5px); }
    100% { transform: translateX(-50%) translateY(0); }
}

.shake-animation {
    animation: shake 0.5s ease-in-out;
}

