/*
Theme Name: kww
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Simple WordPress Theme for learning
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mytheme
*/


body {
margin: 0;
font-family: Arial, sans-serif;
}



/* ===============================
   MAIN LAYOUT FIX
================================ */
.shop-layout .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: flex-start;
}

/* ===============================
   SIDEBAR FIX
================================ */
.shop-sidebar {
    position: sticky;
    top: 120px;
}

/* Remove bullets */
.shop-sidebar ul,
.shop-sidebar li {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Filter box spacing */
.shop-sidebar .wpc-filters-section,
.shop-sidebar .wpc-filter {
    margin-bottom: 25px;
}

/* Filter title (RED) */
.shop-sidebar .wpc-filter-title,
.shop-sidebar h4 {
    background: #e53935;
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Checkbox label */
.shop-sidebar label {
    font-size: 13px;
    color: #333;
}

/* ===============================
   PRODUCTS TOP BAR FIX
================================ */
.woocommerce-result-count,
.woocommerce-ordering {
    display: inline-block;
    margin-bottom: 20px;
}

.woocommerce-ordering {
    float: right;
}

/* ===============================
   PRODUCTS GRID FIX (3 PER ROW)
================================ */
.shop-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Product card */
.shop-products li.product {
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Image box */
.shop-products li.product img {
    height: 220px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Product title */
.shop-products li.product h2,
.shop-products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Remove price */
.shop-products .price {
    display: none;
}

/* Enquiry button */
.shop-products .enquiry-btn,
.shop-products a.button {
    background: #000;
    color: #fff;
    padding: 8px 18px;
    font-size: 13px;
    text-transform: uppercase;
    margin-top: 10px;
    display: inline-block;
}

.shop-products a.button:hover {
    background: #e53935;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
    .shop-layout .container {
        grid-template-columns: 1fr;
    }

    .shop-products ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .shop-products ul.products {
        grid-template-columns: 1fr;
    }
}




/* ===== WP Table Builder – Universal Styling ===== */

/* Table base */
.wptb-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

/* All cells */
.wptb-table td {
  padding: 10px !important;
  border: 1px solid #000 !important;
  text-align: center;
  vertical-align: middle;
}

/* Header row */
.wptb-table tr:first-child td {
  background-color: #d60000 !important; /* Red header */
  color: #ffffff !important;
  font-weight: 700;
}

/* Body rows */
.wptb-table tr:not(:first-child) td {
  background-color: #ffffff;
}

/* Alternate row color */
.wptb-table tr:nth-child(even):not(:first-child) td {
  background-color: #f9f9f9;
}

/* Hover effect */
.wptb-table tr:hover td {
  background-color: #eeeeee;
  transition: background-color 0.2s ease-in-out;
}











.shop-products.loading {
    position: relative;
    opacity: 0.4;
    pointer-events: none;
}

.shop-products.loading::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}




.woocommerce .products ul::after, .woocommerce .products ul::before, .woocommerce ul.products::after, .woocommerce ul.products::before {
    /* content: " "; */
    display: table;
}