/*
 * TEWYAG B2B Catalog Theme v2.0
 * Professional styling for B2B product catalog
 */

/* ===== COLOR SCHEME ===== */
:root {
    --tewyag-primary: #1a365d;
    --tewyag-primary-light: #2b4f8c;
    --tewyag-accent: #e53e3e;
    --tewyag-accent-hover: #c53030;
    --tewyag-whatsapp: #25D366;
    --tewyag-email: #2b6cb0;
    --tewyag-bg: #ffffff;
    --tewyag-bg-light: #f7fafc;
    --tewyag-bg-dark: #1a202c;
    --tewyag-text: #2d3748;
    --tewyag-text-light: #718096;
    --tewyag-border: #e2e8f0;
    --tewyag-success: #38a169;
}

/* ===== TYPOGRAPHY ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--tewyag-text);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* ===== HEADER ===== */
.ast-primary-header-bar {
    background: var(--tewyag-bg) !important;
    border-bottom: 1px solid var(--tewyag-border) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.site-title {
    font-weight: 700 !important;
    font-size: 24px !important;
    letter-spacing: -0.5px;
}

.main-header-menu .menu-item a {
    font-weight: 500 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 16px !important;
}

.main-header-menu .current-menu-item > a {
    color: var(--tewyag-accent) !important;
}

/* ===== HERO SECTION ===== */
.tewyag-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2b4f8c 40%, #1a365d 100%) !important;
    padding: 80px 20px !important;
    margin-bottom: 40px !important;
    position: relative;
    overflow: hidden;
}

.tewyag-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.tewyag-hero h1 {
    font-size: 40px !important;
    margin-bottom: 16px !important;
    position: relative;
}

.tewyag-hero p {
    font-size: 18px !important;
    max-width: 600px;
    margin: 0 auto 28px !important;
    opacity: 0.9;
    position: relative;
}

.tewyag-hero .tewyag-hero-btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.tewyag-hero-btn-primary {
    background: var(--tewyag-accent);
    color: white !important;
}

.tewyag-hero-btn-primary:hover {
    background: var(--tewyag-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 62, 62, 0.3);
}

.tewyag-hero-btn-secondary {
    background: transparent;
    color: white !important;
    border: 2px solid rgba(255,255,255,0.5);
}

.tewyag-hero-btn-secondary:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ===== SECTION HEADERS ===== */
.tewyag-section-title {
    text-align: center;
    margin: 50px 0 10px !important;
    font-size: 28px !important;
    color: var(--tewyag-primary) !important;
}

.tewyag-section-subtitle {
    text-align: center;
    color: var(--tewyag-text-light);
    margin-bottom: 35px !important;
    font-size: 16px;
}

/* ===== PRODUCT CATEGORY GRID ===== */
.woocommerce ul.products {
    gap: 20px;
}

.woocommerce ul.products li.product {
    background: var(--tewyag-bg);
    border: 1px solid var(--tewyag-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: transparent;
}

.woocommerce ul.products li.product a img {
    margin: 0 !important;
    border-radius: 8px 8px 0 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 16px 4px !important;
    color: var(--tewyag-primary) !important;
}

.woocommerce ul.products li.product .price {
    display: none !important;
}

/* Product category cards */
.woocommerce ul.products li.product-category {
    background: var(--tewyag-bg-light);
    border: 1px solid var(--tewyag-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 !important;
}

.woocommerce ul.products li.product-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.woocommerce ul.products li.product-category a img {
    margin: 0 !important;
}

.woocommerce ul.products li.product-category h2 {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 16px !important;
    color: var(--tewyag-primary) !important;
}

/* ===== PRODUCT SINGLE PAGE ===== */
.single-product .product {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.single-product .woocommerce-product-gallery {
    flex: 1;
    min-width: 300px;
}

.single-product .summary {
    flex: 1;
    min-width: 300px;
}

.single-product .product_title {
    font-size: 28px !important;
    color: var(--tewyag-primary) !important;
    margin-bottom: 10px !important;
}

.single-product .woocommerce-product-details__short-description {
    font-size: 15px;
    color: var(--tewyag-text);
    line-height: 1.8;
    margin: 16px 0;
    padding: 16px;
    background: var(--tewyag-bg-light);
    border-radius: 6px;
    border-left: 4px solid var(--tewyag-primary);
}

/* SKU display */
.single-product .sku_wrapper {
    display: block;
    font-size: 14px;
    color: var(--tewyag-text-light);
    margin-bottom: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--tewyag-border);
}

/* ===== B2B SPECS TABLE ===== */
.tewyag-specs-table {
    margin: 24px 0 !important;
    background: var(--tewyag-bg);
    border: 1px solid var(--tewyag-border);
    border-radius: 8px;
    overflow: hidden;
}

.tewyag-specs-table h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--tewyag-primary) !important;
    padding: 14px 20px !important;
    margin: 0 !important;
    background: var(--tewyag-bg-light);
    border-bottom: 1px solid var(--tewyag-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tewyag-specs-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 !important;
}

.tewyag-specs-table tr {
    border-bottom: 1px solid var(--tewyag-border);
    transition: background 0.2s;
}

.tewyag-specs-table tr:last-child {
    border-bottom: none;
}

.tewyag-specs-table tr:hover {
    background: var(--tewyag-bg-light);
}

.tewyag-specs-table .spec-label {
    padding: 12px 20px !important;
    font-weight: 600 !important;
    color: var(--tewyag-primary) !important;
    width: 40%;
    font-size: 13px !important;
    background: transparent;
}

.tewyag-specs-table .spec-value {
    padding: 12px 20px !important;
    color: var(--tewyag-text) !important;
    font-size: 13px !important;
}

/* ===== INQUIRY BUTTONS ===== */
.tewyag-inquiry-buttons {
    margin: 24px 0 !important;
    padding: 24px !important;
    background: var(--tewyag-bg-light);
    border: 1px solid var(--tewyag-border);
    border-radius: 8px;
}

.tewyag-inquiry-buttons h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--tewyag-primary) !important;
    margin: 0 0 16px !important;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--tewyag-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tewyag-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin: 0 8px 10px 0;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    gap: 8px;
}

.tewyag-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.tewyag-btn-whatsapp {
    background: var(--tewyag-whatsapp) !important;
    color: white !important;
}

.tewyag-btn-email {
    background: var(--tewyag-email) !important;
    color: white !important;
}

.tewyag-btn-form {
    background: var(--tewyag-accent) !important;
    color: white !important;
}

/* ===== ARCHIVE INQUIRY BUTTONS ===== */
.tewyag-archive-inquiry {
    padding: 8px 16px 16px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tewyag-small-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
}

.tewyag-small-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* ===== CONTACT PAGE ===== */
.tewyag-inquiry-form {
    max-width: 600px;
}

.tewyag-inquiry-form input[type="text"],
.tewyag-inquiry-form input[type="email"],
.tewyag-inquiry-form input[type="tel"],
.tewyag-inquiry-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--tewyag-border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: var(--tewyag-bg);
}

.tewyag-inquiry-form input:focus,
.tewyag-inquiry-form textarea:focus {
    outline: none;
    border-color: var(--tewyag-primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.tewyag-inquiry-form input[type="submit"] {
    background: var(--tewyag-primary);
    color: white;
    padding: 14px 36px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tewyag-inquiry-form input[type="submit"]:hover {
    background: var(--tewyag-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 54, 93, 0.2);
}

/* ===== WHY CHOOSE US ===== */
.tewyag-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tewyag-feature-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--tewyag-bg);
    border: 1px solid var(--tewyag-border);
    border-radius: 8px;
    transition: all 0.3s;
}

.tewyag-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    border-color: var(--tewyag-primary);
}

.tewyag-feature-card .icon {
    font-size: 44px;
    margin-bottom: 16px;
    display: block;
}

.tewyag-feature-card h3 {
    font-size: 16px !important;
    color: var(--tewyag-primary) !important;
    margin-bottom: 8px !important;
}

.tewyag-feature-card p {
    font-size: 13px;
    color: var(--tewyag-text-light);
    line-height: 1.6;
}

/* ===== CUSTOMIZATION CTA ===== */
.tewyag-cta-section {
    background: linear-gradient(135deg, #1a365d 0%, #2b4f8c 100%);
    padding: 50px 30px !important;
    text-align: center;
    border-radius: 8px;
    margin: 30px 0;
}

.tewyag-cta-section h2 {
    color: white !important;
    font-size: 26px !important;
    margin-bottom: 12px !important;
}

.tewyag-cta-section p {
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    margin: 0 auto 24px !important;
}

.tewyag-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--tewyag-accent);
    color: white !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.tewyag-cta-btn:hover {
    background: var(--tewyag-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 62, 62, 0.3);
    color: white !important;
}

/* ===== CONTACT CTA ===== */
.tewyag-contact-cta {
    background: var(--tewyag-bg-dark);
    padding: 40px 30px !important;
    text-align: center;
    border-radius: 8px;
    margin: 30px 0;
}

.tewyag-contact-cta h2 {
    color: white !important;
    font-size: 24px !important;
    margin-bottom: 16px !important;
}

.tewyag-contact-cta p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px !important;
}

.tewyag-contact-cta a {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin: 5px;
    transition: all 0.3s;
}

.tewyag-contact-cta a:hover {
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--tewyag-bg-dark) !important;
    color: rgba(255,255,255,0.8);
}

.site-footer h3 {
    color: white !important;
    font-size: 16px !important;
    margin-bottom: 16px !important;
}

.site-footer a {
    color: rgba(255,255,255,0.7) !important;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: white !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .tewyag-hero {
        padding: 50px 20px !important;
    }

    .tewyag-hero h1 {
        font-size: 28px !important;
    }
    
    .tewyag-hero p {
        font-size: 16px !important;
    }

    .tewyag-btn {
        display: flex;
        justify-content: center;
        margin: 0 0 8px 0;
    }

    .single-product .product {
        flex-direction: column;
    }

    .tewyag-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tewyag-specs-table .spec-label {
        width: 45%;
    }

    .tewyag-archive-inquiry {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tewyag-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== REMOVE UNWANTED ELEMENTS ===== */
.ast-site-header-cart {
    display: none !important;
}

.woocommerce ul.products li.product .star-rating {
    display: none !important;
}

.woocommerce ul.products li.product .stock {
    display: none !important;
}

.woocommerce ul.products li.product .price {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs {
    display: none !important;
}

.woocommerce .related.products {
    display: none !important;
}

.related.products {
    display: none !important;
}

/* Contact for Price badge */
.contact-for-price {
    color: var(--tewyag-accent) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 8px 16px;
    background: rgba(229, 62, 62, 0.06);
    border-radius: 4px;
    display: inline-block;
    border: 1px solid rgba(229, 62, 62, 0.2);
}

/* ===== PAGINATION ===== */
.woocommerce nav.woocommerce-pagination {
    margin-top: 30px;
}

.woocommerce nav.woocommerce-pagination ul {
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    margin: 0 2px;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid var(--tewyag-border) !important;
    font-size: 14px;
    color: var(--tewyag-text);
    background: var(--tewyag-bg);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--tewyag-primary);
    color: white;
    border-color: var(--tewyag-primary) !important;
}

/* ===== BREADCRUMBS ===== */
.woocommerce-breadcrumb {
    font-size: 13px !important;
    color: var(--tewyag-text-light) !important;
    margin-bottom: 20px !important;
}

.woocommerce-breadcrumb a {
    color: var(--tewyag-primary) !important;
}

/* ===== RESULTS COUNT AND ORDERING ===== */
.woocommerce-result-count {
    font-size: 14px;
    color: var(--tewyag-text-light);
}

.woocommerce-ordering select {
    border: 1px solid var(--tewyag-border);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--tewyag-text);
}
