/* Reusable Components */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    font-size: 14px;
}
.breadcrumb a {
    color: var(--p_color);
    transition: color 0.3s;
}
.breadcrumb a:hover {
    color: var(--main_color);
}
.breadcrumb span {
    color: var(--p_color);
}
.breadcrumb .current {
    color: var(--color_heading);
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}
.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border_color);
    border-radius: var(--radius_md);
    background: var(--white_color);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}
.page-btn:hover,
.page-btn.active {
    background: var(--main_color);
    color: var(--white_color);
    border-color: var(--main_color);
}
.page-dots {
    color: var(--p_color);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius_full);
    font-size: 12px;
    font-weight: 600;
}
.badge-success {
    background: #dcfce7;
    color: #166534;
}
.badge-warning {
    background: #fef3c7;
    color: #92400e;
}
.badge-error {
    background: #fee2e2;
    color: #991b1b;
}
.badge-info {
    background: var(--main_color_light);
    color: var(--main_color_dark);
}


/* Form Elements */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color_heading);
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border_color);
    border-radius: var(--radius_md);
    font-size: 15px;
    transition: all 0.3s;
    background: var(--white_color);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--main_color);
    box-shadow: 0 0 0 3px var(--main_color_light);
    outline: none;
}
.form-textarea {
    min-height: 120px;
    resize: vertical;
}
.form-error {
    color: var(--error_color);
    font-size: 13px;
    margin-top: 5px;
}

/* Cards */
.card {
    background: var(--white_color);
    border-radius: var(--radius_lg);
    border: 1px solid var(--border_color);
    padding: 24px;
    box-shadow: var(--shadow_sm);
}
.card-header {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border_color);
    margin-bottom: 16px;
}
.card-title {
    font-size: 18px;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state i {
    font-size: 60px;
    color: var(--border_color);
    margin-bottom: 20px;
}
.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.empty-state p {
    color: var(--p_color);
    margin-bottom: 20px;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius_md);
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}
.skeleton-image {
    height: 200px;
}

/* ===== Site Footer ===== */
.site-footer {
    background-color: #f3f6f9;
    padding: 1.75rem 0;
    margin-top: 2.5rem;
    flex-shrink: 0;
}

.site-footer .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.site-footer .footer-copy {
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
}

.site-footer .footer-social a {
    color: #16a34a;
    margin: 0 6px;
    transition: opacity 0.2s;
}

.site-footer .footer-social a:hover { opacity: 0.75; }

.site-footer .footer-links {
    display: flex;
    gap: 1.25rem;
}

.site-footer .footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.site-footer .footer-links a:hover { color: #16a34a; }

/* Wishlist page — cart button green */
.wishlist-cart-btn {
    background: #16a34a !important;
    color: #fff !important;
    border-color: #16a34a !important;
}

.wishlist-cart-btn.active {
    background: #15803d !important;
    border-color: #15803d !important;
}

.wishlist-cart-btn i { color: #fff !important; }

/* ---- Product color swatches ---- */
.color-options {
    margin: 12px 0;
}
.color-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    outline: none;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.color-swatch:hover {
    transform: scale(1.15);
}
.color-swatch.active {
    border-color: #16a34a;
    box-shadow: 0 0 0 2px #16a34a;
    transform: scale(1.1);
}
