:root {
    --primary-color: #d32f2f; /* Sreenidhi Red */
    --secondary-color: #111111; /* Sreenidhi Black */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fcfcfc;
}

.navbar-brand {
    color: var(--primary-color) !important;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.card {
    border-radius: 10px;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    }
}

/* Utility: hover lift + shadow for non-card boxes */
.hover-lift {
    transition: transform 220ms ease, box-shadow 220ms ease;
}
@media (hover: hover) and (pointer: fine) {
    .hover-lift:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    }
}

.badge {
    font-weight: 500;
}

/* Back to Top button */
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, filter 180ms ease;
    z-index: 2000; /* stay on top */
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
    .back-to-top:hover {
        filter: brightness(0.98);
        transform: translateY(-2px);
    }
}

.back-to-top:focus-visible {
    outline: 3px solid rgba(211, 47, 47, 0.35);
    outline-offset: 3px;
}

/* Ensure the arrow is always visible (even if icon font fails to load) */
.back-to-top-arrow {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    display: inline-block;
}

/* Motion animations for cards (enabled only when JS adds .js-motion to <html>) */
.js-motion .motion-card {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 520ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.js-motion .motion-card.motion-in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .js-motion .motion-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Full-width (edge-to-edge) sections inside a centered container */
.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Home Hero Carousel */
.hero-carousel {
    background: #111;
}

.hero-slide {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.72), rgba(0,0,0,0.35), rgba(0,0,0,0.25));
}

.hero-caption {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 56px 20px;
    max-width: 780px;
}

.hero-kicker {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.hero-title {
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 10px;
}

.hero-text {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0 0 18px;
}

/* Caption animations */
.carousel-item .hero-kicker,
.carousel-item .hero-title,
.carousel-item .hero-text,
.carousel-item .btn {
    opacity: 0;
    transform: translateY(14px);
}

.carousel-item.active .hero-kicker {
    animation: heroIn 700ms ease-out 100ms forwards;
}
.carousel-item.active .hero-title {
    animation: heroIn 750ms ease-out 180ms forwards;
}
.carousel-item.active .hero-text {
    animation: heroIn 800ms ease-out 260ms forwards;
}
.carousel-item.active .btn {
    animation: heroIn 850ms ease-out 340ms forwards;
}

@keyframes heroIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-slide { min-height: 360px; }
    .hero-title { font-size: 1.75rem; }
    .hero-text { font-size: 1rem; }
}

/* Admin Styles override */
.admin-card {
    border-left: 4px solid var(--primary-color);
}
