* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #f5ede4 100%);
    color: #4a4441;
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    background: linear-gradient(135deg, #7c6857 0%, #bca48d 100%);
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
    box-shadow: 0 10px 30px rgba(124, 104, 87, 0.2);
    border-bottom: 4px solid #c87d68;
    position: relative;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}

header p {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

#cart {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #7c6857;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    background: #fff;
}

#cart a {
    color: inherit;
    text-decoration: none;
}

main {
    padding: 5rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

#products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

.product {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.product:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(124, 104, 87, 0.15);
    border-color: rgba(200, 125, 104, 0.3);
}

.product img {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    transition: transform 0.5s ease;
}

.product:hover img {
    transform: scale(1.03);
}

.product h3 {
    margin: 1rem 0 0.5rem 0;
    font-size: 1.6rem;
    color: #5a4b41;
    font-weight: 600;
}

.product p {
    margin: 0.5rem 0;
    color: #887a73;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

.product p strong {
    color: #c87d68;
    font-weight: 600;
}

button {
    background: linear-gradient(135deg, #c87d68 0%, #b06550 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(200, 125, 104, 0.3);
    width: 100%;
    font-family: 'Outfit', sans-serif;
}

button:hover {
    background: linear-gradient(135deg, #b06550 0%, #9a5340 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 125, 104, 0.4);
}

button:active {
    transform: translateY(1px);
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #4caf50;
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* Cart Page Styles */
.cart-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.cart-item {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid #c87d68;
    transition: transform 0.2s ease;
}

.cart-item:hover {
    transform: translateX(5px);
}

.cart-item-info h3 {
    font-size: 1.4rem;
    color: #5a4b41;
    margin-bottom: 0.5rem;
}

.cart-item-info p {
    color: #887a73;
    margin-bottom: 0.25rem;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0e9e4;
    color: #7c6857;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.qty-btn:hover {
    background: #e4d7cd;
    color: #5a4b41;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.qty {
    font-size: 1.4rem;
    font-weight: 700;
    color: #5a4b41;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    background: #e74c3c;
    width: auto;
    padding: 0.6rem 1.2rem;
    margin: 0 0 0 1rem;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.2);
}

.remove-btn:hover {
    background: #c0392b;
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
}

.cart-total {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    text-align: right;
    font-size: 1.8rem;
    color: #5a4b41;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.cart-total strong {
    color: #c87d68;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.clear-btn {
    background: #95a5a6;
    width: auto;
}

.clear-btn:hover {
    background: #7f8c8d;
}

.checkout-btn {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    width: auto;
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
}

footer {
    background: linear-gradient(135deg, #7c6857 0%, #bca48d 100%);
    color: #fff;
    text-align: center;
    padding: 2.5rem;
    margin-top: 4rem;
    font-size: 1rem;
    font-weight: 300;
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .cart-controls {
        width: 100%;
        justify-content: space-between;
    }
    .cart-actions {
        flex-direction: column;
    }
    header h1 {
        font-size: 2.5rem;
    }
    #cart {
        position: static;
        display: inline-block;
        margin-top: 1.5rem;
    }
}