* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f7;
    color: #2d3436;
    line-height: 1.6;
}


main+p,
.product-page~p {
    max-width: 1100px;
    margin: 20px auto;
    padding: 15px 25px;
    background-color: #d1f7e3;
    color: #155724;
    border-radius: 10px;
    border-left: 5px solid #2ecc71;
    text-align: center;
    font-weight: 500;
}

.product-page {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.product-wrapper {
    max-width: 1100px;
    width: 100%;
    background: #fff;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;

    gap: 40px;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}


.product-image-box {
    background-color: #f8f9fa;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
}

.product-image-box img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-image-box:hover img {
    transform: scale(1.08);
}


.product-info-box {
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 34px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.product-price {
    font-size: 24px;
    color: #e63946;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-desc {
    font-size: 15px;
    color: #636e72;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.product-sizes {
    margin-bottom: 30px;
}

.sizes-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #b2bec3;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size {
    border: 2px solid #dfe6e9;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    background: white;
}

.size:hover {
    border-color: #000;
    background-color: #f8f9fa;
}


form {
    margin-top: auto;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #b2bec3;
}

input[type="number"] {
    width: 80px;
    padding: 12px;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
}

input[type="number"]:focus {
    border-color: #2ecc71;
}


input[type="submit"] {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #2d3436;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

input[type="submit"]:active {
    transform: translateY(0);
}

.cart-container {
    position: relative;
    display: inline-block;

    margin-bottom: 15px;
    max-width: 60px;
}

.cart-icon {
    height: 50px;
    display: block;
}

.numberPoint {
    position: absolute;
    top: -5px;

    right: -5px;

    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 850px) {
    .product-wrapper {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .product-image-box {
        padding: 20px;
    }

    .product-name {
        font-size: 28px;
    }
}