/*
Theme Name: WASHOP
Theme URI: https://www.onlinetist.com/
Template: astra
Author: Onlinetist
Author URI: https://www.onlinetist.com/
Description: A lightweight and responsive child theme of Astra, tailored for the WA Shop project — a WhatsApp-powered product ordering interface with category filters, quantity selectors, and direct WhatsApp integration.
Tags: Tags: custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, e-commerce, responsive-layout, sticky-post, threaded-comments, translation-ready, whatsapp-integration
Version: 4.11.0.1746694539
Updated: 2025-05-08 08:55:39

*/

/* 🟢 Reset + Layout Safety */
html, body {
    margin: 0;
    min-width: 320px;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Courier New', Courier, monospace;
    background: #f4f4fc;
}

/* 🧱 Ghost Anchor – Layout Lockdown */
body::after {
    content: '';
    display: block;
    width: 100vw;
    height: 1px;
    visibility: hidden;
}

/* 📦 Page Container */
.washop-container {
    width: 100%;
    box-sizing: border-box;
}

/* 🟢 Header */
.washop-header {
    background: #00c26d;
    color: white;
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.washop-header h1 {
    font-size: 48px;
    margin: 0;
    font-weight: 900;
}
.washop-header span {
    font-weight: bold;
}
.subheading {
    margin-top: 10px;
    font-size: 18px;
}

/* 🔍 Search */
/* 🟢 Search Input Styling */
.washop-search {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 0 15px;
}

.washop-search input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 12px 40px 12px 16px; /* Space for icon */
    font-size: 16px;
    border: 1px solid #00c26d;
    border-radius: 30px;
    outline: none;
    background: #fff url("data:image/svg+xml,%3Csvg fill='%2300c26d' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.71 20.29l-3.387-3.387C19.162 15.222 20 13.209 20 11c0-4.97-4.03-9-9-9S2 6.03 2 11s4.03 9 9 9c2.209 0 4.222-.838 5.903-2.324l3.387 3.387a1 1 0 0 0 1.414-1.414zM4 11c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7-7-3.14-7-7z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 📚 Sidebar */
.washop-body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px 20px;
    width: 100%;
    box-sizing: border-box;
}

.washop-sidebar {
    flex: 0 0 220px;
    background: #f2f2f2;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.washop-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.washop-sidebar li {
    margin-bottom: 12px;
}
.category-btn {
    background: none;
    border: none;
    font-size: 16px;
    text-align: left;
    width: 100%;
    cursor: pointer;
    color: #00c26d;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.category-btn:hover {
    background: #00c26d;
    color: white;
}

/* 🛒 Product Grid */
.washop-products {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    min-height: 200px; /* 🧱 Prevent grid collapse */
    box-sizing: border-box;
}

/* 🚫 No Results Message (JS Generated) */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    font-size: 18px;
    font-weight: bold;
    color: #ff4444;
}

/* 👻 Placeholder to stabilize grid (optional) */
.product-grid-placeholder {
    width: 100%;
    min-height: 1px;
    grid-column: 1 / -1;
    visibility: hidden;
}

/* 🛍️ Product Card */
.product-card {
    background: white;
    border-radius: 8px;
    display: flex;
    height: 120px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    align-items: center;
}
.product-img {
    flex: 0 0 80px;
    height: 80px;
}
.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-details {
    flex: 1;
    padding-left: 12px;
}
.product-name {
    font-size: 16px;
    margin: 0 0 5px;
    font-weight: bold;
}
.product-price {
    font-size: 14px;
    color: #777;
    margin: 0 0 10px;
}

.qty-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-input {
    width: 50px;
    padding: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    line-height: 1;
}

.add-btn {
    background-color: #00c26d;
    color: white;
    border: none;
    padding: 8px 15px; /* Adjusted padding to visually match */
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn:disabled {
    background-color: #cccccc;
    cursor: default;
}

/* ➕ Quantity Buttons */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0; /* prevent drop below ADD button */
}

.qty-btn {
    background: #00c26d;
    border: none;
    padding: 6px 10px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1;
}


/* ✅ WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #00c26d;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 999;
}
.whatsapp-float svg {
    width: 28px;
    height: 28px;
}
.whatsapp-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* 🧾 Modal Popup */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal-content {
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    position: relative;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
}
.modal-content input {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}
#confirmOrderBtn {
    background-color: #00c26d;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
}

/* ✖️ Modal Close */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #888;
}

/*Toast */
.washop-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4444;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    display: none;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}