/* TermoLand - Custom Styles (pure CSS, no @apply) */

/* Navigation */
.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(161 161 170);
    transition: all 0.2s;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.nav-active {
    color: #fbbf24 !important;
    background: rgba(251,191,36,0.05);
}

/* Nav scroll effect */
.nav-scrolled {
    background: rgba(9,9,11,0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Animations */
@keyframes slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.1); }
    50% { box-shadow: 0 0 40px rgba(251, 191, 36, 0.2); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fade-up {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-slide-in { animation: slide-in 0.4s ease-out; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-gradient { animation: gradient-shift 8s ease infinite; background-size: 200% 200%; }
.animate-fade-up { animation: fade-up 0.6s ease-out forwards; }

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    animation: fade-up 0.5s ease-out forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }

/* Product Card */
.product-card {
    position: relative;
    background: rgba(24,24,27,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.5s;
}

.product-card:hover {
    border-color: rgba(251,191,36,0.2);
    box-shadow: 0 25px 50px -12px rgba(251,191,36,0.05);
    transform: translateY(-4px);
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom right, rgb(39,39,42), rgb(24,24,27));
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Glass effect */
.glass {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(to right, #fbbf24, #fb923c, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgb(9, 9, 11);
}

::-webkit-scrollbar-thumb {
    background: rgb(63, 63, 70);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(82, 82, 91);
}

/* Star rating */
.star-filled {
    color: #fbbf24;
}

.star-empty {
    color: #3f3f46;
}

/* Quantity input */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Checkbox custom */
.custom-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    border: 2px solid rgb(82,82,91);
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    vertical-align: middle;
}

.custom-checkbox:checked {
    background-color: #f59e0b;
    border-color: #f59e0b;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%2318181b' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

/* Category card hover effect */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 0;
    transition: all 0.5s;
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(251, 191, 36, 0.15) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.category-card:hover::before {
    opacity: 1;
}

/* Blob decoration */
.blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* Tab styles */
.tab-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
    color: rgb(161,161,170);
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.tab-btn.active {
    background: #f59e0b;
    color: rgb(24,24,27);
}

.tab-btn.active:hover {
    background: #f59e0b;
    color: rgb(24,24,27);
}

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