
*{
    box-sizing: border-box;
}

html, body{
    height: 100%;
}

body{
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial;
    background: #f7f7fa;
    line-height: 1.45;
    font-size: 16px;
}

/* Layout container */
main, .product-list {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 16px;
}

/* Navigation */
nav{
    background: #ffffff;
    border-bottom: 1px solid #e6e6e9;
    box-shadow: 0 1px 0 #00000005;
    padding: 18px;
}
nav ul{
    list-style: none;
    display: flex;
    gap: 50px;
    margin: 0;
    padding: 0 25px;
    align-items: center;
}
nav a{
    text-decoration: none;
    color: #000000;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
}
nav a:hover, nav a:focus{
    background: rgba(10,116,218,0.08);
    color: #474749;
    font-size: 18px;
}


h1{
    font-size: 26px;
    margin: 12px 0;
}
h2{
    font-size: 18px;
    margin: 8px 0 12px;
    color: rgb(59, 58, 58);
}


.product-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 12px;
}
.product{
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(12,12,16,0.04);
    text-align: center;
    background: #ffffff;
}
.product img{
    width: 100%;
    height: 186px;
    object-fit: contain;
    border-radius: 4px;
}
.product h3{
    margin: 8px 0;
    font-size: 16px;
}
.product .price{
    font-weight: 700;
    color: #0051ff;
    margin: 2px 0;
}
.product a{
    display: inline-block;
    margin-top: 8px;
    padding: 7px 12px;
    background: #0051ff;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
}


.product-detail{
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    background: transparent;
    padding: 16px;

}
.product-gallery{
    background: #ffffff;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 6px 18px #0c0c100a;
    max-width: 820px;
    width: 100%;
}

.product-gallery .main-image{
    width: 100%;
    height: 420px;
    object-fit: contain;
    border-radius: 6px;
    display: block;

}
.thumbnails{
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
}
.thumbnails .thumb{
    width: 84px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    background: #ffffff;
}
.thumbnails .thumb:hover{
    border-color: rgba(10,116,218,0.15);
    transform: translateY(-2px);
}

.product-summary{
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(12,12,16,0.04);
}
.product-summary .price{
    font-size: 20px;
    font-weight: 800;
    color: #0a74da;
    margin: 4px 0;
}
.product-summary .stock{
    color: #666666;
    margin: 4px 0 16px;
}
.description p{
    margin: 0;
    color: #333333;
}
.specs{
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 15px;
}
.specs th{
    text-align: left;
    background: #f3f4f6;
    padding: 8px;
    font-weight: 700;
    border-bottom: 1px solid #e9e9ee;
}
.specs td{
    padding: 8px;
    border-bottom: 1px dashed #efeff2;
    vertical-align: top;
    color: #333333;
}

.buy-form{
    margin-top: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.buy-form label{
    font-size: 15px;
    color: #666666;
}
.buy-form input[type="number"]{
    width: 96px;
    padding: 6px 8px;
    border: 1px solid #e0e0e5;
    border-radius: 6px;
}
.buy-now{
    background: #0a74da;
    color: #ffffff;
    border: 0;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 6px 12px rgba(10,116,218,0.12);
}
.buy-now:hover{
    font: size 16px;
}

a:focus, button:focus, input:focus{
    outline: 3px solid rgba(10,116,218,0.12);
    outline-offset: 2px;
}

/* Misc helpers */
.small-muted{ font-size: 14px; color: #666666; }
.center{ text-align: center; }

*{
    box-sizing: border-box;
}

html, body{
    height: 100%;
}

body{
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial;
    background: #f7f7fa;
    line-height: 1.45;
    font-size: 16px;
}

/* Layout container */
main, .product-list {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 16px;
}

/* Navigation */
nav{
    background: #ffffff;
    border-bottom: 1px solid #e6e6e9;
    box-shadow: 0 1px 0 #00000005;
    padding: 18px;
}
nav ul{
    list-style: none;
    display: flex;
    gap: 50px;
    margin: 0;
    padding: 0 25px;
    align-items: center;
}
nav a{
    text-decoration: none;
    color: #000000;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
    font-weight:600;
}
nav a:hover, nav a:focus{
    background: rgba(10,116,218,0.08);
    color: #474749;
    font-size: 18px;
}

/* Headings */
h1{
    font-size: 26px;
    margin: 12px ;
    margin-left:22px;
}
h2{
    font-size: 18px;
    margin: 8px 0 12px;
    margin-left:22px;
    color: rgb(59, 58, 58);
}

/* Product list (homepage) */
.product-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 12px;
}
.product{
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(12,12,16,0.04);
    text-align: center;
    background: #ffffff;
}
.product img{
    width: 100%;
    height: 186px;
    object-fit: contain;
    border-radius: 4px;
}
.product h3{
    margin: 8px 0;
    font-size: 16px;
}
.product .price{
    font-weight: 700;
    color: #0051ff;
    margin: 2px 0;
}
.product a{
    display: inline-block;
    margin-top: 8px;
    padding: 7px 12px;
    background: #0051ff;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
}

/* Product detail layout */
.product-detail{
    display:flexbox;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

/* Gallery */
.product-gallery{
    background: #ffffff;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 6px 18px #0c0c100a;   
    width: auto;        
    margin: 0 auto;     
    justify-self: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main-image{
    width: 100%;
    height: 420px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    background: linear-gradient(180deg,#ffffff,#f7f9fb);
}
.thumbnails{
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
}
.thumbnails .thumb{
    width: 84px;
    height: 64px;
    object-fit: contain;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    background: #ffffff;
}
.thumbnails .thumb:hover{
    border-color: rgba(10,116,218,0.15);
    font-size: 16px;
}
/* Summary / aside */
.product-summary{
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(12,12,16,0.04);
}
.product-summary .price{
    font-size: 20px;
    font-weight: 800;
    color: #0a74da;
    margin: 4px 0;
}
.product-summary .stock{
    color: #666666;
    margin: 4px 0 16px;
}
.description p{
    margin: 0;
    color: #333333;
}
.specs{
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 15px;
}
.specs th{
    text-align: left;
    background: #f3f4f6;
    padding: 8px;
    font-weight: 700;
    border-bottom: 1px solid #e9e9ee;
}
.specs td{
    padding: 8px;
    border-bottom: 1px dashed #efeff2;
    vertical-align: top;
    color: #333333;
}

/* Buy form */
.buy-form{
    margin-top: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.buy-form label{
    font-size: 15px;
    color: #666666;
}
.buy-form input[type="number"]{
    width: 96px;
    padding: 6px 8px;
    border: 1px solid #e0e0e5;
    border-radius: 6px;
}
.buy-now{
    background: #0a74da;
    color: #ffffff;
    border: 0;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 6px 12px rgba(10,116,218,0.12);
}
.buy-now:hover{
    font-size: 16px;
}

/* Accessibility focus */
a:focus, button:focus, input:focus{
    outline: 3px solid rgba(10,116,218,0.12);
    outline-offset: 2px;
}

/* Misc helpers */
.small-muted{ font-size: 14px; color: #666666; }
.center{ text-align: center; } 

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 900px) {
    .product-detail {
        flex-direction: column;
        align-items: center;
    }
    .main-image {
        height: 300px;
    }
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        gap: 12px;
    }

    h1 {
        font-size: 22px;
        text-align: center;
    }

    .product {
        padding: 12px;
    }

    .main-image {
        height: 240px;
    }

    .buy-form input[type="number"] {
        width: 70px;
    }

    #contact-page, #about-page {
        margin: 10px;
        padding: 16px;
    }
}

@media (max-width: 1024px) {
    .product-list, .catalogue {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
}

@media (max-width: 700px) {
    .product-list, .catalogue {
        grid-template-columns: 1fr; 
        gap: 16px;
    }
}