/* =====================================================================
   AIRAS MART — custom.css
   (Tokens ar base style, style.css e ache. Ekhane page-specific style.)
   ===================================================================== */

* {
    box-sizing: border-box;
}
.mt-5{
    margin-top: 0.5rem !important;
}
.price-discount{
    background-color: #39c53c;
    padding:2px 5px;
    color:white;
    border-radius: 2px;
}
.mega-icon-img{
     width: 40px; 
    height: 30px; 
    border-radius:10px; 
    object-fit: contain;
}
/* ---------- Container ---------- */
.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
    margin-right: auto;
    margin-left: auto;
}
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl{
    padding-left :8px !important;
    padding-right :8px !important;
}
@media (min-width: 576px)  { .container, .container-sm { max-width: 540px; } }
@media (min-width: 768px)  { .container, .container-md, .container-sm { max-width: 720px; } }
@media (min-width: 992px)  { .container, .container-lg, .container-md, .container-sm { max-width: 960px; } }
@media (min-width: 1200px) { .container, .container-lg, .container-md, .container-sm, .container-xl { max-width: 1920px; } }
@media (min-width: 1400px) { .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { max-width: 1920px; } }



.header-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 0;
}

.header-live-animation {
    width: 100%;
    display: block;
    object-fit: cover;
    animation: liveHeader 1s ease-in-out infinite alternate;
    transform-origin: center center;
    will-change: transform, filter;
}

@keyframes liveHeader {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.015);
        filter: brightness(1.04);
    }

    100% {
        transform: scale(1.025);
        filter: brightness(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-live-animation {
        animation: none;
    }
}

/* ==========Desktop mega menu (partial: mega_menu.blade.php)=========== */
.nav-wrapper {
    position: relative;
}

.navbar {
    display: flex;
    background: #e6ffea;
    padding: 8px 4px;
    align-items: center;
    border:1px solid #61df49;
}

.navbar a {
    color: var(--airas-green-900);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding:2px;
    position: relative;
    border-right: 1px solid #34bd60;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--airas-red);
    transition: .3s;
}

.navbar a:hover::after {
    width: 100%;
}

.mega-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 3px solid var(--airas-green);
    box-shadow: 0 20px 50px rgba(0, 40, 15, .15);
    display: none;
    z-index: 999;
    animation: fadeSlide .25s ease;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mega-menu { display: none; }
.mega-menu.active { display: block; }

.mega-grid {
    max-width: 1500px;
    margin: auto;
    padding: 10px 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 35px;
}

.mega-column h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--airas-green-900);
}

.mega-column a {
    display: block;
    font-size: 14px;
    color: var(--ink-soft);
    padding: 6px 0;
    text-decoration: none;
}

.mega-column a:hover { color: var(--airas-green); }

.mega-column { position: relative; }

.mega-column:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: -18px;
    width: 1px;
    height: 100%;
    background: var(--line);
}

@media (max-width: 992px) {
    .mega-grid { grid-template-columns: repeat(3, 1fr); padding: 25px; }
    .mega-column:not(:last-child)::after { display: none; }
}

@media (max-width: 600px) {
    .navbar { flex-wrap: wrap; padding: 12px 16px; }
    .navbar a { width: 100%; padding: 12px 0; }
    .mega-wrapper { position: static; box-shadow: none; animation: none; }
    .mega-grid { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
    .mega-column { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
    .mega-column:last-child { border-bottom: none; }
}

/* ========Mobile menu (legacy)========= */
.mobile-header { background: var(--airas-green-900); color: #fff; }

.mobile-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
}

#mobileMenuBtn { background: none; border: none; cursor: pointer; padding: 8px; }

.mobile-menu { display: none; background: #fff; }
.mobile-menu ul { list-style: none; }

.mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.has-sub > a { font-weight: 600; }
.sub-menu { display: none; background: #f9fbf9; }
.sub-menu a { padding-left: 30px; font-size: 14px; }

.table > :not(caption) > * > * {
    text-align: left;
    padding: 10px 14px;
}

/* =======Category page (filter sidebar)========= */
.filter-box {
    border: 1px solid var(--line);
    padding: 18px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.filter-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--airas-green-50);
    color: var(--airas-green-900);
}

.filter-group { margin-bottom: 20px; }

.filter-group h6 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--airas-green-900);
}

.filter-group ul { list-style: none; padding: 0; }

.filter-group li { font-size: 13px; margin-bottom: 6px; color: var(--ink); }

.filter-group label { cursor: pointer; display: flex; align-items: center; gap: 8px; }

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] { accent-color: var(--airas-green); }

/* category link list (class section-link ke plain link banano) */
.filter-box .section-link {
    border: 0;
    padding: 5px 0;
    border-radius: 0;
    font-weight: 500;
    font-size: 13.5px;
    color: var(--ink);
    background: transparent;
}

.filter-box .section-link:hover {
    background: transparent;
    color: var(--airas-red);
    padding-left: 4px;
}

.filter-box .related-products .border {
    border-radius: var(--radius-sm);
    background: #fff;
}

.filter-box .related-products small { color: var(--ink); }

.filter-box .related-products strong { color: var(--airas-red); }

.product-card img { width: 100%; object-fit: contain; }

.product-card h6 { font-size: 14px; margin-top: 8px; }

.product-card p { font-size: 12px; }

.product-card .price span { color: var(--airas-red); font-weight: 600; }

.product-card .price del { font-size: 12px; margin-right: 5px; }

.discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--airas-red);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
}

/* ---------- Product details ---------- */
.product-image-zoom { overflow: hidden; cursor: zoom-in; }
.product-image-zoom img { transition: transform .4s ease; }
.product-image-zoom:hover img { transform: scale(1.5); }

.product-image-wrapper {
    position: sticky;
    top: 100px;
    z-index: 10;
}

/* ---------- Cart icon (header) ---------- */
.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--airas-green-900);
    text-decoration: none;
}

.cart-icon i { font-size: 20px; transition: transform .2s ease; }
.cart-icon:hover i { transform: scale(1.08); }

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--airas-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
    line-height: 1;
}

/* ---------- User dashboard ---------- */
.profile-menu a {
    text-decoration: none;
    color: var(--ink);
    padding: 12px 16px;
    display: flex;
    width: 100%;
    font-weight: 500;
}

.profile-menu li { transition: .2s; }
.profile-menu li:hover { background: var(--airas-green-50); }
.profile-menu i { width: 22px; text-align: center; font-size: 16px; }

.profile-menu .active {
    background: var(--airas-green);
    color: #fff;
}

.profile-menu .active i { color: #fff; }

/* ---------- Order status ---------- */
.badge-status { padding: .45em .8em; border-radius: 999px; font-weight: 600; }

.badge-pending    { background: #fff3cd; color: #5c4400; }
.badge-processing { background: #dbeafe; color: #123a73; }
.badge-shipped    { background: var(--airas-green-100); color: var(--airas-green-900); }
.badge-delivered  { background: var(--airas-green); color: #fff; }
.badge-cancelled  { background: var(--airas-red-50); color: var(--airas-red-700); }

.status-pending    { background-color: #fff3cd; }
.status-processing { background-color: #dbeafe; }
.status-shipped    { background-color: var(--airas-green-100); }
.status-delivered  { background-color: var(--airas-green); color: #fff; }
.status-cancelled  { background-color: var(--airas-red-50); }

/* ---------- Order tracking ---------- */
.order-track {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.order-track::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--line);
    z-index: 0;
}

.track-step {
    text-align: center;
    position: relative;
    z-index: 1;
    width: 20%;
}

.track-step .circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--line);
    color: var(--ink-soft);
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.track-step.active .circle {
    background: var(--airas-green);
    color: #fff;
    box-shadow: 0 0 0 4px var(--airas-green-100);
}

.track-step .label { font-size: 14px; font-weight: 500; }

/* ---------- Small extras ---------- */
.profile-menu button { background: transparent; text-align: left; }
.profile-menu button:hover { background: var(--airas-red-50); }
.lazy-loader { color: var(--ink-soft); font-weight: 500; }
.auth-page .card { max-width: 100%; }
.auth-page h4 { color: var(--airas-green-900); font-weight: 700; }
