/**
 * Jithwin Billing Hardware Module Custom Styles
 * Reuses Webteck color scheme and responsive standards
 */

:root {
    --hw-primary: #684DF4;
    --hw-primary-dark: #5034DB;
    --hw-secondary: #3E66F3;
    --hw-title: #141D38;
    --hw-body: #737887;
    --hw-smoke: #F8FAFF;
    --hw-border: #E5E9F2;
    --hw-whatsapp: #25D366;
    --hw-success: #10B981;
    --hw-danger: #EF4444;
}

/* Typography */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--hw-body);
}
h1, h2, h3, h4, h5, h6, .hw-font-title {
    font-family: 'Barlow', sans-serif;
    color: var(--hw-title);
    font-weight: 700;
}

/* Hero Section */
.hw-hero-section {
    background: linear-gradient(135deg, #181045 0%, #2D1B69 50%, #141D38 100%);
    position: relative;
    padding: 80px 0 90px;
    color: #fff;
    overflow: hidden;
}
.hw-hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(104,77,244,0.35) 0%, rgba(104,77,244,0) 70%);
    border-radius: 50%;
}
.hw-hero-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #E2E8FA;
    margin-bottom: 20px;
}
.hw-hero-title {
    font-size: 46px;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .hw-hero-title {
        font-size: 32px;
    }
}
.hw-hero-desc {
    font-size: 17px;
    color: #E2E8FA;
    max-width: 620px;
    margin-bottom: 30px;
}

/* Search Bar in Hero */
.hw-hero-search-box {
    background: #fff;
    border-radius: 50px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    max-width: 600px;
}
.hw-hero-search-box input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 15px;
    color: var(--hw-title);
}
.hw-hero-search-box button {
    background: var(--hw-primary);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}
.hw-hero-search-box button:hover {
    background: var(--hw-primary-dark);
}

/* Category Quick Card */
.hw-cat-card {
    background: #fff;
    border: 1px solid var(--hw-border);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    height: 100%;
}
.hw-cat-card:hover {
    transform: translateY(-5px);
    border-color: var(--hw-primary);
    box-shadow: 0 10px 25px rgba(104,77,244,0.12);
}
.hw-cat-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background: var(--hw-smoke);
    color: var(--hw-primary);
    font-size: 26px;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
}
.hw-cat-card:hover .hw-cat-icon {
    background: var(--hw-primary);
    color: #fff;
}
.hw-cat-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hw-title);
    margin-bottom: 6px;
}

/* Product Card */
.hw-product-card {
    background: #fff;
    border: 1px solid var(--hw-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.hw-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(20,29,56,0.08);
    border-color: #cbd5e1;
}
.hw-card-img-wrap {
    height: 200px;
    background: #FAFAFC;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.hw-card-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.hw-product-card:hover .hw-card-img-wrap img {
    transform: scale(1.05);
}
.hw-badge-corner {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}
.hw-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hw-card-brand {
    font-size: 12px;
    font-weight: 600;
    color: var(--hw-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.hw-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hw-title);
    line-height: 1.4;
    margin-bottom: 8px;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.hw-card-title a {
    color: inherit;
    text-decoration: none;
}
.hw-card-title a:hover {
    color: var(--hw-primary);
}

/* Connectivity Chips */
.hw-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}
.hw-chip {
    font-size: 11px;
    background: #EEF2F6;
    color: #475569;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 500;
}

/* Price block */
.hw-price-wrap {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--hw-border);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.hw-selling-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--hw-title);
}
.hw-mrp-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 6px;
}
.hw-gst-badge {
    font-size: 11px;
    color: #64748b;
    display: block;
}

/* Card Action Buttons */
.hw-card-actions {
    padding: 12px 18px 16px;
    background: #fff;
    display: flex;
    gap: 8px;
}
.btn-hw-primary {
    background: var(--hw-primary);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-hw-primary:hover {
    background: var(--hw-primary-dark);
    color: #fff;
}
.btn-hw-outline {
    background: transparent;
    color: var(--hw-title);
    border: 1px solid #cbd5e1;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-hw-outline:hover {
    background: #f1f5f9;
    color: var(--hw-title);
}
.btn-hw-whatsapp {
    background: var(--hw-whatsapp);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-hw-whatsapp:hover {
    background: #1ebd5b;
    color: #fff;
}

/* Compare Checkbox */
.hw-compare-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    margin-bottom: 8px;
}
.hw-compare-check input {
    cursor: pointer;
}

/* Floating Compare Dock */
.hw-compare-dock {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #141D38;
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    z-index: 999;
    display: none;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Floating WhatsApp Button */
.hw-wa-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--hw-whatsapp);
    color: #fff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(37,211,102,0.4);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.hw-wa-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Comparison Matrix */
.hw-compare-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.hw-compare-table th, .hw-compare-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--hw-border);
    vertical-align: middle;
}
.hw-compare-table tr.diff-row {
    background-color: #FFFBEB;
}
.hw-compare-table tr.same-row.hide-same {
    display: none;
}

/* AI Wizard Card */
.hw-ai-wizard-card {
    background: linear-gradient(135deg, #F8FAFF 0%, #EEF2FF 100%);
    border: 2px dashed #C7D2FE;
    border-radius: 16px;
    padding: 30px;
}
