/* =========================================================
   Frontend Main CSS
   Shymoli Auto Decoration
   ========================================================= */

/* =========================================================
   Base
   ========================================================= */
body {
    background: var(--site-bg, #f7efe2);
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
}

a {
    color: #333;
    transition: 0.25s ease;
}

a:hover {
    color: var(--theme-color, #3f51b5);
    text-decoration: none;
}

.btn-theme {
    background: var(--theme-color, #3f51b5);
    color: #fff !important;
    border: 1px solid var(--theme-color, #3f51b5);
    border-radius: 2px;
}

.btn-theme:hover,
.btn-theme:focus {
    background: var(--theme-color-dark, #2f3f9e);
    border-color: var(--theme-color-dark, #2f3f9e);
    color: #fff !important;
    opacity: 1;
    box-shadow: none;
}

.section-title {
    font-weight: 800;
    text-align: center;
    margin-bottom: 25px;
    color: #2d2d2d;
}

.section-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 2px;
    background: var(--theme-color, #3f51b5);
    margin: 12px auto 0;
}

/* =========================================================
   Header / Top Bar
   ========================================================= */

.site-logo {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

@media (max-width: 767px) {
    .site-logo {
        height: 45px;
        max-width: 140px;
    }
}

.emart-topbar {
    background: #f7efe2;
    border-bottom: 1px solid #eadfce;
    padding: 8px 0;
    font-size: 13px;
}

.topbar-left {
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search-form .form-control {
    height: 38px;
    border-radius: 0;
    border: 1px solid #e3d8c8;
    font-size: 13px;
    box-shadow: none;
}

.header-category-select {
    height: 38px;
    min-width: 150px;
    border-radius: 0;
    border: 1px solid #e3d8c8;
    border-right: 0;
    font-size: 13px;
    color: #555;
    box-shadow: none;
}

.header-category-select:focus {
    border-color: #e3d8c8;
    box-shadow: none;
}

.search-category-btn {
    height: 38px;
    background: #fff;
    border: 1px solid #e3d8c8;
    border-radius: 0;
    color: #555;
    font-size: 13px;
    padding: 0 14px;
}

.search-btn {
    height: 38px;
    background: #fff;
    border: 1px solid #e3d8c8;
    border-left: 0;
    border-radius: 0;
    color: #444;
    padding: 0 14px;
}

.search-btn:hover,
.search-category-btn:hover {
    color: var(--theme-color);
    background: #fff;
}

.top-action-btn {
    width: 42px;
    height: 38px;
    border: 1px solid #e3d8c8;
    background: #fff;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    position: relative;
}

.top-action-btn:hover {
    background: var(--theme-color);
    color: #fff;
}

.cart-label {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--theme-color);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    font-weight: 700;
}

/* =========================================================
   Navbar
   ========================================================= */
.emart-navbar {
    background: #f7efe2;
    border-bottom: 1px solid #eadfce;
    padding: 14px 0;
}

.emart-logo {
    font-weight: 800;
    font-size: 24px;
    color: var(--theme-color) !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.emart-logo i {
    font-size: 22px;
}

.emart-navbar .nav-link {
    color: #444 !important;
    text-transform: uppercase;
    font-size: 13px;
    padding: 10px 16px !important;
    border-radius: 2px;
}

.emart-navbar .nav-link:hover,
.emart-navbar .nav-link.active {
    background: var(--theme-color);
    color: #fff !important;
}

.emart-navbar .dropdown-menu {
    border-radius: 0;
    border-top: 2px solid var(--theme-color);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    font-size: 13px;
}

.navbar-toggler {
    border: 1px solid #e3d8c8;
    color: var(--theme-color);
}

/* =========================================================
   Home Hero
   ========================================================= */
.home-hero-section {
    background: #f7efe2;
    padding: 35px 0 45px;
}

.home-hero-banner {
    background: #f4eadb;
    min-height: 300px;
    padding: 45px 70px;
    overflow: hidden;
}

.hero-content {
    padding-left: 10px;
}

.hero-small-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 8px;
}

.hero-content h1 {
    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;
    color: #2d2d2d;
    margin-bottom: 16px;
}

.hero-description {
    color: #555;
    margin-bottom: 22px;
    max-width: 430px;
}

.hero-btn {
    padding: 11px 22px;
    font-size: 13px;
    text-transform: uppercase;
}

.hero-image-box {
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    max-height: 285px;
    object-fit: contain;
}

.hero-image-box.no-image::before {
    content: "Shymoli Auto Decoration";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 360px;
    height: 220px;
    border: 2px dashed #d7c8b5;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =========================================================
   Category Banner
   ========================================================= */
.home-category-banner-section {
    background: #f7efe2;
    padding: 25px 0;
}

.category-banner-card {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f4eadb;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.10);
}

.category-banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.35s ease;
}

.category-banner-card:hover img {
    transform: scale(1.06);
}

.category-banner-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.category-banner-content {
    position: absolute;
    left: 35px;
    right: 35px;
    bottom: 35px;
    z-index: 2;
    text-align: center;
}

.category-banner-text {
    background: rgba(255, 255, 255, 0.86);
    padding: 15px 12px;
    margin-bottom: 14px;
    border-radius: 2px;
}

.category-banner-text h4 {
    font-size: 22px;
    font-weight: 800;
    color: #2d2d2d;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.category-banner-text p {
    font-size: 13px;
    color: #555;
    margin-bottom: 0;
}

/* =========================================================
   Product Cards
   ========================================================= */
.latest-products-section {
    background: #f7efe2;
    padding: 55px 0 60px;
}

.emart-product-card {
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.10);
    transition: 0.25s ease;
    height: 100%;
}

.emart-product-card:hover {
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

.emart-product-image {
    position: relative;
    height: 245px;
    background: #f4eadb;
    overflow: hidden;
}

.emart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.35s ease;
}

.emart-product-card:hover .emart-product-image img {
    transform: scale(1.05);
}

.product-sticker {
    position: absolute;
    top: 0;
    right: 0;
    background: #ffc107;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 9px 13px;
    z-index: 3;
}

.sale-sticker {
    background: #111;
}

.product-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: 0.25s ease;
    z-index: 2;
}

.emart-product-card:hover .product-hover-overlay {
    opacity: 1;
}

.product-actions {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    text-align: center;
    transform: translateY(-50%);
    z-index: 4;
}

.product-actions button,
.product-actions a {
    width: 42px;
    height: 42px;
    background: #fff;
    color: #444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    border-radius: 2px;
    border: none;
    opacity: 0;
    transform: translateY(-15px);
    transition: 0.3s ease;
    cursor: pointer;
}

.emart-product-card:hover .product-actions button,
.emart-product-card:hover .product-actions a {
    opacity: 1;
    transform: translateY(0);
}

.product-actions button:hover,
.product-actions a:hover {
    background: var(--theme-color);
    color: #fff;
}

.emart-product-info {
    padding: 18px 16px 20px;
}

.product-category {
    display: block;
    color: #888;
    font-size: 12px;
    margin-bottom: 7px;
    text-transform: capitalize;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-title a {
    color: #2d2d2d;
}

.product-title a:hover {
    color: var(--theme-color);
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.product-rating {
    font-size: 11px;
    color: var(--theme-color);
    white-space: nowrap;
}

/* =========================================================
   Featured Products
   ========================================================= */
.featured-products-section {
    background: #f7efe2;
    padding: 35px 0 60px;
}

.featured-carousel-wrapper {
    position: relative;
}

.featured-products-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 20px;
}

.featured-products-track::-webkit-scrollbar {
    display: none;
}

.featured-product-item {
    min-width: calc(25% - 15px);
}

.featured-nav {
    width: 38px;
    height: 38px;
    background: var(--theme-color);
    color: #fff;
    border: none;
    position: absolute;
    top: 42%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-nav:hover {
    opacity: 0.9;
}

.featured-prev {
    left: -45px;
}

.featured-next {
    right: -45px;
}

/* =========================================================
   Home Features
   ========================================================= */
.home-features-section {
    background: #f7efe2;
    padding: 25px 0 60px;
}

.feature-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 5px;
}

.feature-icon {
    width: 42px;
    min-width: 42px;
    color: var(--theme-color);
    font-size: 28px;
    line-height: 1;
    text-align: center;
}

.feature-content h4 {
    font-size: 17px;
    font-weight: 800;
    color: #2d2d2d;
    margin-bottom: 6px;
}

.feature-content p {
    font-size: 13px;
    color: #666;
    line-height: 22px;
    margin-bottom: 0;
}

/* =========================================================
   Page Header / Breadcrumb
   ========================================================= */
.frontend-page-header {
    background: #242424;
    color: #fff;
    padding: 22px 0;
}

.frontend-page-header h1 {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

.page-breadcrumb {
    font-size: 13px;
}

.page-breadcrumb a {
    color: #fff;
}

.page-breadcrumb a:hover {
    color: var(--theme-color);
}

.page-breadcrumb span {
    color: #aaa;
    margin: 0 6px;
}

/* =========================================================
   Products Listing Page
   ========================================================= */
.products-listing-section {
    background: #f7efe2;
    padding: 55px 0 60px;
}

.products-result-box {
    background: #fff;
    border: 1px solid #eadfce;
    padding: 18px 22px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.products-result-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #2d2d2d;
}

.products-result-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.empty-products-box {
    background: #fff;
    border: 1px solid #eadfce;
    padding: 45px 20px;
}

.empty-products-box h4 {
    font-weight: 800;
    margin-bottom: 8px;
}

.products-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.products-pagination .pagination {
    margin-bottom: 0;
}

.products-pagination .page-link {
    color: var(--theme-color);
}

.products-pagination .page-item.active .page-link {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
}

/* =========================================================
   Product Details Page
   ========================================================= */
.product-details-section {
    background: #f7efe2;
    padding: 55px 0 60px;
}

.product-main-image {
    background: #f4eadb;
    border: 1px solid #eadfce;
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb-list {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
}

.product-thumb-btn {
    width: 76px;
    height: 76px;
    border: 1px solid #eadfce;
    background: #fff;
    padding: 3px;
    cursor: pointer;
}

.product-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details-info {
    padding-left: 25px;
}

.product-details-info h1 {
    font-size: 36px;
    font-weight: 800;
    color: #2d2d2d;
    margin: 8px 0 20px;
}

.product-description {
    margin-bottom: 25px;
}

.product-description h4,
.product-size-order-box h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 10px;
}

.product-description h4::after,
.product-size-order-box h4::after {
    content: "";
    width: 35px;
    height: 2px;
    background: var(--theme-color);
    position: absolute;
    left: 0;
    bottom: 0;
}

.product-description p {
    color: #555;
    line-height: 26px;
}

.product-size-order-box {
    margin-top: 25px;
}

.product-size-row {
    background: #fff;
    border: 1px solid #eadfce;
    padding: 14px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr 140px 140px;
    gap: 12px;
    align-items: center;
}

.size-info strong {
    display: block;
    font-size: 15px;
    color: #2d2d2d;
    margin-bottom: 4px;
}

.size-info span {
    display: block;
    font-weight: 800;
    color: var(--theme-color);
}

.size-info small {
    display: block;
    color: #888;
    margin-top: 3px;
}

.quantity-control {
    display: flex;
    height: 38px;
}

.quantity-control button {
    width: 38px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    font-weight: 700;
    cursor: pointer;
}

.quantity-control input {
    width: 55px;
    border: 1px solid #ddd;
    border-left: 0;
    border-right: 0;
    text-align: center;
}

.product-description-panel {
    margin-top: 35px;
    background: #fff;
    border: 1px solid #eadfce;
    padding: 30px;
}

.product-description-panel h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
}

.product-description-panel p {
    color: #555;
    line-height: 26px;
    margin-bottom: 0;
}

/* =========================================================
   Quick Product Modal
   ========================================================= */
.quick-product-dialog {
    max-width: 850px;
}

.quick-product-content {
    background: #f7efe2;
    border-radius: 0;
    border: none;
    position: relative;
    padding: 18px;
}

.quick-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;
    width: 26px;
    height: 26px;
    border: 1px solid #999;
    border-radius: 50%;
    background: transparent;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}

.quick-product-main-image {
    background: #f4eadb;
    height: 300px;
    border: 1px solid #eadfce;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.quick-product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-product-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
}

.quick-thumb-btn {
    width: 62px;
    height: 62px;
    border: 1px solid #eadfce;
    background: #fff;
    padding: 2px;
    cursor: pointer;
}

.quick-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-product-info h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 6px 0 15px;
    color: #2d2d2d;
}

.quick-overview h4,
.quick-size-box h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
    padding-bottom: 8px;
    position: relative;
}

.quick-overview h4::after,
.quick-size-box h4::after {
    content: "";
    width: 35px;
    height: 2px;
    background: var(--theme-color);
    position: absolute;
    left: 0;
    bottom: 0;
}

.quick-overview p {
    color: #555;
    line-height: 24px;
    margin-bottom: 18px;
}

.quick-size-row {
    background: #fff;
    border: 1px solid #eadfce;
    padding: 12px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 1fr 130px 140px;
    gap: 10px;
    align-items: center;
}

.quick-size-info strong {
    display: block;
    color: #2d2d2d;
    font-size: 14px;
}

.quick-size-info span {
    display: block;
    color: var(--theme-color);
    font-weight: 800;
    margin-top: 3px;
}

.quick-size-info small {
    display: block;
    color: #888;
    font-size: 12px;
}

/* =========================================================
   Add To Cart Buttons Fix
   ========================================================= */
.quick-size-row .quick-add-btn,
.product-size-row .add-cart-btn {
    height: 38px !important;
    min-width: 125px !important;
    padding: 8px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: var(--theme-color) !important;
    border: 1px solid var(--theme-color) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
}

.quick-size-row .quick-add-btn i,
.product-size-row .add-cart-btn i {
    color: #ffffff !important;
    font-size: 12px !important;
}

.quick-size-row .quick-add-btn:hover,
.quick-size-row .quick-add-btn:focus,
.product-size-row .add-cart-btn:hover,
.product-size-row .add-cart-btn:focus {
    background: #2f3f9e !important;
    border-color: #2f3f9e !important;
    color: #ffffff !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

/* =========================================================
   Mini Cart Dropdown
   ========================================================= */
.mini-cart-wrapper {
    position: relative;
    display: inline-block;
}

.mini-cart-box {
    position: absolute;
    top: 48px;
    right: 0;
    width: 340px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 16px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.mini-cart-box::before {
    content: "";
    position: absolute;
    top: -9px;
    right: 24px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
    transform: rotate(45deg);
}

.mini-cart-wrapper:hover .mini-cart-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mini-cart-item {
    display: flex;
    position: relative;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.mini-cart-image {
    width: 72px;
    height: 72px;
    min-width: 72px;
    background: #f4eadb;
    overflow: hidden;
}

.mini-cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-cart-content {
    padding-left: 12px;
    padding-right: 22px;
}

.mini-cart-content h5 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #2d2d2d;
}

.mini-cart-content p {
    font-size: 12px;
    color: #777;
    line-height: 18px;
    margin-bottom: 0;
}

.mini-cart-content strong {
    display: block;
    color: var(--theme-color);
    margin-top: 4px;
    font-size: 15px;
}

.mini-cart-remove-form {
    position: absolute;
    top: 0;
    right: 0;
}

.mini-cart-remove-form button {
    border: none;
    background: transparent;
    color: #777;
    font-size: 14px;
    cursor: pointer;
}

.mini-cart-remove-form button:hover {
    color: red;
}

.mini-cart-summary {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.mini-cart-summary span,
.mini-cart-summary strong {
    font-size: 16px;
    font-weight: 800;
    color: #2d2d2d;
}

.mini-cart-buttons {
    display: flex;
    gap: 10px;
}

.mini-cart-buttons .btn {
    flex: 1;
    font-size: 12px;
    padding: 10px 12px;
}

.mini-cart-light-btn {
    background: #f0f0f0;
    color: #333;
}

.mini-cart-light-btn:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
    background: #fff;
}

.mini-cart-empty {
    text-align: center;
    padding: 20px 5px;
}

.mini-cart-empty p {
    margin-bottom: 12px;
    color: #666;
}

/* =========================================================
   Footer Support Bar
   ========================================================= */
.footer-support-section {
    background: #f7efe2;
    padding: 20px 0 35px;
}

.footer-support-inner {
    background: #f7efe2;
}

.support-item {
    border: 1px solid #e3d8c8;
    background: #fff;
    min-height: 72px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    gap: 14px;
}

.support-item i {
    color: var(--theme-color);
    font-size: 28px;
    min-width: 34px;
    text-align: center;
}

.support-item span {
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

/* =========================================================
   Footer
   ========================================================= */
.emart-footer {
    background: #2d2d2d;
    padding: 55px 0 35px;
    color: #999;
    margin-top: 0;
}

.footer-widget-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.footer-contact-list,
.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: #aaa;
    font-size: 14px;
    line-height: 22px;
}

.footer-contact-list li i {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: var(--theme-color);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.footer-link-list li {
    margin-bottom: 9px;
}

.footer-link-list li a {
    color: #999;
    font-size: 14px;
}

.footer-link-list li a:hover {
    color: var(--theme-color);
}

.footer-tagcloud a {
    display: inline-block;
    border: 1px solid #484848;
    color: #999;
    padding: 5px 10px;
    margin: 0 4px 8px 0;
    font-size: 13px;
    border-radius: 2px;
}

.footer-tagcloud a:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.footer-about-text {
    color: #999;
    font-size: 14px;
    line-height: 24px;
}

.footer-copyright {
    background: #444;
    color: #fff;
    padding: 18px 0;
    font-size: 13px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991px) {
    .featured-product-item {
        min-width: calc(33.333% - 15px);
    }

    .featured-prev {
        left: 0;
    }

    .featured-next {
        right: 0;
    }
}

@media (max-width: 767px) {
    .emart-topbar {
        padding: 10px 0;
    }

    .header-search-form {
        margin-top: 5px;
    }

    .emart-logo {
        font-size: 18px;
    }

    .emart-navbar .nav-link {
        margin-top: 5px;
    }

    .home-hero-banner {
        padding: 35px 25px;
        text-align: center;
    }

    .hero-content {
        padding-left: 0;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-box {
        margin-top: 25px;
    }

    .category-banner-card {
        height: 220px;
    }

    .category-banner-content {
        left: 25px;
        right: 25px;
        bottom: 25px;
    }

    .category-banner-text h4 {
        font-size: 18px;
    }

    .emart-product-image {
        height: 220px;
    }

    .product-bottom {
        display: block;
    }

    .product-rating {
        display: block;
        margin-top: 6px;
    }

    .featured-product-item {
        min-width: calc(50% - 10px);
    }

    .feature-box {
        padding: 12px 0;
    }

    .products-result-box {
        display: block;
        text-align: center;
    }

    .products-result-box .btn {
        margin-top: 12px;
    }

    .product-details-info {
        padding-left: 0;
    }

    .product-details-info h1 {
        font-size: 28px;
    }

    .product-main-image {
        height: 320px;
    }

    .product-size-row,
    .quick-size-row {
        grid-template-columns: 1fr;
    }

    .quantity-control {
        max-width: 140px;
    }

    .quick-product-main-image {
        height: 240px;
        margin-bottom: 18px;
    }

    .quick-product-info h2 {
        font-size: 22px;
    }

    .mini-cart-box {
        right: -20px;
        width: 300px;
    }

    .emart-footer {
        padding-top: 40px;
    }

    .support-item {
        min-height: 64px;
    }
}

@media (max-width: 480px) {
    .featured-product-item {
        min-width: 85%;
    }
}

/* =========================================================
   Checkout Page
   ========================================================= */

.checkout-section {
    background: #f7efe2;
    padding: 55px 0 60px;
}

.checkout-cart-box {
    background: #fff;
    border: 1px solid #eadfce;
    padding: 25px;
}

.checkout-cart-table {
    margin-bottom: 0;
}

.checkout-cart-table thead th {
    background: #f4eadb;
    border-bottom: 1px solid #eadfce;
    color: #2d2d2d;
    font-size: 14px;
    text-transform: uppercase;
}

.checkout-cart-table td {
    vertical-align: middle;
}

.checkout-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-product-info img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    background: #f4eadb;
    border: 1px solid #eadfce;
}

.checkout-product-info strong {
    font-size: 14px;
    color: #2d2d2d;
}

.checkout-qty-form {
    width: 145px;
}

.checkout-summary-box {
    border-top: 1px solid #eadfce;
    margin-top: 25px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-subtotal {
    font-size: 20px;
    font-weight: 800;
}

.checkout-subtotal span {
    margin-right: 12px;
    color: #2d2d2d;
}

.checkout-subtotal strong {
    color: var(--theme-color, #3f51b5);
}

@media (max-width: 767px) {
    .checkout-cart-box {
        padding: 15px;
    }

    .checkout-summary-box {
        display: block;
        text-align: center;
    }

    .checkout-subtotal {
        margin-top: 18px;
    }
}

/* =========================================================
   Checkout Order Form
   ========================================================= */

.checkout-order-form-box {
    border-top: 1px solid #eadfce;
    margin-top: 25px;
    padding-top: 25px;
}

.checkout-order-form-box h3 {
    font-size: 20px;
    font-weight: 800;
    color: #2d2d2d;
    margin-bottom: 18px;
}

.checkout-order-form-box label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.checkout-order-form-box .form-control {
    border-radius: 2px;
    border: 1px solid #e3d8c8;
    height: 44px;
    font-size: 14px;
    box-shadow: none;
}

.checkout-order-form-box textarea.form-control {
    height: 44px;
    resize: vertical;
}

.checkout-order-form-box .form-control:focus {
    border-color: var(--theme-color, #3f51b5);
    box-shadow: none;
}

.checkout-submit-btn {
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}