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

body {
    background-color: #faf9f8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e8e6e3;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: #1a1a1a;
}

.site-title:hover {
    color: #4a4a4a;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #4a4a4a;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: #1a1a1a;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #1a1a1a;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1a1a1a;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #333;
}

.btn-secondary {
    background-color: transparent;
    color: #1a1a1a;
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background-color: #f0f0f0;
}

.btn-danger {
    background-color: #dc2626;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.product-price {
    font-weight: 600;
    color: #1a1a1a;
}

.product-category {
    font-size: 0.75rem;
    color: #888;
    margin-top: 6px;
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e6e3;
}

.category-btn {
    padding: 6px 16px;
    background-color: transparent;
    border: 1px solid #e8e6e3;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.category-btn.active {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8e6e3;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* Cart Page */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e8e6e3;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details h4 {
    margin-bottom: 4px;
}

.cart-item-variant {
    font-size: 0.8rem;
    color: #888;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity input {
    width: 60px;
    padding: 8px;
    text-align: center;
}

.cart-summary {
    margin-top: 30px;
    padding-top: 20px;
    text-align: right;
    border-top: 2px solid #e8e6e3;
}

/* Payment Options */
.payment-option {
    border: 1px solid #e8e6e3;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option.selected {
    border-color: #1a1a1a;
    background-color: #faf9f8;
}

.payment-option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.payment-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8e6e3;
}

/* Privacy Notice */
.privacy-notice {
    background-color: #f5f5f4;
    padding: 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 24px;
    border-left: 3px solid #1a1a1a;
}

/* Messages */
.error-message {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.success-message {
    background-color: #e6f7e6;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.warning-message {
    background-color: #fff3e0;
    color: #ed6c02;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Memo Container */
.memo-container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.memo-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e6e3;
}

.memo-section {
    margin-bottom: 24px;
}

.memo-section h4 {
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8e6e3;
}

.memo-confession {
    background-color: #f5f5f4;
    padding: 20px;
    border-radius: 8px;
    font-style: italic;
    margin: 20px 0;
}

.memo-signature {
    margin-top: 40px;
    padding-top: 20px;
    text-align: right;
    border-top: 1px solid #e8e6e3;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e8e6e3;
}

.admin-table th {
    background-color: #faf9f8;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-pending { background-color: #fff3e0; color: #ed6c02; }
.status-approved { background-color: #e3f2fd; color: #0284c7; }
.status-processing { background-color: #e6f7e6; color: #2e7d32; }
.status-shipped { background-color: #e8eaf6; color: #3949ab; }
.status-delivered { background-color: #e0f2fe; color: #0284c7; }
.status-completed { background-color: #e8f5e9; color: #2e7d32; }
.status-rejected { background-color: #ffebee; color: #dc2626; }

/* Responsive */
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }
    
    .cart-item-quantity {
        grid-column: span 2;
    }
    
    .products-grid {
        gap: 20px;
    }
}