/* Frontend Base Styles - Compatible with Bright Neumorphic */

/* This file provides basic fallback styles that work with bright-neumorphic.css */
/* All major styling is handled by bright-neumorphic.css */

/* Ensure bright neumorphic styles take precedence */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Basic navigation styles that don't conflict */
.navbar {
    z-index: 1030;
}

/* Basic utility classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.ms-2 {
    margin-left: 0.5rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Basic responsive utilities */
@media (max-width: 768px) {
    .d-md-none {
        display: none !important;
    }
}

/* Basic form utilities */
.form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Basic button utilities */
.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #6366f1;
    color: white;
}

.btn-primary:hover {
    background: #5558e3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    background: transparent;
    color: #6b7280;
    border: 2px solid #6b7280;
}

.btn-outline-secondary:hover {
    background: #6b7280;
    color: white;
}

/* Basic badge utilities */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.bg-success {
    background: #10b981;
    color: white;
}

.bg-danger {
    background: #ef4444;
    color: white;
}

.bg-secondary {
    background: #6b7280;
    color: white;
}

.text-muted {
    color: #6b7280;
}

.text-primary {
    color: #1e293b;
}

.text-warning {
    color: #f59e0b;
}

.text-decoration-line-through {
    text-decoration: line-through;
}

/* Basic card utilities */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.card-body {
    padding: 1.5rem;
}

.border-0 {
    border: none;
}

.rounded {
    border-radius: 8px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Position utilities */
.position-fixed {
    position: fixed;
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.bottom-0 {
    bottom: 0;
}

.end-0 {
    right: 0;
}

.top-0 {
    top: 0;
}

.start-100 {
    left: 100%;
}

.translate-middle {
    transform: translate(-50%, -50%);
}

.rounded-pill {
    border-radius: 50rem;
}

.rounded-circle {
    border-radius: 50%;
}

/* Z-index utilities */
.z-index-1 {
    z-index: 1;
}

/* Sizing utilities */
.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

/* Spacing utilities */
.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.px-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Alert utilities */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: none;
}

.alert-success {
    background: #10b981;
    color: white;
}

.alert-danger {
    background: #ef4444;
    color: white;
}

.alert-info {
    background: #3b82f6;
    color: white;
}

.alert-warning {
    background: #f59e0b;
    color: white;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}

/* Table utilities */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.table-borderless td {
    border: none;
}

/* Form utilities */
.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

.form-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.form-switch .form-check-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.form-switch .form-check-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e2e8f0;
    transition: 0.3s;
    border-radius: 24px;
}

.form-switch .form-check-label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
}

.form-switch .form-check-input:checked + .form-check-label {
    background: #6366f1;
}

.form-switch .form-check-input:checked + .form-check-label:before {
    transform: translateX(26px);
}

/* Loading utilities */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Ensure bright neumorphic styles override everything */
.product-gallery,
.product-info,
.main-image,
.thumbnail,
.product-title,
.product-rating,
.product-price,
.current-price,
.original-price,
.discount-badge,
.product-stock,
.size-option,
.quantity-input-group,
.quantity-input,
.quantity-btn,
.action-btn,
.feature-item,
.product-tabs,
.nav-tabs,
.nav-link,
.tab-content,
.related-products,
.product-card {
    /* All these will be styled by bright-neumorphic.css */
}
