/* Parduotuvės pagrindiniai stiliai */
.shop {
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.shop-header h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0;
    margin-top: -25px;
}

.shop-header p {
    text-align: center;
    font-size: 1.2rem;
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 stulpeliai */
    gap: 20px;
    justify-items: center;
    padding: 20px 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.shop-item {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 450px;
    width: 100%;
    max-width: 300px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
/* Prekės informacija */
.shop-item h2 {
    font-size: 1.2rem; /* Padidintas šrifto dydis */
    font-weight: 700; /* Svoris kaip pavadinimui */
    line-height: 1.4;
    margin-bottom: 10px;
    color: #ffffff;
}

.shop-item p {
    font-size: 0.9rem;
    height: 40px; /* Fiksuotas aukštis aprašymams */
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-item img {
    width: 250px;
    object-fit: cover;
    height: 250px;
    border-radius: 10px;
    margin-bottom: 15px; /* Atstumas tarp nuotraukos ir pavadinimo */
}

/* Prekės kaina */
.price {
    font-size: 1.6rem; /* Pakeistas šrifto dydis */
    color: #ffffff; /* Spalva, kai nėra nuolaidos */
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* Mygtuko konteineris */
.button-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.shop-item img {
    width: 250px;
    object-fit: cover;
    height: 250px;
    border-radius: 10px;
}
.shop-item.animate-item {
    opacity: 1;
    transform: translateY(0);
}

/* Filtruojamos kategorijos */
.shop-item[data-category="all"],
.shop-item[data-category="automobiliai"],
.shop-item[data-category="verslai"] {
    display: block;
}
.shop-item.hidden {
    display: none;
}

/* Paieškos juosta */
#search-bar {
    display: block;
    width: 100%;
    max-width: 450px;
    padding: 12px 18px;
    border: 2px solid #257519;
    border-radius: 30px;
    font-size: 1.1rem;
    background-color: #333;
    color: #333;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    outline: none;
    margin: 15px auto; /* Centruoja barą */
    transition: all 0.3s ease;
    font-family: 'greenway';
}

#search-bar:focus {
    border-color: #0a1a08;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background-color: #333;
    color: #000;
    transform: scale(1.02); /* Nedidelis padidėjimas */
}

/* Paieškos juostos placeholder tekstas */
#search-bar::placeholder {
    color: #777;
    font-style: italic;
    font-size: 0.95rem;
}


.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4747ab;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1rem;
    animation: pulse 1.3s infinite; /* Pridėta animacija */
}

/* Animacija */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.price-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

/* Originali kaina su perbraukimu */
.original-price {
    font-size: 1.5rem;
    color: #ff4747; /* Raudona spalva perbrauktai kainai */
    text-decoration: line-through;
    margin-right: 10px;
}

/* Nuolaidos kaina */
.discounted-price {
    font-size: 1.7rem;
    color: #17921788; /* Žalia spalva nuolaidai */
    font-weight: bold;
}
.shop-item .price .discounted-price {
    margin-left: 10px; /* Atstumas tarp senos ir naujos kainos */
}