/* Gaming PC and AI / Pro workstation product pages (gaming-pc.php, workstation.php): photo + parts list + performance on the left,
   sticky buy box on the right. Loaded last. "html body" in front so these win over the page's older inline rules; every font size
   carries !important because gaming-theme.css forces "* { font-size: 15px !important; font-weight: 200 !important }". */

html body { background: #000 !important; }
html body .prod-container { max-width: 1360px; padding: 24px 56px 72px; }

/* breadcrumb */
html body .prod-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 13px !important; color: #a8a8a8; }
html body .prod-crumbs a { color: #a8a8a8; font-size: 13px !important; font-weight: 400 !important; text-decoration: none; }
html body .prod-crumbs a:hover { color: #fff; }
html body .prod-crumbs .sep { color: #5a5a5a; font-size: 13px !important; }
html body .prod-crumbs .current { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: 13px !important; font-weight: 400 !important; }

/* layout */
@media (min-width: 969px) {
    html body .product-grid { grid-template-columns: minmax(0, 1fr) 520px; gap: 48px; align-items: start; }
    html body .gallery-container { position: static; top: auto; }
    html body .product-info { position: sticky; top: 72px; }
}

/* photo */
html body .main-image-card { display: flex; align-items: center; justify-content: center; height: 540px; min-height: 0; padding: 0; background: #000; border: 1px solid #1f1f1f; border-radius: 18px; box-shadow: none; }
html body .main-image-card::after { display: none; }
html body .main-image-card img { max-width: 78%; max-height: 78%; height: auto; filter: none; }

/* kicker, title, price */
html body .pa-kicker { display: inline-block; margin: 0; font-size: 13px !important; font-weight: 700 !important; letter-spacing: 0.22em; text-transform: uppercase; color: #ff5252; }
html body .prod-title { margin: 12px 0 0; font-family: 'Outfit', sans-serif !important; font-size: 34px !important; line-height: 1.14; font-weight: 700 !important; letter-spacing: -0.02em; text-transform: none; background: none; -webkit-text-fill-color: #fff; color: #fff; overflow-wrap: anywhere; }
html body .pb-oos-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 14px; border: 1px solid #5a4010; border-radius: 999px; background: #1a1305; color: #f5b041; font-size: 13px !important; font-weight: 600 !important; }
html body .price-hero { display: block; margin: 22px 0 0; }
html body .price-val { font-size: 44px !important; line-height: 1 !important; font-weight: 700 !important; color: #fff !important; text-shadow: none; }
html body .price-val .price-cur { margin-right: 8px; font-size: 18px !important; font-weight: 500 !important; color: #a8a8a8 !important; vertical-align: baseline; }
html body .pb-tabby { margin: 18px 0 0; min-height: 0; }

/* buy box */
html body .add-to-build-box { display: block; margin-top: 26px; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; }
html body .add-to-build-box .add-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; padding: 0 20px; background: #d10000 !important; color: #fff !important; border: 0 !important; border-radius: 12px !important; box-shadow: none !important; font-size: 17px !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important; text-shadow: none !important; transform: none !important; filter: none !important; cursor: pointer; }
html body .add-to-build-box .add-btn:hover { background: #e60000 !important; }
html body .add-to-build-box .add-btn i { font-size: 17px !important; }
html body .add-to-build-box .add-btn.pa-oos { background: #1a1a1a !important; color: #ff6b6b !important; cursor: not-allowed; }
html body .pa-build-btn { display: flex; align-items: center; justify-content: center; height: 50px; margin-top: 10px; border: 1px solid #3a3a3a; border-radius: 12px; color: #fff; font-size: 15px !important; font-weight: 500 !important; text-decoration: none; }
html body .pa-build-btn:hover { border-color: #fff; color: #fff; }

/* warranty / delivery / built-in-UAE / payment lines */
html body .pa-trust { margin-top: 26px; border-top: 1px solid #1f1f1f; }
html body .pa-trust-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #1f1f1f; }
html body .pa-trust-row i { flex: 0 0 22px; text-align: center; font-size: 17px !important; color: #ff5252; }
html body .pa-trust-title { font-size: 15px !important; font-weight: 500 !important; color: #fff; }
html body .pa-trust-sub { font-size: 13px !important; font-weight: 400 !important; color: #a8a8a8; }

/* left column under the photo */
html body .pa-below { margin-top: 36px; }
html body .pa-h2 { margin: 0; font-size: 24px !important; font-weight: 700 !important; letter-spacing: -0.01em; text-transform: none; font-family: 'Outfit', sans-serif !important; color: #fff; }

/* parts list */
html body .components-section { margin: 0; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; }
html body .pb-config-hint { margin: 6px 0 0; font-size: 14px !important; font-weight: 400 !important; color: #a8a8a8; }
html body #components-list { margin-top: 16px; }
html body .component-row { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; padding: 10px 12px 10px 10px; background: #0d0d0d !important; border: 1px solid #1f1f1f !important; border-radius: 14px !important; transition: border-color 0.2s; transform: none !important; box-shadow: none !important; }
html body .component-row:hover { border-color: #3a3a3a !important; background: #0d0d0d !important; transform: none !important; }
html body .comp-icon { flex: 0 0 64px; width: 64px; height: 64px; padding: 6px; box-sizing: border-box; background: #161616 !important; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
html body .comp-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
html body .comp-info { flex: 1; min-width: 0; }
html body .comp-cat { font-size: 11px !important; font-weight: 700 !important; letter-spacing: 0.12em; text-transform: uppercase; color: #ff5252 !important; }
html body .comp-name { margin-top: 2px; font-size: 14px !important; font-weight: 500 !important; line-height: 1.35; color: #fff; overflow-wrap: anywhere; }
html body .comp-name a, html body .comp-name .comp-link { color: inherit !important; font-size: inherit !important; font-weight: inherit !important; text-decoration: none; border: 0 !important; }
html body .comp-name a:hover { text-decoration: underline; }
html body .comp-qty { color: #ff5252; font-weight: 700 !important; }
html body .comp-price { margin-left: auto !important; font-size: 15px !important; font-weight: 700 !important; color: #fff !important; white-space: nowrap; }
html body .replace-btn { flex: 0 0 auto; height: 36px; padding: 0 14px; background: transparent !important; border: 1px solid #3a3a3a !important; border-radius: 10px !important; color: #fff !important; font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; box-shadow: none !important; cursor: pointer; }
html body .replace-btn span { font-size: 13px !important; font-weight: 500 !important; }
html body .replace-btn:hover { border-color: #fff !important; background: transparent !important; color: #fff !important; box-shadow: none !important; }
html body .pb-oem-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #1f1f1f; }
html body .pb-oem-list li { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid #1f1f1f; font-size: 15px !important; color: #fff; }
html body .pb-oem-list strong { flex: 0 0 130px; font-size: 13px !important; font-weight: 700 !important; letter-spacing: 0.08em; text-transform: uppercase; color: #ff5252; }

/* performance */
html body .pb-perf { margin-top: 44px; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; }
html body .pb-perf-sub { margin: 6px 0 0; font-size: 14px !important; font-weight: 400 !important; color: #a8a8a8; }
html body .game-perf-row { margin-top: 12px; padding: 16px 18px; background: #0d0d0d !important; border: 1px solid #1f1f1f !important; border-radius: 14px !important; }
html body .pb-perf-game { margin-bottom: 4px; font-size: 16px !important; font-weight: 700 !important; color: #fff; }
html body .pb-bar { margin-top: 12px; }
html body .pb-bar-top { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px !important; color: #a8a8a8; }
html body .pb-bar-top span { font-size: 13px !important; font-weight: 400 !important; }
html body .pb-bar-top b { font-size: 13px !important; font-weight: 600 !important; color: #fff; }
html body .pb-bar-track { height: 6px; background: #1f1f1f; border-radius: 3px; overflow: hidden; }
html body .pb-bar-fill { height: 100%; background: #d10000; border-radius: 3px; }
html body .pb-quote { margin-top: 18px; padding: 4px 0 4px 18px; border: 0 !important; border-left: 3px solid #d10000 !important; border-radius: 0 !important; background: transparent !important; font-size: 15px !important; font-weight: 400 !important; font-style: normal !important; line-height: 1.7; color: #c9c9c9; }

/* about */
html body .pb-about { margin-top: 44px; padding: 0 !important; border: 0 !important; }
html body .pb-about-text { margin-top: 14px; font-size: 15px !important; font-weight: 400 !important; line-height: 1.7; color: #c9c9c9; }

/* "Replace" part picker: a dialog on computer, a bottom sheet on phone */
html body.pb-modal-open { overflow: hidden; }
html body .pb-modal { position: fixed; inset: 0; z-index: 6000; padding: 0; background: rgba(0, 0, 0, 0.68); backdrop-filter: none; -webkit-backdrop-filter: none; }
html body .pb-modal-card { display: flex; flex-direction: column; box-sizing: border-box; width: calc(100% - 48px); max-width: 980px; height: 88vh; margin: 6vh auto 0; background: #0d0d0d; border: 1px solid #1f1f1f; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85); }
html body .pb-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; }
html body #modal-title { margin: 0; font-family: 'Outfit', sans-serif !important; font-size: 22px !important; font-weight: 700 !important; letter-spacing: -0.01em; text-transform: none; color: #fff; }
html body .pb-modal-close { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; background: #161616 !important; border: 0 !important; border-radius: 50% !important; color: #a8a8a8 !important; font-size: 16px !important; cursor: pointer; }
html body .pb-modal-close:hover { background: #222 !important; color: #fff !important; }
html body .pb-modal-tools { display: flex; align-items: center; gap: 10px; padding: 0 22px 16px; border-bottom: 1px solid #1f1f1f; }
html body .pb-modal-tools .modal-search-wrapper { position: relative; flex: 1.5; min-width: 0; }
html body .pb-modal-tools .modal-search-wrapper i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 14px !important; color: #6a6a6a; }
html body #modal-search { width: 100%; box-sizing: border-box; height: 46px; padding: 0 16px 0 42px; background: #000 !important; border: 1px solid #3a3a3a !important; border-radius: 12px !important; color: #fff !important; font-size: 15px !important; font-weight: 400 !important; outline: none; box-shadow: none !important; }
html body #modal-search::placeholder { color: #6a6a6a; }
html body #modal-search:focus { border-color: #d10000 !important; }
html body #modal-filters { display: flex; flex: 1; gap: 10px; min-width: 0; }
html body #modal-filters select, html body .modal-filter-select { flex: 1; min-width: 0; height: 46px; padding: 0 38px 0 14px; background-color: #000 !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a8a8a8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; border: 1px solid #3a3a3a !important; border-radius: 12px !important; color: #fff !important; font-size: 14px !important; font-weight: 500 !important; box-shadow: none !important; transform: none !important; -webkit-appearance: none; appearance: none; }
html body #modal-filters select:focus { border-color: #d10000 !important; outline: none; }
html body #modal-filters select option { background: #0d0d0d; color: #fff; }
html body #modal-content { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); align-content: start; gap: 12px; padding: 18px 22px 22px; overflow-y: auto; }
html body .pb-modal-msg { grid-column: 1 / -1; padding: 48px 0; text-align: center; font-size: 15px !important; color: #a8a8a8; }
html body .pb-modal-msg i { margin-right: 8px; color: #ff5252; font-size: 15px !important; }
html body .option-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: #000 !important; border: 1px solid #1f1f1f !important; border-radius: 14px !important; text-align: left; cursor: pointer; transition: border-color 0.2s; box-shadow: none !important; transform: none !important; }
html body .option-card:hover { border-color: #5a5a5a !important; background: #000 !important; }
html body .option-card.is-incompatible { opacity: 0.45; cursor: not-allowed; }
html body .option-card.is-incompatible:hover { border-color: #1f1f1f !important; }
html body .option-img { position: relative; display: flex; align-items: center; justify-content: center; height: 128px; background: #161616; border-radius: 10px; overflow: hidden; }
html body .option-img img { max-width: 80%; max-height: 80%; object-fit: contain; }
html body .option-incompat { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 6px; background: rgba(0, 0, 0, 0.78); font-size: 11px !important; font-weight: 600 !important; text-align: center; color: #ff6b6b; }
html body .option-name { height: 38px; overflow: hidden; font-size: 14px !important; font-weight: 500 !important; line-height: 1.35; color: #fff; }
html body .option-price { font-size: 16px !important; font-weight: 700 !important; color: #fff; }

/* bottom bar that appears when you scroll */
html body .pb-sticky { position: fixed; left: 0; right: 0; bottom: -120px; z-index: 1000; width: 100%; padding: 12px 0; background: #0a0a0a; border-top: 1px solid #1c1c1c; box-shadow: none; transition: bottom 0.35s ease; }
html body .pb-sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; box-sizing: border-box; max-width: 1360px; margin: 0 auto; padding: 0 56px; }
html body .pb-sticky-label { font-size: 12px !important; font-weight: 400 !important; letter-spacing: 0; text-transform: none; color: #a8a8a8; }
html body .pb-sticky-total { margin-top: 2px; font-size: 24px !important; line-height: 1.1; font-weight: 700 !important; font-family: 'Outfit', sans-serif !important; color: #fff; }
html body .pb-sticky-total .price-cur { margin-right: 6px; font-size: 14px !important; font-weight: 500 !important; color: #a8a8a8 !important; }
html body .pb-sticky-btn { flex: 0 0 auto; height: 48px; padding: 0 34px; background: #d10000 !important; border: 0 !important; border-radius: 12px !important; box-shadow: none !important; color: #fff !important; font-size: 16px !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; transform: none !important; filter: none !important; }
html body .pb-sticky-btn span { font-size: 16px !important; font-weight: 700 !important; }
html body .pb-sticky-btn:hover { background: #e60000 !important; }
html body .pb-sticky-btn:disabled { background: #1a1a1a !important; color: #ff6b6b !important; cursor: not-allowed; }
html body:has(.pb-sticky) .chatbot-trigger { bottom: 96px; }

/* phone */
@media (max-width: 968px) {
    html body .prod-container { padding: 16px 16px 56px !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
    html body .product-grid { display: flex; flex-direction: column; gap: 0 !important; }
    html body .gallery-container { display: contents; }
    html body .main-image-card { order: 1; height: 300px; min-height: 0; width: 100%; padding: 0; box-sizing: border-box; align-self: stretch; }
    html body .product-info { order: 2; position: static; margin-top: 20px; width: 100%; box-sizing: border-box; }
    html body .pa-below { order: 3; margin-top: 30px; width: 100%; box-sizing: border-box; }
    html body .prod-title { font-size: 26px !important; }
    html body .price-val { font-size: 34px !important; }
    html body .prod-crumbs .current { max-width: 24ch; }

    html body .component-row { flex-wrap: wrap; width: 100%; box-sizing: border-box; padding: 10px; gap: 10px 12px; }
    html body .comp-icon { flex: 0 0 56px; width: 56px; height: 56px; }
    html body .comp-info { flex: 1 1 calc(100% - 70px); }
    html body .comp-price { margin-left: 68px !important; font-size: 15px !important; }
    html body .replace-btn { margin-left: auto; }
    html body .pb-oem-list li { flex-direction: column; gap: 2px; }

    /* part picker becomes a bottom sheet */
    html body .pb-modal-card { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; height: 90vh; margin: 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
    html body .pb-modal-head { padding: 16px 16px 12px; }
    html body .pb-modal-tools { flex-wrap: wrap; padding: 0 16px 14px; }
    html body .pb-modal-tools .modal-search-wrapper { flex: 1 1 100%; }
    html body #modal-filters { flex: 1 1 100%; flex-wrap: wrap; }
    html body #modal-content { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 16px 24px; }
    html body .option-img { height: 104px; }

    html body .pb-sticky-inner { padding: 0 16px; }
    html body .pb-sticky { padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); }
    html body .pb-sticky-total { font-size: 20px !important; }
    html body .pb-sticky-btn { flex: 1; padding: 0 16px; }
    html body:has(.pb-sticky) .mobile-bottom-nav { display: none !important; }
    html body:has(.pb-sticky) .chatbot-trigger { bottom: 92px; }
}

/* the chat button steps aside while the part picker is open */
html body.pb-modal-open .chatbot-trigger { display: none !important; }
