.shop-container {
    padding: 1em;
    margin: 1em auto;
    width: 100%;
    max-width: 100%;
    background-color: var(--input-background);
    border-radius: 0.5em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    color: var(--body-shadow-color);
    box-sizing: border-box;
    overflow-wrap: break-word;
}

/* Hero sekcija */
.shop-hero h1 {
    font-size: 1.8em;
    margin-bottom: 0.5em;
    text-align: center;
    color: var(--bold-font-color);
}

.shop-hero p {
    text-align: center;
    font-size: 1em;
    margin-bottom: 1em;
}

/* Paieškos forma */
.shop-search form {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
    margin-bottom: 1.5em;
}

.shop-search input {
    padding: 0.6em;
    border: 1px solid #ccc;
    border-radius: 0.3em;
    font-size: 1em;
}

.shop-search button {
    padding: 0.8em;
    background-color: var(--form-button-color);
    color: #fff;
    border: none;
    border-radius: 0.5em;
    font-size: 1em;
    cursor: pointer;
}

.shop-search button:hover {
    background-color: var(--body-a-hover-color);
}

.shop-categories h2,
.shop-actions h2 {
    font-size: 1.4em;
    background-color: var(--form-button-color);
    color: white;
    padding: 0.8em;
    border-radius: 0.5em;
    margin: 0 0 1em 0;
    text-align: center;
}

.shop-categories h2 a,
.shop-actions h2 a {
    color: white;
    text-decoration: none;
    display: block;
}

.shop-categories h2:hover,
.shop-actions h2:hover {
    background-color: var(--body-a-hover-color);
    border-radius: 0.5em;
}

/* Kategorijų nuoroda */
.shop-categories p {
    text-align: center;
    margin-bottom: 1.5em;
}

.shop-categories a {
    color: var(--body-a-hover-color);
    text-decoration: underline;
}

/* Accordion stilius naujoms ir populiarioms prekėms */
.shop-new, .shop-popular {
    margin-bottom: 1.5em;
}

.shop-new h2,
.shop-popular h2 {
    font-size: 1.4em;
	text-align: center;
    background-color: var(--form-button-color);
    color: white;
    padding: 0.8em;
    border-radius: 0.5em;
    cursor: pointer;
    margin: 0;
}

.shop-new h2:hover,
.shop-popular h2:hover {
	background-color: var(--body-a-hover-color);
}

.product-list {
    display: none;
    padding: 1em 0;
}

.shop-new.list-show .product-list,
.shop-popular.list-show .product-list {
    display: block;
}

.product-card {
    border: 1px solid #ccc;
    border-radius: 0.4em;
    padding: 0.8em;
    margin-bottom: 1em;
    background-color: #fff;
}

.product-card h3 {
    margin: 0 0 0.4em;
    color: var(--bold-font-color);
}

.product-card p {
    margin: 0.2em 0;
}

.add-to-cart-form {
    margin-top: 1em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.add-to-cart-form input[type="number"] {
    padding: 0.4em;
    width: 5em;
    border: 1px solid #ccc;
    border-radius: 0.4em;
    font-size: 1em;
}

.add-to-cart-form button {
    background-color: var(--body-a-color); 
    color: white;
    padding: 0.5em 1em;
    font-size: 1em;
    border: none;
    border-radius: 0.4em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-to-cart-form button:hover {
    background-color: var(--body-a-hover-color);
}


/* Veiksmų sekcija */
.shop-actions {
    text-align: center;
    margin: 2em 0 1em;
}

.btn-view-all {
    padding: 0.8em 1.2em;
    background-color: var(--form-button-color);
    color: white;
    border: none;
    border-radius: 0.5em;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
}

.btn-view-all:hover {
    background-color: var(--body-a-hover-color);
	color: white;
}

/* Pagalbos sekcija */
.shop-help {
    text-align: center;
    font-size: 1em;
    margin-top: 1.5em;
}

.shop-help a {
    color: var(--body-a-hover-color);
    text-decoration: underline;
}

/* Desktop versija */
@media (min-width: 600px) {
    .shop-container {
        max-width: 48em;
        padding: 2em;
    }

    .shop-hero h1 {
        font-size: 2.2em;
    }

    .shop-hero p,
    .shop-help,
    .product-card p {
        font-size: 1.1em;
    }

    .shop-search form {
        flex-direction: row;
        align-items: center;
    }

    .shop-search input {
        flex: 1;
    }

    .shop-search button {
        flex-shrink: 0;
        width: auto;
        margin-left: 0.8em;
    }

    .shop-new.list-show .product-list,
    .shop-popular.list-show .product-list {
        display: flex;
        flex-wrap: wrap;
        gap: 1em;
    }

    /* NES aktyvumo nėra - lieka paslėpta */
    .shop-new .product-list,
    .shop-popular .product-list {
        display: none;
    }

    .product-card {
        flex: 1 1 calc(50% - 1em);
    }
}
	
@media (min-width: 1000px) {
    .product-card {
        flex: 1 1 calc(33.33% - 1em); /* Trys kortelės per eilutę */
    }
}
/* --- Prekės kortelės paveikslėlio stiliai (shop.php) --- */

.product-image-link {
    display: block;
    margin-bottom: 1em;
}

.product-image-container {
    width: 100%;
    height: 180px; /* Nustatome fiksuotą aukštį */
    background-color: #ffffff;
    border-radius: 0.4em;
    overflow: hidden;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

/* Pataisome kortelės vidinį išdėstymą, kad forma liktų apačioje */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-card .add-to-cart-form {
    margin-top: auto; /* Prispaudžia formą prie kortelės apačios */
    padding-top: 1em; /* Prideda šiek tiek erdvės virš formos */
}