/**
 * Technology Solutions - Global Dark Tech Theme
 * Navy / Cyan accents, white text, site-wide consistency.
 */
:root {
    --ts-bg: #0a0f1c;
    --ts-bg-2: #0f1626;
    --ts-card: #131c30;
    --ts-card-2: #18233d;
    --ts-border: #243252;
    --ts-text: #f1f5f9;
    --ts-muted: #94a3b8;
    --ts-cyan: #00e5ff;
    --ts-blue: #0066ff;
    --ts-green: #10b981;
    --ts-red: #ef4444;
    --ts-grad: linear-gradient(135deg, #00e5ff 0%, #0066ff 100%);
}

html, body, #wrapper, #main, #content-wrapper, #content, .page-content, .card, section#content {
    background: var(--ts-bg) !important;
    color: var(--ts-text) !important;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif; }
#wrapper { padding: 0 0 40px !important; }
#wrapper .container { max-width: 1400px; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .page-heading, .product-title a, label, .form-control-label {
    color: #ffffff !important;
}
p, li, span, td, th, small, .text-muted { color: var(--ts-text); }
.text-muted, small, .product-reference, .help-block { color: var(--ts-muted) !important; }
a { color: var(--ts-cyan); transition: color .15s ease; }
a:hover { color: #7df3ff; text-decoration: none; }

/* Breadcrumb */
.breadcrumb, .breadcrumb[data-depth] { background: transparent !important; padding: 14px 0 !important; }
.breadcrumb li a, .breadcrumb li span, .breadcrumb li::after { color: var(--ts-muted) !important; }
.breadcrumb li:last-child span { color: #fff !important; }

/* Buttons */
.btn-primary, .btn-primary:focus {
    background: var(--ts-grad) !important; border: none !important; color: #06101f !important;
    font-weight: 800; border-radius: 8px; text-transform: none; box-shadow: 0 4px 16px rgba(0,229,255,.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0,229,255,.5); color: #06101f !important; }
.btn-secondary, .btn-tertiary, .btn-outline-secondary {
    background: var(--ts-card-2) !important; color: #fff !important; border: 1px solid var(--ts-border) !important; border-radius: 8px;
}
.btn-secondary:hover { border-color: var(--ts-cyan) !important; }

/* Forms */
.form-control, input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea, .custom-select {
    background: var(--ts-bg-2) !important; color: #fff !important; border: 1px solid var(--ts-border) !important; border-radius: 8px;
}
.form-control:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--ts-cyan) !important; box-shadow: 0 0 0 3px rgba(0,229,255,.2) !important; outline: none;
}
::placeholder { color: #64748b !important; }
.input-group-btn .btn { background: var(--ts-card-2) !important; }

/* Cards & blocks */
.card, .card-block, .card-header, .block, .cart-grid-body .card, .cart-summary, .cart-detailed-totals, .cart-detailed-actions,
.checkout-step, .js-address-form, .payment-options, .order-confirmation, #order-summary-content, .product-line-grid,
.product-tabs, .tab-content, .nav-tabs, .tabs, .page-order, .customer-form {
    background: var(--ts-card) !important; color: var(--ts-text) !important; border-color: var(--ts-border) !important; border-radius: 12px;
}
.card, .cart-summary { border: 1px solid var(--ts-border) !important; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.cart-summary-line .label, .cart-summary-line .value, .cart-total .value, .cart-total .label, .product-price, .price, .current-price {
    color: #fff !important;
}
.cart-total .value, .current-price span, .product-price, .price { color: var(--ts-cyan) !important; font-weight: 800; }
.regular-price { color: var(--ts-muted) !important; }
hr, .separator, .cart-summary-line + .cart-summary-line { border-color: var(--ts-border) !important; }
table, .table, .table td, .table th { color: var(--ts-text) !important; border-color: var(--ts-border) !important; background: transparent !important; }
.table thead th { background: var(--ts-card-2) !important; color: #fff !important; }

/* Product page */
.product-cover, .images-container, .thumb-container, .product-images > li.thumb-container .thumb {
    background: #ffffff !important; border-radius: 12px; border: 1px solid var(--ts-border) !important;
}
.product-cover img { object-fit: contain; padding: 16px; }
.product-information, .product-description, .product-details, #product-description-short, .product-prices, .product-add-to-cart {
    color: var(--ts-text) !important;
}
.product-flags li.product-flag { background: var(--ts-grad) !important; color: #06101f !important; font-weight: 800; border-radius: 6px; }
.nav-tabs .nav-link { color: var(--ts-muted) !important; background: transparent !important; }
.nav-tabs .nav-link.active { color: var(--ts-cyan) !important; border-bottom: 2px solid var(--ts-cyan) !important; }
.product-quantities, .product-availability, #product-availability { color: var(--ts-green) !important; }

/* Reassurance placeholder blocks */
.blockreassurance_product, #block-reassurance, .block-reassurance { display: none !important; }

/* Pagination & toolbar */
.pagination .page-list li a, .page-link { background: var(--ts-card) !important; color: #fff !important; border: 1px solid var(--ts-border) !important; }
.pagination .current a, .page-item.active .page-link { background: var(--ts-cyan) !important; color: #06101f !important; }

/* Modals / dropdowns */
.modal-content, .dropdown-menu, .popover { background: var(--ts-card) !important; color: #fff !important; border: 1px solid var(--ts-border) !important; }

/* Alerts */
.alert { border-radius: 10px; border: 1px solid var(--ts-border); }
.alert-info, .alert-success { background: rgba(0,229,255,.1) !important; color: #e0faff !important; }
.alert-warning { background: rgba(250,204,21,.12) !important; color: #fef9c3 !important; }
.alert-danger { background: rgba(239,68,68,.15) !important; color: #fee2e2 !important; }

/* ------------------------------------------------------------------
   HERO
   ------------------------------------------------------------------ */
.techops-hero-banner {
    background: radial-gradient(1000px 500px at 85% 20%, rgba(0,102,255,.35), transparent 60%),
                radial-gradient(800px 400px at 10% 90%, rgba(0,229,255,.18), transparent 60%),
                linear-gradient(135deg, #0a0f1c 0%, #0f1b38 100%);
    border-bottom: 1px solid var(--ts-border);
    padding: 56px 0;
    margin: 0 -9999px 10px; padding-left: 9999px; padding-right: 9999px;
    overflow: hidden;
}
.techops-hero-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 0 20px; }
.techops-hero-banner .hero-badge {
    display: inline-block; padding: 6px 14px; border-radius: 30px; font-size: 12px; font-weight: 800; letter-spacing: .6px;
    text-transform: uppercase; color: var(--ts-cyan); background: rgba(0,229,255,.1); border: 1px solid rgba(0,229,255,.35); margin-bottom: 16px;
}
.techops-hero-banner h1 { font-size: 46px !important; font-weight: 900; line-height: 1.08; letter-spacing: -1px; margin: 0 0 16px;
    background: linear-gradient(90deg, #ffffff, #7df3ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.techops-hero-banner p { color: #cbd5e1 !important; font-size: 17px; line-height: 1.6; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin: 26px 0; flex-wrap: wrap; }
.btn-hero-primary { background: var(--ts-grad); color: #06101f !important; padding: 14px 26px; border-radius: 10px; font-weight: 900; box-shadow: 0 8px 28px rgba(0,229,255,.4); }
.btn-hero-primary:hover { transform: translateY(-2px); }
.btn-hero-secondary { background: rgba(255,255,255,.06); color: #fff !important; padding: 14px 26px; border-radius: 10px; font-weight: 700; border: 1px solid var(--ts-border); }
.btn-hero-secondary:hover { border-color: var(--ts-cyan); }
.hero-perks { display: flex; gap: 22px; flex-wrap: wrap; color: #cbd5e1; font-size: 13px; font-weight: 600; }
.hero-perks .perk-item { display: flex; align-items: center; gap: 8px; }
.hero-visual img.hero-rig-img { width: 100%; border-radius: 18px; border: 1px solid var(--ts-border); box-shadow: 0 20px 60px rgba(0,102,255,.35), 0 0 0 1px rgba(0,229,255,.15); }
@media (max-width: 991px) { .techops-hero-container { grid-template-columns: 1fr; } .techops-hero-banner h1 { font-size: 32px !important; } }

/* ------------------------------------------------------------------
   CATALOG (sidebar, toolbar, cards)
   ------------------------------------------------------------------ */
.techops-catalog-wrapper { margin-top: 28px; }
.sidebar-card, .catalog-toolbar, .empty-catalog-box, .catalog-error {
    background: var(--ts-card) !important; border: 1px solid var(--ts-border) !important; color: var(--ts-text) !important;
    box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.catalog-toolbar { border-radius: 12px; padding: 12px 16px; }
.sidebar-card h3, .sidebar-card h4, .filter-section h4 { color: #fff !important; }
.filter-section { border-color: var(--ts-border) !important; }
.sidebar-card label, .sidebar-card span, .facet-checkbox-list label, .facet-categories-list a, .cat-filter-item { color: #cbd5e1 !important; }
.cat-filter-item:hover, .cat-filter-item.active { color: var(--ts-cyan) !important; background: rgba(0,229,255,.08) !important; }
.facet-count, .count { color: var(--ts-muted) !important; }
.btn-reset-filters { color: var(--ts-cyan) !important; background: transparent; border: none; font-weight: 700; }
.price-field, .toolbar-search-box input, .sort-select-wrap select { background: var(--ts-bg-2) !important; color: #fff !important; border: 1px solid var(--ts-border) !important; }
.price-field input { background: transparent !important; border: none !important; color: #fff !important; }
.btn-price-apply { background: var(--ts-grad) !important; color: #06101f !important; border: none; font-weight: 800; border-radius: 6px; }
.btn-view-toggle { background: var(--ts-bg-2) !important; color: #fff !important; border: 1px solid var(--ts-border) !important; }
.btn-view-toggle.active { background: var(--ts-cyan) !important; color: #06101f !important; }
.filter-tag { background: rgba(0,229,255,.12) !important; color: var(--ts-cyan) !important; border: 1px solid rgba(0,229,255,.3) !important; }

.techops-prod-card {
    background: var(--ts-card) !important; border: 1px solid var(--ts-border) !important; border-radius: 14px; overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.techops-prod-card:hover { transform: translateY(-4px); border-color: var(--ts-cyan) !important; box-shadow: 0 14px 40px rgba(0,229,255,.18); }
.techops-prod-card .card-img-wrap { background: #ffffff !important; padding: 12px; height: 200px; display: flex; align-items: center; justify-content: center; }
.techops-prod-card .card-img { max-height: 100%; max-width: 100%; object-fit: contain; }
.techops-prod-card .card-title a { color: #fff !important; font-weight: 700; }
.techops-prod-card .card-title a:hover { color: var(--ts-cyan) !important; }
.techops-prod-card .card-sku-code { color: var(--ts-muted) !important; font-size: 11px; }
.techops-prod-card .brand-badge { background: var(--ts-card-2) !important; color: #cbd5e1 !important; }
.techops-prod-card .stock-badge.in { color: var(--ts-green) !important; background: rgba(16,185,129,.12) !important; }
.techops-prod-card .stock-badge.out { color: #fbbf24 !important; background: rgba(251,191,36,.12) !important; }
.techops-prod-card .price-excl { color: var(--ts-muted) !important; font-size: 12px; }
.techops-prod-card .price-incl { color: var(--ts-cyan) !important; font-size: 20px; font-weight: 900; }
.techops-prod-card .price-incl small { color: var(--ts-muted) !important; font-weight: 500; }
.btn-card-add { background: var(--ts-grad) !important; color: #06101f !important; font-weight: 800; border-radius: 8px; }

/* ------------------------------------------------------------------
   HEADER polish (keep consistent with navy)
   ------------------------------------------------------------------ */
.techops-main-nav-header { background: linear-gradient(180deg, #0f172a 0%, #0b1224 100%); }
.techops-departments-bar { background: #070b15; }
.dept-item a { color: #e2e8f0 !important; }
.dept-item a:hover { color: var(--ts-cyan) !important; }
.search-item-title { color: #fff !important; }

/* ------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------ */
#footer, .footer-container { background: #060a14 !important; color: #94a3b8 !important; border-top: 2px solid var(--ts-cyan); margin-top: 50px; padding: 40px 0 20px; }
#footer a, .footer-container a { color: #cbd5e1 !important; }
#footer a:hover { color: var(--ts-cyan) !important; }
#footer h3, #footer h4, #footer .h3, #footer .h4, .footer-container .h3 { color: #fff !important; text-transform: uppercase; font-size: 13px; letter-spacing: .6px; }
#footer .text-sm-center, #footer p { color: #64748b !important; }

/* Old classic header leftovers */
#header .header-nav, #header .header-top, .header-banner { display: none !important; }
#header { background: transparent !important; box-shadow: none !important; }

/* ==================================================================
   PATCH 2 - fixes from visual QA
   ================================================================== */

/* Overflow fixes (hero full-bleed trick caused horizontal scroll) */
html, body { overflow-x: hidden !important; max-width: 100%; }
.techops-hero-banner { margin: 0 !important; padding-left: 0 !important; padding-right: 0 !important; width: 100%; }
.techops-hero-banner .techops-hero-container { padding: 0 20px; }
.techops-nav-container, .techops-top-container { max-width: 100%; }
.dept-menu { scrollbar-width: thin; scrollbar-color: #243252 transparent; }
.dept-menu::-webkit-scrollbar { height: 4px; }
.dept-menu::-webkit-scrollbar-thumb { background: #243252; border-radius: 4px; }

/* PC Builder layout clipping */
.techops-builder-container { width: 100%; max-width: 1280px; overflow: visible; }
.builder-layout { grid-template-columns: minmax(0, 1fr) 360px !important; }
.builder-slots-col, .builder-sidebar-col, .sticky-summary { min-width: 0; }
@media (max-width: 991px) { .builder-layout { grid-template-columns: minmax(0, 1fr) !important; } }
body#module-techopssync-builder #wrapper > .container,
body#module-techopssync-builder #content-wrapper { max-width: 100% !important; width: 100% !important; padding: 0 !important; }

/* Header: force readable top bar + popular tags */
.techops-top-bar, .techops-top-bar span { color: #94a3b8 !important; }
.techops-top-bar a { color: #e2e8f0 !important; }
.techops-top-bar a:hover { color: #00e5ff !important; }
.techops-top-bar .top-right a:last-child { color: #00e5ff !important; }
.quick-tags-row .tag-label { color: #94a3b8 !important; }
.quick-tags-row a { color: #cbd5e1 !important; background: rgba(255,255,255,.06); padding: 2px 9px; border-radius: 20px; border: 1px solid #243252; }
.quick-tags-row a:hover { color: #00e5ff !important; border-color: #00e5ff; }

/* Product page: reviews, related products, tabs */
#product-comments-list-header, .product-comments-additional-info, #empty-product-comment, .comments-note, #product-comments-list,
.product-comment-list-item, .product-comments-additional-info p, .grade-stars + span, #product-comments-list-pagination {
    background: transparent !important; color: #cbd5e1 !important;
}
#empty-product-comment, .product-comments-additional-info { background: var(--ts-card) !important; border: 1px solid var(--ts-border) !important; border-radius: 12px; padding: 16px; }
#product-comments-list-header { border-bottom: 1px solid var(--ts-border) !important; }
.tabs, .tabs .nav-tabs, .tabs .tab-content, .tab-pane { background: var(--ts-card) !important; color: var(--ts-text) !important; box-shadow: none !important; border-color: var(--ts-border) !important; }
.nav-tabs .nav-link, .nav-tabs .nav-item a { color: #94a3b8 !important; }
.nav-tabs .nav-link.active, .nav-tabs .nav-item a.active { color: #00e5ff !important; background: transparent !important; }

.featured-products, .product-accessories, .product-footer, .category-products, section.featured-products { background: transparent !important; }
.featured-products h2, .product-accessories h2, .products-section-title { color: #fff !important; }
.product-miniature .thumbnail-container, .product-miniature .product-description, .product-miniature, .product-miniature .highlighted-informations {
    background: var(--ts-card) !important; color: var(--ts-text) !important; border-radius: 12px; box-shadow: none !important;
}
.product-miniature .thumbnail-container { border: 1px solid var(--ts-border); overflow: hidden; transition: border-color .2s, transform .2s; }
.product-miniature .thumbnail-container:hover { border-color: #00e5ff; transform: translateY(-3px); }
.product-miniature .product-title a, .product-miniature .h3 a, .product-miniature .product-title { color: #fff !important; }
.product-miniature .product-thumbnail, .product-miniature .thumbnail { background: #fff !important; display: block; }
.product-miniature .price { color: #00e5ff !important; }
.product-miniature .quick-view, .product-miniature .wishlist-button-add { background: var(--ts-card-2) !important; color: #fff !important; }

/* Cart */
.cart-item, .cart-overview, .cart-container, .cart-grid, .cart-grid-body, .cart-grid-right, .cart-items, .product-line-grid-body, .product-line-grid-left, .product-line-grid-right, .product-line-info {
    background: transparent !important; color: var(--ts-text) !important;
}
.cart-overview, .cart-container { background: var(--ts-card) !important; border: 1px solid var(--ts-border) !important; border-radius: 12px; padding: 16px; }
.cart-item { border-bottom: 1px solid var(--ts-border) !important; }
.product-line-info a, .product-line-info .label, .product-line-grid-body a.label, .cart-item .label { color: #fff !important; font-weight: 700; }
.product-line-info a:hover { color: #00e5ff !important; }
.remove-from-cart, .remove-from-cart i, .cart-line-product-actions a, .material-icons { color: #94a3b8 !important; }
.remove-from-cart:hover, .remove-from-cart:hover i { color: #ef4444 !important; }
.cart-item .product-image, .product-line-grid-left img, .media-object, .product-image img { background: #fff; border-radius: 8px; padding: 4px; object-fit: contain; }
.bootstrap-touchspin, .bootstrap-touchspin input, .js-cart-line-product-quantity { background: var(--ts-bg-2) !important; color: #fff !important; border-color: var(--ts-border) !important; }
.bootstrap-touchspin .btn-touchspin { background: var(--ts-card-2) !important; color: #fff !important; border-color: var(--ts-border) !important; }

/* Footer: newsletter + reassurance */
.block_newsletter, #blockEmailSubscription_displayFooterBefore, .footer-container .block_newsletter, .email-subscription-block {
    background: var(--ts-card) !important; color: var(--ts-text) !important; border: 1px solid var(--ts-border) !important; border-radius: 14px; padding: 24px; box-shadow: none !important;
}
.block_newsletter p, .block_newsletter p#block-newsletter-label, .block_newsletter .h1, .block_newsletter .h2 { color: #fff !important; }
.block_newsletter input[type=email], .block_newsletter input[type=text] { background: var(--ts-bg-2) !important; color: #fff !important; }
.block_newsletter .btn { background: var(--ts-grad) !important; color: #06101f !important; border: none; font-weight: 800; }
.block_newsletter small, .block_newsletter .alert { color: #94a3b8 !important; }

/* Hide placeholder reassurance with broken icon URLs */
[class*="reassurance"], [id*="reassurance"], .blockreassurance_product, #block-reassurance, .block-reassurance { display: none !important; }

/* Product page gallery: keep dark frame, white only behind the image */
.images-container, .images-container .product-images, .images-container .product-cover { background: transparent !important; border: none !important; }
.product-cover { background: #fff !important; border: 1px solid var(--ts-border) !important; border-radius: 14px; overflow: hidden; }
.product-images > li.thumb-container .thumb { background: #fff !important; border-radius: 8px; border: 2px solid var(--ts-border) !important; }
.product-images > li.thumb-container .thumb.selected, .product-images > li.thumb-container .thumb:hover { border-color: #00e5ff !important; }

/* Builder modal missing-image placeholder */
.modal-part-img { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M9 9h6v6H9z'/%3E%3C/svg%3E") center/50% no-repeat; }
