/* =====================================================
   DB DISTRO Hero Slider — Frontend CSS
   Pixel-perfect match to the dark B2B hero design
   ===================================================== */

/* v1.0 font import, no longer used (v1.1 uses the theme Poppins font)
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;900&family=Barlow:wght@400;500;600&display=swap');
*/

/* ── Wrapper ── */
.dbs-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    font-family: 'Barlow', sans-serif;
    user-select: none;
    /* Height tiers */
    height: 480px;
}

/* ── Single Slide ── */
.dbs-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1);
    will-change: opacity;
}

.dbs-slide.dbs-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* ── Dark overlay (left-heavy gradient) ── */
.dbs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10,12,10,0.92) 0%,
        rgba(10,12,10,0.78) 35%,
        rgba(10,12,10,0.30) 65%,
        rgba(10,12,10,0.05) 100%
    );
    z-index: 1;
}

/* ── Content Wrapper ── */
.dbs-content-wrap {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ── Left column ── */
.dbs-left {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Subtitle badge ── */
.dbs-subtitle {
    display: inline-block;
    background: #2e8b3a;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 5px 14px;
    border-radius: 3px;
    width: fit-content;
    text-transform: uppercase;
    /* Animate in */
    animation: dbsFadeUp 0.6s ease 0.1s both;
}

/* ── Title ── */
.dbs-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    animation: dbsFadeUp 0.6s ease 0.2s both;
}

.dbs-t1 {
    color: #ffffff;
    letter-spacing: 0.02em;
}

/* Green underlined second line */
.dbs-t2 {
    color: #2ecc52;
    text-decoration: underline;
    text-decoration-color: #2ecc52;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
    letter-spacing: 0.02em;
}

/* When Title Line 2 is wrapped as a link — inherit all styling from .dbs-t2 */
.dbs-t2-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.dbs-t2-link:hover,
.dbs-t2-link:focus {
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
}
.dbs-t2-link:hover .dbs-t2 {
    text-decoration-color: #2ecc52;
}

/* ── Description ── */
.dbs-desc {
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    animation: dbsFadeUp 0.6s ease 0.3s both;
}

/* ── Stars row ── */
.dbs-stars-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    animation: dbsFadeUp 0.6s ease 0.4s both;
    color: #ccc;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.5;
}

/* Inline star SVG icons */
.dbs-stars-row .dbs-star-icon {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-right: 1px;
}

.dbs-stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.dbs-stars svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dbs-star-label {
    color: #ccc;
    font-size: 0.9rem;
    font-style: italic;
}

/* ── Buttons ── */
.dbs-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    animation: dbsFadeUp 0.6s ease 0.5s both;
}

.dbs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 6px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.97rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* Green filled */
/*.dbs-btn-primary {*/
/*    background: #2e8b3a;*/
/*    color: #fff !important;*/
/*    border: 2px solid #2e8b3a;*/
/*}*/

/*.dbs-btn-primary:hover {*/
/*    background: #24722f;*/
/*    border-color: #24722f;*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 6px 20px rgba(46,139,58,0.4);*/
/*}*/

.dbs-btn-primary {
    background: linear-gradient(
        110deg,
        #008cff 0%,
        #00c6ff 35%,
        #0878ed 65%,
        #003fbd 100%
    ) !important;

    color: #fff !important;
    border: 1px solid #168bff !important;
    border-radius: 8px;
    padding: 16px 32px;
    font-weight: 600;
    box-shadow: 
        inset 0 1px 2px rgba(255,255,255,0.45),
        0 4px 12px rgba(0,100,255,0.25);

    transition: all 0.3s ease;
}

/* Hover */
.dbs-btn-primary:hover {
    background: linear-gradient(
        110deg,
        #0069d9 0%,
        #009fff 40%,
        #0054d6 100%
    ) !important;

    color: #fff !important;
    box-shadow: 0 6px 18px rgba(0,120,255,0.4);
    transform: translateY(-2px);
}

/* White outline */
.dbs-btn-outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid #ffffff;
}

.dbs-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ── Dots ── */
.dbs-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}

.dbs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.dbs-dot.dbs-dot-active,
.dbs-dot:hover {
    background: #2e8b3a;
    transform: scale(1.3);
}

/* ── Arrows ── */
.dbs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.dbs-arrow:hover {
    background: #2e8b3a;
    border-color: #2e8b3a;
}

.dbs-prev { left: 16px; }
.dbs-next { right: 16px; }

/* ── Slide-in animation ── */
@keyframes dbsFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Reset animation on non-active slides */
.dbs-slide:not(.dbs-active) .dbs-subtitle,
.dbs-slide:not(.dbs-active) .dbs-title,
.dbs-slide:not(.dbs-active) .dbs-desc,
.dbs-slide:not(.dbs-active) .dbs-stars-row,
.dbs-slide:not(.dbs-active) .dbs-buttons {
    animation: none;
    opacity: 0;
}

/* ── RESPONSIVE ── */

/* Tablet */
@media (max-width: 1024px) {
    .dbs-hero-slider { height: 420px; }
    .dbs-content-wrap { padding: 0 32px; }
    .dbs-left { max-width: 460px; }
}

/* Mobile large */
@media (max-width: 768px) {
    .dbs-hero-slider { height: auto; min-height: 520px; }

    .dbs-overlay {
        background: linear-gradient(
            to bottom,
            rgba(10,12,10,0.88) 0%,
            rgba(10,12,10,0.78) 60%,
            rgba(10,12,10,0.60) 100%
        );
    }

    .dbs-slide {
        background-position: center center;
    }

    .dbs-content-wrap {
        padding: 40px 20px;
        align-items: end;
        padding-top: 60px;
    }

    .dbs-left { max-width: 100%; gap: 12px; }

    .dbs-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .dbs-desc  { font-size: 0.93rem; }
    
    
    	.dbd-logo{
		width: 40%;
	}
    .dbd-header__inner {
        display: flex !important;
        flex-wrap: wrap !important; /* Isse content 2nd line par ja sakega */
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px !important;
    }

    /* Logo ko pehle number par rakha */
    .dbd-logo {
        order: 1 !important;
        flex: 0 0 auto !important;
    }

    /* Actions (Cart, Account, Menu) ko dusre number par (Right side) rakha */
    .dbd-header__actions {
        order: 2 !important;
        flex: 0 0 auto !important;
        display: flex !important;
        gap: 10px !important;
    }

    /* Search bar ko 3rd order de kar full width kar diya (Ye automatically 2nd row mein chala jayega) */
    .dbd-search {
        order: 3 !important;
        flex: 0 0 100% !important; /* Full width for 2nd row */
        margin-top: 15px !important; /* Thoda gap 1st row se */
    }

    /* Search input ko behtar dikhane ke liye */
    .tx-search-bar {
        width: 100% !important;
        display: flex !important;
    }

    .header-search {
        width: 100% !important;
    }
    
    .dbt-card{
    min-width: 100%  !important;
        width: 100% !important;
    }
        .dbt-right {
        justify-content: center !important;
    }
}

/* Mobile small */
@media (max-width: 480px) {
    .dbs-hero-slider { min-height: 480px; }
    .dbs-content-wrap { padding: 40px 16px; }
    .dbs-btn { padding: 11px 20px; font-size: 0.9rem; }
    .dbs-arrow { display: none; }
}

/* =====================================================
   v1.1 - new design (blue theme), right image, stats
   Colors and font follow the theme variables when present.
   ===================================================== */
.dbs-hero-slider {
    --dbs-accent: var(--d2-blue, #0a84ff);
    --dbs-accent-dark: var(--d2-blue-dark, #0670d8);
    --dbs-t2-color: #fff;
    --dbs-font: var(--d2-font, "Poppins", system-ui, sans-serif);
    height: 560px;
    background: #000;
    font-family: var(--dbs-font);
}

.dbs-subtitle,
.dbs-title,
.dbs-btn {
    font-family: var(--dbs-font);
}

.dbs-subtitle {
    background: var(--dbs-accent);
    border-radius: 4px;
}

.dbs-title {
    font-size: clamp(32px, 3.7vw, 52px);
    font-weight: 700;
    line-height: 1.1;
}

.dbs-t1,
.dbs-t2 {
    letter-spacing: 0;
}

.dbs-t2 {
    color: var(--dbs-t2-color);
    text-decoration: none;
}

.dbs-desc {
    max-width: 330px;
    color: #d6d6d6;
    font-size: 13px;
}

.dbs-btn {
    padding: 11px 20px;
    border-width: 1px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
}

.dbs-btn-primary {
    background: var(--dbs-accent);
    border-color: var(--dbs-accent);
}

.dbs-btn-primary:hover {
    background: var(--dbs-accent-dark);
    border-color: var(--dbs-accent-dark);
    box-shadow: none;
}

.dbs-btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
}

.dbs-btn-outline:hover {
    background: #fff;
    color: #111 !important;
}

/* Left copy + right image */
.dbs-content-wrap {
    box-sizing: border-box;
    justify-content: space-between;
    gap: 32px;
}

.dbs-left {
    flex: 1 1 auto;
}

.dbs-right {
    flex: 0 0 46%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-block: 28px;
}

.dbs-right-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    animation: dbsFadeUp 0.8s ease 0.3s both;
}

/* Stats row */
.dbs-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(24px, 4vw, 56px);
    margin-top: 10px;
    animation: dbsFadeUp 0.6s ease 0.6s both;
}

.dbs-stat-value {
    display: block;
    color: #fff;
    font-size: clamp(28px, 2.9vw, 40px);
    font-weight: 600;
    line-height: 1.1;
}

.dbs-stat-label {
    display: block;
    margin-top: 4px;
    color: #bdbdbd;
    font-size: 11px;
}

.dbs-slide:not(.dbs-active) .dbs-stats,
.dbs-slide:not(.dbs-active) .dbs-right-img {
    animation: none;
    opacity: 0;
}

/* Controls */
.dbs-dot.dbs-dot-active,
.dbs-dot:hover {
    background: var(--dbs-accent);
}

.dbs-arrow {
    top: auto;
    bottom: 14px;
    width: 40px;
    height: 40px;
    transform: none;
}

.dbs-arrow:hover {
    background: var(--dbs-accent);
    border-color: var(--dbs-accent);
}

.dbs-prev { left: auto; right: 74px; }
.dbs-next { right: 24px; }

@media (max-width: 1024px) {
    .dbs-hero-slider { height: 500px; }
    .dbs-right { flex-basis: 42%; }
    .dbs-right-img { max-height: 420px; }
}

@media (max-width: 768px) {
    .dbs-hero-slider { height: auto; min-height: 660px; }
    .dbs-content-wrap { padding-bottom: 60px; }
    .dbs-right { display: none; }
    .dbs-arrow { display: none; }
}

@media (max-width: 480px) {
    .dbs-hero-slider { min-height: 640px; }
}

/* =====================================================
   v1.1.1 - spacing match with the HTML design.
   The theme sets its own line-height / font-size on h2, p and a,
   so the values are pinned here (scoped to the slider only).
   ===================================================== */
.dbs-hero-slider { height: 520px; }

/* same left edge as the header logo */
.dbs-hero-slider .dbs-content-wrap {
    width: min(var(--d2-container, 1340px), 100% - var(--d2-gutter, 50px) * 2);
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
}

.dbs-hero-slider .dbs-title {
    font-size: clamp(32px, 3.7vw, 52px) !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
}
.dbs-hero-slider .dbs-t1,
.dbs-hero-slider .dbs-t2 {
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
}

.dbs-hero-slider .dbs-desc {
    max-width: 330px;
    margin: 6px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.dbs-hero-slider .dbs-buttons { margin-top: 10px; gap: 10px; }
.dbs-hero-slider .dbs-btn {
    font-size: 13px !important;
    line-height: 1.4 !important;
    padding: 11px 20px !important;
    margin: 0 !important;
}

.dbs-hero-slider .dbs-stats { margin-top: 18px; }
.dbs-hero-slider .dbs-stat-value { font-size: clamp(28px, 2.9vw, 40px) !important; line-height: 1.1 !important; margin: 0 !important; }
.dbs-hero-slider .dbs-stat-label { font-size: 11px !important; line-height: 1.5 !important; margin: 4px 0 0 !important; }

@media (max-width: 1024px) {
    .dbs-hero-slider { height: 480px; }
}
@media (max-width: 768px) {
    .dbs-hero-slider { height: auto; }
    .dbs-hero-slider .dbs-content-wrap { width: calc(100% - 40px); padding-block: 40px 60px; }
}

/* v1.1.2: hero image sits on the right and fades into black on the left (matches design) */
.dbs-hero-slider .dbs-slide { background-position: right center; }
@media (min-width: 769px) {
    .dbs-hero-slider .dbs-overlay {
        background: linear-gradient(
            to right,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,0.96) 38%,
            rgba(0,0,0,0.55) 54%,
            rgba(0,0,0,0.12) 74%,
            rgba(0,0,0,0) 100%
        );
    }
}

/* v1.1.3: hero grows with its text (no fixed height), so text never touches the top/bottom edge when zoomed */
.dbs-hero-slider { display: grid; height: auto !important; min-height: 520px; }
.dbs-hero-slider .dbs-slide { position: relative; inset: auto; grid-area: 1 / 1; height: auto; min-height: 100%; }
.dbs-hero-slider .dbs-content-wrap { height: auto; padding-block: 56px; }
@media (min-width: 769px) {
    .dbs-hero-slider .dbs-content-wrap { align-items: center; }
}
@media (max-width: 1024px) { .dbs-hero-slider { min-height: 480px; } }
@media (max-width: 768px)  { .dbs-hero-slider { min-height: 520px; } }
@media (max-width: 480px)  { .dbs-hero-slider { min-height: 480px; } }

/* Mobile hero: centred text, stats in one row, smaller type */
@media (max-width: 768px) {
    .dbs-hero-slider .dbs-left { align-items: center; text-align: center; }
    .dbs-hero-slider .dbs-title { font-size: clamp(26px, 8vw, 34px) !important; justify-content: center; }
    .dbs-hero-slider .dbs-title span,
    .dbs-hero-slider .dbs-t2-link { text-align: center; }
    .dbs-hero-slider .dbs-subtitle { text-align: center; }
    .dbs-hero-slider .dbs-desc { font-size: 15px !important; text-align: center; }
    .dbs-hero-slider .dbs-buttons { justify-content: center; }
    .dbs-hero-slider .dbs-stats {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        text-align: center;
    }
    .dbs-hero-slider .dbs-stat { text-align: center; }
    .dbs-hero-slider .dbs-stat-value { font-size: 24px !important; }
    .dbs-hero-slider .dbs-stat-label { font-size: 11px !important; }
}