:root {
    --line-green: #00B900;
    --line-gray: #BCBCBC;
    --line-light-gray: #F7F7F7;
    --line-text: #1E1E1E;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--line-light-gray);
    color: var(--line-text);
    line-height: 1.6;
}

.container {
    max-width: 100%;
    padding: 16px;
}

h1, h2 {
    color: var(--line-text);
    border-bottom: none;
    font-weight: bold;
    margin-bottom: 16px;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 20px;
}

.category-search {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.category-button {
    background-color: var(--line-light-gray);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--line-text);
    cursor: pointer;
    transition: background-color 0.3s;
}
.category-button.active {
    background-color: var(--line-green);
    color: white;
}
.search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line-gray);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 10px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}
.product {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
}
.product-detail {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.product-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}
.product-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}
.product-price {
    font-size: 20px;
    color: var(--line-green);
    font-weight: bold;
    margin-bottom: 15px;
}
.product-description {
    margin-bottom: 20px;
    line-height: 1.6;
}
.stock-status {
    font-weight: bold;
    margin-bottom: 15px;
}
.in-stock {
    color: var(--line-green);
}
.out-of-stock {
    color: #FF3B30;
}
.quantity-input {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.quantity-input label {
    margin-right: 10px;
}
.quantity-input input {
    width: 60px;
    padding: 8px;
    font-size: 16px;
    border: 1px solid var(--line-gray);
    border-radius: 4px;
    text-align: center;
}
.related-url {
    margin-bottom: 20px;
}
.related-url a {
    color: var(--line-green);
    text-decoration: none;
}

.button {
    background-color: var(--line-green);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    margin-top: 12px;
}

.nav {
    background-color: var(--line-green);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.menu-icon {
    color: white;
    font-size: 24px;
}

.category-filter {
    margin-bottom: 16px;
}

.category-filter select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid var(--line-gray);
    border-radius: 8px;
    background-color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

th, td {
    border: none;
    padding: 12px;
    text-align: left;
}

th {
    background-color: var(--line-light-gray);
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: white;
}

form {
    display: grid;
    gap: 16px;
}

label {
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line-gray);
    border-radius: 8px;
    font-size: 16px;
}

.faq-item {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.faq-question {
    font-weight: bold;
    margin-bottom: 8px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.reset-button {
    background-color: #FF3B30;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    width: 48%;
}
.checkout-button {
    width: 48%;
}
.empty-cart-message {
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
    color: var(--line-gray);
}
.form-container {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--line-text);
}
input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line-gray);
    border-radius: 8px;
    font-size: 16px;
}
.optional-label {
    font-weight: normal;
    color: var(--line-gray);
}
.submit-button {
    background-color: var(--line-green);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
}
.error-message {
    color: #FF3B30;
    font-size: 14px;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .nav a {
        display: none;
    }
    
    .menu-icon {
        display: block;
    }
}