/*
Theme Name: DryFruits B2B Enterprise Core
Author: Novast
Description: Ultra-secure, stealth B2B wholesale catalog theme for dry fruits and nuts exporters.
Version: 2.1.0
*/

:root {
    --primary: #254B3B;
    --primary-dark: #19372B;

    --secondary: #6C4934;
    --accent: #B58A45;

    --background: #F7F2E8;
    --surface: #FFFFFF;

    --text-primary: #35352F;
    --text-secondary: #777267;

    --border-color: #E8DDC9;

    --button-bg: #254B3B;
    --button-hover: #B58A45;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Segoe UI', Roboto, Arial, sans-serif; 
    background-color: var(--background); 
    color: var(--text-primary); 
    line-height: 1.6; 
    overflow-x: hidden;
}

.wrapper { 
    width: 90%; 
    max-width: 1270px; 
    margin: 0 auto; 
    padding: 0 15px;
}

/* Header & Navigation (Warm Ivory Background) */
.site-header { background-color: var(--background); color: var(--text-primary); padding: 18px 0; border-bottom: 3px solid var(--accent); }
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.brand-logo { font-size: 24px; font-weight: 700; color: var(--primary); text-decoration: none; }
.brand-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; list-style: none; }
.nav-links a { color: var(--text-primary); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

/* ==========================================================================
   TOP-NOTCH PREMIUM B2B HERO SECTION STYLES
   ========================================================================== */
.hero-banner {
    position: relative;
    background-color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(25, 55, 43, 0.90) 0%, rgba(37, 75, 59, 0.88) 50%, rgba(17, 38, 29, 0.92) 100%), 
                url('images/banner-bg.webp') center/cover no-repeat;
    color: #FFFFFF;
    padding: 90px 20px 100px 20px;
    text-align: center;
    overflow: hidden;
    border-bottom: 4px solid var(--accent);
}

/* Subtle background overlay effect for elite texture */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(181, 138, 69, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* Badge Styling */
.badge-b2b {
    display: inline-block;
    background: var(--primary);
    border: 1px solid var(--accent);
    color: #F7F2E8;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Title */
.hero-banner h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

/* Hero Description */
.hero-banner p {
    font-size: 17px;
    line-height: 1.7;
    max-width: 750px;
    margin: 0 auto 35px auto;
    color: #E8DDC9;
}

/* Dual CTA Button Layout */
.hero-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn-gold {
    background-color: var(--accent) !important;
    color: var(--primary-dark) !important;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(181, 138, 69, 0.3);
    transition: all 0.25s ease;
    width: auto !important;
}
.hero-btn-gold:hover {
    background-color: #C99D53 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(181, 138, 69, 0.4);
}

.hero-btn-outline {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--border-color);
    color: #F7F2E8;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 26px;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE HERO FIXES
   ========================================================================== */
@media screen and (max-width: 768px) {
    .hero-banner {
        padding: 60px 15px 70px 15px;
    }
    .hero-banner h1 {
        font-size: 28px !important;
    }
    .hero-banner p {
        font-size: 14px;
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .hero-btn-gold, .hero-btn-outline {
        width: 100% !important;
        text-align: center;
    }
}

/* Section & Catalog Grid (Warm Ivory) */
.section-title { text-align: center; margin: 50px 0 35px; padding: 0 15px; }
.section-title h2 { font-size: 30px; color: var(--primary); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px; margin-bottom: 60px; }
.product-box { background: var(--surface); border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.product-box:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(37, 75, 59, 0.08); }
.product-thumb { width: 100%; height: 210px; background: #EFE7D8; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-info h3 { font-size: 20px; color: var(--primary); margin-bottom: 10px; }
.meta-tags { font-size: 13px; color: var(--text-secondary); margin-bottom: 15px; list-style: none; }
.meta-tags li { margin-bottom: 5px; padding-bottom: 5px; border-bottom: 1px dashed var(--border-color); }

/* Buttons & Elements (Deep Green -> Antique Gold Hover) */
.btn-primary { display: inline-block; background: var(--button-bg); color: #fff; text-align: center; padding: 11px 18px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: background 0.2s; width: 100%; }
.btn-primary:hover { background: var(--button-hover); color: #fff; }

/* Single Product Page & Tables */
@media screen and (max-width: 992px) {
    .single-product-wrap {
        grid-template-columns: 1fr !important;
        padding: 25px !important;
    }
    .df-breadcrumb-wrap .wrapper {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .df-breadcrumb-wrap .wrapper > div:last-child {
        width: 100%;
        margin-top: 10px;
    }
    .df-breadcrumb-back-btn {
        width: 100%;
        justify-content: center;
    }
}
@media screen and (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    .single-product-wrap, .inquiry-card {
        padding: 20px !important;
    }
    .df-prod-main-title {
        font-size: 18px !important;
    }
    .wrapper {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}
.spec-table-container { width: 100%; overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; min-width: 320px; }
.spec-table th, .spec-table td { padding: 12px 15px; border: 1px solid var(--border-color); text-align: left; font-size: 14px; }
.spec-table th { background-color: #EFE7D8; color: var(--primary); width: 38%; }

/* Inquiry Form */
.inquiry-card { background: var(--surface); padding: 30px; border-radius: 10px; border: 2px solid var(--accent); margin: 0 0 60px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { margin-bottom: 15px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--primary); }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 5px; font-size: 14px; background: #fff; }

/* Alerts & Footer (Deep Forest Green) */
.alert-success { background: #e8f5e9; color: #1b5e20; border-left: 4px solid #2e7d32; padding: 15px; margin-bottom: 20px; border-radius: 4px; font-weight: 500; }
.alert-error { background: #ffebee; color: #b71c1c; border-left: 4px solid #c62828; padding: 15px; margin-bottom: 20px; border-radius: 4px; }
.site-footer { background: var(--primary-dark); color: #E8DDC9; text-align: center; padding: 30px 0; font-size: 14px; margin-top: 0; }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLETS & PHONES)
   ========================================================================== */

@media screen and (max-width: 992px) {
    .hero-banner h1 {
        font-size: 32px;
    }
}

@media screen and (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .nav-links {
        justify-content: center;
        gap: 15px;
        margin-top: 5px;
    }
    .nav-links a {
        margin-left: 0;
        font-size: 14px;
    }
    .hero-banner {
        padding: 50px 15px;
    }
    .hero-banner h1 {
        font-size: 26px;
    }
    .hero-banner p {
        font-size: 15px;
    }
    .section-title h2 {
        font-size: 24px;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .single-product-wrap, .inquiry-card {
        padding: 20px 15px;
    }
}

@media screen and (max-width: 480px) {
    .brand-logo {
        font-size: 21px;
    }
    .spec-table th, .spec-table td {
        padding: 10px;
        font-size: 13px;
    }
}

.form-control, textarea {
    max-width: 100%;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .hero-banner {
        padding: 40px 15px !important;
    }
    .hero-banner h1 {
        font-size: 26px !important;
        line-height: 1.3;
    }
    .hero-banner p {
        font-size: 14px !important;
    }
}

/* ==========================================================================
   ABOUT US PAGE RESPONSIVE FIXES
   ========================================================================== */
@media screen and (max-width: 992px) {
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 768px) {
    div[style*="padding: 45px"] {
        padding: 25px 15px !important;
    }
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    h1[style*="font-size: 30px"] {
        font-size: 24px !important;
    }
}

/* ==========================================================================
   WHOLESALE CATALOG PAGE RESPONSIVE FIXES
   ========================================================================== */
@media screen and (max-width: 992px) {
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 768px) {
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="max-width: 1270px"] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ==========================================================================
   CONTACT PAGE RESPONSIVE FIXES
   ========================================================================== */
@media screen and (max-width: 992px) {
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 768px) {
    form div[style*="display: grid; grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="padding: 45px"] {
        padding: 25px 15px !important;
    }
}

/* ==========================================================================
   PREMIUM BREADCRUMB SECTION (Hero Styled - 100% Fully Responsive)
   ========================================================================== */
.df-breadcrumb-wrap {
    position: relative;
    background: linear-gradient(135deg, rgba(25, 55, 43, 0.92) 0%, rgba(37, 75, 59, 0.90) 50%, rgba(17, 38, 29, 0.94) 100%), 
                url('images/bread.webp') center/cover no-repeat;
    background-color: var(--primary-dark);
    border-bottom: 3px solid var(--accent);
    padding: 20px;
    font-family: 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.df-breadcrumb-inner {
    max-width: 1270px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.df-home-link { 
    color: var(--accent); 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    font-weight: 600;
    transition: opacity 0.2s;
}
.df-home-link:hover {
    opacity: 0.85;
}
.df-home-link span { 
    margin-right: 4px; 
}

.df-divider { 
    color: var(--border-color); 
    font-size: 11px; 
    opacity: 0.6;
    margin: 0 2px;
}

.df-cat-link { 
    color: #E8DDC9; 
    text-decoration: none; 
    transition: color 0.2s;
}
.df-cat-link:hover {
    color: var(--accent);
}

.df-current-title { 
    color: #FFFFFF; 
    font-weight: 600; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    max-width: 400px; 
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS FOR BREADCRUMB
   ========================================================================== */
@media screen and (max-width: 992px) {
    .df-current-title {
        max-width: 300px; /* ট্যাবলেটের স্ক্রিনের জন্য একটু ছোট করা হলো */
    }
}

@media screen and (max-width: 768px) {
    .df-breadcrumb-wrap {
        padding: 14px 15px;
    }
    .df-breadcrumb-inner {
        font-size: 12px;
        gap: 6px;
    }
    .df-current-title {
        max-width: 220px; /* মোবাইলের জন্য */
    }
}

@media screen and (max-width: 480px) {
    .df-current-title {
        max-width: 160px; /* ছোট মোবাইলের জন্য */
    }
}

/* ==========================================================================
   CATALOG ARCHIVE PAGE STYLES & RESPONSIVE FIXES
   ========================================================================== */

.df-archive-container {
    background-color: var(--background);
    min-height: 90vh;
    padding: 40px 20px;
    font-family: 'Segoe UI', Roboto, sans-serif;
}
.df-archive-inner {
    max-width: 1270px;
    margin: 0 auto;
}
.df-archive-breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
}
.df-archive-breadcrumb .df-home-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.df-archive-breadcrumb .df-divider {
    margin: 0 8px;
    color: var(--border-color);
}
.df-archive-breadcrumb .df-current-crumb {
    color: var(--text-secondary);
    font-weight: 500;
}
.df-archive-title-wrap {
    text-align: center;
    margin-bottom: 40px;
}
.df-archive-title {
    color: var(--primary);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}
.df-archive-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

.df-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.df-product-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(37,75,59,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.df-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(37, 75, 59, 0.08);
}
.df-card-thumb {
    height: 180px;
    background: #EFE7D8;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.df-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.df-thumb-icon {
    font-size: 40px;
}
.df-card-content {
    padding: 20px;
}
.df-card-title {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
}
.df-card-excerpt {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 15px 0;
}
.df-moq-badge {
    display: inline-block;
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}
.df-card-footer {
    padding: 0 20px 20px 20px;
}
.df-card-btn {
    display: block;
    text-align: center;
    background: var(--button-bg);
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.df-card-btn:hover {
    background: var(--button-hover);
    color: #FFFFFF;
}
.df-no-products {
    grid-column: span 3;
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
}

@media screen and (max-width: 992px) {
    .df-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .df-no-products {
        grid-column: span 2;
    }
}

@media screen and (max-width: 768px) {
    .df-product-grid {
        grid-template-columns: 1fr !important;
    }
    .df-archive-container {
        padding: 20px 10px !important;
    }
    .df-archive-title {
        font-size: 24px !important;
    }
    .df-no-products {
        grid-column: span 1;
    }
}

/* ==========================================================================
   FULL-WIDTH HEADER & GRID ALIGNMENT (Logo Left, Menu Right)
   ========================================================================== */
.df-site-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(37, 75, 59, 0.04);
}

.df-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* উপরে ও নিচে ৫ পিক্সেল প্যাডিং রেখে নির্দিষ্ট ১০০ পিক্সেল হাইট নিশ্চিত করা হলো */
    padding: 5px 20px; 
    height: 100px;
    box-sizing: border-box;
}

.df-brand-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.df-brand-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

/* লোগোটি যাতে ১০০ পিক্সেল হাইটের ভেতরে সর্বোচ্চ বড় ও পরিষ্কার দেখায় */
.df-brand-logo img {
    max-height: 85px !important;
    width: auto !important;
    object-fit: contain;
    display: block;
}

.df-brand-logo span {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

/* 3-Lines Hamburger Button */
.df-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
}
.df-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Navbar Styling (Right Aligned) */
.df-nav-container {
    display: flex;
    align-items: center;
}
.df-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}
.df-nav-menu > li > a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}
.df-nav-menu > li > a:hover, .df-nav-menu li.current-menu-item > a {
    color: var(--accent);
}

/* Mega Menu Container Styling */
.df-mega-parent {
    position: static;
}
.df-mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    border-top: 2px solid var(--accent);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    padding: 30px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}
.df-mega-parent:hover .df-mega-dropdown {
    opacity: 1;
    visibility: visible;
}

/* Mega Menu Grid */
.df-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Mega Menu Item Cards */
.df-mega-item {
    background: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}
.df-mega-item:hover {
    background: var(--primary-dark);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE HEADER FOR MOBILE & TABLETS
   ========================================================================== */
@media screen and (max-width: 992px) {
    .df-mega-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .df-header-inner {
        flex-wrap: wrap;
        padding: 15px;
    }
    .df-menu-toggle {
        display: flex; /* মোবাইলে তিন দাগওয়ালা হ্যামবার্গার বাটন দেখাবে */
    }
    .df-nav-container {
        display: none;
        width: 100%;
        margin-top: 15px;
        border-top: 1px solid var(--border-color);
        padding-top: 15px;
    }
    .df-nav-container.active {
        display: block;
    }
    .df-nav-menu {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .df-nav-menu > li {
        width: 100%;
    }
    .df-nav-menu > li > a {
        display: block;
        width: 100%;
    }
    .df-mega-dropdown {
        position: relative;
        box-shadow: none;
        padding: 15px 10px;
        display: none;
        opacity: 1;
        visibility: visible;
    }
    .df-mega-parent.mobile-open .df-mega-dropdown {
        display: block;
    }
    .df-mega-grid {
        grid-template-columns: 1fr;
    }
    .df-menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .df-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .df-menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Custom Card Styling for Block Pattern */
.custom-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.custom-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.custom-card h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #1a202c;
}

.custom-card p {
    font-size: 14px;
    color: #4a5568;
    margin: 0;
}