/*
Theme Name: PantipSupply Storefront Child
Theme URI: https://pantipsupply.com
Description: Clean High-Tech Corporate Child Theme for PantipSupply (fs.com inspired)
Author: IDIN9
Author URI: https://idin9.com
Template: storefront
Version: 1.1.0
*/

/* ============================================================
   fs.com STYLE — Clean High-Tech Corporate
   ============================================================ */

/* Base */
body {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0.04em;
}

h1, h2, h3, h4 {
    letter-spacing: 0.02em;
    color: #0f172a;
}

/* Header — dark professional bar */
.site-header {
    background-color: #0f172a !important;
    border-bottom: 3px solid #2563eb;
}

.site-header .site-branding a,
.site-header .site-branding .site-title {
    color: #ffffff !important;
}

.site-header .main-navigation ul.menu > li > a {
    color: #e2e8f0 !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-header .main-navigation ul.menu > li > a:hover {
    color: #38bdf8 !important;
}

/* Storefront navigation (category menu) */
.main-navigation ul.menu li:hover > a {
    color: #38bdf8 !important;
}

/* Buttons — premium blue */
button, .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.added_to_cart {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    padding: 12px 22px;
    letter-spacing: 0.03em;
    transition: background-color 0.2s ease;
}

button:hover, .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.added_to_cart:hover {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
}

/* Product grid — fs.com style cards */
ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.products li.product {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(15, 23, 42, 0.15);
    border-color: #2563eb;
}

ul.products li.product a img {
    border-radius: 6px;
    margin-bottom: 12px;
    background: #f1f5f9;
}

ul.products li.product h2,
ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    min-height: 2.6em;
    line-height: 1.3;
}

ul.products li.product .price {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.1rem;
}

ul.products li.product .button {
    margin-top: 8px;
    width: 100%;
    text-align: center;
}

/* Page header / category hero */
.woocommerce-products-header {
    background: #0f172a;
    color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.woocommerce-products-header .woocommerce-products-header__title {
    color: #ffffff;
    letter-spacing: 0.02em;
}

/* Storefront header customizer elements */
.storefront-primary-navigation {
    background: #0f172a !important;
}

.site-footer {
    background: #0f172a !important;
    color: #cbd5e1;
    border-top: 3px solid #2563eb;
}

.site-footer a {
    color: #94a3b8;
}

.site-footer a:hover {
    color: #38bdf8;
}

/* Pagination — clean */
.woocommerce-pagination ul.page-numbers li .page-numbers {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    border-radius: 6px;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.current {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
    color: #64748b;
}

.woocommerce-breadcrumb a {
    color: #2563eb;
}

/* Search bar */
.site-search form input[type="search"] {
    border: 1px solid #334155;
    border-radius: 6px;
    background: #ffffff;
}

/* Single product — structured spec */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #2563eb;
    border-bottom: 3px solid #2563eb;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #64748b;
}

table.shop_attributes th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    width: 40%;
}

table.shop_attributes td {
    border: 1px solid #e2e8f0;
}


/* RFQ Header Button (fs.com style) */
.pantipsupply-rfq-btn {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 8px 16px;
    margin-left: 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    vertical-align: middle;
}
.pantipsupply-rfq-btn:hover {
    background-color: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .pantipsupply-rfq-btn {
        display: inline-block;
        margin: 8px 0 0 0;
    }
}
