/* ============================================
   SATYAM B2B — Shop / Products Page Styles
   ============================================ */

/* ---- Breadcrumb ---- */
.woocommerce-breadcrumb {
    background: #f8fafc;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    margin: 0 0 24px 0;
    font-size: 13px;
    color: #64748b;
}

.woocommerce-breadcrumb a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
}

.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* ---- Shop Banner ---- */
.satyam-shop-wrap { background: var(--off-white); min-height: 80vh; }

.satyam-shop-wrap {
    --shop-gap: 22px;
    --shop-card-padding: 14px;
    --shop-card-radius: 12px;
    --shop-card-border: 1px solid var(--border);
    --shop-card-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.satyam-shop-banner {
    background: #f8fafc;
    padding: 24px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.satyam-shop-banner .container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.satyam-shop-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
    padding: 0;
}

.satyam-shop-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    padding: 0;
}

.satyam-shop-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--shop-gap);
    align-items: start;
    padding: 12px 0 12px;
}

.satyam-shop-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
}

.satyam-filter-panel {
    background: #fff;
    border: var(--shop-card-border);
    border-radius: var(--shop-card-radius);
    padding: var(--shop-card-padding);
    box-shadow: var(--shop-card-shadow);
}

.satyam-filter-panel h3 {
    margin: 0 0 14px;
    font-size: 18px;
    color: var(--charcoal);
}

.satyam-filter-group {
    margin-bottom: 12px;
}

.satyam-filter-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.satyam-filter-group input,
.satyam-filter-group select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
}

.satyam-filter-group input:focus,
.satyam-filter-group select:focus {
    border-color: var(--primary);
    outline: none;
}

.satyam-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.satyam-filter-btn {
    flex: 1;
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.satyam-filter-btn:hover {
    background: var(--primary-dark);
}

.satyam-filter-reset {
    flex: 1;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: center;
    font-weight: 700;
    color: var(--charcoal);
    background: #fafafa;
}

.satyam-shop-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.satyam-shop-main .woocommerce-notices-wrapper:empty {
    display: none;
}

.satyam-shop-main .woocommerce-notices-wrapper {
    margin: 0 0 12px;
}

/* ---- Category Tabs ---- */
.satyam-cat-tabs {
    display: flex;
    gap: 8px;
    padding: 28px 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: wrap;
}
.satyam-cat-tabs::-webkit-scrollbar { display: none; }

.satyam-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    background: #fff;
    border: 2px solid var(--border);
    color: var(--text);
    transition: all 0.18s ease;
    text-decoration: none;
}
.satyam-cat-tab:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: #eff6ff;
    transform: translateY(-1px);
}
.satyam-cat-tab.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(30,58,138,0.25);
}

/* ---- Toolbar ---- */
.satyam-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 58px;
    padding: var(--shop-card-padding);
    margin-bottom: 0;
    background: #fff;
    border: var(--shop-card-border);
    border-radius: var(--shop-card-radius);
    box-shadow: var(--shop-card-shadow);
}
.satyam-result-info .woocommerce-result-count {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}
.satyam-shop-controls .woocommerce-ordering select {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text);
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* ---- WooCommerce Grid Override ---- */
.woocommerce ul.products.columns-4,
.woocommerce-page ul.products.columns-4,
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin: 0 0 40px !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Remove WooCommerce float-clearfix pseudo-elements — they become
   ghost grid items when the container switches to display:grid */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    content: none !important;
    display: none !important;
}

/* ---- Product Card ---- */
.woocommerce ul.products li.product.satyam-product-card,
.satyam-product-card {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    border: none !important;
    background: transparent !important;
}

.satyam-card-inner {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.satyam-card-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* Thumbnail area */
.satyam-card-thumb {
    position: relative;
    overflow: hidden;
    background: var(--light-gray);
    aspect-ratio: 4 / 3;
}
.satyam-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block !important;
}
.satyam-card-inner:hover .satyam-card-img {
    transform: scale(1.07);
}

/* Icon placeholder for no-image */
.satyam-card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: background 0.2s;
}
.satyam-cat-emoji {
    font-size: 64px;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
    transition: transform 0.25s ease;
}
.satyam-card-inner:hover .satyam-cat-emoji {
    transform: scale(1.15) rotate(-5deg);
}

/* Category badge */
.satyam-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    z-index: 2;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Hover overlay */
.satyam-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 44, 44, 0.68);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
    z-index: 3;
}
.satyam-card-inner:hover .satyam-card-overlay {
    opacity: 1;
}
.satyam-overlay-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s;
    min-width: 150px;
    text-align: center;
}
.satyam-overlay-view {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}
.satyam-overlay-view:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
    transform: scale(1.03);
}
.satyam-overlay-quote {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}
.satyam-overlay-quote:hover {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
    transform: scale(1.03);
}

/* Card body */
.satyam-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}
.satyam-sku {
    font-size: 11px;
    color: var(--text-light);
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.satyam-card-title {
    font-size: 16px !important;
    font-weight: 700;
    margin: 0 0 4px !important;
    padding: 0 !important;
    line-height: 1.3;
}
.satyam-card-title a {
    color: var(--text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.satyam-card-title a:hover { color: var(--primary); }

.satyam-card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card footer */
.satyam-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.satyam-price-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.satyam-quote-btn-card {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s, transform 0.18s;
    white-space: nowrap;
}
.satyam-quote-btn-card:hover {
    background: var(--primary-dark);
    color: #fff !important;
    transform: translateX(2px);
}

/* ---- Pagination ---- */
.woocommerce nav.woocommerce-pagination {
    margin: 0 0 40px;
    text-align: center;
}
.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
}
.woocommerce nav.woocommerce-pagination ul li {
    border: none;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    background: #fff;
    transition: all 0.18s;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---- No products ---- */
.satyam-no-products {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
}
.satyam-no-products-icon { font-size: 52px; margin-bottom: 16px; }
.satyam-no-products h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.satyam-no-products p { color: var(--text-muted); }
.satyam-no-products a { color: var(--primary-light); }

/* ---- Bottom CTA strip ---- */
.satyam-shop-cta {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 36px 0;
    margin-top: 24px;
}
.satyam-shop-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.satyam-shop-cta h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.satyam-shop-cta p  { font-size: 14px; color: rgba(255,255,255,0.75); margin: 0; }
.satyam-cta-link {
    background: #fff;
    color: var(--primary) !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.18s, transform 0.18s;
    flex-shrink: 0;
}
.satyam-cta-link:hover {
    background: #f6f6f6;
    transform: translateY(-1px);
}

/* ---- Hide WC default elements we don't need ---- */
.woocommerce-products-header { display: none; }
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .button { display: none !important; }
.satyam-shop-wrap .woocommerce-loop-product__link > img { display: none; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .satyam-shop-wrap {
        --shop-gap: 16px;
        --shop-card-padding: 12px;
    }

    .satyam-shop-layout {
        grid-template-columns: 1fr;
    }

    .satyam-shop-sidebar {
        position: static;
    }

    .woocommerce ul.products.columns-4,
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
    .satyam-shop-banner-stats { display: none; }
}
@media (max-width: 640px) {
    .satyam-shop-wrap {
        --shop-gap: 12px;
        --shop-card-padding: 10px;
    }

    .woocommerce ul.products.columns-4,
    .woocommerce ul.products { grid-template-columns: 1fr !important; }
    .satyam-shop-title { font-size: 24px; }
    .satyam-cat-tabs { flex-wrap: nowrap; padding-bottom: 8px; }
    .satyam-shop-cta-inner { flex-direction: column; text-align: center; }
    .satyam-shop-toolbar {
        min-height: auto;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* ============================================
   SATYAM B2B — Single Product Page (Birla Pivot)
   ============================================ */

.satyam-single-product-wrap { background: #fff; }
.satyam-breadcrumb-area { padding: 20px 0; margin-bottom: 0; }

/* Main 2-column layout */
.satyam-single-product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 40px 0;
    align-items: start;
}

/* Product Gallery Column */
.satyam-product-gallery-col { position: sticky; top: 100px; }
.satyam-product-gallery {
    background: var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

/* Product Info Column */
.satyam-product-info-col { display: flex; flex-direction: column; gap: 24px; }

/* Product Header */
.satyam-product-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}
.satyam-product-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.2;
    color: var(--text);
}
.satyam-product-sku {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    font-family: 'SF Mono', 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rating */
.satyam-product-rating {
    padding: 12px 0;
}

/* Product Excerpt / Description */
.satyam-product-excerpt {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 12px 0;
}

/* Product Meta (Category, Tags) */
.satyam-product-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
}
.satyam-product-meta a {
    color: var(--primary);
    text-decoration: none;
}
.satyam-product-meta a:hover {
    text-decoration: underline;
}

/* Attributes & Variations */
.satyam-product-attributes {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Variations (Select dropdowns) */
.woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.variations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.variations td {
    padding: 8px 0;
    border: none;
}
.variations label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    display: block;
    margin-bottom: 6px;
}
.variations select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: var(--text);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.variations select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(30,58,138,0.1);
}

/* Quantity selector */
.quantity {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    background: #fff;
}
.quantity button {
    background: var(--light-gray);
    border: none;
    color: var(--text);
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.18s;
}
.quantity button:hover {
    background: var(--border);
}
.quantity input[type="number"] {
    border: none;
    width: 50px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}
.quantity input[type="number"]:focus {
    outline: none;
}

/* Request Quote Button */
.satyam-quote-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}
.satyam-request-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
}
.satyam-request-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(30,58,138,0.2);
}

.satyam-quote-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Product Details Section */
.satyam-product-details-section {
    background: var(--light-gray);
    padding: 40px 0;
    margin-top: 40px;
}

.satyam-product-tabs-wrapper {
    margin-top: 20px;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0 0 20px;
    list-style: none;
    border-bottom: 2px solid var(--border);
}
.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: none;
}
.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 20px;
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.18s;
}
.woocommerce-tabs ul.tabs li a:hover {
    color: var(--primary);
}
.woocommerce-tabs ul.tabs li.active a {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.woocommerce-tabs .panel {
    padding: 20px 0;
    background: transparent;
    border: none;
}

/* Specification Highlights Section */
.satyam-specifications-section {
    padding: 48px 0;
    background: #fff;
}

.satyam-specs-wrapper {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--border);
}

.satyam-specs-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--text);
}

.satyam-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.satyam-spec-item {
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.satyam-spec-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.satyam-spec-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

/* Related Products */
.related.products {
    margin-top: 40px;
}

/* Hide default WC elements */
.woocommerce-tabs table {
    width: 100%;
    border-collapse: collapse;
}
.woocommerce-tabs table tr {
    border-bottom: 1px solid var(--border);
}
.woocommerce-tabs table td {
    padding: 12px 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .satyam-single-product-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px 0;
    }
    .satyam-product-gallery-col {
        position: static;
    }
}

@media (max-width: 640px) {
    .satyam-product-title { font-size: 22px; }
    .satyam-specs-grid { grid-template-columns: 1fr; }
    .satyam-specs-wrapper { padding: 20px; }
    .satyam-specifications-section { padding: 24px 0; }
    .satyam-product-details-section { padding: 24px 0; }
}

