.page-header {
    background: var(--primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.shop .container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 4rem 1rem;
}

@media (max-width: 768px) {
    .shop .container {
        grid-template-columns: 1fr;
    }
}

.shop-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.shop-sidebar h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-btn {
    background: var(--bg-light);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
    font-size: 1rem;
}

.category-btn:hover {
    background: var(--border);
}

.category-btn.active {
    background: var(--primary);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.product-image {
    font-size: 4rem;
    text-align: center;
    padding: 2rem 0;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: var(--text);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-card.hidden {
    display: none;
}

.modal-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
    margin: 1rem 0;
}

.cart-button {
    position: relative;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    margin-right: 1rem;
    transition: 0.3s;
}

.cart-button:hover {
    background: var(--primary-dark);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

#cartItems {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    padding: 3rem 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.cart-item-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text);
}

.cart-item-price {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-controls button {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.cart-item-controls button:hover {
    background: var(--border);
}

.remove-btn {
    background: #fff5f5 !important;
    border-color: #fc8181 !important;
}

.remove-btn:hover {
    background: #fed7d7 !important;
}

.cart-item-subtotal {
    font-weight: bold;
    color: var(--primary);
    margin: 0;
    min-width: 70px;
    text-align: right;
}

.cart-summary {
    border-top: 2px solid var(--border);
    padding-top: 1rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.cart-total span {
    color: var(--primary);
}

.cart-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.order-summary {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.order-summary h3 {
    margin-top: 0;
    color: var(--primary);
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
    font-weight: bold;
}

.checkout-total span {
    color: var(--primary);
}

@media (max-width: 768px) {
    .cart-button {
        margin-right: 0.5rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }
}