/* === Cart Button === */
.cart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    padding: 5px;
}
.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.cart-count.bounce {
    animation: bounce 0.3s ease;
}
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}
.modal-content {
    background: white;
    margin: 10% auto;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.close-modal {
    position: absolute;
    right: 20px; top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}
.close-modal:hover { color: #333; }

/* === Cart List === */
.cart-list { list-style: none; margin: 20px 0; }
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.cart-item-info strong { display: block; font-size: 0.95rem; }
.cart-item-info small { color: #666; }
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.cart-item-sum { font-weight: bold; }
.btn-remove {
    background: #e74c3c;
    color: white;
    border: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-remove:hover { background: #c0392b; }
.cart-total {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: right;
    margin: 20px 0;
    border-top: 2px solid #eee;
    padding-top: 15px;
}

/* === Product Card Success State === */
.btn--success {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
    color: white !important;
}

/* Mobile adapt for cart */
@media (max-width: 480px) {
    .modal-content { margin: 20% auto; width: 95%; }
    .cart-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cart-item-actions { width: 100%; justify-content: space-between; }
}
/* === Stock Status === */
.stock-status {
    font-size: 0.85rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
}
.stock-status.in-stock {
    background: #d4edda;
    color: #155724;
}
.stock-status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* === Disabled Button === */
.add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #eee !important;
    color: #999 !important;
    border-color: #ddd !important;
}

/* === No Results Message === */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: #666;
}

/* === Breadcrumbs === */
.breadcrumbs {
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #666;
}
.breadcrumbs a {
    color: var(--primary-color);
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: #999;
}