/*
 * Stylesheet for the Octakem knitting products website.
 *
 * The colour palette is derived from the company logo: vibrant blues and purples
 * set against clean neutrals. The layout is responsive and modern.
 */

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
}

header {
    background-color: #020b16;
    color: #fff;
    padding: 10px 0;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #00aaff;
}

.hero {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.slider {
    display: flex;
    transition: transform 0.8s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

h1, h2, h3 {
    color: #020b16;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 15px;
}

.product-card h3 {
    margin-top: 0;
}

.product-card p {
    font-size: 0.9rem;
    color: #555;
}

.about-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.about-section img {
    max-width: 300px;
    border-radius: 8px;
}

.contact-section {
    background-color: #020b16;
    color: #fff;
    padding: 40px 0;
}

.contact-section h2 {
    color: #fff;
}

.contact-details {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-details li {
    margin-bottom: 10px;
}

/* Admin styles */
.admin-container {
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.admin-container h2 {
    margin-top: 0;
}

.admin-container form {
    margin-top: 20px;
}

.admin-container input[type="text"],
.admin-container input[type="password"],
.admin-container input[type="file"],
.admin-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.admin-container label {
    font-weight: bold;
}

.admin-container button {
    background-color: #020b16;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.admin-container button:hover {
    background-color: #003366;
}

.admin-nav {
    margin-bottom: 20px;
}

.admin-nav a {
    margin-right: 15px;
    color: #020b16;
    text-decoration: none;
    font-weight: bold;
}

.admin-nav a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        text-align: center;
    }
    .about-section img {
        margin-bottom: 20px;
    }
}