/* Dokan home page (classic theme). Every rule is scoped to .dk-home so shared
   partials such as product_box_1 keep their look on other pages. */

.dk-home {
    --dk-ink: #14233b;
    --dk-muted: #5b6778;
    --dk-line: #e4e9f0;
    --dk-bg: #f5f7fa;
    --dk-surface: #fff;
    --dk-sale: #c2410c;
    --dk-sale-soft: #fff1e6;
    --dk-radius: 16px;
    --dk-radius-sm: 12px;
    background: var(--dk-bg);
    color: var(--dk-ink);
    padding: 16px 0 48px;
}

.dk-home a:focus-visible,
.dk-home button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Section rhythm and headings */
.dk-section { margin-top: 32px; }

.dk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.dk-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dk-ink);
}

.dk-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dk-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding-inline-end: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.dk-link:hover { color: var(--hov-primary); text-decoration: underline; }

.dk-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--dk-line);
    border-radius: 50%;
    background: var(--dk-surface);
    color: var(--dk-ink);
    font-size: 18px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.dk-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.dk-arrow.link-disable { opacity: .4; }

[dir="rtl"] .dk-link i,
[dir="rtl"] .dk-arrow i { transform: scaleX(-1); }

/* Hero */
.dk-hero {
    border-radius: var(--dk-radius);
    overflow: hidden;
    background: var(--dk-line);
}

.dk-hero img {
    display: block;
    width: 100%;
    aspect-ratio: 1500 / 620;
    object-fit: cover;
}

/* Category rail */
.dk-cats {
    display: flex;
    gap: 4px;
    margin-top: 16px;
    padding: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    background: var(--dk-surface);
    border-radius: var(--dk-radius);
}

.dk-cats::-webkit-scrollbar { display: none; }

.dk-cat {
    flex: 0 0 auto;
    min-width: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: var(--dk-radius-sm);
    color: var(--dk-ink);
    text-align: center;
    scroll-snap-align: start;
    transition: background-color .2s ease;
}

.dk-cat:hover { background: var(--soft-primary); color: var(--dk-ink); }

.dk-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--dk-bg);
    color: var(--primary);
    font-size: 22px;
}

.dk-cat-icon img { width: 26px; height: 26px; object-fit: contain; }

.dk-cat-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

/* Horizontal rails: real gaps between cards instead of table borders */
.dk-rail .slick-list { margin-inline: -8px; }
.dk-rail .carousel-box { padding-inline: 8px; height: 100%; }
.dk-rail .slick-track { display: flex !important; align-items: stretch; }
.dk-rail .slick-slide { height: auto !important; }
.dk-rail .slick-slide > div { height: 100%; }
.dk-rail .carousel-box .aiz-card-box { margin: 0; }

/* Core sets line-height: 0 on #flash_deal slides, which collapses card text */
#flash_deal .aiz-card-box { line-height: 1.5; }

/* Core pulls #section_featured slides up by 4px, which clips the card's bottom edge */
.dk-home #section_featured .slick-slider .slick-list .slick-slide { margin-bottom: 0; }

/* Keep carousel arrows clear of the add-to-cart button */
.dk-rail > .slick-arrow { top: 30%; }

/* Product card */
.dk-home .aiz-card-box {
    display: flex;
    flex-direction: column;
    height: 100% !important;
    padding: 0 !important;
    border: 1px solid var(--dk-line);
    border-radius: var(--dk-radius);
    background: var(--dk-surface);
    transition: border-color .2s ease;
}

.dk-home .aiz-card-box:hover { border-color: var(--primary); }

.dk-home .aiz-card-box > .position-relative {
    height: auto !important;
    aspect-ratio: 1 / 1;
    padding: 12px;
}

.dk-home .aiz-card-box > .position-relative img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dk-home .aiz-card-box .absolute-top-left.bg-primary {
    width: auto !important;
    margin: 10px !important;
    padding: 2px 8px !important;
    border-radius: 999px;
    background: var(--dk-sale-soft) !important;
    color: var(--dk-sale) !important;
    font-size: 12px !important;
}

.dk-home .aiz-p-hov-icon a {
    margin-top: 8px;
    margin-inline-end: 8px;
    border-radius: 50%;
}

/* Add to cart stays visible, because touch screens have no hover */
.dk-home .aiz-card-box .cart-btn {
    left: auto;
    right: 10px;
    bottom: 10px;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    background: var(--dk-surface);
    color: var(--primary) !important;
    border: 1px solid var(--dk-line);
    opacity: 1;
    transform: none;
    transition: background-color .2s ease, color .2s ease;
}

[dir="rtl"] .dk-home .aiz-card-box .cart-btn { right: auto; left: 10px; }

.dk-home .aiz-card-box .cart-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
}

.dk-home .aiz-card-box .cart-btn .la-2x { font-size: 20px; line-height: 1; }

.dk-home .aiz-card-box .cart-btn .cart-btn-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.dk-home .aiz-card-box > .p-2 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 12px !important;
}

.dk-home .aiz-card-box h3 {
    height: 40px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    text-align: start !important;
    color: var(--dk-ink);
}

.dk-home .aiz-card-box .d-flex.mt-3 {
    flex-direction: column-reverse;
    justify-content: flex-end !important;
    min-height: 44px;
    margin-top: 8px !important;
}

.dk-home .aiz-card-box .text-primary { font-size: 16px; }

.dk-home .aiz-card-box .disc-amount,
.dk-home .aiz-card-box:hover .disc-amount {
    margin: 0;
    opacity: 1 !important;
}

.dk-home .aiz-card-box del {
    font-size: 12px;
    color: var(--dk-muted) !important;
}

/* Flash sale */
.dk-flash-side {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--dk-radius);
    overflow: hidden;
    background: var(--primary);
}

.dk-flash-side img {
    display: block;
    width: 100%;
    aspect-ratio: 1500 / 637;
    object-fit: cover;
}

.dk-flash-timer {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: #fff;
}

.dk-flash-timer-label { font-size: 14px; font-weight: 500; }

.dk-flash-side .aiz-count-down-box { background: transparent; }

.dk-flash-side .countdown-item {
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
    text-align: center;
}

.dk-flash-side .countdown-digit { display: block; font-size: 20px; line-height: 1.2; }
.dk-flash-side .aiz-count-down-box .countdown-name { font-size: 10px; }
.dk-flash-side .aiz-count-down-box .countdown-separator { align-self: center; }

/* Today's deal */
.dk-deals {
    padding: 20px;
    border-radius: var(--dk-radius);
    background: var(--dk-surface);
}

.dk-deals-banner {
    margin-bottom: 16px;
    border-radius: var(--dk-radius-sm);
    overflow: hidden;
}

.dk-deals .img { border-radius: var(--dk-radius-sm); background: var(--dk-bg); }
.dk-deals .img img { object-fit: contain; }
.dk-deals del { color: var(--dk-muted) !important; font-size: 12px; }

/* Generic cards: featured categories, sellers, brands, classified ads */
.dk-card {
    height: 100%;
    padding: 16px;
    border: 1px solid var(--dk-line);
    border-radius: var(--dk-radius);
    background: var(--dk-surface);
    transition: border-color .2s ease;
}

.dk-card:hover { border-color: var(--primary); }

.dk-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.dk-category-card { display: flex; gap: 16px; }

.dk-category-card img {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: var(--dk-radius-sm);
    object-fit: cover;
}

.dk-category-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.dk-category-card ul { margin: 0; padding: 0; list-style: none; }

.dk-category-card li a {
    display: block;
    padding: 2px 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--dk-muted);
}

.dk-category-card li a:hover { color: var(--primary); }

/* Promo banners */
.dk-promo a {
    display: block;
    border-radius: var(--dk-radius);
    overflow: hidden;
}

/* Rows that pair a category banner with products */
.dk-home .home-category-banner { border-radius: var(--dk-radius); }

/* Auction */
.dk-auction-banner {
    position: relative;
    height: 100%;
    min-height: 280px;
    border-radius: var(--dk-radius);
    overflow: hidden;
}

.dk-auction-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dk-auction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.dk-auction-item {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 8px 16px;
}

.dk-auction-item img { object-fit: contain; }

/* Coupon band: drawn as a voucher with a tear-off stub */
.dk-coupon {
    display: flex;
    flex-direction: column;
    border-radius: var(--dk-radius);
    overflow: hidden;
    background: var(--primary);
    color: var(--primary);
}

.dk-coupon-main {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 20px;
    overflow: hidden;
    background: linear-gradient(100deg, #ffd23f 0%, #ffa51f 100%);
}

.dk-coupon-main::after {
    content: "%";
    position: absolute;
    top: 50%;
    inset-inline-end: 12px;
    font-size: 150px;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, .28);
    transform: translateY(-50%) rotate(-12deg);
    pointer-events: none;
}

.dk-coupon-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffd23f;
    font-size: 30px;
}

.dk-coupon-icon i { transform: rotate(-15deg); }

.dk-coupon-copy { position: relative; z-index: 1; min-width: 0; }
.dk-coupon h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.25; color: var(--primary); }
.dk-coupon p { margin: 4px 0 0; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--primary); }

.dk-coupon-stub {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-top: 2px dashed rgba(255, 255, 255, .45);
}

.dk-coupon-stub::before,
.dk-coupon-stub::after {
    content: "";
    position: absolute;
    top: -13px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--dk-bg);
}

.dk-coupon-stub::before { left: -12px; }
.dk-coupon-stub::after { right: -12px; }

.dk-coupon .dk-pill {
    border-color: transparent;
    background: #ffd23f;
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

.dk-coupon .dk-pill:hover {
    background: #fff;
    border-color: transparent;
    color: var(--primary);
}

.dk-coupon .dk-pill:focus-visible { outline-color: #fff; }

.dk-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--dk-line);
    border-radius: 999px;
    background: var(--dk-surface);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.dk-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Sellers and brands */
.dk-seller { text-align: center; padding: 24px 16px; }

.dk-seller-logo {
    position: relative;
    display: block;
    width: 88px;
    height: 88px;
    margin: 0 auto 12px;
}

.dk-seller-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--dk-bg);
}

.dk-seller-badge {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    border-radius: 50%;
    background: var(--dk-surface);
    color: #0660c1;
    font-size: 22px;
    line-height: 1;
}

.dk-seller h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}

.dk-seller .rating { display: block; margin-bottom: 12px; }
.dk-seller-reviews { font-size: 12px; color: var(--dk-muted); }

.dk-brands {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dk-brand { display: block; padding: 12px; text-align: center; color: var(--dk-ink); }
.dk-brand img { width: 100%; height: 64px; object-fit: contain; }
.dk-brand span { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; }

@media (min-width: 576px) {
    .dk-coupon { flex-direction: row; }
    .dk-coupon-main { padding: 28px 32px; gap: 20px; }
    .dk-coupon h2 { font-size: 26px; }
    .dk-coupon-stub {
        flex: 0 0 240px;
        border-top: 0;
        border-inline-start: 2px dashed rgba(255, 255, 255, .45);
    }
    .dk-coupon-stub::before,
    .dk-coupon-stub::after { left: auto; right: auto; inset-inline-start: -13px; }
    .dk-coupon-stub::before { top: -12px; }
    .dk-coupon-stub::after { top: auto; bottom: -12px; }
}

@media (min-width: 768px) {
    .dk-home { padding: 24px 0 64px; }
    .dk-section { margin-top: 48px; }
    .dk-title { font-size: 24px; }
    .dk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dk-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
    .dk-cats {
        display: grid;
        grid-template-columns: repeat(11, minmax(0, 1fr));
        overflow: visible;
    }
    .dk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dk-brands { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .dk-home *,
    .dk-home *::before,
    .dk-home *::after { transition: none !important; }
}

/* Category strip: each category is its own card, with the full name shown */
.dk-cats { background: transparent; padding: 4px 0; gap: 12px; }
.dk-cat {
    min-width: 150px;
    background: #FFFFFF;
    border: 1px solid #E6ECF4;
    border-radius: 14px;
    padding: 16px 12px;
    box-shadow: 0 1px 2px rgba(15, 42, 92, .05);
    justify-content: flex-start;
}
.dk-cat:hover { background: #FFFFFF; border-color: #B9C9E4; box-shadow: 0 10px 22px -14px rgba(15, 42, 92, .45); transform: translateY(-2px); }
.dk-cat-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 1200px) {
    .dk-cats { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); overflow: visible; gap: 8px; }
    .dk-cat { min-width: 0; padding: 14px 6px; }
    .dk-cat-name { font-size: 12px; }
}

/* Colourful category cards: a soft colour family per card, cycling across the row */
.dk-cat:nth-child(6n+1) { background: #EAF2FF; border-color: #CFE0FB; }
.dk-cat:nth-child(6n+2) { background: #E7F8EF; border-color: #BDEBD2; }
.dk-cat:nth-child(6n+3) { background: #FFF4E0; border-color: #FBDDA6; }
.dk-cat:nth-child(6n+4) { background: #FDE9F2; border-color: #F7C4DC; }
.dk-cat:nth-child(6n+5) { background: #F0EBFF; border-color: #D8CBFA; }
.dk-cat:nth-child(6n+6) { background: #FFEEE6; border-color: #FBCBAF; }
.dk-cat:nth-child(6n+1) .dk-cat-icon { background: #1F6FD6; color: #FFFFFF; box-shadow: 0 8px 16px -8px #1F6FD6; }
.dk-cat:nth-child(6n+2) .dk-cat-icon { background: #13945A; color: #FFFFFF; box-shadow: 0 8px 16px -8px #13945A; }
.dk-cat:nth-child(6n+3) .dk-cat-icon { background: #C77A00; color: #FFFFFF; box-shadow: 0 8px 16px -8px #C77A00; }
.dk-cat:nth-child(6n+4) .dk-cat-icon { background: #D0286A; color: #FFFFFF; box-shadow: 0 8px 16px -8px #D0286A; }
.dk-cat:nth-child(6n+5) .dk-cat-icon { background: #6D3FC9; color: #FFFFFF; box-shadow: 0 8px 16px -8px #6D3FC9; }
.dk-cat:nth-child(6n+6) .dk-cat-icon { background: #D9592A; color: #FFFFFF; box-shadow: 0 8px 16px -8px #D9592A; }
.dk-cat:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -14px rgba(15, 42, 92, .45); }

/* ===================================================================
   Polish pass: shared tokens, depth, trust strip, deals, sellers,
   tighter rhythm and a compact category rail on phones.
   =================================================================== */
.dk-home {
    --dk-shadow-sm: 0 1px 2px rgba(15, 35, 70, .06);
    --dk-shadow-md: 0 12px 28px -16px rgba(15, 35, 70, .35);
    --dk-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Section headings get a small brand accent so each block reads as a unit */
.dk-title {
    position: relative;
    padding-inline-start: 14px;
    letter-spacing: -.01em;
}
.dk-title::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 15%;
    bottom: 15%;
    width: 4px;
    border-radius: 4px;
    background: var(--primary);
}
.dk-deals .dk-title.text-white::before { background: currentColor; }

/* Cards lift slightly on hover instead of only changing border colour */
.dk-home .aiz-card-box,
.dk-card {
    box-shadow: var(--dk-shadow-sm);
    transition: border-color .2s ease, box-shadow .25s var(--dk-ease), transform .25s var(--dk-ease);
}
.dk-home .aiz-card-box:hover,
.dk-card:hover {
    border-color: #c9d6ea;
    box-shadow: var(--dk-shadow-md);
    transform: translateY(-2px);
}
.dk-home .aiz-card-box h3 a { color: var(--dk-ink); }
.dk-home .aiz-card-box .text-primary { font-weight: 800; letter-spacing: -.01em; }

/* Carousel arrows: clean floating buttons that sit on the rail edge */
.dk-home .dk-rail > .slick-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid var(--dk-line);
    border-radius: 50%;
    background: var(--dk-surface);
    color: var(--dk-ink);
    box-shadow: var(--dk-shadow-md);
}
.dk-home .dk-rail > .slick-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Today's deal tiles */
.dk-deals { border: 1px solid var(--dk-line); box-shadow: var(--dk-shadow-sm); }
.dk-deal {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    border-radius: var(--dk-radius-sm);
    color: var(--dk-ink);
    transition: background-color .2s ease;
}
.dk-deal:hover { background: var(--dk-bg); color: var(--dk-ink); }
.dk-deal-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: var(--dk-radius-sm);
    background: var(--dk-bg);
    overflow: hidden;
}
.dk-deal-media img { width: 100%; height: 100%; object-fit: contain; }
.dk-deal-badge {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    z-index: 1;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--dk-sale);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.dk-deal-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.7em;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}
.dk-deal-price { margin-top: 6px; font-size: 15px; font-weight: 800; color: var(--primary); }
.dk-deal-was { font-size: 12px; color: var(--dk-muted); }
.dk-deals .dk-rail .slick-list { margin-inline: -4px; }
.dk-deals .dk-rail .carousel-box { padding-inline: 4px; }

/* Sellers without a logo get a branded initials avatar */
.dk-seller-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #2f5ea8);
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .02em;
}

/* Connected services sits inside a .dk-section, so drop its own top padding */
.dk-home .ch-dokan-services { padding-top: 0; padding-bottom: 0; }

/* Coupon band and promo banners share card radius and depth */
.dk-coupon,
.dk-promo a { box-shadow: var(--dk-shadow-sm); }

/* Phones: compact icon rail for categories (5 visible), tighter rhythm */
@media (max-width: 767.98px) {
    .dk-home .dk-cats { gap: 8px; padding: 4px 0 2px; }
    .dk-home .dk-cat {
        min-width: 76px;
        width: 76px;
        padding: 10px 4px;
        gap: 6px;
        border-radius: 12px;
    }
    .dk-home .dk-cat-icon { width: 40px; height: 40px; font-size: 19px; }
    .dk-home .dk-cat-icon img { width: 22px; height: 22px; }
    .dk-home .dk-cat-name { font-size: 11px; font-weight: 600; }
    .dk-section { margin-top: 28px; }
    .dk-title { font-size: 18px; }
    .dk-auction-banner { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
    .dk-home .aiz-card-box:hover,
    .dk-card:hover,
    .dk-cat:hover { transform: none; }
}

/* Connected services heading on the home page: matches the other section heads
   (accent bar title, quiet eyebrow, muted hint) instead of the module pill style. */
.dk-home .ch-dokan-head {
    align-items: flex-end;
    margin-bottom: 16px;
    padding: 0;
}
.dk-home .ch-dokan-title-group { gap: 6px; }
.dk-home .ch-dokan-pill {
    padding: 0;
    border: 0;
    background: none;
    gap: 6px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}
.dk-home .ch-dokan-pill i { font-size: 15px; }
.dk-home .ch-dokan-heading {
    position: relative;
    padding-inline-start: 14px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--dk-ink);
}
.dk-home .ch-dokan-heading::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 15%;
    bottom: 15%;
    width: 4px;
    border-radius: 4px;
    background: var(--primary);
}
.dk-home .ch-dokan-hint {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 400;
    color: var(--dk-muted);
}
@media (max-width: 767.98px) {
    .dk-home .ch-dokan-head { flex-direction: column; align-items: flex-start; gap: 4px; }
    .dk-home .ch-dokan-heading { font-size: 18px; }
    .dk-home .ch-dokan-hint { font-size: 13px; margin: 0; }
}

/* Download the App CTA */
.dk-app { background: linear-gradient(135deg, #0F2A5C 0%, #1B4FB5 100%); color: #FFFFFF; border-radius: 22px; overflow: hidden; }
.dk-app-inner { display: grid; gap: 28px; align-items: center; padding: 36px 28px; }
.dk-app-pill { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: #FFFFFF; color: #0F2A5C; }
.dk-app h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; line-height: 1.15; margin-top: 14px; color: #FFFFFF; }
.dk-app p { font-size: 15px; color: #DCE6F7; margin-top: 10px; max-width: 46ch; }
.dk-app-perks { display: grid; gap: 8px; margin-top: 16px; }
.dk-app-perks li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.dk-app-perks .pb-ico { color: #FACC15; width: 16px; height: 16px; }
.dk-app-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.dk-app-store { display: inline-flex; align-items: center; gap: 10px; background: #000000; color: #FFFFFF; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 10px 16px; min-width: 170px; transition: transform .2s ease, background-color .2s ease; }
.dk-app-store:hover { transform: translateY(-2px); background: #111827; color: #FFFFFF; }
.dk-app-store-ico { width: 34px; height: 34px; border-radius: 10px; background: #FACC15; color: #0F2A5C; display: grid; place-items: center; }
.dk-app-store-ico .pb-ico { width: 18px; height: 18px; }
.dk-app-store small { display: block; font-size: 11px; opacity: .85; line-height: 1.1; }
.dk-app-store b { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; }
.dk-app-qr { display: grid; justify-items: center; gap: 6px; background: #FFFFFF; color: #0F2A5C; border-radius: 18px; padding: 20px; width: fit-content; justify-self: center; box-shadow: 0 24px 40px -18px rgba(0,0,0,.4); }
.dk-app-qr-box { background: #FFFFFF; border-radius: 12px; line-height: 0; }
.dk-app-qr-box svg { width: 150px; height: 150px; }
.dk-app-qr b { font-size: 15px; font-weight: 900; margin-top: 4px; }
.dk-app-qr small { font-size: 12px; color: #5A6B85; }
@media (min-width: 768px) {
    .dk-app-inner { grid-template-columns: minmax(0, 1fr) 260px; padding: 48px 52px; }
}

/* Categories: Daraz-style bordered grid of tiles */
.dk-catgrid-wrap { background: #FFFFFF; border: 1px solid #E8EDF3; border-radius: 6px; padding: 18px 0 0; }
.dk-catgrid-head { display: flex; justify-content: space-between; align-items: center; padding: 0 18px 12px; }
.dk-catgrid-head h2 { font-size: 20px; font-weight: 700; color: #222; margin: 0; }
.dk-catgrid-all { font-size: 13px; color: var(--primary); font-weight: 600; }
.dk-catgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-top: 1px solid #E8EDF3; }
.dk-catgrid li { border-right: 1px solid #E8EDF3; border-bottom: 1px solid #E8EDF3; }
.dk-catgrid li:nth-child(3n) { border-right: 0; }
.dk-cg-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; height: 100%; padding: 18px 10px 16px; text-align: center; color: #222; background: #FFFFFF; transition: box-shadow .2s ease; }
.dk-cg-item:hover { box-shadow: inset 0 0 0 2px var(--primary); color: #222; }
.dk-cg-img { width: 100px; height: 100px; display: grid; place-items: center; }
.dk-cg-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dk-cg-img i { font-size: 44px; color: #9AA5B5; }
.dk-cg-name { font-size: 14px; line-height: 1.3; min-height: 36px; font-weight: 500; }
@media (min-width: 640px) { .dk-catgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dk-catgrid li:nth-child(3n) { border-right: 1px solid #E8EDF3; } .dk-catgrid li:nth-child(4n) { border-right: 0; } }
@media (min-width: 992px) { .dk-catgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .dk-catgrid li:nth-child(4n) { border-right: 1px solid #E8EDF3; } .dk-catgrid li:nth-child(6n) { border-right: 0; } }
@media (min-width: 1200px) { .dk-catgrid { grid-template-columns: repeat(8, minmax(0, 1fr)); } .dk-catgrid li:nth-child(6n) { border-right: 1px solid #E8EDF3; } .dk-catgrid li:nth-child(8n) { border-right: 0; } }

/* Category grid motion: staggered fade-up on load, image zoom and lift on hover */
@keyframes dk-cg-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dk-catgrid li { animation: dk-cg-up .5s cubic-bezier(.2,.7,.3,1) both; }
.dk-catgrid li:nth-child(1) { animation-delay: .02s; }
.dk-catgrid li:nth-child(2) { animation-delay: .06s; }
.dk-catgrid li:nth-child(3) { animation-delay: .10s; }
.dk-catgrid li:nth-child(4) { animation-delay: .14s; }
.dk-catgrid li:nth-child(5) { animation-delay: .18s; }
.dk-catgrid li:nth-child(6) { animation-delay: .22s; }
.dk-catgrid li:nth-child(7) { animation-delay: .26s; }
.dk-catgrid li:nth-child(8) { animation-delay: .30s; }
.dk-catgrid li:nth-child(n+9) { animation-delay: .34s; }
.dk-cg-item { transition: box-shadow .25s ease, transform .25s ease; }
.dk-cg-item:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -18px rgba(15,42,92,.5); }
.dk-cg-img { transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.dk-cg-item:hover .dk-cg-img { transform: scale(1.08); }
.dk-cg-item:hover .dk-cg-name { color: var(--primary); }
.dk-cg-name { transition: color .2s ease; }
.dk-catgrid-all { position: relative; }
.dk-catgrid-all::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.dk-catgrid-all:hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
    .dk-catgrid li, .dk-cg-item, .dk-cg-img, .dk-cg-name, .dk-catgrid-all::after { animation: none !important; transition: none !important; }
}
