:root {
    --primary: #e60023;
    --primary-rgb: 230, 0, 35;
    --primary-light: #fadbe0;
    --primary-dim: #c0001d;

    --secondary: #20252b;
    --secondary-rgb: 32, 37, 43;
    --secondary-light: #eef0f2;
    --secondary-dim: #15191d;

    --third: #ffb800;
    --third-rgb: 255, 184, 0;
    --third-light: #fff4d6;
    --third-dim: #d18f00;

    /* Existing semantic components now participate in the new palette. */
    --success: var(--secondary);
    --success-light: var(--secondary-light);
    --warning: var(--third);
    --warning-light: var(--third-light);
}

/* Edalat storefront — reference-led homepage, header and footer */
:root {
    --store-red: #e30613;
    --store-red-dark: #bd0010;
    --store-ink: #101a25;
    --store-muted: #6f7780;
    --store-line: #e8ebef;
    --store-surface: #f7f8fa;
    --store-gold: #f6b800;
}

body.home-page { background: #fff; color: var(--store-ink); }
.home-page .container {
    width: 100% !important;
    max-width: none !important;
    padding-right: 24px !important;
    padding-left: 24px !important;
}
.site-header { padding-top: 0 !important; background: #fff; box-shadow: 0 2px 12px rgba(16,26,37,.07); }
.header-utility-bar { min-height: 38px; background: #111c27; color: #dce1e6; font-size: 12px; }
.header-utility-bar .container { display: flex; min-height: 38px; flex-wrap: wrap; align-items: center; gap: 6px 30px; padding-top: 6px; padding-bottom: 6px; }
.header-utility-bar span, .header-utility-bar a { color: inherit; }
.header-utility-bar i { margin-left: 7px; color: var(--store-gold); }
#header-top { margin-top: 0 !important; padding: 19px 0 16px; }
#header-top > .container > .d-flex { direction: rtl; }
#search-input-wrapper { flex: 1 1 auto; position: relative; gap: 22px; }
#search-input-wrapper > a { flex: 0 0 180px; }
#site-logo { display: block; width: 100%;max-width: 180px;max-height: 80px; margin: 0 !important; object-fit: contain; }
#search-form { width: min(650px, 100%); }
#searchInput { width: 100%; min-width: 0 !important; height: 50px !important; padding: 0 24px 0 62px !important; border: 1px solid #e3e6e9 !important; border-radius: 9px !important; background: #f7f8fa !important; color: #2b3035; }
#searchInput:focus { border-color: var(--store-red) !important; box-shadow: 0 0 0 3px rgba(227,6,19,.08); }
#search { position: absolute; top: 0; left: 0; display: grid; width: 52px; height: 50px; place-items: center; border: 0; border-radius: 9px 0 0 9px; background: var(--store-red); color: #fff; cursor: pointer; }
#search i { position: static !important; color: #fff; font-size: 18px; }
.header-actions { display: flex; align-items: center; gap: 5px; }
.header-action-link { display: inline-flex; }
.header-actions .btn { display: flex; width: auto !important; min-width: 80px; height: 54px !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin: 0 !important; padding: 5px 10px; border: 0 !important; background: transparent !important; color: #28313a !important; box-shadow: none !important; font-size: 11px; }
.header-actions .btn i { margin: 0 !important; color: #26313b !important; font-size: 20px !important; }
.header-actions .btn:hover i, .header-actions .btn:hover span { color: var(--store-red) !important; }
.header-actions .cart-counter { top: 0; right: 8px; background: var(--store-red); }
#header-menu { margin-top: 0 !important; border-top: 1px solid #f0f1f3; box-shadow: none; }
#header-menu > .container > .d-flex { min-height: 55px; }
#header-menu #right-menu { width: 100%; gap: 1px; }
#header-menu #right-menu > li:first-child { margin-left: 22px; }
#header-menu #right-menu > li:first-child > a { min-width: 175px; justify-content: center !important; border-radius: 7px; background: var(--store-red); color: #fff !important; }
#header-menu #right-menu > li:first-child > a i { color: #fff !important; }
#header-menu #right-menu > li > a { min-height: 42px; padding: 0 13px; color: #333 !important; font-size: 13px !important; font-weight: 600; }
#header-menu #right-menu > li > a:hover { color: var(--store-red) !important; }
#header-menu .desktop-menu-item-icon { font-size: 14px; }

.edalat-home { margin-top: 0 !important; overflow: visible; background: #fff; }
.edalat-home > section { order: initial !important; }
.edalat-home > section:not(.home-hero) > .container {
    max-width: 1660px !important;
    margin-right: auto;
    margin-left: auto;
}
.home-hero { background: #111923; }
.home-hero-slide { position: relative; display: block; }
.home-hero-slide img { width: 100%; height: clamp(330px, 32vw, 570px); object-fit: cover; }
.home-hero-caption { right: max(7vw, calc((100vw - 1280px)/2)); max-width: 500px; }
.home-hero .slick-dots { bottom: 20px !important; }
.home-hero .slick-dots li { width: 17px; margin: 0 2px; }
.home-hero .slick-dots li button:before { color: #fff; font-size: 10px; opacity: .85; }
.home-hero .slick-dots li.slick-active button:before { color: var(--store-gold); }

.home-hero-categories { position: relative; z-index: 5; height: 126px; }
.edalat-home .home-hero-categories > .home-hero-categories-shell {
    width: min(calc(100% - 48px), 1120px) !important;
    max-width: 1120px !important;
}
.home-hero-categories-shell { position: relative; margin-top: -66px; }
.home-hero-categories-list { display: flex; min-height: 192px; overflow: hidden; border: 1px solid rgba(16,26,37,.08); border-radius: 19px; background: #fff; box-shadow: 0 12px 30px rgba(16,26,37,.17); }
.home-hero-category { display: flex; min-width: 0; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 15px 12px; border-left: 1px solid #eceef0; color: #252d35; text-align: center; transition: color .2s, background .2s, transform .2s; }
.home-hero-category:last-child { border-left: 0; }
.home-hero-category:hover { color: #fff; background: linear-gradient(145deg,var(--store-red-dark),var(--store-red)); }
.home-hero-category-image { display: grid; width: 122px; height: 122px; place-items: center; }
.home-hero-category-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.home-hero-category:hover .home-hero-category-image img { transform: translateY(-3px) scale(1.04); }
.home-hero-category-image i { color: var(--store-red); font-size: 45px; }
.home-hero-category:hover .home-hero-category-image i { color: #fff; }
.home-hero-category strong { width: 100%; overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.home-benefits { position: relative; z-index: 4; margin-top: 28px; }
.home-benefits-inner { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; padding: 0; border: 1px solid var(--store-line); border-radius: 13px; background: #fff; box-shadow: 0 7px 24px rgba(16,26,37,.09); }
.home-benefits-inner > div { display: flex; min-height: 90px; align-items: center; justify-content: center; gap: 13px; border-left: 1px solid var(--store-line); }
.home-benefits-inner > div:last-child { border-left: 0; }
.home-benefits i { color: var(--store-red); font-size: 29px; }
.home-benefits span { display: flex; flex-direction: column; gap: 3px; }
.home-benefits strong { font-size: 14px; }
.home-benefits small { color: var(--store-muted); font-size: 11px; }

.edalat-home .home-categories { padding: 50px 0 32px; }
.edalat-home .home-categories-heading { margin: 0 auto 25px; text-align: center; }
.edalat-home .home-categories-heading > span { display: inline-block; margin-bottom: 5px; color: var(--store-red); font-size: 11px; font-weight: 700; }
.edalat-home .home-categories-heading h2 { margin: 0; color: #202830; font-size: 24px; font-weight: 800; }
.edalat-home .home-categories-heading p { margin: 7px 0 0; color: var(--store-muted); font-size: 12px; }
.edalat-home .home-categories-grid { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 18px; }
.edalat-home .home-category-item { width: min(100%, 300px); min-height: 230px; flex: 1 1 240px; justify-content: center; padding: 22px 15px 17px; border: 1px solid var(--store-line); border-radius: 16px; background: linear-gradient(180deg,#fff 0%,#fafbfc 100%); box-shadow: 0 6px 22px rgba(16,26,37,.055); }
.edalat-home .home-category-image { width: 100%; height: 140px; border: 0; border-radius: 0; background: transparent; }
.edalat-home .home-category-image img { object-fit: contain; }
.edalat-home .home-category-name { width: 100%; margin-top: 10px; overflow: hidden; color: #242b32; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.edalat-home .home-category-item small { margin-top: 5px; padding: 3px 13px; border: 1px solid #dfe2e5; border-radius: 13px; color: var(--store-muted); font-size: 10px; }
.edalat-home .home-category-item:hover { border-color: rgba(227,6,19,.35); box-shadow: 0 12px 28px rgba(16,26,37,.09); transform: translateY(-5px); }
.edalat-home .home-category-item:hover .home-category-image { border: 0; box-shadow: none; transform: none; }

.edalat-home .home-quad-banners { padding: 8px 0 24px; }
.edalat-home .home-quad-banners-grid { grid-template-columns: repeat(3,1fr); gap: 14px; }
.edalat-home .home-quad-banner { border-radius: 11px; box-shadow: none; }
.edalat-home .home-quad-banner img { width: 100%; aspect-ratio: 2.05/1; object-fit: cover; }

.home-double-banners { padding: 4px 0 22px; }
.home-double-banners-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.home-double-banner { display: block; overflow: hidden; border-radius: 12px; background: #f5f6f7; }
.home-double-banner img, .home-double-banner video { display: block; width: 100%; height: auto; transition: transform .3s ease; }
.home-double-banner:hover img, .home-double-banner:hover video { transform: scale(1.015); }

.home-product-section { padding: 10px 0; }
.home-section-card { position: relative; overflow: hidden; padding: 20px 16px 16px; border: 1px solid #eef0f2; border-radius: 17px; background: #fafafa; box-shadow: 0 6px 25px rgba(16,26,37,.045); }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 5px 17px; }
.home-section-heading h2 { position: relative; margin: 0; padding-right: 15px; color: #222a32; font-size: 21px; font-weight: 800; }
.home-section-heading h2:before { content: ''; position: absolute; top: 4px; right: 0; width: 5px; height: 22px; border-radius: 3px; background: var(--store-red); }
.home-section-heading a { color: var(--store-red); font-size: 12px; }
.home-products-slider .slick-track { display: flex; }
.home-products-slider .slick-slide { height: auto; padding: 0 6px; }
.home-products-slider .slick-slide > div, .home-products-slider .product-outer, .home-products-slider .product { height: 100%; }
.home-products-slider .product { overflow: hidden; margin: 0; padding: 0; border: 1px solid #e5e7e9 !important; border-radius: 10px !important; background: #fff; box-shadow: none !important; transition: border-color .2s, transform .2s, box-shadow .2s; }
.home-products-slider .product:hover { border-color: rgba(227,6,19,.3) !important; box-shadow: 0 8px 20px rgba(16,26,37,.08) !important; transform: translateY(-3px); }
.home-products-slider .product__image { height: 220px; padding: 14px; }
.home-products-slider .product__image img { width: 100%; height: 100%; object-fit: contain; }
.home-products-slider .product__body { min-height: 118px; padding: 5px 13px 13px; }
.home-products-slider .product__body h5 { min-height: 45px; color: #30363c; font-size: 13px; line-height: 1.75; }
.home-products-slider .theme-price { color: var(--store-red) !important; font-size: 14px; }
.home-products-slider .wishlist-toggle-btn, .home-products-slider .product > div:first-child a { box-shadow: none !important; }
.home-products-slider .discount-badge { background: var(--store-red) !important; }
.home-section-card > .arrow-next, .home-section-card > .arrow-prev { top: 54% !important; bottom: auto !important; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #e1e4e7; border-radius: 50%; background: #fff; color: #444; box-shadow: 0 4px 12px rgba(0,0,0,.1); transform: translateY(-50%); }
.home-section-card > .arrow-next { right: 7px; }
.home-section-card > .arrow-prev { left: 7px; }
.home-empty { width: 100%; padding: 35px; color: var(--store-muted); text-align: center; }
.home-offers .home-section-card { background: linear-gradient(145deg,#fff 60%,#fff3f3); }

.edalat-home .home-category-products { padding: 26px 0 12px; background: #fff; }
.home-category-products-header { margin-bottom: 20px; text-align: center; }
.home-category-products-header > span { display: inline-block; margin-bottom: 5px; color: var(--store-red); font-size: 11px; font-weight: 700; }
.home-category-products-header h2 { margin: 0; color: #202830; font-size: 24px; font-weight: 800; }
.edalat-home .home-category-product-row { margin: 0 0 20px; padding: 20px 16px 16px; background: #fafafa; }
.edalat-home .home-category-product-title-wrap { display: flex; min-width: 0; align-items: center; gap: 11px; }
.edalat-home .home-category-product-icon { display: grid; width: 52px; height: 52px; flex: 0 0 52px; overflow: hidden; place-items: center; border: 1px solid #e6e8ea; border-radius: 12px; background: #fff; }
.edalat-home .home-category-product-icon img { width: 44px; height: 44px; object-fit: contain; }
.edalat-home .home-category-product-icon i { color: var(--store-red); font-size: 25px; }
.edalat-home .home-category-product-row .home-section-heading h3 { margin: 0; color: #222a32; font-size: 20px; font-weight: 800; }
.edalat-home .home-subcategory-card { display: flex; height: 100%; min-height: 335px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; border: 1px solid #e5e7e9; border-radius: 10px; background: #fff; color: #252d35; text-align: center; transition: border-color .2s, box-shadow .2s, transform .2s; }
.edalat-home .home-subcategory-card:hover { border-color: rgba(227,6,19,.3); box-shadow: 0 8px 20px rgba(16,26,37,.08); transform: translateY(-3px); }
.edalat-home .home-subcategory-image { width: 190px; height: 190px; }
.edalat-home .home-subcategory-card strong { font-size: 15px; }
.edalat-home .home-subcategory-card small { color: var(--store-red); font-size: 11px; }

.home-wide-banner { padding: 20px 0 8px; }
.home-wide-banner a { display: block; overflow: hidden; border-radius: 13px; background: var(--store-ink); }
.home-wide-banner img { display: block; width: 100%; object-fit: cover; }

.edalat-home .home-brands { padding: 22px 0 10px; }
.edalat-home .home-brands-shell { padding: 20px 16px 16px; }
.edalat-home .home-brand-slide { padding: 0 7px; }
.edalat-home .home-brand-card { height: 145px; justify-content: center; gap: 3px; border-color: #e7eaed; border-radius: 8px; box-shadow: none; }
.edalat-home .home-brand-logo { height: 100px; }
.edalat-home .home-brand-name { color: #707880; font-size: 16px; }

.home-articles { padding: 22px 0 35px; }
.home-articles-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.home-article-card { overflow: hidden; border: 1px solid #e4e7ea; border-radius: 10px; background: #fff; }
.home-article-image { display: block; overflow: hidden; aspect-ratio: 1.75/1; }
.home-article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.home-article-card:hover img { transform: scale(1.035); }
.home-article-card > div { padding: 13px 15px 15px; }
.home-article-label { display: inline-block; margin-bottom: 7px; padding: 4px 10px; border-radius: 12px; background: #fff0f1; color: var(--store-red); font-size: 10px; }
.home-article-card h3 { min-height: 48px; margin: 0 0 8px; font-size: 15px; line-height: 1.7; }
.home-article-card h3 a { color: #252d35; }
.home-article-card time { color: #92989e; font-size: 11px; }

.site-footer { margin-top: 0; padding: 0 !important; border: 0; background: #fff; color: #343b42; }
.site-footer .container { max-width: none; }
.site-footer-head { display: none; }
.site-footer-services { display: grid; grid-template-columns: repeat(5,1fr); margin: 0 0 20px; padding: 19px 15px; border: 0; border-radius: 10px; }
.site-footer-service { min-height: 52px; border-left: 1px solid #f0dfc5; color: #3d4145; }
.site-footer-service:last-child { border-left: 0; }
.site-footer-service i, .site-footer-service:nth-child(2n) i, .site-footer-service:nth-child(3n) i { color: #ef9d00; }
.site-footer-columns { position: relative; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 0; overflow: hidden; margin: 0; padding: 28px 30px; border-radius: 10px 10px 0 0; background: #111c27; }
.site-footer-column { padding: 0 30px; border-left: 1px solid rgba(255,255,255,.14); }
.site-footer-column:last-child { border-left: 0; }
.site-footer-column h2 { color: #fff; font-size: 15px; }
.site-footer-about-logo { display: inline-flex; margin-bottom: 14px; }
.site-footer-about-logo img { display: block; width: 112px; height: 80px; object-fit: contain; object-position: right center; filter: none !important; }
.site-footer-logo img { filter: none !important; }
.site-footer-column a, .site-footer-about p, .site-footer-about address { color: #c7cdd3; font-size: 12px; }
.site-footer-column > a:hover { color: #fff; }
.site-footer-socials a { width: 38px; height: 38px; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; }
.site-footer-socials a:hover { border-color: var(--store-red); background: var(--store-red); }
.site-footer-bottom { margin: 0; padding: 13px 22px; border: 0; background: var(--store-red); color: #fff; }
.site-footer-bottom p, .site-footer-bottom span { color: #fff; font-size: 11px; }

.site-footer-columns .site-footer-column h2 { font-size: 17px !important; }
.site-footer-columns .site-footer-column a,
.site-footer-columns .site-footer-about p,
.site-footer-columns .site-footer-about address { font-size: 14px !important; }
.site-footer-bottom,
.site-footer-bottom p,
.site-footer-bottom span { font-size: 13px !important; }

@media (max-width: 1024px) {
    .header-actions .btn span { display: none; }
    .header-actions .btn { min-width: 45px; }
    .home-hero-categories-list { overflow-x: auto; scrollbar-width: thin; }
    .home-hero-category { min-width: 130px; }
    .edalat-home .home-category-item { max-width: calc(50% - 9px); }
    .home-articles-grid { grid-template-columns: repeat(2,1fr); }
    .site-footer-services { grid-template-columns: repeat(3,1fr); }
    .site-footer-columns { grid-template-columns: repeat(2,1fr); row-gap: 30px; }
}

@media (max-width: 767px) {
    .header-utility-bar .container { justify-content: center; gap: 14px; font-size: 10px; }
    .header-utility-bar span:nth-child(2) { display: none; }
    #mobile-header { padding: 11px 0; }
    .home-hero-slide img { height: 230px; }
    .home-hero-categories { height: 98px; }
    .edalat-home .home-hero-categories > .home-hero-categories-shell { width: calc(100% - 16px) !important; max-width: none !important; }
    .home-hero-categories-shell { margin-top: -32px; padding-right: 12px !important; padding-left: 12px !important; }
    .home-hero-categories-list { min-height: 136px; border-radius: 13px; }
    .home-hero-category { min-width: 116px; gap: 5px; padding: 9px 8px; }
    .home-hero-category-image { width: 72px; height: 72px; }
    .home-hero-category strong { font-size: 11px; }
    .home-benefits { margin-top: 16px; padding: 10px 12px 0; }
    .home-benefits-inner { grid-template-columns: repeat(2,1fr); }
    .home-benefits-inner > div { min-height: 75px; padding: 8px; border-bottom: 1px solid var(--store-line); }
    .home-benefits i { font-size: 22px; }
    .home-benefits strong { font-size: 12px; }
    .home-benefits small { font-size: 9px; }
    .edalat-home .home-categories-heading { margin-bottom: 18px; padding: 0 15px; }
    .edalat-home .home-categories-heading h2 { font-size: 20px; }
    .edalat-home .home-categories-heading p { line-height: 1.8; }
    .edalat-home .home-category-item { width: calc(50% - 6px); min-height: 185px; max-width: none; flex: 0 0 calc(50% - 6px); padding: 15px 8px 13px; }
    .edalat-home .home-category-image { width: 100%; height: 105px; }
    .edalat-home .home-category-name { font-size: 14px; }
    .edalat-home .home-quad-banners-grid { grid-template-columns: 1fr; }
    .home-double-banners-grid { grid-template-columns: 1fr; gap: 12px; }
    .home-section-card { padding: 16px 7px 10px; border-radius: 12px; }
    .home-section-heading h2 { font-size: 17px; }
    .home-products-slider .product__image { height: 190px; }
    .home-articles-grid { grid-template-columns: 1fr; }
    .home-category-products-header h2 { font-size: 20px; }
    .edalat-home .home-category-product-row { padding: 16px 7px 10px; }
    .edalat-home .home-category-product-title-wrap { gap: 8px; }
    .edalat-home .home-category-product-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 10px; }
    .edalat-home .home-category-product-icon img { width: 35px; height: 35px; }
    .edalat-home .home-category-product-row .home-section-heading h3 { font-size: 17px; }
    .edalat-home .home-subcategory-card { min-height: 290px; padding: 14px; }
    .edalat-home .home-subcategory-image { width: 150px; height: 150px; }
    .site-footer-services { grid-template-columns: 1fr 1fr; padding: 10px; }
    .site-footer-service { border-bottom: 1px solid #f0dfc5; }
    .site-footer-columns { grid-template-columns: 1fr; padding: 25px 20px; }
    .site-footer-column { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.12); border-left: 0; }
    .site-footer-bottom { flex-direction: column; gap: 5px; text-align: center; }
}

/* Keep storefront overrides after legacy homepage rules. */
body.home-page .edalat-home { margin-top: 0 !important; overflow: visible; background: #fff; }
body.home-page .edalat-home > section { order: initial !important; width: 100%; }
body.home-page .edalat-home .home-hero { padding: 0; background: #111923; }
body.home-page .edalat-home .home-hero-slide img { height: clamp(330px, 32vw, 570px); }
body.home-page .edalat-home .home-hero .slick-dots { bottom: 20px !important; }
body.home-page .edalat-home .home-categories { padding: 50px 0 32px; }
body.home-page .edalat-home .home-brands { padding: 22px 0 10px; }
body.home-page .edalat-home .home-brands-shell { padding: 20px 16px 16px; border-color: #eef0f2; border-radius: 17px; }
body.home-page .site-footer { margin-top: 0; padding: 0 !important; border: 0; background: #fff; color: #343b42; }
body.home-page .site-footer .site-footer-head { display: none; }
body.home-page .site-footer .site-footer-services { margin: 0 0 20px; padding: 19px 15px; border: 0; }
body.home-page .site-footer .site-footer-service { color: #3d4145; }
body.home-page .site-footer .site-footer-columns { margin: 0; padding: 28px 30px; border-radius: 10px 10px 0 0; background: #111c27; }
body.home-page .site-footer .site-footer-column h2 { color: #fff; }
body.home-page .site-footer .site-footer-column a,
body.home-page .site-footer .site-footer-about p,
body.home-page .site-footer .site-footer-about address { color: #c7cdd3; }
body.home-page .site-footer .site-footer-bottom { margin: 0; padding: 13px 22px; border: 0; background: var(--store-red); color: #fff; }
body.home-page .site-footer .site-footer-bottom p,
body.home-page .site-footer .site-footer-bottom span { color: #fff; }

/* Keep the shared footer coherent on every non-home page. */
body:not(.home-page) .site-footer {
    margin-top: 0;
    padding: 0 !important;
    border: 0;
    background: #fff;
    color: #343b42;
}

body:not(.home-page) .site-footer > .container {
    width: 100%;
    max-width: none;
    padding-right: 24px;
    padding-left: 24px;
}

body:not(.home-page) .site-footer .site-footer-head { display: none; }

body:not(.home-page) .site-footer .site-footer-services {
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 20px;
    margin: 0 0 20px;
    padding: 19px 15px;
    border: 0;
    border-radius: 10px;
}

body:not(.home-page) .site-footer .site-footer-service {
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    padding: 0;
    border-bottom: 0;
    border-left: 1px solid #f0dfc5;
    color: #3d4145;
    text-align: center;
}

body:not(.home-page) .site-footer .site-footer-service:last-child { border-left: 0; }

body:not(.home-page) .site-footer .site-footer-service i {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 2rem;
}

body:not(.home-page) .site-footer .site-footer-service:nth-child(2n) i {
    background: var(--secondary-light);
    color: var(--secondary-dim);
}

body:not(.home-page) .site-footer .site-footer-service:nth-child(3n) i {
    background: var(--third-light);
    color: var(--third-dim);
}

body:not(.home-page) .site-footer .site-footer-columns {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0;
    overflow: hidden;
    margin: 0;
    padding: 28px 30px;
    border-radius: 10px 10px 0 0;
    background: #111c27;
}

body:not(.home-page) .site-footer .site-footer-column {
    padding: 0 30px;
    border-bottom: 0;
    border-left: 1px solid rgba(255,255,255,.14);
}

body:not(.home-page) .site-footer .site-footer-column:last-child { border-left: 0; }
body:not(.home-page) .site-footer .site-footer-column h2 { color: #fff; }
body:not(.home-page) .site-footer .site-footer-column a,
body:not(.home-page) .site-footer .site-footer-about p,
body:not(.home-page) .site-footer .site-footer-about address { color: #c7cdd3; }
body:not(.home-page) .site-footer .site-footer-column > a:hover { color: #fff; }

body:not(.home-page) .site-footer .site-footer-socials a {
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: #fff;
}

body:not(.home-page) .site-footer .site-footer-socials a:hover {
    border-color: var(--store-red);
    background: var(--store-red);
}

body:not(.home-page) .site-footer .site-footer-bottom {
    margin: 0;
    padding: 13px 22px;
    border: 0;
    background: var(--store-red);
    color: #fff;
}

body:not(.home-page) .site-footer .site-footer-bottom p,
body:not(.home-page) .site-footer .site-footer-bottom span { color: #fff; }

@media (max-width: 1024px) {
    body.home-page .site-footer .site-footer-bottom,
    body:not(.home-page) .site-footer .site-footer-bottom {
        padding-bottom: calc(83px + env(safe-area-inset-bottom)) !important;
    }

    body:not(.home-page) .site-footer .site-footer-services { grid-template-columns: repeat(3,minmax(0,1fr)); }
    body:not(.home-page) .site-footer .site-footer-columns { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 30px; }
}

@media (max-width: 767px) {
    body:not(.home-page) .site-footer > .container { padding-right: 12px; padding-left: 12px; }
    body:not(.home-page) .site-footer .site-footer-services { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 10px; padding: 19px 15px; }
    body:not(.home-page) .site-footer .site-footer-service { border-bottom: 1px solid #f0dfc5; }
    body:not(.home-page) .site-footer .site-footer-service:last-child { grid-column: 1 / -1; }
    body:not(.home-page) .site-footer .site-footer-columns { grid-template-columns: 1fr; padding: 25px 20px; row-gap: 0; }
    body:not(.home-page) .site-footer .site-footer-column { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); border-left: 0; }
    body:not(.home-page) .site-footer .site-footer-column:last-child { border-bottom: 0; }
    body:not(.home-page) .site-footer .site-footer-bottom { flex-direction: column; align-items: center; gap: 5px; text-align: center; }
}

@media (max-width: 576px) {
    body:not(.home-page) .site-footer .site-footer-service i {
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
    }
}

@media (max-width: 767px) {
    body.home-page .edalat-home .home-hero-slide img { height: 230px; }
    body.home-page .edalat-home .home-categories { padding: 32px 0 20px; }
    body.home-page .site-footer .site-footer-columns { padding: 25px 20px; }
}

/* Product card redesign */
.category-slider-section {
    margin-top: 22px;
    margin-bottom: 8px;
}

.category-page-slider {
    overflow: hidden;
    border-radius: 16px;
    background: #f3f4f5;
    box-shadow: 0 8px 24px rgba(16,26,37,.08);
}

.category-page-slider.slick-initialized { overflow: visible; }
.category-page-slide { overflow: hidden; border-radius: 16px; }
.category-page-slide img {
    display: block;
    width: 100%;
    height: clamp(190px,26vw,420px);
    border-radius: 16px;
    object-fit: cover;
}

.category-page-slider .slick-dots { bottom: 15px !important; }
.category-page-slider .slick-dots li button::before { color: #fff; font-size: 10px; opacity: .75; }
.category-page-slider .slick-dots li.slick-active button::before { color: var(--primary); opacity: 1; }
.category-page-slider .slick-prev,
.category-page-slider .slick-next {
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    box-shadow: 0 4px 14px rgba(0,0,0,.16);
}
.category-page-slider .slick-prev { left: 18px; }
.category-page-slider .slick-next { right: 18px; }
.category-page-slider .slick-prev::before,
.category-page-slider .slick-next::before { color: var(--primary); }

@media (max-width: 767px) {
    .category-slider-section { margin-top: 12px; padding-right: 12px; padding-left: 12px; }
    .category-page-slider,
    .category-page-slide,
    .category-page-slide img { border-radius: 11px; }
    .category-page-slide img { height: clamp(145px,42vw,230px); }
    .category-page-slider .slick-prev,
    .category-page-slider .slick-next { display: none !important; }
}

.product-outer .theme-product-card {
    display: flex;
    width: calc(100% - 8px);
    height: 100%;
    min-height: 430px;
    flex-direction: column;
    margin: auto;
    overflow: hidden;
    padding: 0 !important;
    border: 1px solid #e7e3df !important;
    border-top: 4px solid transparent !important;
    border-radius: 27px !important;
    background: #fff;
    box-shadow: 0 5px 18px rgba(25,31,38,.06) !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.product-outer .theme-product-card:hover {
    border-top-color: var(--primary) !important;
    box-shadow: 0 12px 28px rgba(var(--primary-rgb),.12) !important;
    transform: translateY(-3px);
}

.theme-product-card .product-wishlist {
    position: absolute;
    top: 17px;
    left: 16px;
    z-index: 20;
}

.theme-product-card .wishlist-toggle-btn,
.theme-product-card .wishlist-login-link {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #ece8e4 !important;
    border-radius: 50%;
    background: #fff;
    box-shadow: none !important;
    cursor: pointer;
}

.theme-product-card .wishlist-toggle-btn:hover,
.theme-product-card .wishlist-login-link:hover {
    border-color: var(--primary) !important;
}

.theme-product-card .product-wishlist i {
    color: var(--primary) !important;
}

.product-outer .theme-product-card .product__image {
    width: 100%;
    height: 245px;
    flex: 0 0 245px;
    margin: 0;
    padding: 26px 22px 8px;
}

.product-outer .theme-product-card .product__image img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
}

.theme-product-card .discount-badge {
    top: 16px !important;
    right: 14px;
    left: auto !important;
    background: var(--primary) !important;
}

.product-outer .theme-product-card .product__body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 10px 18px 0;
}

.product-outer .theme-product-card .product-link {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-outer .theme-product-card h5 {
    min-height: 48px;
    margin: 0;
    color: #343434;
    font-family: bakhFanum, sans-serif, tahoma !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.8 !important;
}

.theme-product-card .product-price-row {
    position: relative;
    width: calc(100% + 36px);
    min-height: 58px;
    margin: 10px -18px 0;
    padding: 13px 18px 14px !important;
    border-top: 1px solid #e5e1dd;
    margin-bottom: 1rem;
}

.product-outer .theme-product-card .product-price-row strong {
    height: auto;
    color: var(--primary) !important;
    font-size: 20px;
}

.theme-product-card .product-details-button {
    display: flex;
    width: 100%;
    min-height: 53px;
    flex: 0 0 53px;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s ease;
}

.theme-product-card .product-details-button:hover {
    background: var(--primary-dim);
    color: #fff !important;
}

@media (max-width: 767px) {
    .product-outer .theme-product-card { min-height: 390px; border-radius: 22px !important; }
    .product-outer .theme-product-card .product__image { height: 205px; flex-basis: 205px; padding: 22px 15px 6px; }
    .theme-product-card .product-details-button { min-height: 48px; flex-basis: 48px; }
}

/* Header detail corrections */
@media (min-width: 1025px) {
    #header-top > .container {
        width: 100% !important;
        max-width: none !important;
        padding-right: 24px !important;
        padding-left: 24px !important;
    }

    #header-top > .container > .d-flex {
        display: grid !important;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) max-content;
        gap: 24px;
    }

    #header-top #search-input-wrapper {
        display: grid !important;
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 22px;
        flex: none;
        min-width: 0;
    }

    #header-top #search-form {
        display: block;
        width: 100% !important;
        max-width: none !important;
        min-width: 0;
        flex: none !important;
    }

    #header-top #searchInput {
        display: block;
        width: 100% !important;
        max-width: none !important;
    }

    #header-top .header-actions {
        flex: 0 0 auto;
    }

    #header-top .header-actions .btn span {
        display: block !important;
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

#header-menu #right-menu > li:first-child > a:hover,
#header-menu #right-menu > li:first-child:hover > a,
#header-menu #right-menu > li:first-child.active > a {
    background: var(--store-red) !important;
    color: #fff !important;
}

#header-menu #right-menu > li:first-child > a:hover span,
#header-menu #right-menu > li:first-child:hover > a span,
#header-menu #right-menu > li:first-child.active > a span,
#header-menu #right-menu > li:first-child > a:hover i,
#header-menu #right-menu > li:first-child:hover > a i,
#header-menu #right-menu > li:first-child.active > a i {
    color: #fff !important;
}

/* Account control is an icon label, not a filled primary button. */
#header-top .header-actions .user-dropdown-wrapper > .btn,
#header-top .header-actions .user-dropdown-wrapper > .btn:hover,
#header-top .header-actions .user-dropdown-wrapper > .btn:focus,
#header-top .header-actions .user-dropdown-wrapper > .btn:active,
#header-top .header-actions > a[href="/accounts/login"] .btn,
#header-top .header-actions > a[href="/accounts/login"] .btn:hover,
#header-top .header-actions > a[href="/accounts/login"] .btn:focus,
#header-top .header-actions > a[href="/accounts/login"] .btn:active {
    border: 0 !important;
    background: transparent !important;
    background-image: none !important;
    color: #28313a !important;
    box-shadow: none !important;
    transform: none !important;
}

#header-top .header-actions .user-dropdown-wrapper > .btn span,
#header-top .header-actions > a[href="/accounts/login"] .btn span {
    display: block !important;
    color: #28313a !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#header-top .header-actions .user-dropdown-wrapper > .btn i,
#header-top .header-actions > a[href="/accounts/login"] .btn i {
    color: #28313a !important;
}

#header-top .header-actions .user-dropdown-wrapper > .btn:hover span,
#header-top .header-actions .user-dropdown-wrapper > .btn:hover i,
#header-top .header-actions > a[href="/accounts/login"] .btn:hover span,
#header-top .header-actions > a[href="/accounts/login"] .btn:hover i {
    color: var(--store-red) !important;
}

body.dark {
    --primary-light: #3d3052;
    --secondary-light: #303b2d;
    --third-light: #493c2a;
}

.btn-primary {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px -14px rgba(var(--primary-rgb), .8);
}

.btn-primary i,
.btn-primary span {
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dim) !important;
}

.btn-secondary {
    background: var(--secondary) !important;
    border: 0;
    color: #fff !important;
    padding: 10px 20px;
    box-shadow: 0 10px 22px -14px rgba(var(--secondary-rgb), .8);
}

.btn-secondary i,
.btn-secondary span {
    color: #fff !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--secondary-dim) !important;
    color: #fff !important;
}

.text-secondary,
.theme-price {
    color: var(--secondary-dim) !important;
}

.text-third,
.theme-points,
.theme-points i,
.theme-points b {
    color: var(--third-dim) !important;
}

.bg-secondary-light {
    background: var(--secondary-light) !important;
}

.bg-third-light {
    background: var(--third-light) !important;
}

/* Header and navigation */
.cart-counter {
    background: var(--third) !important;
    color: #3f2d14 !important;
}

#right-menu > li.active > a,
.mega-menu a:hover {
    color: var(--secondary-dim) !important;
}

.user-dropdown a:hover,
.has-dropdown .dropdown a:hover {
    background: var(--secondary-light) !important;
    color: var(--secondary-dim) !important;
}

/* Shared page accents */
#breadcrumbs-container {
    margin-top: 1rem;
    margin-right: 2rem;
    margin-left: 2rem;
    /* background: linear-gradient(
        100deg,
        var(--primary-light),
        var(--third-light)
    ) !important; */
    /* border-bottom: 3px solid var(--third); */
}

.title-dot::before,
.pastel-section-title::before {
    background: var(--third) !important;
    border-color: var(--third-light) !important;
}

.products-section h3,
.pastel-section-title {
    color: var(--secondary-dim) !important;
}

.story-circle {
    border-color: var(--third) !important;
}

.story-circle:hover {
    box-shadow: 0 6px 18px rgba(var(--third-rgb), .45) !important;
}

/* Product cards */
.theme-product-card {
    border-bottom: 3px solid var(--secondary-light);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.theme-product-card:hover {
    border-bottom-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px -15px rgba(var(--secondary-rgb), .85) !important;
}

.discount-badge,
.pastel-offer-discount-badge {
    background: var(--third) !important;
    color: #fff !important;
}

.pastel-offer-new-price {
    color: var(--secondary-dim) !important;
}

.pastel-offer-cta-button {
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dim)
    ) !important;
    color: #fff !important;
}

/* Catalog filters and sorting */
.theme-filter-card {
    border-right: 4px solid var(--third);
}

.theme-filter-card .card-header {
    background: var(--third-light);
}

.sort-type1.active {
    /* background: var(--secondary-light) !important; */
    color: var(--secondary-dim) !important;
    box-shadow: inset 0 -2px 0 var(--secondary);
}

.page-circle.active {
    background: var(--secondary) !important;
}

/* Product detail */
.variant-option {
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.variant-option:hover {
    background: var(--third-light);
    border-color: var(--third) !important;
}

.variant-option.is-selected {
    background: var(--primary-light);
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), .18) !important;
}

#product-price {
    border-right: 4px solid var(--secondary);
    padding-right: 14px;
}

/* Cart and checkout */
.product-basket {
    border-right: 4px solid var(--secondary);
}

#invoice-summary,
.theme-summary-card {
    border-top: 4px solid var(--third);
    background: linear-gradient(180deg, var(--third-light), var(--pure-white));
}

#basket-header > .container::before {
    background: var(--secondary) !important;
}

#basket-header .step-outer.active .step i {
    color: var(--secondary-dim) !important;
}

.theme-checkout-card {
    border-top: 5px solid var(--third);
}

.checkout-choice {
    transition: border-color .2s ease, background .2s ease;
}

.checkout-choice:hover {
    border-color: var(--third) !important;
    background: var(--third-light);
}

.checkout-choice:has(input:checked) {
    border-color: var(--secondary) !important;
    background: var(--secondary-light);
    box-shadow: 0 0 0 2px rgba(var(--secondary-rgb), .14);
}

.checkout-choice .custom-radio input:checked + span::before {
    background: var(--secondary);
    border-color: var(--third);
}

::selection {
    background: var(--third);
    color: #3f2d14;
}

::-webkit-scrollbar-thumb {
    background-color: var(--secondary);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-dim);
}

/* Structured site footer */
.site-footer {
    padding: 38px 0 0;
    border-top: 1px solid #e8e8e8;
    background: #fff;
    color: #4f4f4f;
}

.site-footer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.site-footer-brand {
    min-width: 0;
}

.site-footer-logo {
    display: inline-block;
}

.site-footer-logo img {
    display: block;
    width: auto;
    height: 58px;
    object-fit: contain;
}

.site-footer-contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 16px;
}

.site-footer-contact-line a {
    color: #666;
    font-size: .9rem;
}

.site-footer-contact-line i {
    margin-left: 5px;
    color: var(--primary);
}

.site-footer-back-top {
    flex: 0 0 auto;
    padding: 11px 16px;
    border: 1px solid #ddd;
    border-radius: 9px;
    color: #777;
    font-size: .88rem;
}

.site-footer-back-top i {
    margin-right: 8px;
}

.site-footer-back-top:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.site-footer-services {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin: 48px 0 52px;
}

.site-footer-service {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    color: #454545;
    text-align: center;
}

.site-footer-service i {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 2rem;
}

.site-footer-service:nth-child(2n) i {
    background: var(--secondary-light);
    color: var(--secondary-dim);
}

.site-footer-service:nth-child(3n) i {
    background: var(--third-light);
    color: var(--third-dim);
}

.site-footer-service span {
    font-size: .9rem;
    line-height: 1.6;
}

.site-footer-columns {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1fr;
    gap: clamp(28px, 5vw, 80px);
    padding-bottom: 38px;
}

.site-footer-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.site-footer-column h2 {
    margin: 0 0 7px;
    color: #292929;
    font-size: 1.12rem;
    font-weight: 700;
}

.site-footer-column a {
    color: #777;
    font-size: .94rem;
    line-height: 1.7;
}

.site-footer-column > a:hover {
    color: var(--primary);
    transform: translateX(-3px);
}

.site-footer-about p {
    max-width: 440px;
    margin: 0;
    color: #666;
    font-size: .93rem;
    line-height: 2;
    text-align: justify;
}

.site-footer-about address {
    margin: 0;
    color: #777;
    font-size: .9rem;
    font-style: normal;
    line-height: 1.9;
}

.site-footer-about address i {
    margin-left: 6px;
    color: var(--secondary-dim);
}

.footer-contact-label { margin-left: 4px; color: inherit; }

.contact-directory { display: grid; gap: 16px; }
.contact-directory-group { overflow: hidden; padding: 18px; border: 1px solid #eceef0; border-radius: 12px; background: #fff; }
.contact-directory-group h3 { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); color: var(--secondary-dim); font-size: 16px; }
.contact-directory-item { display: flex; align-items: flex-start; gap: 11px; padding: 8px 0; color: #555; line-height: 1.9; }
.contact-directory-item > i { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; background: var(--primary-light); color: var(--primary); font-size: 15px; }
.contact-directory-item > div { min-width: 0; flex: 1 1 auto; }
.contact-directory-item strong { display: block; margin-bottom: 1px; color: #444; font-size: 12px; }
.contact-directory-item a,
.contact-directory-item span { display: block; color: #555; font-size: 13px; overflow-wrap: anywhere; white-space: pre-line; }
.contact-directory-item a:hover { color: var(--primary); }

@media (max-width: 767px) {
    .contact-directory-group { padding: 14px; }
}

.site-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer-socials a {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    background: #fafafa;
    color: #777;
    font-size: 1.2rem;
}

.site-footer-socials a:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.site-footer-trust {
    min-height: 82px;
    margin-top: 5px;
}

.site-footer-trust img {
    width: auto;
    max-width: 80px;
    height: 80px;
    object-fit: contain;
}

.site-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 84px;
    border-top: 1px solid #ededed;
    color: #929292;
    font-size: .85rem;
}

.site-footer-bottom p {
    margin: 0;
}

.dark .site-footer {
    border-top-color: #3a3a3a;
    background: #242424;
    color: #ddd;
}

.dark .site-footer-column h2,
.dark .site-footer-service {
    color: #fff;
}

.dark .site-footer-contact-line a,
.dark .site-footer-column a,
.dark .site-footer-about p,
.dark .site-footer-about address {
    color: #bbb;
}

.dark .site-footer-socials a,
.dark .site-footer-back-top {
    border-color: #4a4a4a;
    background: #303030;
    color: #ccc;
}

.dark .site-footer-bottom {
    border-top-color: #3a3a3a;
}

@media (max-width: 991px) {
    .site-footer-services {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding-top: 28px;
    }

    .site-footer-head {
        align-items: center;
    }

    .site-footer-logo img {
        height: 48px;
    }

    .site-footer-contact-line {
        display: grid;
        gap: 7px;
    }

    .site-footer-back-top {
        padding: 9px 11px;
        font-size: .78rem;
    }

    .site-footer-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 10px;
        margin: 38px 0 42px;
    }

    .site-footer-service:last-child {
        grid-column: 1 / -1;
    }

    .site-footer-service i {
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
    }

    .site-footer-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .site-footer-about p {
        text-align: right;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 92px;
    }
}

/* Homepage navigation */
#header-menu #right-menu > li > a {
    display: flex;
    align-items: center;
    gap: .45rem;
}

#header-menu .desktop-menu-item-icon {
    color: var(--primary-dim);
    font-size: 1.05em;
    margin: 0;
}

#header-menu #right-menu > li:nth-child(3n) .desktop-menu-item-icon {
    color: var(--primary-dim);
}

#header-menu #right-menu > li > a:hover .desktop-menu-item-icon {
    color: var(--primary);
}

/* Homepage hero */
.home-page-main {
    display: flex;
    flex-direction: column;
    margin-top: 0 !important;
    overflow: hidden;
}

/* Homepage section order */
.home-page-main > .home-hero { order: 1; }
.home-page-main > .home-deal--primary { order: 2; }
.home-page-main > .home-quad-banners { order: 3; }
.home-page-main > .home-categories { order: 4; }
.home-page-main > .home-new-products { order: 5; }
.home-page-main > .pastel-full-banner { order: 6; }
.home-page-main > .home-deal--secondary { order: 7; }
.home-page-main > .home-brands { order: 8; }
.home-page-main > .pastel-banner-section { order: 9; }
.home-page-main > .pastel-categories-wrapper { order: 10; }
.home-page-main > .pastel-blog-section { order: 11; }

.home-page-main > section,
.home-page-main > div {
    width: 100%;
}

.home-hero {
    position: relative;
    width: 100%;
    background: var(--primary-light);
    overflow: hidden;
}

.home-hero-slider:not(.slick-initialized) .home-hero-slide:not(:first-child) {
    display: none;
}

.home-hero-slide,
.home-hero-slide > a {
    display: block;
    position: relative;
}

.home-hero-slide img {
    display: block;
    width: 100%;
    height: clamp(280px, 28vw, 540px);
    object-fit: cover;
}

.home-hero-caption {
    position: absolute;
    top: 50%;
    right: clamp(24px, 8vw, 150px);
    max-width: min(420px, 38vw);
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.home-hero-caption strong,
.home-hero-caption small {
    display: block;
}

.home-hero-caption strong {
    font-size: clamp(1.5rem, 2.4vw, 3rem);
    line-height: 1.45;
}

.home-hero-caption small {
    margin-top: .65rem;
    font-size: clamp(.9rem, 1.2vw, 1.25rem);
}

.home-hero .slick-dots {
    bottom: 18px !important;
}

.home-hero .slick-dots li button::before {
    color: #fff;
    font-size: 11px;
    opacity: .7;
}

.home-hero .slick-dots li.slick-active button::before {
    color: var(--third);
    opacity: 1;
}

/* Homepage deal rails */
.home-deal {
    padding: 34px 0;
}

.home-deal-shell {
    --deal-color: var(--primary);
    display: flex;
    direction: rtl;
    min-height: 310px;
    overflow: hidden;
    border: 30px solid var(--deal-color);
    border-radius: 18px;
    background: #fff;
}

.home-deal--secondary .home-deal-shell {
    --deal-color: var(--secondary);
}

.home-deal-promo {
    flex: 0 0 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    background: var(--deal-color);
    color: #fff;
    text-align: center;
}

.home-deal-promo-icon {
    margin-bottom: 14px;
    font-size: 3.5rem;
    color: #fff;
}

.home-deal-promo h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 1.55rem;
    line-height: 1.5;
}

.home-deal-promo p {
    margin: -4px 0 18px;
    color: rgba(255, 255, 255, .9);
}

.home-deal-countdown {
    display: flex;
    direction: ltr;
    align-items: center;
    gap: 5px;
    margin-bottom: 22px;
}

.home-deal-countdown span {
    min-width: 35px;
    padding: 5px 4px;
    border-radius: 6px;
    background: #fff;
    color: var(--deal-color);
    font-weight: 700;
}

.home-deal-all {
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    color: #333 !important;
    font-size: .9rem;
}

.home-deal-all i {
    margin-right: 8px;
}

.home-deal-content {
    min-width: 0;
    flex: 1 1 auto;
    position: relative;
    padding: 0 10px;
}

.home-deal-products .slick-track {
    display: flex;
}

.home-deal-products .product-outer {
    padding: 0;
    border-left: 3px solid var(--deal-color);
}

.home-deal-products .product {
    margin: 0;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.home-deal-products .product:hover {
    transform: translateY(-3px);
}

.home-deal-products .product__image {
    height: 180px;
}

.home-deal-products .product__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slick-outer.products-section.home-deal-content > .arrow-next,
.slick-outer.products-section.home-deal-content > .arrow-prev {
    top: 50% !important;
    bottom: auto !important;
    width: 44px;
    height: 44px;
    margin: 0;
    border: 1px solid rgba(var(--primary-rgb), .18);
    border-radius: 50%;
    background: #fff;
    color: var(--deal-color);
    font-size: 1.35rem;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .1);
    transform: translateY(-50%);
}

.home-deal-empty {
    width: 100%;
    margin: auto;
    padding: 40px;
    color: #777;
    text-align: center;
}

.dark .home-deal-shell,
.dark .home-deal-products .product {
    background: #333;
}

.dark .home-deal-empty {
    color: #ddd;
}

/* Four promotional banners below special products */
.home-quad-banners {
    padding: 4px 0 30px;
}

.home-quad-banners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-quad-banner {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #f4f4f4;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.home-quad-banner img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .3s ease;
}

.home-quad-banner:hover img {
    transform: scale(1.025);
}

/* Newest products */
.home-new-products {
    padding: 34px 0;
}

.home-new-products-shell {
    overflow: hidden;
    padding: 24px 16px 16px;
    border-radius: 24px;
    background: var(--third);
}

.home-new-products-title {
    margin: 0 12px 22px;
    color: #3f2d14;
    font-size: 1.7rem;
    font-weight: 700;
}

.home-new-products-list .slick-track {
    display: flex;
}

.home-new-products-list .slick-slide {
    height: auto;
    padding: 0 6px;
}

.home-new-products-list .product-outer,
.home-new-products-list .product {
    height: 100%;
}

.home-new-products-list .product {
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(63, 45, 20, .1) !important;
    border-radius: 12px !important;
    background: #fff;
    box-shadow: none !important;
}

.home-new-products-list .product:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(63, 45, 20, .12) !important;
}

.home-new-products-list .product__image {
    height: 190px;
}

.home-new-products-list .product__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slick-outer.products-section.home-new-products-shell > .arrow-next,
.slick-outer.products-section.home-new-products-shell > .arrow-prev {
    top: 58% !important;
    bottom: auto !important;
    width: 44px;
    height: 44px;
    margin: 0;
    border: 1px solid rgba(63, 45, 20, .12);
    border-radius: 50%;
    background: #fff;
    color: var(--third-dim);
    font-size: 1.35rem;
    box-shadow: 0 5px 16px rgba(63, 45, 20, .12);
    transform: translateY(-50%);
}

.home-new-products-empty {
    width: 100%;
    margin: 0;
    padding: 50px 20px;
    color: #3f2d14;
    text-align: center;
}

.dark .home-new-products-shell {
    background: var(--third-dim);
}

.dark .home-new-products-title {
    color: #fff;
}

/* Homepage categories */
.home-categories {
    padding: 38px 0 24px;
}

.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 24px 16px;
    align-items: start;
}

.home-category-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    color: #242424;
    text-align: center;
}

.home-category-image {
    display: flex;
    width: 96px;
    height: 96px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #eee;
    border-radius: 50%;
    background: #f6f6f6;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-category-image i {
    color: var(--primary);
    font-size: 2.3rem;
}

.home-category-name {
    margin-top: 10px;
    overflow: hidden;
    font-size: .95rem;
    line-height: 1.55;
    text-overflow: ellipsis;
}

.home-category-item:hover {
    color: var(--primary);
}

.home-category-item:hover .home-category-image {
    border-color: var(--third);
    box-shadow: 0 8px 20px rgba(var(--third-rgb), .28);
    transform: translateY(-4px);
}

/* Homepage brands */
.home-brands {
    padding: 24px 0 40px;
}

.home-brands-shell {
    position: relative;
    padding: 24px 42px 18px;
    border: 1px solid #ddd;
    border-radius: 18px;
    background: #fff;
}

.home-brands-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    color: #242424;
    font-size: 1.55rem;
}

.home-brands-title i {
    color: var(--primary);
}

.home-brand-slide {
    padding: 0 5px;
}

#home-brands-slider .slick-list {
    padding-top: 1rem;
}

.home-brand-card {
    display: flex;
    min-width: 0;
    height: 128px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    /* border: 1px solid #e8e8e8; */
    border-radius: 10px;
    background: #fff;
    color: #555;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-brand-logo {
    display: flex;
    width: 100%;
    height: 78px;
    align-items: center;
    justify-content: center;
}

.home-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-brand-name {
    display: block;
    width: 100%;
    overflow: hidden;
    font-size: .82rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-brand-card:hover {
    border-color: var(--secondary);
    color: var(--secondary-dim);
    box-shadow: 0 8px 20px rgba(var(--secondary-rgb), .16);
    transform: translateY(-3px);
}

.home-brands-next,
.home-brands-prev {
    position: absolute;
    z-index: 3;
    top: 58%;
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #555;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transform: translateY(-50%);
}

.home-brands-next {
    right: 14px;
}

.home-brands-prev {
    left: 14px;
}

.home-brands-next:hover,
.home-brands-prev:hover {
    border-color: var(--secondary);
    color: var(--secondary-dim);
}

.dark .home-category-item,
.dark .home-brands-title {
    color: #fff;
}

.dark .home-category-image,
.dark .home-brands-shell,
.dark .home-brand-card {
    border-color: #555;
    background: #333;
}

.dark .home-brand-card {
    color: #ddd;
}

/* Products grouped by category */
.home-category-products {
    padding: 34px 0;
    background: var(--primary-light);
}

.home-category-products-heading {
    margin: 0 0 24px;
    color: #333;
    font-size: 1.7rem;
}

.home-category-product-row {
    margin-top: 22px;
    padding: 20px 12px 12px;
    border-radius: 18px;
    background: #fff;
}

.home-category-product-title {
    margin: 0 12px 18px;
    color: var(--primary-dim);
    font-size: 1.35rem;
}

.home-category-product-row .slick-slide {
    padding: 0 6px;
}

.home-category-product-row .product {
    margin: 0;
}

.home-subcategory-card {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fff;
    color: #333;
}

.home-subcategory-image {
    display: flex;
    width: 170px;
    height: 170px;
    align-items: center;
    justify-content: center;
}

.home-subcategory-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-subcategory-image i {
    color: var(--primary);
    font-size: 3rem;
}

.slick-outer.products-section.home-category-product-row > .arrow-next,
.slick-outer.products-section.home-category-product-row > .arrow-prev {
    top: 58% !important;
    bottom: auto !important;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 50%;
    background: #fff;
    font-size: 1.35rem;
    transform: translateY(-50%);
}

.dark .home-category-products {
    background: #29242f;
}

.dark .home-category-products-heading {
    color: #fff;
}

.dark .home-category-product-row,
.dark .home-subcategory-card {
    border-color: #555;
    background: #333;
    color: #fff;
}

/* Variables retained by the remaining pastel homepage sections. */
:root {
    --pastel-pink: var(--primary-light);
    --pastel-lavender: var(--primary-light);
    --pastel-mint: var(--secondary-light);
    --pastel-peach: var(--third-light);
    --pastel-sky: var(--secondary-light);
    --pastel-cream: #fffaf2;
    --pastel-rose: var(--primary-light);
    --pastel-sage: var(--secondary-light);
    --pastel-text: #5d5d5d;
    --pastel-heading: #4a4a4a;
}

@media (max-width: 767px) {
    .home-hero-slide img {
        height: 230px;
    }

    .home-hero-caption {
        right: 20px;
        max-width: 70%;
    }

    .home-deal {
        padding: 22px 0;
    }

    .home-deal-shell {
        display: block;
    }

    .home-deal-promo {
        min-height: 155px;
        padding: 18px;
    }

    .home-deal-promo-icon {
        margin-bottom: 7px;
        font-size: 2.4rem;
    }

    .home-deal-promo h2 {
        margin-bottom: 8px;
        font-size: 1.3rem;
    }

    .home-deal-countdown {
        margin-bottom: 12px;
    }

    .home-deal-content {
        padding: 0;
    }

    .home-quad-banners {
        padding: 0 0 22px;
    }

    .home-quad-banners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-quad-banner {
        border-radius: 12px;
    }

    .home-new-products {
        padding: 22px 0;
    }

    .home-new-products-shell {
        padding: 18px 10px 12px;
        border-radius: 18px;
    }

    .home-new-products-title {
        margin: 0 8px 16px;
        font-size: 1.35rem;
    }

    .home-categories {
        padding: 28px 0 16px;
    }

    .home-categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px 10px;
    }

    .home-category-image {
        width: 82px;
        height: 82px;
    }

    .home-category-name {
        font-size: .85rem;
    }

    .home-brands {
        padding: 18px 0 30px;
    }

    .home-brands-shell {
        padding: 20px 28px 14px;
    }

    .home-brands-title {
        font-size: 1.3rem;
    }

    .home-brands-next {
        right: 5px;
    }

    .home-brands-prev {
        left: 5px;
    }

    .home-category-products {
        padding: 24px 0;
    }

    .home-category-products-heading {
        font-size: 1.4rem;
    }

    .home-category-product-row {
        padding: 16px 6px 10px;
    }
}

/* Final cascade layer for the redesigned storefront. */
body.home-page .edalat-home { margin-top: 0 !important; overflow: visible; background: #fff; }
body.home-page .edalat-home > section { order: initial !important; width: 100%; }
body.home-page .edalat-home .home-hero { padding: 0; background: #111923; }
body.home-page .edalat-home .home-hero-slide img { height: clamp(330px, 32vw, 570px); }
body.home-page .edalat-home .home-hero .slick-dots { bottom: 20px !important; }
body.home-page .edalat-home .home-categories { padding: 50px 0 32px; }
body.home-page .edalat-home .home-brands { padding: 22px 0 10px; }
body.home-page .edalat-home .home-brands-shell { padding: 20px 16px 16px; border-color: #eef0f2; border-radius: 17px; }
body.home-page .site-footer { margin-top: 0; padding: 0 !important; border: 0; background: #fff; color: #343b42; }
body.home-page .site-footer .site-footer-head { display: none; }
body.home-page .site-footer .site-footer-services { margin: 0 0 20px; padding: 19px 15px; border: 0; }
body.home-page .site-footer .site-footer-service { color: #3d4145; }
body.home-page .site-footer .site-footer-columns { margin: 0; padding: 28px 30px; border-radius: 10px 10px 0 0; background: #111c27; }
body.home-page .site-footer .site-footer-column h2 { color: #fff; }
body.home-page .site-footer .site-footer-column a,
body.home-page .site-footer .site-footer-about p,
body.home-page .site-footer .site-footer-about address { color: #c7cdd3; }
body.home-page .site-footer .site-footer-bottom { margin: 0; padding: 13px 22px; border: 0; background: var(--store-red); color: #fff; }
body.home-page .site-footer .site-footer-bottom p,
body.home-page .site-footer .site-footer-bottom span { color: #fff; }

@media (max-width: 767px) {
    .home-page .container {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    body.home-page .edalat-home .home-hero-slide img { height: 230px; }
    body.home-page .edalat-home .home-categories { padding: 32px 0 20px; }
    body.home-page .site-footer .site-footer-columns { padding: 25px 20px; }
}
/* Warranty information shared by product, cart and checkout pages. */
.warranty-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(142, 20, 31, .2);
  border-right: 4px solid var(--primary, #8e141f);
  border-radius: 10px;
  background: rgba(142, 20, 31, .045);
}

.warranty-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--primary, #8e141f);
  background: rgba(142, 20, 31, .1);
  font-size: 1.25rem;
}

.warranty-notice__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  line-height: 1.8;
}

.warranty-notice__content strong {
  color: var(--primary, #8e141f);
}

.warranty-notice > a {
  flex: 0 0 auto;
  color: var(--primary, #8e141f);
  font-weight: 600;
}

@media (max-width: 767px) {
  .warranty-notice {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .warranty-notice > a {
    margin-right: 52px;
  }
}
/* Content authored through CKEditor. */
.rich-text-content {
    overflow-wrap: anywhere;
    line-height: 2;
}

.rich-text-content img,
.rich-text-content video,
.rich-text-content iframe {
    max-width: 100%;
    height: auto;
}

.rich-text-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.rich-text-content blockquote {
    margin: 1rem 0;
    padding: .75rem 1rem;
    border-right: 4px solid var(--primary);
    background: rgba(var(--primary-rgb), .05);
}
