/* ============================================================
   Diilzo Storefront — Base (global) styles
   Classic theme: orange gradient branding, Inter font, light bg
   ============================================================ */

:root {
    --diilzo-primary: #32C700;
    --diilzo-accent: #008525;
    --diilzo-dark: #0A2E1A;
    --diilzo-text: #0A2E1A;
    --diilzo-muted: #1A6B45;
    --diilzo-bg: #ffffff;
    --diilzo-border: #C5E8D5;
    --diilzo-star: #F59E0B;
}

/* Shipment tracking dots (avoid Django template tags in inline styles) */
.dz-track-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 14px;
}

.dz-track-dot-active {
    background: var(--diilzo-primary);
}

.dz-track-dot-delivered {
    background: #16a34a;
}

/* Utility: hide element (used by Django template conditionals instead of inline style) */
.dz-hidden {
    display: none;
}

/* ── Currency symbol styling ──────────────────────────────────── */
/* Smaller font and muted orange color for currency codes (UGX, USD, etc.) */
.dz-price-currency {
    font-size: 0.65em;
    font-weight: 600;
    color: var(--diilzo-primary, #32C700);
    opacity: 0.75;
    letter-spacing: 0.02em;
    margin-right: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--diilzo-bg);
    color: var(--diilzo-text);
    min-height: 100vh;
}

/* iOS Safari auto-zoom prevention */
@media (max-width: 767px) {

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Toast notifications (Django messages) */
.dz-toast-wrap {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.dz-toast {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(400px);
    opacity: 0;
    transition: all .3s ease;
}

.dz-toast.dz-show {
    transform: translateX(0);
    opacity: 1;
}

.dz-toast.dz-success {
    background: #16a34a;
}

.dz-toast.dz-error {
    background: #dc2626;
}

.dz-toast.dz-info {
    background: #2563eb;
}

.dz-toast.dz-warning {
    background: #d97706;
}

/* Scroll reveal */
@keyframes dz-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dz-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.dz-reveal.dz-reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card slide-in stagger effect (triggered by JS IntersectionObserver) */
.dz-home-product-card,
.dz-home-deal-card,
.dz-home-cat-card,
.dz-home-store-card,
.dz-home-brand-card,
.dz-home-qs-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.dz-card-slide-in {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .dz-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .dz-home-product-card,
    .dz-home-deal-card,
    .dz-home-cat-card,
    .dz-home-store-card,
    .dz-home-brand-card,
    .dz-home-qs-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Section badge (used on product cards) */
.dz-section-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
}

.dz-section-badge-new {
    background: #16825d;
}

.dz-section-badge-hot {
    background: #e5483e;
}
/* ── Skeleton loading (shimmer) ─────────────────────────────────── */
.dz-skeleton {
    background: linear-gradient(90deg, #eceef1 25%, #f5f6f8 37%, #eceef1 63%);
    background-size: 400% 100%;
    animation: dz-shimmer 1.4s ease infinite;
    border-radius: 6px;
    display: inline-block;
}
@keyframes dz-shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.dz-skeleton-block { width: 100%; height: 16px; margin-bottom: 8px; }
.dz-skeleton-card {
    background: #fff; border-radius: 12px; padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.dz-skeleton-card-img { width: 100%; height: 140px; border-radius: 10px; margin-bottom: 10px; }
.dz-skeleton-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px; padding: 16px;
}
.dz-skeleton-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.dz-skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
