/* ============================================================
   Diilzo Storefront — Home page
   ============================================================ */

.dz-home-body {
    background: #f5f5f5;
}

/* Top utility strip */
.dz-home-topbar {
    background: var(--diilzo-dark);
    color: #ccc;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dz-home-topbar-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 32px;
}

.dz-home-topbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #aaa;
}

.dz-home-topbar-left i {
    color: var(--diilzo-primary);
    font-size: 12px;
}

.dz-home-topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.dz-home-topbar-right a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dz-home-topbar-right a:hover {
    color: #fff;
}

.dz-home-topbar-right a i {
    font-size: 11px;
}

/* Main header */
.dz-home-header {
    background: #fff;
    border-bottom: 1px solid var(--diilzo-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.dz-home-header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    max-width: 1600px;
    margin: 0 auto;
    height: 64px;
}

.dz-home-hamburger {
    display: none;
    background: #f5f5f5;
    border: 1px solid var(--diilzo-border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 18px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.dz-home-hamburger:hover {
    background: #eee;
}

/* Logo — image-based */
.dz-home-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.dz-home-logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.dz-home-logo-subtitle {
    font-size: 9px;
    font-weight: 700;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1px;
}

/* Pill search */
.dz-home-search {
    flex: 1;
    max-width: 640px;
    display: flex;
    height: 42px;
    border-radius: 22px;
    overflow: visible;
    background: #f5f5f5;
    border: 2px solid var(--diilzo-border);
    margin: 0 auto;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.dz-home-search:focus-within {
    background: #fff;
    border-color: var(--diilzo-primary);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.dz-home-search input {
    flex: 1;
    border: none;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: #333;
}

.dz-home-search-btn {
    background: #16a34a;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    transition: opacity 0.2s;
    border-radius: 0 22px 22px 0;
}

.dz-home-search-btn:hover {
    background: #15803d;
    opacity: 1;
}

/* Search category selector pill */
.dz-home-search-cat {
    position: relative;
    border: none;
    background: transparent;
    border-right: 1px solid #e0e0e0;
    padding: 0 12px;
    font-size: 13px;
    color: #555;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    min-width: 130px;
    max-width: 170px;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    transition: background 0.15s;
    border-radius: 20px 0 0 20px;
}

.dz-home-search-cat:hover {
    background: #f0f0f0;
}

.dz-home-search-cat-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #444;
}

.dz-home-search-cat-caret {
    font-size: 10px;
    color: #888;
    flex-shrink: 0;
}

/* Full-width category mega-menu dropdown */
.dz-home-cat-dropdown {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.dz-home-cat-dropdown::-webkit-scrollbar {
    width: 8px;
}

.dz-home-cat-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.dz-home-cat-dropdown.dz-home-cat-dropdown-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dz-home-cat-dropdown-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.dz-home-cat-dropdown-header {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}

.dz-home-cat-dropdown-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dz-home-cat-dropdown-header-left i {
    color: var(--diilzo-primary);
    font-size: 14px;
}

.dz-home-cat-dropdown-header-all {
    font-size: 12px;
    color: var(--diilzo-primary);
    font-weight: 600;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 106, 0, 0.3);
    transition: background 0.15s;
}

.dz-home-cat-dropdown-header-all:hover {
    background: #EDE9FE;
}

/* Mega-menu body: 4-column grid */
.dz-home-cat-mega {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 12px 16px;
    align-items: start;
}

/* Parent column */
.dz-home-cat-col {
    padding: 6px 12px 12px;
    border-right: 1px solid #f0f0f0;
}

.dz-home-cat-col:last-child {
    border-right: none;
}

.dz-home-cat-col-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
    text-decoration: none;
    transition: background 0.15s;
    background: #fafafa;
}

.dz-home-cat-col-head:hover {
    background: #EDE9FE;
}

.dz-home-cat-col-img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    background: #f5f5f5;
    flex-shrink: 0;
}

.dz-home-cat-col-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--diilzo-primary);
    font-size: 12px;
    flex-shrink: 0;
}

.dz-home-cat-col-name {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
    flex: 1;
}

.dz-home-cat-col-head:hover .dz-home-cat-col-name {
    color: var(--diilzo-primary);
}

/* Child group */
.dz-home-cat-child {
    margin-bottom: 3px;
}

.dz-home-cat-child-head {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 5px;
    transition: background 0.15s, color 0.15s;
}

.dz-home-cat-child-head:hover {
    background: #f5f5f5;
    color: var(--diilzo-primary);
}

.dz-home-cat-child-img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
    background: #f5f5f5;
    flex-shrink: 0;
}

.dz-home-cat-child-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--diilzo-primary);
    font-size: 8px;
    flex-shrink: 0;
}

.dz-home-cat-child-name {
    flex: 1;
}

/* Grandchild links — inline, comma-separated */
.dz-home-cat-gc-list {
    padding: 1px 6px 4px 29px;
    font-size: 11px;
    color: #aaa;
    line-height: 1.5;
}

.dz-home-cat-gc {
    display: inline;
    font-size: 11px;
    color: #999;
    text-decoration: none;
    transition: color 0.15s;
}

.dz-home-cat-gc-img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    border-radius: 3px;
    object-fit: cover;
    vertical-align: middle;
}

.dz-home-cat-gc-icon {
    margin-right: 4px;
    color: var(--diilzo-primary);
    font-size: 10px;
}

.dz-home-cat-gc:hover {
    color: var(--diilzo-primary);
}

.dz-home-cat-gc::after {
    content: ", ";
    color: #ccc;
}

.dz-home-cat-gc:last-child::after {
    content: "";
}

/* Empty state */
.dz-home-cat-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* Header right */
.dz-home-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Auth buttons (guest) */
.dz-home-auth-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--diilzo-border);
    transition: background 0.15s, border-color 0.15s;
}

.dz-home-auth-btn:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

.dz-home-auth-primary {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.dz-home-auth-primary:hover {
    background: #15803d;
    border-color: #15803d;
}

/* User trigger */
.dz-home-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.15s;
}

.dz-home-user-trigger:hover {
    background: #f5f5f5;
}

.dz-home-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--diilzo-border);
    flex-shrink: 0;
}

.dz-home-avatar-fallback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--diilzo-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.dz-home-user-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.dz-home-user-text small {
    font-size: 10px;
    color: #999;
    font-weight: 700;
}

.dz-home-user-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.dz-home-caret {
    font-size: 10px;
    opacity: 0.5;
}

.dz-home-cart {
    position: relative;
    font-size: 22px;
    color: #333;
    transition: color 0.15s;
    text-decoration: none;
}

.dz-home-cart:hover {
    color: var(--diilzo-primary);
}

.dz-home-cart .dz-home-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
}

/* Category nav bar */
.dz-home-nav-wrap {
    background: linear-gradient(to right, var(--diilzo-primary), var(--diilzo-accent));
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.18);
    position: relative;
}

.dz-home-nav-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 60%);
    pointer-events: none;
}

.dz-home-catbar-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.dz-home-nav {
    display: flex;
    gap: 2px;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.dz-home-nav::-webkit-scrollbar {
    display: none;
}

.dz-home-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 16px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    opacity: 0.92;
    transition: opacity 0.15s, border-color 0.15s, background 0.15s;
}

.dz-home-nav a:hover {
    opacity: 1;
    border-bottom-color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.dz-home-nav a i {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.dz-home-nav a:hover i {
    color: #fff;
}

.dz-home-nav-cat-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dz-home-nav-close {
    display: none;
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

/* Main container */
.dz-home-main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 16px 20px;
}

/* Hero: category sidebar + carousel + corner sliders — compact fixed height */
.dz-home-hero {
    display: grid;
    grid-template-columns: 220px 1fr 240px;
    gap: 12px;
    margin-bottom: 28px;
    position: relative;
    z-index: 20;
    align-items: stretch;
    height: 340px;
}

.dz-home-hero > * {
    min-height: 0;
    min-width: 0;
}

/* -- Modern category sidebar ----------------------------------- */
.dz-cat-sidebar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 0;
}



.dz-cat-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 10px 10px 0 0;
}

.dz-cat-sidebar-title i {
    font-size: 14px;
}

.dz-cat-list {
    padding: 4px 0;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: #d8d8d8 transparent;
}

.dz-cat-list::-webkit-scrollbar {
    width: 4px;
}

.dz-cat-list::-webkit-scrollbar-track {
    background: transparent;
}

.dz-cat-list::-webkit-scrollbar-thumb {
    background: #d8d8d8;
    border-radius: 4px;
}

.dz-cat-list::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.dz-cat-row {
    position: relative;
}

.dz-cat-row-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.dz-cat-row-link:hover {
    background: #F5F3FF;
    color: var(--diilzo-primary);
    border-left-color: var(--diilzo-primary);
}

.dz-cat-row-thumb {
    width: 26px;
    height: 26px;
    object-fit: cover;
    border-radius: 4px;
    flex: 0 0 26px;
}

.dz-cat-row-icon {
    font-size: 13px;
    color: #999;
    width: 16px;
    text-align: center;
}

.dz-cat-row-link:hover .dz-cat-row-icon {
    color: var(--diilzo-primary);
}

.dz-cat-row-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dz-cat-row-arrow {
    font-size: 10px;
    color: #ccc;
}

/* -- Mega panel -- simple CSS dropdown right next to parent ------ */
.dz-cat-panel {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    width: 760px;
    max-width: calc(100vw - 250px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 16px;
    /* JS drives open/close via .dz-cat-open; short fade for smoothness */
    transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}

.dz-cat-row.dz-cat-open>.dz-cat-panel {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.15s ease, visibility 0s linear 0s;
}

.dz-cat-panel-inner {
    width: 100%;
}

.dz-cat-panel-header {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--diilzo-primary);
}

.dz-cat-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.dz-cat-panel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    text-align: center;
    transition: background 0.15s, transform 0.15s;
}

.dz-cat-panel-item:hover {
    background: #F5F3FF;
    transform: translateY(-2px);
}

.dz-cat-panel-img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.dz-cat-panel-icon-fb {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--diilzo-primary), var(--diilzo-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.dz-cat-panel-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    color: #555;
    word-break: break-word;
}

/* Responsive */
@media (max-width: 1024px) {
    .dz-cat-panel {
        width: 680px;
        max-width: calc(100vw - 250px);
    }
}

@media (max-width: 768px) {
    .dz-cat-sidebar {
        display: none;
    }
}

/* Carousel */
.dz-home-carousel {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    background: #e8e8e8;
}

.dz-home-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.dz-home-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.dz-home-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.95);
    transform: scale(1.15);
    z-index: 0;
}

.dz-home-carousel-slide--no-link {
    pointer-events: none;
}

.dz-home-carousel-slide img {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 1;
    display: block;
}

.dz-home-carousel-slide .dz-home-slide-overlay {
    position: relative;
    flex: 0 0 68px;
    background: #fff;
    border-top: 1px solid #EDE9FE;
    padding: 10px 18px;
    color: var(--diilzo-text, #1E1B4B);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dz-home-slide-overlay .dz-home-slide-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dz-home-slide-overlay.dz-slide-text-center .dz-home-slide-text {
    align-items: center;
    text-align: center;
}

.dz-home-slide-overlay.dz-slide-text-right .dz-home-slide-text {
    align-items: flex-end;
    text-align: right;
}

.dz-home-slide-overlay.dz-slide-text-left .dz-home-slide-text {
    align-items: flex-start;
}

.dz-home-slide-overlay h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dz-home-slide-overlay p {
    font-size: 12px;
    color: #555;
    opacity: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dz-home-slide-btn {
    flex: 0 0 auto;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.dz-home-slide-btn:hover {
    opacity: 0.85;
}

.dz-slide-btn-primary {
    background: var(--diilzo-primary);
    color: #fff;
}

.dz-slide-btn-light {
    background: var(--diilzo-primary);
    color: #fff;
}

.dz-slide-btn-dark {
    background: #111;
    color: #fff;
}

.dz-home-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.dz-home-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.dz-home-carousel-prev {
    left: 12px;
}

.dz-home-carousel-next {
    right: 12px;
}

.dz-home-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dz-home-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.dz-home-carousel-dot.dz-home-active {
    background: #fff;
}

/* Corner mini-sliders — rotating product promos in the hero's right rail */
.dz-home-corner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.dz-corner-slider {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.dz-corner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.dz-corner-head i {
    color: var(--diilzo-primary);
    margin-right: 4px;
}

.dz-corner-head a {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-decoration: none;
}

.dz-corner-head a:hover {
    color: var(--diilzo-primary);
}

.dz-corner-viewport {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.dz-corner-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s ease;
}

.dz-corner-slide {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 10px;
    text-align: center;
    text-decoration: none;
}

.dz-corner-slide img {
    width: 100%;
    height: 56px;
    object-fit: contain;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.dz-corner-noimg {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #ddd;
    flex-shrink: 0;
}

.dz-corner-slide h3 {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    flex-shrink: 0;
}

.dz-corner-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--diilzo-primary);
}

.dz-corner-dots {
    display: flex;
    gap: 4px;
    justify-content: center;
    padding: 3px 0 4px;
}

.dz-corner-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
}

.dz-corner-dot.dz-corner-dot-on {
    background: var(--diilzo-primary);
}

/* Featured Categories — tab bar + product panels */
.dz-home-tabs-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.dz-home-tabs-bar::-webkit-scrollbar {
    display: none;
}

.dz-home-tab {
    flex: 0 0 auto;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #f6f6f6;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.dz-home-tab:hover {
    background: #fdeadb;
    color: var(--diilzo-primary);
}

.dz-home-tab-on,
.dz-home-tab-on:hover {
    background: var(--diilzo-primary);
    color: #fff;
}

.dz-home-tab-panel {
    display: none;
}

.dz-home-tab-panel-on {
    display: block;
}

.dz-home-tab-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.dz-home-tab-grid .dz-home-product-card {
    width: auto;
}

.dz-home-tab-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    text-decoration: none;
    text-align: center;
    border: 1px dashed #e8c9a8;
    border-radius: 10px;
    background: #fff8f1;
    color: var(--diilzo-primary);
    transition: border-color 0.15s, background 0.15s;
}

.dz-home-tab-more:hover {
    border-color: var(--diilzo-primary);
    background: #fff3e6;
}

.dz-home-tab-more i {
    font-size: 20px;
}

.dz-home-tab-more span {
    font-size: 12px;
    font-weight: 700;
}

.dz-home-tab-more small {
    font-size: 11px;
    color: #999;
}

/* Section title */
.dz-home-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dz-home-section-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.dz-home-section-title a {
    font-size: 13px;
    color: var(--diilzo-primary);
    text-decoration: none;
}

.dz-home-section-title a:hover {
    text-decoration: underline;
}

.dz-home-deals-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dz-home-deals-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--diilzo-primary);
}

.dz-home-deals-timer {
    display: flex;
    gap: 4px;
    align-items: center;
}

.dz-home-deals-timer span {
    background: #222;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 32px;
    text-align: center;
}

.dz-home-deals-timer .dz-home-timer-sep {
    background: none;
    padding: 0;
    min-width: auto;
}

/* ── Deal of the Day / Flash Sale ──────────────────────────────── */
.dz-home-deals {
    background: linear-gradient(135deg, #fff4ec 0%, #ffffff 55%);
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 24px;
    border: 1px solid #ffe8d4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dz-home-deals-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.dz-home-deals-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--diilzo-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dz-home-deals-header h2 i {
    color: #DC2626;
}

.dz-home-deals-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #1E1B4B;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dz-home-timer-sep {
    color: #7C3AED;
}

.dz-home-deals-viewall {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--diilzo-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

.dz-home-deals-viewall:hover {
    color: #6D28D9;
}

.dz-home-deals-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dz-home-deals-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 1;
    padding: 4px 0;
}

.dz-home-deals-track::-webkit-scrollbar {
    display: none;
}

.dz-home-deal-card {
    flex-shrink: 0;
    width: calc((100% - 60px) / 6); /* 6 cards, 5 x 12px gaps */
    background: #fff;
    border: 1px solid #f4f4f4;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.15s;
}

.dz-home-deal-card:hover {
    box-shadow: 0 8px 20px rgba(255, 106, 0, 0.12);
    transform: translateY(-3px);
    border-color: #ffd9b3;
}

.dz-home-deal-img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
}

.dz-home-deal-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.4s;
}

.dz-home-deal-card:hover .dz-home-deal-img img {
    transform: scale(1.1);
}

.dz-home-deal-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ddd;
}

.dz-home-deal-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(90deg, #ff6a00, #ff3d3d);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(255, 61, 61, 0.3);
}

.dz-home-deal-body {
    padding: 10px 12px;
}

.dz-home-deal-body h4 {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 34px;
}

.dz-home-deal-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.dz-home-deal-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--diilzo-primary);
}

.dz-home-deal-orig {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.dz-home-deal-store {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Flash-deal extras: claimed-stock bar + featured pin */
.dz-home-deal-feat {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.4);
}

.dz-home-deal-stockbar {
    height: 5px;
    border-radius: 3px;
    background: #fde8e8;
    overflow: hidden;
    margin: 6px 0 3px;
}

.dz-home-deal-stockbar > span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #ff6a00, #ff3d3d);
}

.dz-home-deal-claimed {
    font-size: 10.5px;
    font-weight: 600;
    color: #e03a3a;
    margin-bottom: 4px;
    display: block;
}

/* Today's Deals — calmer variant of the flash shelf */
.dz-home-deals-today .dz-home-deals-header h2 i {
    color: #0ea5e9;
}

.dz-home-deals-today .dz-home-deal-price {
    color: #16a34a;
}

.dz-home-deals-today .dz-home-deal-stockbar > span {
    background: linear-gradient(90deg, #0ea5e9, #0284c7);
}

.dz-home-deals-today .dz-home-deal-claimed {
    color: #0284c7;
}

/* ── Section wrapper ───────────────────────────────────────────── */
.dz-home-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.dz-home-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dz-home-section-title h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--diilzo-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dz-home-section-title h2 i {
    color: var(--diilzo-primary);
}

.dz-home-section-title a {
    font-size: 14px;
    font-weight: 600;
    color: var(--diilzo-primary);
    text-decoration: none;
    transition: color 0.15s;
}

.dz-home-section-title a:hover {
    color: #6D28D9;
}

/* ── Horizontal product carousel ───────────────────────────────── */
.dz-home-products-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dz-home-products-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 1;
    padding: 4px 0;
}

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

/* Scroller arrows (shared) */
.dz-home-scroller {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
    z-index: 2;
}

.dz-home-scroller:hover {
    background: var(--diilzo-primary);
    color: #fff;
    border-color: var(--diilzo-primary);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

/* Product card (in carousel): fluid 6-up on desktop — dense marketplace look */
.dz-home-product-card {
    flex-shrink: 0;
    width: calc((100% - 70px) / 6); /* 6 cards, 5 x 14px gaps */
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.15s;
    position: relative;
    background: #fff;
}

.dz-home-product-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: var(--diilzo-primary);
}

.dz-home-product-img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
}

.dz-home-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.4s;
}

.dz-home-product-card:hover .dz-home-product-img img {
    transform: scale(1.08);
}

.dz-home-product-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: #ddd;
}

.dz-home-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dz-home-badge-sale {
    background: #DC2626;
    color: #fff;
}

.dz-home-badge-new {
    background: #DC2626;
    color: #fff;
}

.dz-home-badge-feat {
    background: #EA580C;
    color: #fff;
}

.dz-home-badge-rated {
    background: #1E1B4B;
    color: #F59E0B;
    display: flex;
    align-items: center;
    gap: 3px;
}

.dz-home-badge-again {
    background: #F59E0B;
    color: #1E1B4B;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: none;
    letter-spacing: 0;
}

.dz-home-badge-suggest {
    background: #fff;
    color: #555;
    border: 1px solid #e5e5e5;
    text-transform: none;
    letter-spacing: 0;
}

.dz-home-badge-2 {
    left: auto;
    right: 8px;
}

.dz-home-reorder-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding: 8px 0;
    border: 1.5px solid #16a34a;
    border-radius: 8px;
    background: #fff;
    color: #16a34a;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.dz-home-reorder-btn:hover {
    background: #16a34a;
    color: #fff;
}

.dz-home-reorder-btn.added {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.dz-home-reorder-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.dz-home-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.dz-home-product-title {
    display: block;
    text-decoration: none;
    color: inherit;
}

.dz-home-product-card-body {
    padding: 12px;
}

.dz-home-product-card-body h4 {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.dz-sold-by {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.dz-sold-by a {
    color: #16a34a;
    text-decoration: none;
}

.dz-sold-by a:hover {
    text-decoration: underline;
}

.dz-home-product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.dz-home-product-card-stars {
    color: var(--diilzo-star);
    font-size: 13px;
}

.dz-home-product-card-reviews {
    font-size: 12px;
    color: #888;
}

.dz-home-product-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.dz-home-product-card-price {
    font-size: 18px;
    font-weight: 800;
    color: #222;
}

.dz-home-product-card-orig {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.dz-home-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    min-height: 16px;
}

.dz-home-card-sold {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}

.dz-home-card-moq {
    font-size: 10px;
    font-weight: 700;
    color: var(--diilzo-primary);
    background: #fff1e8;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.dz-home-card-cond {
    font-size: 10px;
    font-weight: 700;
    color: #555;
    background: #f0f0f0;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ── Category grid ─────────────────────────────────────────────── */
.dz-home-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.dz-home-cat-card {
    text-decoration: none;
    color: inherit;
    text-align: center;
    padding: 16px 12px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    transition: background 0.2s, transform 0.15s, border-color 0.15s;
}

.dz-home-cat-card:hover {
    background: #EDE9FE;
    transform: translateY(-3px);
    border-color: var(--diilzo-primary);
}

.dz-home-cat-card .dz-home-cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 8px;
    background: #EDE9FE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--diilzo-primary);
    overflow: hidden;
}

.dz-home-cat-card .dz-home-cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dz-home-cat-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.dz-home-cat-count {
    font-size: 11px;
    color: #999;
}

/* ── Top Stores grid ───────────────────────────────────────────── */
.dz-home-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.dz-home-store-card {
    text-decoration: none;
    color: inherit;
    text-align: center;
    padding: 18px 12px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.15s;
}

.dz-home-store-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
    border-color: var(--diilzo-primary);
}

.dz-home-store-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin: 0 auto 10px;
    background: #EDE9FE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--diilzo-primary);
    overflow: hidden;
}

.dz-home-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dz-home-store-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.dz-home-store-products {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.dz-home-store-rating {
    font-size: 13px;
    color: #F59E0B;
    font-weight: 600;
}

.dz-home-store-rating i {
    font-size: 12px;
}

/* ── Brands grid ───────────────────────────────────────────────── */
.dz-home-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.dz-home-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, transform 0.15s, border-color 0.15s;
}

.dz-home-brand-card:hover {
    background: #EDE9FE;
    transform: translateY(-2px);
    border-color: var(--diilzo-primary);
}

.dz-home-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.dz-home-brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 4px;
}

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

.dz-home-brand-logo-fallback {
    background: #EDE9FE;
    color: var(--diilzo-primary);
    font-size: 22px;
}

/* ── Supplier Banner ──────────────────────────────────────────── */
.dz-home-supplier-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    border-radius: 14px;
    padding: 32px 36px;
    margin-bottom: 24px;
    color: #fff;
    flex-wrap: wrap;
    overflow: hidden;
    position: relative;
}

.dz-home-supplier-banner-content {
    flex: 1;
    min-width: 280px;
    z-index: 1;
}

.dz-home-supplier-banner-content h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dz-home-supplier-banner-content h2 i {
    color: #F59E0B;
}

.dz-home-supplier-banner-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 14px;
    line-height: 1.5;
    max-width: 500px;
}

.dz-home-supplier-banner-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.dz-home-supplier-banner-features span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 4px;
}

.dz-home-supplier-banner-features i {
    color: #16a34a;
}

.dz-home-supplier-banner-btn {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1;
    gap: 8px;
    background: var(--diilzo-primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.15s, box-shadow 0.15s;
}

.dz-home-supplier-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}

.dz-home-supplier-banner-visual {
    font-size: 100px;
    color: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* ── Become a Seller CTA ───────────────────────────────────────── */
.dz-home-seller-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    border-radius: 14px;
    padding: 32px 36px;
    margin-bottom: 24px;
    color: #fff;
    flex-wrap: wrap;
}

.dz-home-seller-cta-content {
    flex: 1;
    min-width: 280px;
}

.dz-home-seller-cta-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dz-home-seller-cta-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px;
    line-height: 1.5;
    max-width: 500px;
}

.dz-home-seller-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--diilzo-primary);
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.15s, box-shadow 0.15s;
}

.dz-home-seller-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.dz-home-seller-cta-stats {
    display: flex;
    gap: 32px;
    flex-shrink: 0;
}

.dz-home-seller-stat {
    text-align: center;
}

.dz-home-seller-stat-num {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.dz-home-seller-stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

/* ── Browsing History Also Viewed (empty state) ────────────────── */
.dz-home-empty-history {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.dz-home-empty-history i {
    font-size: 40px;
    color: #ddd;
    margin-bottom: 12px;
}

.dz-home-empty-history p {
    font-size: 14px;
    margin-bottom: 16px;
}

.dz-home-empty-history-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--diilzo-primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
}

.dz-home-empty-history-btn:hover {
    background: #6D28D9;
}

/* ── Claimable Voucher Banner ──────────────────────────────────── */
.dz-home-vouchers {
    margin: 16px 0;
    overflow: hidden;
}

.dz-home-vouchers-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
    scroll-snap-type: x mandatory;
}

.dz-home-voucher-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--diilzo-primary), #4C1D95);
    color: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    min-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dz-home-voucher-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.dz-home-voucher-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dz-home-voucher-code {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.dz-home-voucher-desc {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.95;
}

.dz-home-voucher-min {
    font-size: 11px;
    opacity: 0.8;
}

/* ── Dual Promo Banner Tiles ───────────────────────────────────── */
.dz-home-dual-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.dz-home-dual-tile {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dz-home-dual-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.dz-home-dual-tile:hover img {
    transform: scale(1.03);
}

.dz-home-dual-tile-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

.dz-home-dual-tile-fallback span {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

@media (max-width: 600px) {
    .dz-home-dual-tiles {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .dz-home-hero {
        grid-template-columns: 220px 1fr;
        grid-template-rows: 300px auto;
        height: auto;
    }

    .dz-home-corner {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .dz-corner-slider {
        min-height: 160px;
    }

    .dz-home-tab-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .dz-home-topbar {
        display: none;
    }

    .dz-home-header-top {
        gap: 12px;
        padding: 0 16px;
        height: 56px;
    }

    .dz-home-logo-img {
        height: 26px;
    }

    .dz-home-search {
        max-width: 100%;
    }

    .dz-home-header-right {
        gap: 10px;
    }

    /* Cart moves toward the middle; profile/auth icon stays at the edge */
    .dz-home-cart {
        order: -1;
    }

    .dz-home-user-text {
        display: none;
    }

    .dz-home-caret {
        display: none;
    }

    .dz-home-auth-btn span {
        display: none;
    }

    .dz-home-auth-btn {
        padding: 8px 10px;
    }

    .dz-home-hamburger {
        display: flex;
    }

    .dz-home-header-top {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 16px;
        gap: 10px;
    }

    .dz-home-search {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .dz-home-catbar-inner {
        padding: 0;
    }

    .dz-home-nav {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 60px 0 20px;
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        align-items: stretch;
        justify-content: flex-start;
    }

    .dz-home-nav.dz-home-nav-open {
        left: 0;
    }

    .dz-home-nav a {
        color: #333;
        opacity: 1;
        padding: 14px 24px;
        font-size: 15px;
        border-bottom: 1px solid #f5f5f5;
        border-radius: 0;
    }

    .dz-home-nav a:hover {
        color: var(--diilzo-primary);
        background: #EDE9FE;
        border-bottom-color: transparent;
    }

    .dz-home-nav a i {
        font-size: 15px;
        color: var(--diilzo-muted);
    }

    .dz-home-nav a:hover i {
        color: var(--diilzo-primary);
    }

    .dz-home-nav-cat-icon {
        border: 1px solid var(--diilzo-border);
    }

    .dz-home-nav-close {
        display: block;
        color: #333;
    }

    .dz-home-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
    }

    .dz-home-nav-overlay.dz-home-nav-open {
        display: block;
    }
}

/* Dense "Just for you" grid — many products, no scroll */
.dz-home-jfy-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.dz-home-jfy-grid .dz-home-product-card {
    width: auto;
}

@media (max-width: 1399px) {
    .dz-home-jfy-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1024px) {
    .dz-home-jfy-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .dz-home-jfy-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .dz-home-jfy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small laptop: 5 cards per row */
@media (max-width: 1399px) {
    .dz-home-product-card {
        width: calc((100% - 56px) / 5); /* 5 cards, 4 x 14px gaps */
    }

    .dz-home-deal-card {
        width: calc((100% - 48px) / 5); /* 5 cards, 4 x 12px gaps */
    }
}

/* Tablet: 4 cards per row */
@media (max-width: 1024px) {
    .dz-home-product-card {
        width: calc((100% - 42px) / 4); /* 4 cards, 3 x 14px gaps */
    }

    .dz-home-deal-card {
        width: calc((100% - 36px) / 4); /* 4 cards, 3 x 12px gaps */
    }
}

@media (max-width: 768px) {
    /* Tighter mobile layout — sections and cards get less padding */
    .dz-home-main {
        padding: 10px 12px;
    }

    .dz-home-hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 8px;
        margin-bottom: 12px;
    }

    .dz-home-carousel {
        height: auto;
    }

    .dz-home-carousel-slide img {
        flex: 0 0 auto;
        height: auto;
        max-height: 180px;
        object-fit: contain;
    }

    .dz-home-carousel-slide .dz-home-slide-overlay {
        flex: 0 0 56px;
        padding: 8px 12px;
    }

    .dz-home-corner {
        gap: 8px;
    }

    .dz-corner-slider {
        min-height: 150px;
    }

    .dz-home-tab-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .dz-home-tab {
        padding: 7px 14px;
        font-size: 12px;
    }

    .dz-home-section,
    .dz-home-deals {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .dz-home-seller-cta {
        padding: 18px;
        gap: 16px;
        margin-bottom: 12px;
    }

    .dz-home-seller-cta-content h2 {
        font-size: 20px;
    }

    .dz-home-section-title {
        margin-bottom: 10px;
    }

    .dz-home-section-title h2 {
        font-size: 17px;
    }

    .dz-home-products-track {
        gap: 8px;
    }

    /* Arrow scrollers are dead weight on touch — swiping works natively */
    .dz-home-scroller {
        display: none;
    }

    .dz-home-product-card-body {
        padding: 8px;
    }

    .dz-home-product-card-body h4 {
        font-size: 13px;
        min-height: 32px;
        margin-bottom: 4px;
    }

    .dz-home-cat-sidebar {
        display: none;
    }

    /* Mobile: ~2.4 cards visible — peeking edge invites sliding */
    .dz-home-product-card {
        width: calc((100% - 24px) / 2.4);
    }

    .dz-home-deal-card {
        width: calc((100% - 24px) / 2.4);
    }

    .dz-home-search-cat {
        min-width: 110px;
        max-width: 130px;
    }

    .dz-home-search-cat-label {
        font-size: 12px;
    }

    .dz-home-cat-mega {
        grid-template-columns: repeat(3, 1fr);
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .dz-home-main {
        padding: 8px 10px;
    }

    .dz-home-section {
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .dz-home-section-title h2 {
        font-size: 15px;
    }

    .dz-home-products-track {
        gap: 6px;
    }

    .dz-home-product-card {
        width: calc((100% - 6px) / 2); /* 2 cards, 1 x 6px gap */
    }

    .dz-home-tab-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .dz-home-product-card-body {
        padding: 6px 8px;
    }

    .dz-home-product-card-body h4 {
        font-size: 12px;
        min-height: 30px;
    }

    .dz-home-deal-card {
        width: calc((100% - 12px) / 2); /* 2 cards, 1 x 12px gap */
    }

    .dz-home-stores-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dz-home-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dz-home-seller-cta {
        padding: 20px;
    }

    .dz-home-seller-cta-content h2 {
        font-size: 20px;
    }

    .dz-home-seller-cta-stats {
        gap: 20px;
        width: 100%;
        justify-content: space-around;
    }

    .dz-home-logo-img {
        height: 22px;
    }

    /* Guest: single compact account icon (login) — Join Free stays hidden */
    .dz-home-auth-btn {
        display: flex;
        padding: 4px;
        border: none;
        font-size: 20px;
        color: #333;
    }

    .dz-home-auth-btn.dz-home-auth-primary {
        display: none;
    }

    .dz-home-header-right {
        gap: 10px;
    }

    .dz-home-search-cat {
        min-width: auto;
        padding: 0 8px;
    }

    .dz-home-search-cat-label {
        display: none;
    }

    .dz-home-cat-mega {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px 12px;
    }
}
.dz-home-voucher-claim {
    background: #fff;
    color: var(--diilzo-primary);
    border: none;
    border-radius: 14px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.dz-home-voucher-claim:hover { transform: translateY(-1px); }
.dz-home-voucher-claim:disabled { opacity: 0.7; cursor: default; }

.dz-home-voucher-claim.claimed {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.7);
}
