html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background: #f5f7fb;
}

.card {
    border: 0;
    border-radius: 14px;
}

.card-shadow {
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.product-card {
    transition: .2s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
}

.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #e9ecef;
}

.product-img-sm {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: #e9ecef;
}

.admin-stat {
    border-left: 5px solid #212529;
}

.table td, .table th {
    vertical-align: middle;
}

.footer {
    background: #fff;
}

.badge {
    font-weight: 600;
    letter-spacing: .01em;
}

.company-logo-preview {
    max-width: 120px;
    max-height: 70px;
    object-fit: contain;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 8px;
}

@media print {
    body {
        background: #fff;
    }

    .card-shadow {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }

    a[href]:after {
        content: "";
    }
}

/* Home Slider */
.ecommerce-slider {
    border-radius: 18px;
    overflow: hidden;
    background: #111827;
}

.slider-item {
    min-height: 430px;
    background: linear-gradient(120deg, #111827, #374151);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 60px 70px;
    color: #fff;
}

.slider-content {
    max-width: 650px;
    position: relative;
    z-index: 5;
}

.ecommerce-slider .carousel-control-prev,
.ecommerce-slider .carousel-control-next {
    z-index: 3;
    width: 7%;
}

.ecommerce-slider .carousel-indicators {
    z-index: 6;
}

.slider-content .lead {
    color: rgba(255,255,255,.86);
}

.slider-img-sm {
    width: 130px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: #e9ecef;
}

.current-slider-preview {
    width: 100%;
    max-width: 520px;
    height: 170px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}

.special-offer-hero {
    background: linear-gradient(120deg, #7f1d1d, #dc2626, #f97316);
}

.offer-ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #dc3545;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

@media (max-width: 767px) {
    .slider-item {
        min-height: 360px;
        padding: 42px 28px;
    }

    .slider-content h1 {
        font-size: 2rem;
    }
}

/* Daraz-style category image grid on home page */
.daraz-category-section {
    background: #f5f5f5;
    padding: 18px 0 0;
}

.daraz-section-title {
    font-size: 24px;
    font-weight: 500;
    color: #222;
    margin: 0 0 8px;
}

.daraz-category-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    background: #fff;
    border-top: 1px solid #e5e5e5;
    border-left: 1px solid #e5e5e5;
}

.daraz-category-card {
    height: 152px;
    padding: 14px 8px 10px;
    text-align: center;
    color: #111;
    text-decoration: none;
    background: #fff;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    transition: all .16s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.daraz-category-card:hover {
    color: #f85606;
    box-shadow: 0 2px 10px rgba(0,0,0,.14);
    position: relative;
    z-index: 2;
    transform: translateY(-1px);
}

.daraz-category-img-box {
    width: 86px;
    height: 86px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.daraz-category-img-box img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    display: block;
}

.daraz-category-placeholder {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #f3f3f3;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
}

.daraz-category-name {
    width: 100%;
    min-height: 38px;
    font-size: 14px;
    font-weight: 400;
    line-height: 19px;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.category-img-sm {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}

.category-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 11px;
}

.category-preview-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}

@media (max-width: 1199px) {
    .daraz-category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .daraz-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .daraz-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .daraz-category-card {
        height: 140px;
    }

    .daraz-category-img-box,
    .daraz-category-img-box img {
        width: 76px;
        height: 76px;
    }
}

/* Daraz-style Just For You product section */
.daraz-just-section {
    background: #f5f5f5;
    padding: 0 0 24px;
}

.daraz-product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.daraz-product-card-wrap {
    min-width: 0;
}

.daraz-product-card {
    display: block;
    height: 100%;
    background: #fff;
    color: #212121;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .16s ease-in-out;
    overflow: hidden;
}

.daraz-product-card:hover {
    color: #212121;
    box-shadow: 0 2px 12px rgba(0,0,0,.16);
    transform: translateY(-2px);
    border-color: #eee;
}

.daraz-product-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    overflow: hidden;
}

.daraz-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .18s ease-in-out;
}

.daraz-product-card:hover .daraz-product-img-wrap img {
    transform: scale(1.03);
}

.daraz-product-info {
    padding: 9px 10px 10px;
}

.daraz-product-title {
    min-height: 38px;
    font-size: 14px;
    line-height: 19px;
    color: #212121;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.daraz-product-price {
    margin-top: 7px;
    color: #f85606;
    font-size: 18px;
    line-height: 22px;
    font-weight: 500;
}

.daraz-product-discount {
    margin-top: 2px;
    min-height: 18px;
    color: #555;
    font-size: 12px;
    line-height: 18px;
}

.daraz-old-price {
    color: #9e9e9e;
    text-decoration: line-through;
    margin-right: 5px;
}

.daraz-stock-line {
    margin-top: 5px;
    color: #888;
    font-size: 12px;
    line-height: 16px;
}

@media (max-width: 1199px) {
    .daraz-product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .daraz-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .daraz-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .daraz-product-title {
        font-size: 13px;
    }

    .daraz-product-price {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .daraz-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Discount display for Featured Products section */
.featured-product-price {
    color: #f85606;
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
}

.featured-product-discount-line {
    margin-top: 3px;
    font-size: 13px;
    line-height: 18px;
}

.featured-old-price {
    color: #9e9e9e;
    text-decoration: line-through;
    margin-right: 6px;
}

.featured-discount-text {
    color: #555;
}


/* Daraz-style product listing for Home, Featured Products, Just For You, and Offers */
.daraz-home-product-section {
    background: #f5f5f5;
    padding: 0 0 20px;
}

.daraz-product-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.daraz-view-offer-link {
    color: #f85606;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.daraz-view-offer-link:hover {
    color: #d9480f;
    text-decoration: underline;
}

.daraz-product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.daraz-product-card-wrap {
    min-width: 0;
}

.daraz-product-card {
    display: block;
    height: 100%;
    min-height: 304px;
    background: #fff;
    color: #212121;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .16s ease-in-out;
    overflow: hidden;
}

.daraz-product-card:hover {
    color: #212121;
    box-shadow: 0 2px 12px rgba(0,0,0,.16);
    transform: translateY(-2px);
    border-color: #eee;
}

.daraz-product-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    overflow: hidden;
}

.daraz-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .18s ease-in-out;
}

.daraz-product-card:hover .daraz-product-img-wrap img {
    transform: scale(1.03);
}


.daraz-product-info {
    padding: 9px 10px 10px;
}

.daraz-product-title {
    min-height: 38px;
    font-size: 14px;
    line-height: 19px;
    color: #212121;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.daraz-product-price {
    margin-top: 7px;
    color: #f85606;
    font-size: 18px;
    line-height: 22px;
    font-weight: 500;
}

.daraz-product-discount {
    margin-top: 2px;
    min-height: 18px;
    color: #555;
    font-size: 12px;
    line-height: 18px;
}

.daraz-old-price {
    color: #9e9e9e;
    text-decoration: line-through;
    margin-right: 5px;
}

.daraz-stock-line {
    margin-top: 4px;
    color: #888;
    font-size: 12px;
    line-height: 16px;
}

@media (max-width: 1199px) {
    .daraz-product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .daraz-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .daraz-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .daraz-product-card {
        min-height: 270px;
    }

    .daraz-product-title {
        font-size: 13px;
    }

    .daraz-product-price {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .daraz-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* bKash manual payment section */
.bkash-payment-box {
    border: 1px solid #f6c1d9;
    background: #fff7fb;
    border-radius: 12px;
    padding: 16px;
}

.bkash-logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2136e;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

.bkash-merchant-number {
    display: inline-block;
    background: #fff;
    color: #212121;
    border: 1px dashed #e2136e;
    border-radius: 8px;
    padding: 8px 12px;
}

/* Nagad manual payment section */
.nagad-payment-box {
    border: 1px solid #ffd0a8;
    background: #fff8f1;
    border-radius: 12px;
    padding: 16px;
}

.nagad-logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f58220;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}

.nagad-merchant-number {
    display: inline-block;
    background: #fff;
    color: #212121;
    border: 1px dashed #f58220;
    border-radius: 8px;
    padding: 8px 12px;
}


.product-description-text {
    white-space: pre-wrap;
    font-size: 16px;
    line-height: 1.75;
    color: #555;
}


.special-offer-small-banner {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff3e6;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.special-offer-small-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 768px) {
    .special-offer-small-banner {
        height: 130px;
        border-radius: 10px;
    }
}


/* ===============================
   Professional Role Based Top Menu
   =============================== */

.ecommerce-navbar {
    background: #1f2428;
    min-height: 72px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.12);
    z-index: 1050;
}

.ecommerce-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #ff5a00, #ff8a00);
    color: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(255,90,0,0.35);
}

.ecommerce-nav-link {
    color: rgba(255,255,255,0.78) !important;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 13px !important;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .ecommerce-nav-link:hover,
    .ecommerce-nav-link:focus {
        color: #fff !important;
        background: rgba(255,255,255,0.08);
    }

.ecommerce-dropdown {
    border: none;
    border-radius: 14px;
    padding: 10px;
    min-width: 210px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.16);
}

    .ecommerce-dropdown .dropdown-item {
        font-size: 14px;
        font-weight: 600;
        border-radius: 10px;
        padding: 10px 12px;
        color: #333;
    }

        .ecommerce-dropdown .dropdown-item:hover {
            background: #fff3e8;
            color: #ff5a00;
        }

.user-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    color: #fff !important;
    padding: 9px 15px !important;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

    .user-pill:hover {
        background: rgba(255,255,255,0.14);
        color: #fff !important;
    }

.register-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ff5a00, #ff8a00);
    color: #fff !important;
    padding: 9px 18px !important;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(255,90,0,0.30);
}

    .register-btn:hover {
        color: #fff !important;
        transform: translateY(-1px);
    }

.custom-toggler {
    border: 1px solid rgba(255,255,255,0.20);
}

    .custom-toggler:focus {
        box-shadow: none;
    }

.navbar-toggler-icon {
    filter: invert(1);
}

.main-content {
    min-height: calc(100vh - 130px);
    background: #f5f6fa;
}

.footer {
    font-size: 14px;
}

@media (max-width: 991px) {
    .ecommerce-navbar {
        min-height: auto;
        padding: 10px 0;
    }

    .navbar-nav {
        margin-top: 14px;
        align-items: stretch !important;
    }

    .ecommerce-nav-link,
    .user-pill,
    .register-btn {
        padding: 11px 12px !important;
        justify-content: flex-start;
        border-radius: 10px;
    }

    .ecommerce-dropdown {
        box-shadow: none;
        border-radius: 10px;
        background: rgba(255,255,255,0.05);
    }

        .ecommerce-dropdown .dropdown-item {
            color: rgba(255,255,255,0.85);
        }

            .ecommerce-dropdown .dropdown-item:hover {
                background: rgba(255,255,255,0.08);
                color: #fff;
            }

        .ecommerce-dropdown .dropdown-item-text {
            color: rgba(255,255,255,0.65) !important;
        }
}
/* ===============================
   New Order Notification
   =============================== */

.order-notification-link {
    position: relative;
    color: #fff !important;
    font-size: 20px;
    padding: 9px 14px !important;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    min-width: 46px;
    text-align: center;
}

.order-notification-link:hover,
.order-notification-link:focus {
    background: rgba(255,255,255,0.14);
    color: #fff !important;
}

.order-bell-icon {
    line-height: 1;
}

.order-notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ff3b30;
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(255,59,48,0.35);
}

.new-order-badge {
    background: #ff3b30;
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    margin-left: 12px;
}

@media (max-width: 991px) {
    .order-notification-link {
        display: inline-flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        min-width: 100%;
        padding: 11px 12px !important;
        border-radius: 10px;
    }

    .order-notification-link::after {
        content: " New Orders";
        font-size: 14px;
        font-weight: 700;
        margin-left: 8px;
    }

    .order-notification-badge {
        top: 8px;
        right: 12px;
    }
}
