/* ==========================================================================
   Anwar Ul Haq Mobiles - Traditional Premium Design System
   ========================================================================== */

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #f4f4f4; /* Classic subtle light gray */
    color: #333333;
}

/* Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888888;
    border-radius: 4px;
    border: 2px solid #e0e0e0;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* Hide scrollbar for horizontal scrolling */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Drawer Transitions */
.drawer-open {
    transform: translateX(0%) !important;
}
.drawer-closed {
    transform: translateX(100%) !important;
}

/* ==========================================================================
   Advanced Traditional Animations
   ========================================================================== */

/* Classic Button Interaction */
.btn-classic {
    transition: all 0.2s ease-in-out;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
}
.btn-classic:hover {
    transform: translateY(-1px);
}
.btn-classic:active {
    transform: translateY(1px);
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.2);
}

/* Product Card - Classic Frame Hover */
.classic-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    border: 1px solid #e5e5e5;
    background: #ffffff;
}
.classic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.05);
    border-color: #d4af37; /* Gold accent border on hover */
}

/* Image Zoom inside Card */
.classic-card img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.classic-card:hover img {
    transform: scale(1.08);
}

/* Scroll Reveal Animations */
@keyframes revealUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes revealFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.reveal-up {
    animation: revealUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
}
.reveal-fade {
    animation: revealFade 1s ease-in-out both;
}

/* Staggered loading for grids */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Traditional Underline Sweep for Links */
.hover-underline-classic {
    position: relative;
    display: inline-block;
}
.hover-underline-classic::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #d4af37; /* Gold */
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}
.hover-underline-classic:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Elegant Pulse for Sale Badge */
@keyframes classicPulse {
    0% { box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(185, 28, 28, 0); }
    100% { box-shadow: 0 0 0 0 rgba(185, 28, 28, 0); }
}
.badge-pulse {
    animation: classicPulse 2s infinite;
}