/*
Theme Name: S.M. Iqbal Enterprise
Theme URI: https://smiqbalenterprisebd.com
Author: S.M. Iqbal Enterprise
Description: Clean Bangladeshi wholesale & corporate promotional items WordPress/WooCommerce theme with Call-for-Order catalog mode.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: sm-iqbal
*/

:root {
    --brand-primary: #0A7EA4;
    --brand-primary-dark: #075E7B;
    --brand-secondary: #29C7EB;
    --brand-tint: #EEF8FC;
    --ink-dark: #0F2430;
    --ink-body: #334155;
    --ink-muted: #64748B;
    --bg-page: #F6F8FA;
    --bg-card: #FFFFFF;
    --border-light: #E2E8F0;
    --whatsapp: #16A34A;
    --whatsapp-dark: #15803D;
    --radius: 6px;
    --container: 1240px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-body);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover {
    color: var(--brand-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

/* Top Contact Bar */
.topbar {
    background: var(--ink-dark);
    color: #E2E8F0;
    font-size: 13px;
    padding: 7px 0;
}

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.topbar-left, .topbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.topbar a {
    color: #E2E8F0;
}

.topbar a:hover {
    color: var(--brand-secondary);
}

/* Main Header */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-logo img {
    height: 54px;
    width: auto;
    object-fit: contain;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.site-logo-text strong {
    font-size: 17px;
    color: var(--ink-dark);
    letter-spacing: 0.2px;
}

.site-logo-text span {
    font-size: 11px;
    color: var(--brand-primary);
    font-weight: 600;
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 420px;
    display: flex;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    background: #F8FAFC;
}

.header-search input[type="search"] {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--ink-dark);
    outline: none;
    font-family: inherit;
}

.header-search button {
    border: 0;
    background: var(--brand-primary);
    color: #fff;
    padding: 0 18px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.header-search button:hover {
    background: var(--brand-primary-dark);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    text-align: center;
}

.btn-primary {
    background: var(--brand-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-primary-dark);
    color: #fff;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline:hover {
    background: var(--brand-tint);
    color: var(--brand-primary-dark);
}

/* Navigation Bar */
.header-nav-wrap {
    background: var(--brand-primary);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.nav-menu > li > a {
    display: block;
    padding: 11px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
    background: var(--brand-primary-dark);
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 7px 11px;
    font-size: 18px;
    color: var(--ink-dark);
    cursor: pointer;
}

/* Hero Banner: 1 Row, 2 Columns (70% Left = 960x541 Ratio, 30% Right with 2 Rows) */
.hero-section {
    padding: 18px 0 22px;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}

.hero-grid {
    display: grid;
    grid-template-columns: 70fr 30fr;
    gap: 14px;
    align-items: stretch;
}

.hero-left {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: #F8FAFC;
    aspect-ratio: 960 / 541;
    display: block;
}

.hero-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-right {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    min-height: 0;
}

.hero-side-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: #FFFFFF;
    display: block;
    min-height: 0;
}

.hero-side-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Trust / Info Strip */
.info-strip {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 18px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: #FAFCFD;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--brand-tint);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item h3 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-dark);
}

.info-item p {
    margin: 0;
    font-size: 12.5px;
    color: var(--ink-muted);
    line-height: 1.4;
}

/* Section Headers */
.section-block {
    padding: 36px 0;
}

.section-block.bg-white {
    background: #fff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}

.section-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink-dark);
    border-left: 4px solid var(--brand-primary);
    padding-left: 12px;
    line-height: 1.25;
}

.section-head .section-sub {
    font-size: 13.5px;
    color: var(--ink-muted);
    margin: 5px 0 0 16px;
}

.view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    padding: 6px 14px;
    border-radius: var(--radius);
}

.view-all-link:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* Category Cards (Clean Bright Card with Uncropped Image) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.category-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.category-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

.category-card-img {
    height: 165px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-card-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.category-card-content {
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #FAFCFD;
    flex: 1;
}

.category-card-content h3 {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-dark);
}

.category-card-content span {
    font-size: 12.5px;
    color: var(--ink-muted);
    display: block;
}

.category-arrow {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-primary);
    background: var(--brand-tint);
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Product Grid & Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.product-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

.product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
}

.product-body {
    padding: 13px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-cat {
    font-size: 11.5px;
    font-weight: 600;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.product-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink-dark);
}

.product-title a {
    color: var(--ink-dark);
}

.product-title a:hover {
    color: var(--brand-primary);
}

.product-meta {
    font-size: 12px;
    color: var(--ink-muted);
    margin: 0 0 12px;
}

.product-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-actions .btn-call-order {
    flex: 1;
    padding: 8px 10px;
    font-size: 13px;
}

.btn-wa-icon {
    width: 38px;
    height: 38px;
    padding: 4px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-wa-icon:hover {
    border-color: var(--whatsapp);
    background: #F0FDF4;
}

.btn-wa-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* Our Clients Section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.client-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 92px;
}

.client-card img {
    max-width: 115px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 8px;
}

.client-card span {
    font-size: 11.5px;
    color: var(--ink-muted);
    font-weight: 500;
}

/* Floating Vertical WhatsApp & Call Buttons (Bottom Right) */
.floating-contact {
    position: fixed;
    right: 18px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 36, 48, 0.22);
    transition: transform 0.18s ease;
    background: #fff;
}

.floating-btn:hover {
    transform: scale(1.06);
}

.floating-btn-wa img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.floating-btn-call {
    background: var(--brand-primary);
    color: #fff;
}

.floating-btn-call:hover {
    background: var(--brand-primary-dark);
    color: #fff;
}

/* Archive / Shop Layout */
.page-banner {
    background: var(--ink-dark);
    color: #fff;
    padding: 26px 0;
    border-bottom: 3px solid var(--brand-primary);
}

.page-banner h1 {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 700;
}

.breadcrumbs {
    font-size: 13px;
    color: #CBD5E1;
}

.breadcrumbs a {
    color: var(--brand-secondary);
}

.cat-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.cat-pill {
    display: inline-block;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-body);
}

.cat-pill:hover, .cat-pill.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

/* Single Product Page */
.single-product-wrap {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.gallery-main {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    background: #F8FAFC;
    aspect-ratio: 1 / 1;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.gallery-thumb-btn {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: #fff;
}

.gallery-thumb-btn.active, .gallery-thumb-btn:hover {
    border-color: var(--brand-primary);
}

.gallery-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-order-box {
    margin-top: 20px;
    padding: 18px;
    background: var(--brand-tint);
    border: 1px solid #BAE6FD;
    border-radius: var(--radius);
}

.call-order-box h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--ink-dark);
}

.call-order-box p {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: var(--ink-body);
}

.call-order-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wholesale-specs {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--border-light);
}

.wholesale-specs li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.wholesale-specs li strong {
    color: var(--ink-dark);
}

/* About & Contact Pages */
.two-col-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: start;
}

.content-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
}

.content-card h2 {
    margin-top: 0;
    color: var(--ink-dark);
    font-size: 20px;
}

.contact-form .form-group {
    margin-bottom: 14px;
}

.contact-form label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-dark);
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.alert-success {
    padding: 12px 16px;
    background: #DCFCE7;
    border: 1px solid #86EFAC;
    color: #166534;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

/* Pagination */
.woocommerce-pagination ul, .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: inline-block;
    padding: 7px 13px;
    border: 1px solid var(--border-light);
    background: #fff;
    border-radius: var(--radius);
    color: var(--ink-dark);
    font-weight: 600;
    font-size: 14px;
}

.woocommerce-pagination ul li span.current {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

/* Footer */
.site-footer {
    background: var(--ink-dark);
    color: #CBD5E1;
    padding: 42px 0 0;
    margin-top: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 28px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 12px;
}

.site-footer h4 {
    margin: 0 0 14px;
    font-size: 15px;
    color: #fff;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
    font-size: 13.5px;
}

.footer-links a {
    color: #CBD5E1;
}

.footer-links a:hover {
    color: var(--brand-secondary);
}

.footer-bottom {
    padding: 16px 0;
    font-size: 13px;
    color: #94A3B8;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

/* Mobile Sticky Call Bar */
.mobile-sticky-bar {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .topbar {
        display: none;
    }
    .header-main {
        flex-wrap: wrap;
        gap: 10px;
    }
    .header-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }
    .header-cta {
        display: none;
    }
    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .header-nav-wrap {
        display: none;
    }
    .header-nav-wrap.is-open {
        display: block;
    }
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-menu > li > a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-right {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .hero-side-card {
        aspect-ratio: 1 / 1;
    }
    .floating-contact {
        bottom: 66px;
        right: 12px;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .single-product-wrap,
    .two-col-content {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    body {
        padding-bottom: 56px;
    }
    .mobile-sticky-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        background: #fff;
        border-top: 1px solid var(--border-light);
    }
    .mobile-sticky-bar a {
        padding: 12px 10px;
        text-align: center;
        font-weight: 700;
        font-size: 14px;
        color: #fff;
    }
    .mobile-sticky-bar .sticky-call {
        background: var(--brand-primary);
    }
    .mobile-sticky-bar .sticky-wa {
        background: var(--whatsapp);
    }
}

@media (max-width: 480px) {
    .info-grid,
    .hero-right,
    .category-grid {
        grid-template-columns: 1fr;
    }
    .product-actions {
        grid-template-columns: 1fr;
    }
}
