/* Image fade-in */
.product-card img {
    /* opacity: 0; */
    transition: opacity 0.5s ease-in-out;
}
.product-card img.loaded {
    opacity: 1;
}
/* Shake animation for search */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.shake {
    animation: shake 0.5s;
}
/* Navbar shrink */
.navbar-shrink {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Smooth transition for navbar */
nav {
    transition: all 0.3s ease;
}
/* Tab click animation */
.tab-click {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.tab-btn {
    color: #F9FAFB !important;
}

.tab-btn:not([aria-pressed="true"]) {
    background-color: rgba(123,30,58, 0.2) !important;
}

.tab-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(30,144,255,0.5);
}
/* Category transition */
.grid-transition {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s, transform 0.3s;
}
.grid-visible {
    opacity: 1;
    transform: scale(1);
}
/* Custom fade-in animation for product cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}
/* Updated product card styles for better visual cohesion */
.product-card {
    background: linear-gradient(135deg, rgba(10,25,47,0.95), rgba(10,25,47,0.85), rgba(197,165,114,0.05)) !important;
    border: 2px solid rgba(197,165,114, 0.3) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(197,165,114,0.1) !important;
    opacity: 1 !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 2rem !important;
    cursor: pointer !important;
    min-height: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}
.product-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 8px !important;
    background: linear-gradient(90deg, #C5A572, #1E90FF, #7B1E3A, #FFA500) !important;
    border-radius: 24px 24px 0 0 !important;
}
.product-card::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(197,165,114,0.08), transparent) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    pointer-events: none !important;
    border-radius: 24px !important;
}
.product-card:hover {
    background: linear-gradient(135deg, rgba(197,165,114, 0.15), rgba(30,144,255, 0.1), rgba(10,25,47,0.9)) !important;
    border-color: rgba(197,165,114, 0.8) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(197,165,114,0.3), 0 0 60px rgba(30,144,255,0.2) !important;
    transform: translateY(-15px) scale(1.05) !important;
}
.product-card:hover::after {
    opacity: 1 !important;
}
.product-card h4 {
    color: #F9FAFB !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4) !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
}
.product-card p {
    color: rgba(249,250,251, 0.95) !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
    text-align: center !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .product-card {
        padding: 1.25rem;
        border-radius: 16px;
    }
    .product-card:hover {
        transform: translateY(-8px) scale(1.02);
    }
    .product-card h4 {
        font-size: 1.25rem;
    }
    .product-card p {
        font-size: 0.875rem;
    }
}

/* Admin import preview card styles - modern golden theme */
.import-preview-card {
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto 1.5rem auto !important;
    background: linear-gradient(135deg, rgba(10,25,47,0.95), rgba(10,25,47,0.85), rgba(197,165,114,0.05)) !important;
    border: 2px solid rgba(197,165,114, 0.3) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(197,165,114,0.1) !important;
    opacity: 1 !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    position: relative !important;
    cursor: default !important;
    padding: 1.5rem !important;
}

.import-preview-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 8px !important;
    background: linear-gradient(90deg, #C5A572, #1E90FF, #7B1E3A, #FFA500) !important;
    border-radius: 24px 24px 0 0 !important;
}

.import-preview-card::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(197,165,114,0.08), transparent) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    pointer-events: none !important;
    border-radius: 24px !important;
}

.import-preview-card.valid {
    border-color: rgba(197,165,114, 0.6) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(34,197,94,0.2) !important;
}

.import-preview-card.valid::before {
    background: linear-gradient(90deg, #C5A572, #22C55E, #16A34A) !important;
}

.import-preview-card.invalid {
    border-color: rgba(197,165,114, 0.6) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(239,68,68,0.2) !important;
}

.import-preview-card.invalid::before {
    background: linear-gradient(90deg, #C5A572, #EF4444, #DC2626) !important;
}

.import-preview-card:hover {
    background: linear-gradient(135deg, rgba(197,165,114, 0.15), rgba(30,144,255, 0.1), rgba(10,25,47,0.9)) !important;
    border-color: rgba(197,165,114, 0.8) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(197,165,114,0.3), 0 0 60px rgba(30,144,255,0.2) !important;
    transform: translateY(-15px) scale(1.05) !important;
}

.import-preview-card:hover::after {
    opacity: 1 !important;
}

.import-preview-card .card-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.import-preview-card .card-content {
    padding: 1.5rem;
}

.import-preview-card .card-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.import-preview-card .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.import-preview-card.valid .status-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.import-preview-card.invalid .status-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.import-preview-card .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.import-preview-card .form-group {
    display: flex;
    flex-direction: column;
}

.import-preview-card .form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #E5E7EB;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.import-preview-card .form-group input,
.import-preview-card .form-group select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    color: #F9FAFB;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.import-preview-card .form-group input:focus,
.import-preview-card .form-group select:focus {
    outline: none;
    border-color: #C5A572;
    box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.import-preview-card .error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #FCA5A5;
}

.import-preview-card .error-message strong {
    color: #EF4444;
}

.import-preview-card .action-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.import-preview-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.import-preview-card .btn:hover {
    transform: translateY(-2px);
}

.import-preview-card .btn-primary {
    background: linear-gradient(135deg, #C5A572, #FFD700);
    color: #0A192F;
    box-shadow: 0 4px 12px rgba(197, 165, 114, 0.3);
}

.import-preview-card .btn-primary:hover {
    background: linear-gradient(135deg, #FFD700, #FFE55C);
    box-shadow: 0 6px 16px rgba(197, 165, 114, 0.4);
}

.import-preview-card .btn-danger {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: #F9FAFB;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.import-preview-card .btn-danger:hover {
    background: linear-gradient(135deg, #EF4444, #F87171);
    color: #F9FAFB;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px) scale(1.05);
}

/* Disable pop-out (translate/scale/box-shadow) on brand cards only */
.no-popout, .no-popout * {
    transition: none !important;
}
.no-popout:hover {
    transform: none !important;
    box-shadow: none !important;
}
.no-popout:hover::after {
    opacity: 0 !important;
}
.no-popout img, .no-popout:hover img {
    transform: none !important;
}

.import-preview-card .btn-danger i {
    font-size: 1rem;
}

/* Brand card image styling */
.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
}

/* Override AOS opacity to ensure visibility */
.aos-init {
    opacity: 1 !important;
}
.aos-animate {
    opacity: 1 !important;
}

/* Custom style for select options using Tailwind-equivalent colors */
#category-select option {
    background-color: #0A192F !important;
    color: #F9FAFB !important;
}


