.containerZamow {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-family: Arial, sans-serif;
}

.product {
    background-color: #ecd7be;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: calc(25% - 20px);
    box-sizing: border-box;
    text-align: center;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.product a {
    text-decoration: none;
}

.product-image-container {
    max-width: 278px;
    max-height: 300px;
    overflow: hidden;
    display: flex;
}

.product img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.product img:hover {
    transform: scale(1.1);
}

.product-title {
    margin: 10px 0;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
}

.price-per-piece,
.price-for-three,
.estimated-length,
.variety-type,
.quantity {
    margin: 5px 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #444;
}

.out-of-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    width: fit-content;
    margin: 10px auto;
    padding: 9px 16px;

    background: #f5e1df;
    border: 1px solid #d9b2ad;
    border-radius: 10px;

    color: #740000;
    font-size: 14px;
    font-weight: 700;

    box-shadow: 0 5px 12px rgba(116, 0, 0, 0.10);
    box-sizing: border-box;
}

.visibility-wrapper {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.visibility-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 9px 14px;

    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(116, 0, 0, 0.12);
    border-radius: 12px;

    color: #333;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
    user-select: none;

    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);

    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            background 0.25s ease;
}

.visibility-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.visibility-toggle {
    appearance: none;
    -webkit-appearance: none;

    position: relative;

    width: 44px;
    height: 24px;

    margin: 0;

    background: #ccc;
    border-radius: 50px;

    cursor: pointer;

    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.15);

    transition:
            background 0.25s ease,
            box-shadow 0.25s ease;
}

.visibility-toggle::before {
    content: "";

    position: absolute;
    top: 3px;
    left: 3px;

    width: 18px;
    height: 18px;

    background: #fff;
    border-radius: 50%;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

    transition: transform 0.25s ease;
}

.visibility-toggle:checked {
    background: #4CAF50;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.25);
}

.visibility-toggle:checked::before {
    transform: translateX(20px);
}

.add-to-cart-button {
    display: inline-block;
    background: linear-gradient(135deg, #740000, #a30000);
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    margin: 10px 0;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(116, 0, 0, 0.20);
    transition:
            background 0.25s ease,
            box-shadow 0.25s ease,
            transform 0.25s ease;
}

.add-to-cart-button:hover {
    background: linear-gradient(135deg, #9e0000, #d10000);
    box-shadow: 0 12px 24px rgba(116, 0, 0, 0.28);
    transform: translateY(-2px);
}

.add-to-cart-button:active {
    transform: translateY(0);
}

@media screen and (max-width: 1200px) {
    .product {
        width
        : calc(50% - 20px);
    }

    .product img {
        object-fit: cover;
        height: 400px;
    }

    .product-image-container{
        max-width: 570px;
        max-height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .product {
        width: calc(100% - 20px);
        height: auto;
        margin-top: 50px;
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .product img {
        width: 100%;
        height: 600px;
        object-fit: cover;
    }

    .product-image-container{
        max-width: 731px;
        max-height: 600px;
    }
}

.cart-quantity-input {
    width: 80px;
    height: 30px;
    padding: 5px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.cart-quantity-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.cart-quantity-input::-webkit-outer-spin-button,
.cart-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-actions {
    margin-top: 10px;
    text-align: center;
}

.product-actions form {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.product-actions .edit-button,
.product-actions .delete-button {
    display: inline-block;
    padding: 9px 16px;
    margin: 5px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    outline: none;

    transition:
            background-color 0.25s ease,
            box-shadow 0.25s ease,
            transform 0.25s ease;
}

.product-actions .edit-button {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
    box-shadow: 0 6px 14px rgba(76, 175, 80, 0.20);
}

.product-actions .edit-button:hover {
    background-color: #45a049;
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.28);
    transform: translateY(-2px);
}

.product-actions .delete-button {
    background-color: #f44336;
    color: white;
    border: 1px solid #f44336;
    box-shadow: 0 6px 14px rgba(244, 67, 54, 0.20);
}

.product-actions .delete-button:hover {
    background-color: #e53935;
    box-shadow: 0 10px 20px rgba(244, 67, 54, 0.28);
    transform: translateY(-2px);
}

.product-actions form {
    display: inline;
}

.product-actions form button:active {
    transform: translateY(0);
}

.add-product-button {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.add-product-button a {
    text-decoration: none;
    display: inline-block;
    padding: 14px 25px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease;
}

.add-product-button a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.add-product-button a:active {
    transform: translateY(0);
}

.inscription {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
    margin: 2rem auto;
    width: fit-content;
    border-radius: 12px;
    background: linear-gradient(135deg, #740000, #b40000);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: glow 2s ease-in-out infinite alternate;
}

.animated {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media screen and (max-width: 800px) {
    .inscription {
        width: 90%;
        font-size: 1.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0.75rem;
    }
}

@media screen and (max-width: 630px) {
    .inscription {
        font-size: 1.2rem;
        padding: 0.5rem;
    }
}

@media screen and (max-width: 630px) {
    .inscription {
    white-space: wrap;
    }
}