/* ============================================
   Pigisat E-Commerce — Custom CSS
   Brand colors & utility classes
   ============================================ */

:root {
    --kni-primary: #0483c6;
    --kni-dark-teal: #036a9e;
    --kni-light-teal: #e8f4fc;
    --kni-navy: #182b54;
    --kni-gold: #0483c6;
    --kni-grey: #F5F5F5;
    --kni-text: #1a1a2e;
    --kni-white: #ffffff;
    --kni-border: #e5e7eb;
    --kni-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --kni-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --kni-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --kni-radius: 0.5rem;
    --kni-radius-lg: 0.75rem;
    --kni-transition: all 0.2s ease;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--kni-text);
    line-height: 1.6;
}

/* Status badge colors */
.badge-blue { background-color: #DBEAFE; color: #1E40AF; }
.badge-yellow { background-color: #FEF3C7; color: #92400E; }
.badge-orange { background-color: #FFEDD5; color: #9A3412; }
.badge-purple { background-color: #EDE9FE; color: #6B21A8; }
.badge-indigo { background-color: #E0E7FF; color: #3730A3; }
.badge-teal { background-color: #CCFBF1; color: #065F46; }
.badge-green { background-color: #D1FAE5; color: #065F46; }
.badge-gray { background-color: #F3F4F6; color: #374151; }
.badge-red { background-color: #FEE2E2; color: #991B1B; }

/* Progress bar */
.progress-step {
    transition: all 0.3s ease;
}
.progress-step.active {
    background-color: var(--kni-primary);
}
.progress-step.completed {
    background-color: var(--kni-primary);
}
.progress-step.inactive {
    background-color: #D1D5DB;
}

.progress-connector {
    transition: all 0.3s ease;
}
.progress-connector.active {
    background-color: var(--kni-primary);
}
.progress-connector.inactive {
    background-color: #D1D5DB;
}

/* Timeline */
.timeline-line {
    position: absolute;
    left: 1.25rem;
    top: 2.5rem;
    bottom: 0;
    width: 2px;
    background-color: #E5E7EB;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--kni-primary);
    background-color: white;
    position: relative;
    z-index: 1;
}

.timeline-dot.active {
    background-color: var(--kni-primary);
}

/* Card hover */
.card-hover {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-hover:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* Tab active */
.tab-active {
    border-bottom: 3px solid var(--kni-primary);
    color: var(--kni-primary);
    font-weight: 600;
}

.tab-inactive {
    border-bottom: 3px solid transparent;
    color: #6B7280;
}

/* Step form indicator */
.step-indicator.active {
    background-color: var(--kni-primary);
    color: white;
}
.step-indicator.completed {
    background-color: var(--kni-primary);
    color: white;
}
.step-indicator.inactive {
    background-color: #E5E7EB;
    color: #9CA3AF;
}

/* Radio card */
.radio-card {
    border: 2px solid #E5E7EB;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.radio-card.selected {
    border-color: var(--kni-primary);
    background-color: var(--kni-light-teal);
}

/* Skeleton loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 50;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 320px;
    max-width: 85vw;
    background-color: white;
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open .mobile-menu-panel {
    transform: translateX(0);
}

/* Product image hover zoom */
.product-img-container {
    overflow: hidden;
}
.product-img-container img {
    transition: transform 0.3s ease;
}
.product-img-container:hover img {
    transform: scale(1.05);
}

/* Add to cart feedback */
.add-to-cart-btn.added {
    background-color: #065F46 !important;
}

/* Category pill */
.category-pill {
    white-space: nowrap;
    transition: all 0.2s ease;
}
.category-pill:hover {
    background-color: var(--kni-primary);
    color: white;
}

/* Star rating */
.star-full { color: #f59e0b; }
.star-empty { color: #D1D5DB; }

/* Checkout step visibility */
.checkout-step {
    display: none;
}
.checkout-step.active {
    display: block;
}

/* Form controls */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}
.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--kni-border);
    border-radius: var(--kni-radius);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease;
}
.form-input:focus {
    border-color: var(--kni-primary);
    box-shadow: 0 0 0 3px rgba(4, 131, 198, 0.1);
}

/* Line clamp utility */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Cart pulse animation */
@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}
.cart-pulse {
    animation: cartPulse 0.3s ease;
}

/* Mini-timeline for return cases */
.mini-timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--kni-primary);
    flex-shrink: 0;
}
