/* E-commerce Website CSS - Minimal Theme */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: linear-gradient(to bottom, #f0f8ff, #e6f7ff);
    color: #333;
    line-height: 1.6;
}

/* Navigation */
nav {
    background-color: #333;
    padding: 15px 0;
    margin-bottom: 30px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1em;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #bbb;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
}

header h1 {
    color: #1a1a1a;
    font-size: 2.8em;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

header p {
    color: #666;
    font-size: 1.1em;
    font-weight: 300;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

section {
    margin-bottom: 40px;
}

section h2 {
    color: #1a1a1a;
    font-size: 1.8em;
    border-bottom: 2px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

section p {
    color: #555;
    margin-bottom: 15px;
    font-size: 0.95em;
}

/* Products Section */
#products {
    display: block;
}

#products article {
    display: inline-block;
    width: calc(33.333% - 17px);
    margin-right: 25px;
    margin-bottom: 25px;
    vertical-align: top;
}

#products article:nth-child(3n) {
    margin-right: 0;
}

article {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #bbb;
}

article h3 {
    color: #1a1a1a;
    font-size: 1.3em;
    margin-bottom: 8px;
    font-weight: 600;
    padding: 20px 20px 0 20px;
}

figure {
    padding: 15px;
    text-align: center;
    margin: 0;
    background-color: #f9f9f9;
}

figure img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    background-color: #f5f5f5;
}

figcaption {
    font-size: 0.85em;
    color: #999;
    margin-top: 8px;
    font-style: italic;
}

article p {
    padding: 0 20px;
    color: #666;
    font-size: 0.95em;
    margin-bottom: 12px;
}

article ul {
    list-style: none;
    padding: 12px 0;
    background-color: transparent;
    border-top: 1px solid #f0f0f0;
}

article ul li {
    padding: 5px 0;
    color: #666;
    font-size: 0.9em;
}

article ul li:before {
    content: "• ";
    color: #999;
    margin-right: 6px;
}

article strong {
    display: block;
    padding: 12px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

/* Shopping Cart Table */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
}

table th {
    background-color: #f5f5f5;
    color: #333;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #e5e5e5;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    font-size: 0.95em;
}

table tr:hover {
    background-color: #fafafa;
}

table input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Buttons */
button {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s ease;
    margin: 0 20px 20px 20px;
    width: calc(100% - 40px);
    align-self: flex-start;
}

button:hover {
    background-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
}

form input[type="email"],
form input[type="text"] {
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    font-size: 0.95em;
    transition: border-color 0.3s;
}

form input[type="email"]:focus,
form input[type="text"]:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

/* Aside Section */
aside {
    background: white;
    border: 1px solid #e5e5e5;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

aside h3 {
    color: #1a1a1a;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

aside p {
    color: #666;
    margin-bottom: 12px;
    font-size: 0.95em;
}

/* Footer */
footer {
    background-color: transparent;
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px;
    border-top: 1px solid #e5e5e5;
    color: #888;
    font-size: 0.9em;
}

/* Lists */
section ul {
    margin-left: 20px;
    color: #666;
}

section ul li {
    margin-bottom: 8px;
    font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1em;
    }

    #products article {
        width: calc(50% - 13px);
        margin-right: 25px;
    }

    #products article:nth-child(3n) {
        margin-right: 25px;
    }

    #products article:nth-child(2n) {
        margin-right: 0;
    }

    main {
        padding: 30px 15px;
    }

    article {
        padding: 0;
    }

    table {
        font-size: 0.9em;
    }

    table th,
    table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    header {
        margin-bottom: 30px;
        padding: 20px 15px;
    }

    header h1 {
        font-size: 1.6em;
    }

    #products article {
        width: 100%;
        margin-right: 0;
    }

    #products article:nth-child(2n) {
        margin-right: 0;
    }

    main {
        padding: 20px 15px;
    }

    article {
        padding: 0;
    }

    button {
        width: 100%;
        margin: 0 20px 20px 20px;
    }
}