/* Brand Design System */
:root {
    --brand-blue: #0070bc;
    --brand-orange: #f7941d;
    --brand-bg-light: #fff7ed;
    --text-main: #111827;
    --text-muted: #6b7280;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
    display: none !important;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}

/* Show custom scrollbar on Desktop/PC only */
@media (min-width: 1024px) {
    .scrollbar-hide::-webkit-scrollbar {
        display: block !important;
        height: 5px !important;
    }
    .scrollbar-hide::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 10px !important;
    }
    .scrollbar-hide::-webkit-scrollbar-thumb {
        background: #0070bc !important;
        border-radius: 10px !important;
    }
    .scrollbar-hide {
        -ms-overflow-style: auto !important;
        scrollbar-width: thin !important;
    }
}

/* Toast Notification Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-enter {
    animation: slideIn 0.3s ease-out forwards;
}

/* Loading Skeleton Shimmer */
.skeleton {
    background: #f3f4f6;
    background-image: linear-gradient(
        to right,
        #f3f4f6 0%,
        #e5e7eb 20%,
        #f3f4f6 40%,
        #f3f4f6 100%
    );
    background-repeat: no-repeat;
    background-size: 200px 100%;
    display: inline-block;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Premium Card Styles */
.product-card-shadow {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

#product-grid {
    /* Removed min-height to fix scroll lock issue */
}

/* Header Collapse Styles */
header.md\:hidden, 
#segmented-control, 
#location-bar, 
#explore-title {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.2s ease, 
                margin 0.25s ease, 
                padding 0.25s ease;
    will-change: transform, opacity;
}

.collapsed-header {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.collapsed-header #segmented-control,
.collapsed-header #location-bar,
.collapsed-header #explore-title {
    height: 0;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    visibility: hidden;
}

.product-card-active:active {
    transform: scale(0.97);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
