/* Minimalistic CSS */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    background: #fff;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 100;
    padding: 20px 0;
}

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

.logo {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
}

.cart {
    font-size: 14px;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.cart:hover {
    text-decoration: underline;
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 180px);
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

/* Product Image */
.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* Product Info */
.product-info {
    padding: 40px 0;
}

.product-info h1 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.price {
    font-size: 24px;
    margin-bottom: 40px;
}

/* Variant Selection */
.variant-selection {
    margin-bottom: 30px;
}

.variant-selection label,
.quantity-selection label {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #666;
}

.variants {
    display: flex;
    gap: 10px;
}

.variant {
    flex: 1;
    padding: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.variant:hover {
    border-color: #000;
}

.variant.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Quantity Selection */
.quantity-selection {
    margin-bottom: 40px;
}

.quantity {
    display: flex;
    align-items: center;
    width: fit-content;
}

#qty-minus,
#qty-plus {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

#qty-minus:hover,
#qty-plus:hover {
    border-color: #000;
}

#qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

#qty-input::-webkit-inner-spin-button,
#qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart Button */
.add-to-cart {
    width: 100%;
    padding: 18px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
    transition: background 0.2s ease;
    margin-bottom: 40px;
}

.add-to-cart:hover {
    background: #333;
}

/* Product Details */
.details {
    border-top: 1px solid #e5e5e5;
    padding-top: 30px;
}

details {
    margin-bottom: 20px;
}

details summary {
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 10px 0;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: '+';
    float: right;
}

details[open] summary::after {
    content: '−';
}

details ul {
    list-style: none;
    padding: 10px 0;
    color: #666;
    font-size: 13px;
}

details ul li {
    padding: 3px 0;
}

details p {
    padding: 10px 0;
    color: #666;
    font-size: 13px;
}

/* Footer */
footer {
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
    padding: 30px 0;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

footer p {
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #666;
    margin: 5px 0;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.cart-modal.active {
    display: block;
}

.cart-content {
    position: fixed;
    right: 0;
    top: 0;
    width: 400px;
    height: 100%;
    background: #fff;
    padding: 30px;
    overflow-y: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.cart-header h2 {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-items {
    min-height: 200px;
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-variant {
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
}

.cart-item-remove {
    color: #666;
    cursor: pointer;
    text-decoration: underline;
    font-size: 11px;
}

.cart-empty {
    text-align: center;
    color: #666;
    padding: 40px 0;
    font-size: 13px;
}

.cart-footer {
    border-top: 1px solid #e5e5e5;
    padding-top: 20px;
}

.cart-total {
    font-size: 16px;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
}

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

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #000;
    color: #fff;
    padding: 15px 30px;
    font-size: 12px;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    header .container,
    footer .container {
        padding: 0 20px;
    }
    
    .product-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
    }
    
    .product-info {
        padding: 0;
    }
    
    .cart-content {
        width: 100%;
    }
    
    .variants {
        flex-direction: column;
    }
}