/* Reset browser defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Header / Brand Name */
#name {
    background: #111; 
    color: #fff;
    text-align: center;
    padding: 20px 0;
    letter-spacing: 2px;
    position: fixed;       
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;         
}

#name h1 {
    font-size: 28px;
    font-weight: 600;
}

/* Navigation Menu */
#menu-bar {
    background: #222;
    text-align: center;
    padding: 12px 0;
    position: fixed;       
    top: 80px;             
    left: 0;
    width: 100%;
    z-index: 998;         
}

#menu-bar a {
    color: #fff;
    text-decoration: none;
    margin: 0 20px;
    font-size: 16px;
    transition: color 0.3s ease;
}

#menu-bar a:hover {
    color: #ffcc00; 
}

/* Product Grid Section */
#sub-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 160px auto 40px auto; 
    padding: 10px;
}

/* Product Card (exclude Buy Now) */
#sub-body a:not(.buy-now) {
    text-decoration: none;
    color: #111;
    border: 1px solid #ddd;   
    border-radius: 12px;
    padding: 15px;            
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#sub-body a:not(.buy-now):hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Images with padding + border line */
#sub-body img {
    width: 100%;
    height: 200px;       
    object-fit: cover;   
    border-radius: 8px;
    padding: 5px;        
    border: 1px solid #eee; 
    margin-bottom: 10px;
}

/* Product Title - looks clickable */
#sub-body h5 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #0073e6;          
    text-decoration: underline;
    margin-top: 8px;
    transition: color 0.3s ease;
    cursor: pointer;        
}

#sub-body h5:hover {
    color: #ff6600;          
}

/* ===============================
   Product Page Specific Styling
   =============================== */

/* Product page heading */
#sub-body h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #111;
}

/* Description headings */
#sub-body h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

/* Product images inside product pages */
#sub-body a img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 10px;
    border: 1px solid #ddd;
    transition: transform 0.3s, border-color 0.3s;
}

#sub-body a img:hover {
    transform: scale(1.05);
    border-color: #0073e6;
}

/* Price & Stock Info */
#sub-body p {
    font-size: 16px;
    margin: 10px 0;
    color: #555;
}
#sub-body p strong {
    color: #111;
}
#sub-body p span.stock {
    color: green;
    font-weight: bold;
}

/* Product Details Table */
#sub-body table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}
#sub-body table th {
    text-align: left;
    background: #f8f8f8;
    padding: 10px;
    color: #333;
}
#sub-body table td {
    padding: 10px;
    border-top: 1px solid #ddd;
    color: #555;
}

/* Buy Now Button */
#buy-now {
    text-align: center;
    margin-top: 30px;
}

#buy-now a {
    display: inline-block;
    background-color: #28a745;   
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
}

#buy-now a:hover {
    background-color: #218838;   
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    #sub-body a img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    #name h1 {
        font-size: 22px;
    }
    #menu-bar a {
        font-size: 14px;
        margin: 0 10px;
    }
    #sub-body h2 {
        font-size: 22px;
    }
    #sub-body h3 {
        font-size: 18px;
    }
    #buy-now a {
        padding: 12px 25px;
        font-size: 16px;
    }
    #sub-body {
        margin-top: 160px;
        padding: 10px;
    }
}
/* contact form */
/* Contact Form Styling */
#form {
    max-width: 600px;
    margin: 135px auto 40px auto;   
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    color: #333;
}

#form h2, 
#form h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #222;
}

#form p {
    margin: 8px 0;
}

#form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #444;
}

#form input,
#form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

#form input:focus,
#form textarea:focus {
    border-color: #0077cc;
    box-shadow: 0 0 5px rgba(0,119,204,0.3);
    outline: none;
}

#form textarea {
    min-height: 100px;
    resize: vertical;
}

#form div {
    text-align: center;
    margin-top: 20px;
}

#form button {
    background: #0077cc;       
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* Hover effect */
#submit:hover {
    background: #005fa3 !important;       
    transform: translateY(-2px);
    color: white;
}


