/*
Theme Name: Product Table OnePager
Theme URI: https://ddsolutions.com.mk/
Author: Dragan Jovanoski
Description: A minimal one-page WooCommerce theme for displaying products in a custom table.
Version: 1.0
*/
/* style.css: Theme styles */


/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f9f9f9;
    color: #222;
    font-size: 16px;
    line-height: 1.6;
}

main {
    padding: 30px 20px;
    max-width: 1200px;
    margin: auto;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Table Wrapper (for scrollability) */
.custom-product-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Product Table */
.custom-product-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.custom-product-table th,
.custom-product-table td {
    padding: 12px 16px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 15px;
}

.custom-product-table th {
    background: #f1f1f1;
    font-weight: 600;
}

.custom-product-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.custom-product-table tbody tr:hover {
    background: #eef4ff;
}

.custom-product-table a {
    color: #0073aa;
    text-decoration: none;
}

.custom-product-table a:hover {
    text-decoration: underline;
}

/* Pagination */
#pagination-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

#pagination-controls button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

#pagination-controls button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#pagination-info {
    font-weight: 500;
}

/* Per Page Selector */
#per-page-select {
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 10px;
}

/* Footer */
footer {
    background: #f1f1f1;
    padding-top: 40px;
    text-align: center;
    color: #333;
}

footer .footer-bottom {
    margin-top: 30px;
    background: #0a53be;
    color: white;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    .custom-product-table th,
    .custom-product-table td {
        font-size: 14px;
        padding: 10px;
    }

    #pagination-controls {
        flex-direction: column;
    }

    #per-page-select {
        width: 100%;
    }

    footer {
        font-size: 14px;
    }

    footer .footer-bottom {
        font-size: 13px;
    }
}
