/* Awesome Mall - Modern "Jumia-like" Layout */
:root {
    --am-primary: #f68b1e;
    /* Orange Brand Color */
    --am-secondary: #282828;
    --am-bg: #f5f5f5;
    --am-white: #ffffff;
    --am-red: #e61601;
}

body {
    background-color: var(--am-bg) !important;
}

/* ============================
   Wrapper & Containers
   ============================ */
.awesome-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ============================
   Hero Section (3 Columns)
   ============================ */
.hero-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
    height: 380px;
    /* Fixed height for consistency */
}

/* Col 1: Sidebar */
.hero-sidebar {
    width: 220px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    overflow-y: auto;
    padding: 10px 0;
}

.hero-sidebar .nav-link {
    display: flex;
    align-items: center;
    color: #282828;
    font-size: 12px;
    padding: 8px 12px;
    text-transform: capitalize;
}

.hero-sidebar .nav-link:hover {
    color: var(--am-primary);
    font-weight: 500;
}

.hero-sidebar .nav-link i {
    width: 20px;
    margin-right: 8px;
    text-align: center;
    font-size: 14px;
}

/* Col 2: Slider */
.hero-slider {
    flex-grow: 1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-slider .owl-carousel,
.hero-slider .item,
.hero-slider img {
    height: 100% !important;
    object-fit: cover;
}

/* Col 3: Right CTA */
.hero-right {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cta-box {
    background: #fff;
    border-radius: 4px;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    text-decoration: none !important;
    gap: 10px;
}

.cta-box .cta-icon {
    font-size: 24px;
    color: var(--am-primary);
    width: 40px;
    text-align: center;
}

.cta-box .cta-text h6 {
    font-size: 12px;
    margin: 0;
    font-weight: 700;
    color: #282828;
    text-transform: uppercase;
}

.cta-box .cta-text p {
    font-size: 11px;
    margin: 0;
    color: #757575;
}

/* ============================
   Flash Sales Section
   ============================ */
.flash-sales-container {
    background: #fff;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.flash-header {
    background: var(--am-red);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.flash-header .title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.flash-header .timer {
    font-weight: 500;
    font-size: 16px;
}

.flash-header .see-all {
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.flash-products {
    padding: 10px;
}

/* Standard Product Card */
.am-card {
    background: #fff;
    /* padding: 8px; */
    border-radius: 4px;
    transition: all 0.2s;
    height: 100%;
    position: relative;
    text-align: left;
}

.am-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    z-index: 2;
}

.am-card .img-wrap {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.am-card .img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.am-card .p-name {
    font-size: 13px;
    color: #282828;
    margin-bottom: 4px;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    font-weight: 400;
}

.am-card .p-price {
    font-size: 16px;
    font-weight: 700;
    color: #282828;
}

.am-card .p-old-price {
    font-size: 12px;
    color: #757575;
    text-decoration: line-through;
    margin-left: 5px;
}

.am-card .discount-tag {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #feefde;
    color: #f68b1e;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: 700;
}

.am-card .stock-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.am-card .stock-fill {
    height: 100%;
    background: var(--am-primary);
    width: 20%;
    /* dynamic */
}

.am-card .stock-text {
    font-size: 10px;
    color: #757575;
    margin-top: 2px;
}

/* ============================
   Quick Links Grid
   ============================ */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.quick-item {
    background: #fff;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-decoration: none !important;
}

.quick-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    object-fit: contain;
}

.quick-item span {
    display: block;
    font-size: 12px;
    color: #282828;
    font-weight: 500;
    line-height: 1.2;
}


/* ============================
   Generic Section Header
   ============================ */
.section-header-plain {
    background: #fff;
    border-radius: 4px 4px 0 0;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 600;
    color: #282828;
    display: flex;
    justify-content: space-between;
}

.white-box {
    background: #fff;
    border-radius: 4px;
    /* padding: 10px; */
    margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 992px) {

    .hero-sidebar,
    .hero-right {
        display: none;
    }

    .hero-wrapper {
        height: auto;
    }

    .hero-slider {
        height: 250px;
    }

    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
