* {
    transition: background-color 300ms ease, color 300ms ease;
}

*:focus {
    background-color: rgba(221, 72, 20, .2);
    outline: none;
}

html, body {
    color: rgba(33, 37, 41, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 16px;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.mt10 {
    margin-top: 10px;
}

header {
    background-color: rgba(247, 248, 249, 1);
    padding: .4rem 0 0;
}

.menu {
    padding: .4rem 2rem;
}

header ul {
    border-bottom: 1px solid rgba(242, 242, 242, 1);
    list-style-type: none;
    margin: 0;
    overflow: hidden;
    padding: 0;
    padding-bottom: 5px;     
    text-align: right;
}

header li {
    display: inline-block;
}

header li a {
    border-radius: 5px;
    color: rgba(0, 0, 0, .5);
    display: block;
    height: 44px;
    text-decoration: none;
}

header li.menu-item a {
    border-radius: 5px;
    margin: 5px 0;
    height: 38px;
    line-height: 36px;
    padding: .4rem .65rem;
    text-align: center;
}

header li.menu-item a:hover,
header li.menu-item a:focus {
    background-color: rgba(221, 72, 20, .2);
    color: rgba(221, 72, 20, 1);
}

header .logo {
    float: left;
    height:60px;
    padding: .4rem .5rem;   
}

header .menu-toggle {
    display: none;
    float: right;
    font-size: 2rem;
    font-weight: bold;
}

header .menu-toggle button {
    background-color: rgba(221, 72, 20, .6);
    border: none;
    border-radius: 3px;
    color: rgba(255, 255, 255, 1);
    cursor: pointer;
    font: inherit;
    font-size: 1.3rem;
    height: 36px;
    padding: 0;
    margin: 11px 0;
    overflow: visible;
    width: 40px;
}

header .menu-toggle button:hover,
header .menu-toggle button:focus {
    background-color: rgba(221, 72, 20, .8);
    color: rgba(255, 255, 255, .8);
}

header .heroe {
    margin: 0 auto;
    max-width: 1100px;
    padding: 1rem 1.75rem 1.75rem 1.75rem;
}

header .heroe h1 {
    font-size: 2.5rem;
    font-weight: 500;
}

header .heroe h2 {
    font-size: 1.4rem;
    font-weight: 300;
}

section {
    margin: 0 auto;
    max-width: 1100px;
    padding: 2.5rem 1.75rem 3.5rem 1.75rem;
}

section h1 {
    margin-bottom: 2.5rem;
}

section h2 {
    font-size: 120%;
    line-height: 2.5rem;
    padding-top: 1.5rem;
}

section pre {
    background-color: rgba(247, 248, 249, 1);
    border: 1px solid rgba(242, 242, 242, 1);
    display: block;
    font-size: .9rem;
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    white-space: pre-wrap;
    word-break: break-all;
}

section code {
    display: block;
}

section a {
    color: rgba(221, 72, 20, 1);
}

section svg {
    margin-bottom: -5px;
    margin-right: 5px;
    width: 25px;
}

/* Setează stilul pentru secțiunea de produse */
.product-section {
    padding: 30px;
    text-align: center; /* Centrarea textului */
}

/* Grid pentru produse */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Flexibilitate pentru diferite dimensiuni de ecran */
    gap: 20px; /* Spațiu între elementele grid */
    justify-items: center; /* Centrarea elementelor în grid */
}

.product-list-badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: red;
    color: white;
    padding: 5px 10px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    z-index: 1;
}

/* Fiecare produs */
.product-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 5px 15px 15px 15px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    position: relative;
}

.product-item:hover {
    transform: translateY(-5px); /* Efect de hover pentru produsele listate */
}

.product-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.product-item h3 {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

.product-item p {
    font-size: 16px;
    line-height: 24px;
    color: #666;
    margin-bottom: 10px;
}

/* Container pentru prețuri */
.price-container-list {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Preț redus */
.price-container-list .price-discounted {
    color: red;
    font-size: 1.1em;
    text-decoration: line-through;
}

/* Preț normal */
.price-container-list .price-normal {
    color: green;
    font-size: 1.1em;
    font-weight: normal;
}

/* Stiluri pentru butonul "VEZI DETALII" */
.btn-view-product {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background-color: #218838;
    border-color: #1e7e34;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Culoarea butonului la hover */
.btn-view-product:hover {
    background-color: #28a745;
    border-color: #28a745;
}

.no-products {
    text-align: center;
    font-size: 1.2rem;
    color: #777;
    margin: 20px 0;
}

/* PRODUCT DETAIL */
.product-detail-container {
    display: flex;
    gap: 20px;
    margin: 20px;
    flex-wrap: wrap;
}

.product-detail-badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: red;
    color: white;
    padding: 5px 10px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    z-index: 1;
}

.product-image-section {
    flex: 1;
    max-width: 50%;
    text-align: center;
    position: relative;
}

.product-image-section img {
    width: 100%;
    max-width: 400px; /* Dimensiunea maximă a imaginii */
    height: auto;
    margin-bottom: 20px;
}

.price-container-detail,
.btn-view-product {
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.price-container-detail {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    gap: 20px;
    font-size: 1.2rem;
    padding-bottom: 20px;
}

/* Preț redus */
.price-container-detail .price-discounted {
    color: red;
    font-size: 1.1em;
    text-decoration: line-through;
}

/* Preț normal */
.price-container-detail .price-container-list .price-normal {
    color: green;
    font-size: 1.1em;
    font-weight: normal;
}

/* Coloana dreaptă */
.product-description-section {
    flex: 1;
    max-width: 50%;
}

.product-description-section p {
    line-height: 1.6;
    font-size: 1.1rem;
    color: #555;
}

/* Paginare */
.pagination {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination li {
    display: inline-block;
    margin: 5px 0;
    line-height: 2;
}

.pagination a,
.pagination span {
    text-decoration: none;
    padding: 5px 10px;
    background-color: #f4f4f4;
    border-radius: 5px;
    margin: 5px 3px;
    font-size: 16px;
}

.pagination a:hover {
    background-color: #0097b2;
    color: rgba(180, 58, 17, 1);
}

.pagination .active a {
    background-color: #0097b2;
    color: white;
}

.further {
    background-color: rgba(247, 248, 249, 1);
    border-bottom: 1px solid rgba(242, 242, 242, 1);
    border-top: 1px solid rgba(242, 242, 242, 1);
}

.further h2:first-of-type {
    padding-top: 0;
}

.further p
{
    font-size: 1.1em;
    line-height: 1.5em;
}

.svg-stroke {
    fill: none;
    stroke: #000;
    stroke-width: 32px;
}

footer {
    background-color: rgba(221, 72, 20, .8);
    text-align: center;
}

footer .environment {
    color: rgba(255, 255, 255, 1);
    padding: 2rem 1.75rem;
}

footer .copyrights {
    background-color: rgba(62, 62, 62, 1);
    color: rgba(200, 200, 200, 1);
    padding: .25rem 1.75rem;
}

footer .add-store-link {
    color: #fffcd7;
    text-decoration: overline;
}

footer .add-store-link {
    color: #ffffff;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

footer .add-store-link:hover {
    text-decoration: underline;
}

@media (max-width: 629px) {
    header ul {
        padding: 0;
    }

    header .menu-toggle {
        padding: 0 1rem;
    }

    header .menu-item {
        background-color: rgba(244, 245, 246, 1);
        border-top: 1px solid rgba(242, 242, 242, 1);
        margin: 0 15px;
        width: calc(100% - 30px);
    }

    header .menu-toggle {
        display: block;
    }

    header .hidden {
        display: none;
    }

    header li.menu-item a {
        background-color: rgba(221, 72, 20, .1);
    }

    header li.menu-item a:hover,
    header li.menu-item a:focus {
        background-color: rgba(221, 72, 20, .7);
        color: rgba(255, 255, 255, .8);
    }

    p {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .product-detail-container {
        flex-direction: column; /* Coloanele devin rânduri */
        gap: 20px;
    }

    .product-image-section, .product-description-section {
        max-width: 100%; /* Ocupă întreaga lățime */
        text-align: center; /* Pentru aliniere corectă */
    }

    .product-image-section img {
        margin-bottom: 20px; /* Spațiu sub imagine */
    }

    .product-description-section {
        text-align: left; /* Textul descrierii să fie aliniat la stânga */
    }

    /* Paginare */
    .pagination-list {
        gap: 8px;
        margin-top: 15px;
    }

    .pagination-list a,
    .pagination-list span {
        padding: 8px 12px;
        font-size: 14px;
    }

    .pagination-list li {
        margin: 8px 0;
        line-height: 2.5;
    }
}