/* ============================================
   HPUY.COM Style Overrides for Blocksy
   ============================================ */

/* --- Global --- */
body {
    font-family: "Rubik", sans-serif;
    color: #232323;
    background: #ffffff;
}

a { color: #232323; }
a:hover { color: #ea4226; }

/* --- Header --- */
.site-header {
    border-bottom: 1px solid #e8e8e8;
}

.site-header .main-navigation a {
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #232323;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.site-header .main-navigation a:hover { color: #ea4226; }

.ct-search-form { border-radius: 4px; }

.ct-cart-count {
    background: #ea4226 !important;
    color: #ffffff !important;
}

/* --- Product Cards --- */
.product .price { font-family: "Rubik", sans-serif; }
.product .price del { color: #969696; font-size: 13px; }
.product .price ins,
.product .price > .woocommerce-Price-amount { color: #ea4226; font-weight: 600; }
.product .price del .woocommerce-Price-amount { color: #969696; font-weight: 400; }

/* Sale badge */
.product .onsale,
span.onsale {
    background: #ea4226 !important;
    color: #ffffff !important;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    min-width: auto;
    min-height: auto;
    line-height: 1.4;
}

/* Product title in cards */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.product-title {
    font-size: 14px;
    font-weight: 400;
    color: #232323;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Add to cart on cards */
.woocommerce ul.products li.product .button,
.product .ct-woo-card-extra .button {
    background: #232323;
    color: #ffffff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 8px 16px;
}

.woocommerce ul.products li.product .button:hover { background: #ea4226; }

/* --- Category/Shop Page Sidebar --- */
.ct-sidebar { font-size: 14px; }

.ct-sidebar .widget-title {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: #232323;
    border-bottom: 2px solid #232323;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.woocommerce-result-count { color: #969696; font-size: 13px; }
.woocommerce-ordering select { border-radius: 4px; border-color: #e8e8e8; }

/* --- Single Product Page --- */
.entry-summary .product_title {
    font-family: "Rubik", sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #232323;
    line-height: 1.4;
}

.entry-summary .price { font-size: 20px; }
.entry-summary .price ins { color: #ea4226; font-weight: 700; text-decoration: none; }
.entry-summary .price del { color: #969696; font-size: 16px; }

.entry-summary .quantity .qty { border-radius: 4px; border-color: #e8e8e8; }

.entry-summary .single_add_to_cart_button {
    background: #232323 !important;
    color: #ffffff !important;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 12px 30px;
    width: 100%;
}

.entry-summary .single_add_to_cart_button:hover { background: #ea4226 !important; }

/* Product specs table */
.hpuy-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.hpuy-specs-table th {
    background: #f5f5f5;
    text-align: left;
    padding: 10px 15px;
    border: 1px solid #e8e8e8;
    font-weight: 600;
    width: 35%;
    color: #232323;
}

.hpuy-specs-table td {
    padding: 10px 15px;
    border: 1px solid #e8e8e8;
    color: #232323;
}

/* --- Breadcrumbs --- */
.ct-breadcrumbs { font-size: 13px; color: #969696; padding: 12px 0; }
.ct-breadcrumbs a { color: #969696; }
.ct-breadcrumbs a:hover { color: #ea4226; }

/* --- Footer --- */
.site-footer {
    background: #f5f5f5 !important;
    color: #232323;
    font-size: 14px;
}

.site-footer .widget-title {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: #232323;
    margin-bottom: 16px;
}

.site-footer a { color: #969696; }
.site-footer a:hover { color: #ea4226; }

.ct-social-box a { color: #969696 !important; }
.ct-social-box a:hover { color: #ea4226 !important; }

/* --- Trust Bar --- */
.hpuy-trust-bar {
    background: #ffffff;
    padding: 30px 0;
    border-bottom: 1px solid #e8e8e8;
}

.hpuy-trust-bar .trust-items {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 20px;
}

.hpuy-trust-bar .trust-item { text-align: center; }

.hpuy-trust-bar .trust-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #232323;
    margin-bottom: 5px;
}

.hpuy-trust-bar .trust-item p {
    font-size: 13px;
    color: #969696;
    margin: 0;
}

/* --- Header Search Bar (inline input) --- */
.hpuy-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    border: 2px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

.hpuy-search-form input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 15px;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    color: #232323;
    background: transparent;
}

.hpuy-search-form input[type="text"]::placeholder {
    color: #969696;
}

.hpuy-search-form button {
    background: #232323;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.hpuy-search-form button:hover {
    background: #ea4226;
}

@media (max-width: 768px) {
    .hpuy-search-form {
        max-width: 100%;
    }
}

/* --- Accessibility: Contrast Fixes --- */
/* WooCommerce product titles on homepage */
.wc-block-grid__product-title {
    color: #232323 !important;
}

/* WooCommerce prices */
.wc-block-grid__product-price .woocommerce-Price-amount {
    color: #232323 !important;
}

/* WooCommerce "Read more" / "Add to cart" buttons */
.wp-block-button__link.add_to_cart_button {
    color: #ffffff !important;
    background: #232323 !important;
}

/* Navigation bottom row links */
[data-row="bottom"] .ct-menu-link {
    color: #ffffff !important;
}

/* Search placeholder */
.hpuy-search-form input[type="text"]::placeholder {
    color: #757575;
}

/* --- Related Products --- */
.related.products h2 {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hpuy-trust-bar .trust-items {
        flex-direction: column;
        gap: 20px;
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
