/* TezKhoj Smart Catalogue & WhatsApp Commerce Styles */

.tzk-catalog-section {
    margin: 32px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.tzk-catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.tzk-catalog-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.tzk-catalog-cats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 18px;
    scrollbar-width: none;
}
.tzk-catalog-cats::-webkit-scrollbar {
    display: none;
}

.tzk-cat-pill {
    padding: 6px 14px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.tzk-cat-pill:hover,
.tzk-cat-pill.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Grid */
.tzk-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

@media (max-width: 640px) {
    .tzk-catalog-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

.tzk-catalog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.tzk-catalog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.tzk-card-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tzk-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tzk-card-badge-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #16a34a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
}

.tzk-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tzk-card-category {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.tzk-card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.3;
}

.tzk-card-unit {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.tzk-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tzk-price-wrap {
    display: flex;
    flex-direction: column;
}

.tzk-price-selling {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.tzk-price-mrp {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

/* Add to cart / Basket Button */
.tzk-btn-add {
    background: #ffffff;
    color: #16a34a;
    border: 1.5px solid #16a34a;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tzk-btn-add:hover {
    background: #16a34a;
    color: #ffffff;
}

.tzk-qty-control {
    display: none;
    align-items: center;
    background: #16a34a;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;
}
.tzk-qty-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    width: 28px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tzk-qty-val {
    font-size: 13px;
    font-weight: 800;
    padding: 0 6px;
}

/* Floating Bottom Cart Bar */
.tzk-floating-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 99999;
    display: none;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    animation: tzkBounceUp 0.3s ease;
    border: 1px solid #334155;
    max-width: 90vw;
}

@keyframes tzkBounceUp {
    from { transform: translate(-50%, 40px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.tzk-cart-summary {
    display: flex;
    flex-direction: column;
}
.tzk-cart-items-count {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}
.tzk-cart-total-price {
    font-size: 16px;
    font-weight: 800;
    color: #4ade80;
}

.tzk-cart-cta-btn {
    background: #2563eb;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Modal / Drawer */
.tzk-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    justify-content: flex-end;
}

.tzk-drawer-panel {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    height: 100%;
    overflow-y: auto;
    box-shadow: -10px 0 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    animation: tzkSlideIn 0.3s ease;
}

@keyframes tzkSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.tzk-drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}
.tzk-drawer-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}
.tzk-drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

.tzk-drawer-content {
    padding: 20px;
    flex: 1;
}

.tzk-drawer-footer {
    padding: 18px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tzk-btn-whatsapp-order {
    width: 100%;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(22,163,74,0.3);
    transition: all 0.2s ease;
}
.tzk-btn-whatsapp-order:hover {
    filter: brightness(1.05);
}
