/* ============================================================
   SUMUKHA PRINT — Premium B2B Storefront Design System
   Inter (body) + Poppins (display) · Bootstrap 5 · Rounded/Soft/Glass
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

:root {
    /* Brand */
    --primary-color: #d9631e;
    --primary-dark: #b84f16;
    --primary-light: #f2934f;
    --primary-soft: #fdece1;
    --secondary-color: #1f2937;
    --success-color: #16a34a;
    --success-soft: #dcfce7;
    --danger-color: #dc2626;
    --danger-soft: #fee2e2;
    --warning-color: #d97706;
    --warning-soft: #fef3c7;
    --info-color: #0891b2;
    --info-soft: #cffafe;
    /* Neutrals */
    --ink: #16181d;
    --ink-soft: #2b2f3a;
    --slate: #5b6472;
    --muted: #8890a0;
    --border-color: #e7e9ee;
    --light-color: #f7f8fa;
    --light-gray: #eef0f4;
    --gray: #5b6472;
    --dark-color: #14161c;
    --white: #ffffff;
    /* Elevation */
    --shadow-xs: 0 1px 3px rgba(20, 22, 28, 0.05);
    --shadow-sm: 0 4px 10px rgba(20, 22, 28, 0.06);
    --shadow-md: 0 10px 26px rgba(20, 22, 28, 0.09);
    --shadow-lg: 0 20px 48px rgba(20, 22, 28, 0.14);
    --shadow-glow: 0 8px 24px rgba(217, 99, 30, 0.25);
    /* Shape & Motion */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.25s var(--ease);
    /* Fonts */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Poppins', 'Inter', sans-serif;
}

/* ── Base ─────────────────────────────────────────── */
* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--light-color);
    color: var(--ink);
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover {
        color: var(--primary-dark);
    }

::selection {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: #c7cbd4;
    border-radius: var(--radius-pill);
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-color);
    }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-md);
    /*padding: 0.65rem 1.4rem;*/
    letter-spacing: 0.01em;
    transition: var(--transition);
    border-width: 1.5px;
}

    .btn:focus {
        box-shadow: 0 0 0 4px var(--primary-soft);
    }

.btn-lg {
    padding: 0.85rem 1.9rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

    .btn-primary:hover,
    .btn-primary:focus {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-glow);
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: var(--shadow-glow);
    }

.btn-light {
    background: rgba(255,255,255,0.95);
    border-color: rgba(255,255,255,0.95);
    color: var(--ink);
}

    .btn-light:hover {
        background: var(--white);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
}

.btn-danger {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-secondary {
    background: var(--ink-soft);
    border-color: var(--ink-soft);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* ── Header & Navigation ─────────────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.main-nav.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: 0 1px 0 rgba(20,22,28,0.02);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem !important;
    color: var(--ink) !important;
    letter-spacing: -0.01em;
}

    .navbar-brand .text-primary {
        color: var(--primary-color) !important;
    }

.main-nav .nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink-soft);
    padding: 0.5rem 0.9rem !important;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    position: relative;
}

    .main-nav .nav-link:hover,
    .main-nav .nav-link:focus {
        color: var(--primary-color);
        background: var(--primary-soft);
    }

    .main-nav .nav-link.active {
        color: var(--primary-color);
    }

#cartCountBadge {
    background: var(--primary-color) !important;
    font-weight: 700;
    box-shadow: 0 0 0 2px var(--white);
}

.about-dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem !important;
}

    .about-dropdown-menu .dropdown-item {
        border-radius: var(--radius-sm);
        padding: 0.55rem 0.9rem;
        font-weight: 500;
        font-size: 0.9rem;
    }

        .about-dropdown-menu .dropdown-item:hover {
            background: var(--primary-soft);
            color: var(--primary-dark);
        }

.navbar-categories.bg-primary {
    background: linear-gradient(90deg, var(--ink) 0%, var(--ink-soft) 100%) !important;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
}

.navbar-categories .navbar-text {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.85;
}

.nav-link-category {
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-pill) !important;
}

    .nav-link-category:hover {
        background-color: rgba(255,255,255,0.12) !important;
    }

.category-mega-menu,
.all-products-mega-menu {
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-color);
    margin-top: 0.5rem;
    animation: menuFade 0.2s var(--ease);
}

@keyframes menuFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-header {
    color: var(--primary-color) !important;
    border-bottom-color: var(--border-color) !important;
    font-family: var(--font-display);
}

.subcategory-link,
.subcategory-title {
    color: var(--ink-soft) !important;
}

    .subcategory-link:hover,
    .subcategory-title:hover,
    .product-link:hover,
    .product-text-link:hover {
        color: var(--primary-color) !important;
    }

.view-all-link,
.view-all-button {
    color: var(--primary-color) !important;
    background: var(--primary-soft);
    padding: 0.35rem 0.9rem !important;
    border-radius: var(--radius-pill);
    font-weight: 600 !important;
}

    .view-all-button:hover {
        background: var(--primary-color) !important;
        color: var(--white) !important;
    }

.category-tooltip {
    background-color: var(--ink) !important;
    border-radius: var(--radius-sm) !important;
}

/* ── Hero ─────────────────────────────────────────── */
.hero-section {
    position: relative;
    overflow: hidden;
}

/* ── Cards ─────────────────────────────────────────── */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-display);
    font-weight: 700;
}

.product-card {
    cursor: pointer;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }

    .product-card .product-image-container {
        overflow: hidden;
        background: var(--light-gray);
    }

    .product-card img {
        transition: transform 0.4s var(--ease);
    }

    .product-card:hover img {
        transform: scale(1.07);
    }

.product-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
}

.product-price {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    gap: 1.5rem;
}

/* ── Forms ─────────────────────────────────────────── */
.form-control,
.form-select {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background-color: var(--white);
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px var(--primary-soft);
    }

.form-label {
    font-weight: 600;
    color: var(--ink-soft);
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--light-color);
    transition: var(--transition);
}

    .file-upload:hover,
    .file-upload.dragover {
        border-color: var(--primary-color);
        background: var(--primary-soft);
    }

.contact-form-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ── Tables ─────────────────────────────────────────── */
.table {
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
}

    .table thead th {
        background: var(--light-color);
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--slate);
        border-bottom: 1.5px solid var(--border-color);
        padding: 0.9rem 1rem;
    }

    .table td {
        padding: 0.85rem 1rem;
        vertical-align: middle;
        border-bottom: 1px solid var(--border-color);
    }

.table-hover tbody tr:hover {
    background-color: var(--primary-soft);
}

/* ── Badges ─────────────────────────────────────────── */
.badge {
    font-weight: 600;
    padding: 0.4em 0.85em;
    border-radius: var(--radius-pill);
    letter-spacing: 0.01em;
}

.trust-badge {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1.1rem;
    box-shadow: var(--shadow-xs);
    font-weight: 600;
    font-size: 0.85rem;
}

.step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: var(--shadow-sm);
}

/* ── Modals ─────────────────────────────────────────── */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-display);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* ── Page Titles ─────────────────────────────────────────── */
.page-title {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ── Social ─────────────────────────────────────────── */
.social-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

    .social-links a {
        position: relative;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        text-decoration: none;
        color: #fff;
        flex-shrink: 0;
        transition: background 0.2s ease, transform 0.2s ease;
    }

        .social-links a i {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 16px;
            line-height: 1;
            margin: 0;
            padding: 0;
        }

        .social-links a:hover {
            background: var(--primary-color);
            transform: translateY(-3px);
        }

            .social-links a:hover i {
                transform: translate(-50%, -50%);
            }

/* ── Footer ─────────────────────────────────────────── */
.footer-enhanced {
    background: var(--dark-color);
    color: #b7bcc7;
    padding: 70px 0 30px;
    font-family: var(--font-body);
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.05rem;
    font-family: var(--font-display);
    position: relative;
    padding-bottom: 12px;
}

    .footer-column h4:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 36px;
        height: 3px;
        border-radius: var(--radius-pill);
        background: var(--primary-color);
    }

.footer-column a {
    display: block;
    color: #9aa0ac;
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: var(--transition);
}

    .footer-column a:hover {
        color: var(--primary-light);
        transform: translateX(4px);
        text-decoration: underline;
    }

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: #9aa0ac;
    font-size: 0.87rem;
    margin-bottom: 14px;
}

    .footer-contact p i {
        color: var(--primary-color);
        margin-top: 3px;
    }

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}

.app-button {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    color: var(--white) !important;
    font-size: 1.4rem;
    margin-bottom: 0 !important;
    transition: var(--transition);
}

    .app-button:hover {
        background: rgba(255,255,255,0.12);
        transform: translateY(-2px);
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

    .footer-links a {
        color: #9aa0ac;
        margin-bottom: 0;
        font-size: 0.85rem;
    }

.payment-methods {
    display: flex;
    gap: 0.9rem;
    font-size: 1.6rem;
    color: #9aa0ac;
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: #757c89;
    margin: 0;
}

/* ── Live Chat Widget ─────────────────────────────────────────── */
.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

    .chat-button:hover {
        transform: scale(1.08) translateY(-2px);
    }

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger-color);
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px var(--white);
}

.chat-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 340px;
    max-width: 90vw;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    z-index: 1050;
}

    .chat-window.open {
        display: flex;
        animation: menuFade 0.25s var(--ease);
    }

.chat-header {
    background: linear-gradient(120deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.3rem;
}

.chat-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
}

.chat-status {
    font-size: 0.72rem;
    opacity: 0.9;
}

.chat-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

    .chat-close:hover {
        background: rgba(255,255,255,0.3);
    }

.chat-body {
    padding: 1rem;
    max-height: 320px;
    overflow-y: auto;
    background: var(--light-color);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.chat-message {
    display: flex;
}

    .chat-message.received {
        justify-content: flex-start;
    }

    .chat-message.sent {
        justify-content: flex-end;
    }

.message-bubble {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
    max-width: 85%;
    box-shadow: var(--shadow-xs);
}

.chat-message.sent .message-bubble {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.chat-footer {
    border-top: 1px solid var(--border-color);
    padding: 0.8rem;
    background: var(--white);
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
}

.quick-reply-btn {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

    .quick-reply-btn:hover {
        background: var(--primary-color);
        color: var(--white);
    }

.chat-input-group {
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

    .chat-input:focus {
        outline: none;
        border-color: var(--primary-color);
    }

.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

    .chat-send-btn:hover {
        background: var(--primary-dark);
    }

/* ── Toast ─────────────────────────────────────────── */
.toast-notification {
    border-radius: var(--radius-md) !important;
    font-family: var(--font-body) !important;
}

/* ── Utility Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s var(--ease) both;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .chat-window {
        right: 12px;
        bottom: 84px;
        width: calc(100vw - 24px);
    }
}

@media (max-width: 575.98px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .btn-lg {
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
    }
}
