/* DTB v2.0.69 — Commerce Lite CSS
 * Extracted from the existing child stylesheet for high-traffic Woo surfaces.
 * Contains only DTB footer/shared commerce-safe rules; AppHome/prayer/homepage CSS is intentionally omitted.
 */

/* --------------------------------------------------------------------------
 * DTB Footer Cleanup + Editable Settings - v1.0.2
 * Scope: hide the generic Woodmart footer/prefooter and show the compact
 * app-style Doinik Taza Bazar footer printed by functions.php.
 * -------------------------------------------------------------------------- */

/* v1.0.37: Header/footer restore. Do not hide Woodmart header/footer globally.
 * Keep normal website structure visible on all pages, including /apphome/.
 * The DTB custom footer remains available from functions.php when enabled,
 * but the theme no longer suppresses Woodmart footer containers by CSS. */

.dtb-app-footer,
.dtb-app-footer * {
    box-sizing: border-box;
}

.dtb-app-footer {
    background: #ffffff;
    border-top: 1px solid #e4f0e6;
    color: #1f2d23;
    font-family: inherit;
    margin-top: 28px;
}

.dtb-footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 14px;
}

.dtb-footer-brand-row {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.45fr);
    gap: 22px;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f5fff7 0%, #fff8ee 100%);
    border: 1px solid #dff0e2;
    box-shadow: 0 8px 22px rgba(16, 92, 44, 0.07);
}

.dtb-footer-logo {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: #173d23 !important;
    text-decoration: none !important;
    margin-bottom: 8px;
}

.dtb-logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #198a43;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(25, 138, 67, 0.18);
}

.dtb-logo-text strong,
.dtb-logo-text small {
    display: block;
    line-height: 1.25;
}

.dtb-logo-text strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.dtb-logo-text small {
    color: #f08a19;
    font-size: 13px;
    font-weight: 600;
}

.dtb-footer-brand p,
.dtb-footer-support p {
    margin: 0 0 8px;
    color: #57645a;
    font-size: 14px;
    line-height: 1.6;
}

.dtb-footer-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    align-content: center;
}

.dtb-footer-action {
    min-height: 58px;
    padding: 12px 10px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e4efe6;
    color: #173d23 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 3px 10px rgba(13, 78, 34, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dtb-footer-action:hover {
    transform: translateY(-1px);
    border-color: #b9dec0;
    box-shadow: 0 8px 18px rgba(13, 78, 34, 0.09);
}

.dtb-action-wa {
    background: #198a43;
    border-color: #198a43;
    color: #ffffff !important;
}

.dtb-action-app {
    background: #f08a19;
    border-color: #f08a19;
    color: #ffffff !important;
}

.dtb-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr 1fr;
    gap: 24px;
    padding: 24px 4px 18px;
}

.dtb-footer-col h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #173d23;
    font-weight: 800;
}

.dtb-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 7px;
}

.dtb-footer-col a {
    color: #425146 !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.35;
}

.dtb-footer-col a:hover {
    color: #198a43 !important;
}

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

.dtb-footer-socials {
    display: flex;
    gap: 9px;
    margin-top: 12px;
}

.dtb-footer-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f7f2;
    color: #198a43 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 1px solid #d9eadd;
}

.dtb-footer-bottom {
    border-top: 1px solid #e4f0e6;
    padding: 14px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #657167;
    font-size: 13px;
}

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

.dtb-footer-bottom nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dtb-footer-bottom a {
    color: #425146 !important;
    text-decoration: none !important;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .dtb-footer-brand-row {
        grid-template-columns: 1fr;
    }

    .dtb-footer-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dtb-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dtb-footer-support {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .dtb-footer-inner {
        width: min(100% - 22px, 1180px);
        padding-top: 18px;
    }

    .dtb-footer-brand-row {
        padding: 14px;
        border-radius: 18px;
    }

    .dtb-footer-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .dtb-footer-action {
        min-height: 52px;
        font-size: 12.5px;
        border-radius: 14px;
    }

    .dtb-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
        padding: 20px 2px 14px;
    }

    .dtb-footer-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 10px;
    }

    .dtb-footer-support {
        grid-column: 1 / -1;
    }

    .dtb-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .dtb-footer-bottom nav {
        justify-content: flex-start;
        gap: 10px;
    }
}



/* --------------------------------------------------------------------------
 * DTB Mobile Footer Balance - v1.0.6
 * Make mobile footer sections compact: each link section is full width with
 * internal two-column lists, so Useful Links no longer becomes one long column.
 * -------------------------------------------------------------------------- */
@media (max-width: 680px) {
    .dtb-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        padding: 18px 2px 12px !important;
    }

    .dtb-footer-col {
        width: 100%;
    }

    .dtb-footer-col h3 {
        margin-bottom: 10px !important;
        font-size: 17px !important;
    }

    .dtb-footer-col ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 14px !important;
    }

    .dtb-footer-col li {
        min-width: 0;
    }

    .dtb-footer-col a {
        display: block;
        font-size: 14.5px !important;
        line-height: 1.35 !important;
        word-break: normal;
    }

    .dtb-footer-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px 14px !important;
    }

    .dtb-footer-support {
        grid-column: auto !important;
        padding-top: 4px;
    }

    .dtb-footer-bottom {
        padding-bottom: 68px !important; /* avoid overlap with mobile bottom nav */
    }
}

@media (max-width: 380px) {
    .dtb-footer-col ul,
    .dtb-footer-cats {
        gap: 9px 10px !important;
    }

    .dtb-footer-col a {
        font-size: 13.5px !important;
    }
}


/* --------------------------------------------------------------------------
 * DTB Footer Template Selector - v1.0.7
 * Five selectable footer templates from Appearance > DTB Footer.
 * Same content/settings, different approved presentation styles.
 * -------------------------------------------------------------------------- */
.dtb-footer-template-compact_clean .dtb-footer-brand-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    box-shadow: none;
    border-radius: 18px;
}
.dtb-footer-template-compact_clean .dtb-footer-brand p { max-width: 760px; }
.dtb-footer-template-compact_clean .dtb-footer-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.dtb-footer-template-compact_clean .dtb-footer-action {
    min-height: 44px;
    border-radius: 999px;
    padding: 9px 12px;
    box-shadow: none;
}
.dtb-footer-template-compact_clean .dtb-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    padding-top: 18px;
}

.dtb-footer-template-green_brand {
    background: linear-gradient(135deg, #0d5f31 0%, #158342 100%);
    color: #ffffff;
    border-top: 0;
}
.dtb-footer-template-green_brand .dtb-footer-brand-row {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}
.dtb-footer-template-green_brand .dtb-footer-logo,
.dtb-footer-template-green_brand .dtb-footer-col h3,
.dtb-footer-template-green_brand .dtb-footer-col a,
.dtb-footer-template-green_brand .dtb-footer-bottom a,
.dtb-footer-template-green_brand .dtb-footer-bottom,
.dtb-footer-template-green_brand .dtb-footer-brand p,
.dtb-footer-template-green_brand .dtb-footer-support p {
    color: #ffffff !important;
}
.dtb-footer-template-green_brand .dtb-logo-mark { background: #f08a19; }
.dtb-footer-template-green_brand .dtb-logo-text small { color: #ffd6a5; }
.dtb-footer-template-green_brand .dtb-footer-action {
    background: rgba(255,255,255,0.11);
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.18);
}
.dtb-footer-template-green_brand .dtb-action-wa,
.dtb-footer-template-green_brand .dtb-action-app {
    background: #f08a19;
    border-color: #f08a19;
    color: #ffffff !important;
}
.dtb-footer-template-green_brand .dtb-footer-bottom { border-top-color: rgba(255,255,255,0.18); }
.dtb-footer-template-green_brand .dtb-footer-socials a {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.18);
    color: #ffffff !important;
}

.dtb-footer-template-order_focused .dtb-footer-brand-row {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.7fr);
    background: linear-gradient(135deg, #effff4 0%, #ffffff 55%, #fff3e3 100%);
}
.dtb-footer-template-order_focused .dtb-footer-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dtb-footer-template-order_focused .dtb-footer-action {
    min-height: 64px;
    font-size: 15px;
    border-radius: 18px;
}
.dtb-footer-template-order_focused .dtb-footer-action:nth-child(n+5) { display: none; }
.dtb-footer-template-order_focused .dtb-action-wa {
    background: #12843f;
    border-color: #12843f;
}
.dtb-footer-template-order_focused .dtb-footer-grid {
    grid-template-columns: 0.9fr 0.9fr 1.2fr;
}

.dtb-footer-template-category_grid .dtb-footer-brand-row {
    grid-template-columns: 1fr;
    background: #f8fff9;
}
.dtb-footer-template-category_grid .dtb-footer-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.dtb-footer-template-category_grid .dtb-footer-grid {
    grid-template-columns: 0.8fr 1.6fr 0.9fr;
}
.dtb-footer-template-category_grid .dtb-footer-cats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.dtb-footer-template-category_grid .dtb-footer-cats a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px;
    border: 1px solid #dfeee3;
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
    font-weight: 700;
}

@media (max-width: 900px) {
    .dtb-footer-template-compact_clean .dtb-footer-actions,
    .dtb-footer-template-category_grid .dtb-footer-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .dtb-footer-template-category_grid .dtb-footer-grid,
    .dtb-footer-template-order_focused .dtb-footer-grid,
    .dtb-footer-template-compact_clean .dtb-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dtb-footer-template-category_grid .dtb-footer-support,
    .dtb-footer-template-order_focused .dtb-footer-support,
    .dtb-footer-template-compact_clean .dtb-footer-support {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .dtb-footer-template-compact_clean .dtb-footer-brand-row,
    .dtb-footer-template-category_grid .dtb-footer-brand-row,
    .dtb-footer-template-order_focused .dtb-footer-brand-row {
        grid-template-columns: 1fr !important;
    }
    .dtb-footer-template-compact_clean .dtb-footer-actions,
    .dtb-footer-template-category_grid .dtb-footer-actions,
    .dtb-footer-template-order_focused .dtb-footer-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .dtb-footer-template-compact_clean .dtb-footer-action {
        border-radius: 14px;
        min-height: 48px;
    }
    .dtb-footer-template-green_brand .dtb-footer-inner {
        padding-bottom: 0;
    }
    .dtb-footer-template-order_focused .dtb-footer-action {
        min-height: 58px;
        font-size: 13.5px;
    }
    .dtb-footer-template-category_grid .dtb-footer-grid,
    .dtb-footer-template-order_focused .dtb-footer-grid,
    .dtb-footer-template-compact_clean .dtb-footer-grid {
        grid-template-columns: 1fr !important;
    }
    .dtb-footer-template-category_grid .dtb-footer-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .dtb-footer-template-category_grid .dtb-footer-cats a {
        min-height: 50px;
        font-size: 13.5px !important;
    }
}



/* --------------------------------------------------------------------------
 * DTB v1.0.19 Mobile Footer Compact + Button Card Size Fix
 * Scope: mobile-only compacting for AppHome action cards and DTB footer.
 * Keeps JSON rendering and WooCommerce logic unchanged.
 * -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Remove large white gap before custom DTB footer when AppHome ends. */
    .dtb-app-home-v116 {
        padding-bottom: 10px !important;
        margin-bottom: 0 !important;
    }
    .dtb-app-home-v116 .dtb-home-wrap {
        padding-bottom: 6px !important;
    }
    .dtb-app-home-v116 .dtb-home-wrap > *:last-child {
        margin-bottom: 8px !important;
    }

    /* Compact hero/action buttons and search card buttons. */
    .dtb-app-home-v116 .dtb-v104-hero-actions {
        gap: 8px !important;
        margin-top: 12px !important;
    }
    .dtb-app-home-v116 .dtb-v104-hero-actions a,
    .dtb-app-home-v116 .dtb-v104-search-card a,
    .dtb-app-home-v116 .dtb-v104-mini {
        min-height: 42px !important;
        padding: 9px 12px !important;
        border-radius: 16px !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
    }
    .dtb-app-home-v116 .dtb-v104-search-card {
        padding: 10px !important;
        gap: 8px !important;
        border-radius: 18px !important;
    }

    /* Quick cards: small, neat, 2-column. */
    .dtb-app-home-v116 .dtb-v104-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin: 10px 0 12px !important;
    }
    .dtb-app-home-v116 .dtb-v104-quick-actions a {
        min-height: 54px !important;
        padding: 8px 8px !important;
        border-radius: 15px !important;
        font-size: 13px !important;
        gap: 2px !important;
    }
    .dtb-app-home-v116 .dtb-v104-quick-actions a span:first-child,
    .dtb-app-home-v116 .dtb-v114-quick-visual {
        font-size: 17px !important;
        line-height: 1 !important;
    }
    .dtb-app-home-v116 .dtb-v104-quick-actions a span:last-child {
        font-size: 13px !important;
        line-height: 1.15 !important;
    }

    /* Category / market / offer cards: keep compact mobile height. */
    .dtb-app-home-v116 .dtb-v104-cat {
        min-height: 104px !important;
        padding: 11px !important;
        border-radius: 16px !important;
    }
    .dtb-app-home-v116 .dtb-v104-market-card {
        min-height: 132px !important;
        padding: 11px !important;
        border-radius: 16px !important;
    }
    .dtb-app-home-v116 .dtb-v104-offer {
        min-height: 138px !important;
        padding: 11px !important;
        border-radius: 16px !important;
        gap: 4px !important;
        overflow: hidden !important;
    }
    .dtb-app-home-v116 .dtb-v104-offer > strong {
        font-size: 15px !important;
        line-height: 1.18 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden !important;
    }
    .dtb-app-home-v116 .dtb-v104-offer > small {
        font-size: 11px !important;
        line-height: 1.2 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden !important;
    }
    .dtb-app-home-v116 .dtb-v104-offer .dtb-v116-new,
    .dtb-app-home-v116 .dtb-v104-offer b {
        font-size: 16px !important;
        line-height: 1.15 !important;
        margin-top: 2px !important;
    }

    /* Banners: less bottom gap before next section/footer. */
    .dtb-app-home-v116 .dtb-v116-banner-img,
    .dtb-app-home-v116 .dtb-v104-wide-banner {
        margin-top: 8px !important;
        margin-bottom: 10px !important;
    }

    /* Footer compact mode on mobile, regardless of selected footer template. */
    .dtb-app-footer {
        margin-top: 8px !important;
    }
    .dtb-footer-inner {
        padding: 14px 16px 96px !important;
    }
    .dtb-footer-brand-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 14px !important;
        border-radius: 18px !important;
    }
    .dtb-footer-logo {
        gap: 9px !important;
    }
    .dtb-logo-mark {
        width: 40px !important;
        height: 40px !important;
        border-radius: 13px !important;
        font-size: 18px !important;
    }
    .dtb-logo-text strong {
        font-size: 20px !important;
        line-height: 1.15 !important;
    }
    .dtb-logo-text small,
    .dtb-footer-brand p,
    .dtb-footer-support p {
        font-size: 13px !important;
        line-height: 1.42 !important;
    }
    .dtb-footer-brand p {
        margin-top: 6px !important;
    }
    .dtb-footer-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }
    .dtb-footer-action {
        min-height: 42px !important;
        padding: 8px 9px !important;
        border-radius: 14px !important;
        font-size: 12.5px !important;
        line-height: 1.15 !important;
    }
    /* On mobile keep footer action block short; the main page already has order buttons. */
    .dtb-footer-actions .dtb-footer-action:nth-child(n+5) {
        display: none !important;
    }
    .dtb-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 14px 2px 10px !important;
    }
    .dtb-footer-col h3 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    .dtb-footer-col ul,
    .dtb-footer-cats {
        gap: 7px 16px !important;
    }
    .dtb-footer-col a,
    .dtb-footer-cats a {
        font-size: 13.5px !important;
        line-height: 1.25 !important;
    }
    .dtb-footer-support {
        padding-top: 4px !important;
    }
    .dtb-footer-socials {
        gap: 8px !important;
        margin-top: 8px !important;
    }
    .dtb-footer-socials a {
        width: 34px !important;
        height: 34px !important;
        font-size: 13px !important;
    }
    .dtb-footer-bottom {
        gap: 8px !important;
        padding-top: 10px !important;
    }
    .dtb-footer-bottom p,
    .dtb-footer-bottom a {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 420px) {
    .dtb-app-home-v116 .dtb-v104-quick-actions a {
        min-height: 50px !important;
        font-size: 12.5px !important;
    }
    .dtb-app-home-v116 .dtb-v104-hero-actions a,
    .dtb-app-home-v116 .dtb-v104-search-card a,
    .dtb-app-home-v116 .dtb-v104-mini {
        min-height: 40px !important;
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
    .dtb-footer-inner {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}



    .dtb-app-footer { margin-top: 4px !important; }
    .dtb-footer-inner { padding-top: 10px !important; padding-bottom: 84px !important; }
    .dtb-footer-brand-row { padding: 11px !important; gap: 8px !important; }
    .dtb-footer-action { min-height: 38px !important; padding: 7px 8px !important; }
    .dtb-footer-grid { padding-top: 10px !important; gap: 10px !important; }
    .dtb-footer-support { margin-top: 0 !important; }

/* --------------------------------------------------------------------------
 * DTB v1.0.38 - Single Footer Restore Guard
 * --------------------------------------------------------------------------
 * Keep the website header visible, but prevent duplicate footer output.
 * Woodmart/native footer containers are hidden because the DTB custom website
 * footer is printed by this child theme through wp_footer.
 */
body .whb-header,
body .site-header,
body header.whb-header,
body.dtb-apphome-cleanup .whb-header,
body.dtb-apphome-cleanup .site-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body .woodmart-prefooter,
body .wd-prefooter,
body .footer-container,
body .wd-footer,
body .copyrights-wrapper {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

body .dtb-app-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dtb-apphome-old-block-hidden {
    display: revert !important;
    visibility: visible !important;
    opacity: 1 !important;
}



