/* Shafatain — Mobile-First Styles */

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* Bottom nav safe area */
@media (max-width: 767px) {
    body {
        padding-bottom: 3.75rem;
    }
}

/* Safe area for iPhone notch/home indicator */
.safe-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Product card hover (desktop only) */
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
}

/* Sale badge — flat */
.sale-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #f97316;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    z-index: 5;
}
@media (min-width: 640px) {
    .sale-badge {
        top: 8px;
        left: 8px;
        font-size: 0.7rem;
        padding: 2px 8px;
    }
}

/* Category card */
.category-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
    .category-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }
}

/* WhatsApp button pulse */
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
}
.wa-float {
    animation: wa-pulse 2.5s infinite;
}

/* Toast notification */
.toast {
    position: fixed;
    top: 70px;
    right: 12px;
    left: 12px;
    z-index: 9999;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
}
.toast.show {
    transform: translateY(0);
}
@media (min-width: 640px) {
    .toast {
        left: auto;
        right: 20px;
        width: auto;
        max-width: 360px;
        transform: translateX(120%);
    }
    .toast.show {
        transform: translateX(0);
    }
}

/* Quantity input */
.qty-input {
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f0f9ff;
    border-top: 3px solid #0284c7;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hero — flat clean background */
.hero-gradient {
    background: #f9fafb;
}

/* Admin sidebar active */
.admin-nav-active {
    background-color: #f0f9ff;
    color: #0369a1;
    border-right: 3px solid #0369a1;
}

/* Hero map section */
.hero-map-section {
    position: relative;
    overflow: hidden;
}
.hero-map-section iframe {
    pointer-events: none;
}
.hero-map-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

/* Image placeholder — flat */
.img-placeholder {
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Hide scrollbar but allow scroll */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Search results item keyboard highlight */
.search-item.bg-primary-50 {
    background-color: #f0f9ff;
}

/* Active button press feedback for mobile */
@media (max-width: 767px) {
    button:active, a:active {
        opacity: 0.85;
    }
}
