/* Selective restoration — approved state around 16:00 on 1 August. */

/* Internal desktop pages use the dark Mercurius-style header. The home is untouched. */
@media (min-width: 881px) {
  body:not(.home) .pc-site-header,
  body:not(.home) .pc-utility,
  body:not(.home) .pc-mainbar,
  body:not(.home) .pc-primary-nav {
    color: #fff;
    background: #08090b;
  }
  body:not(.home) .pc-mainbar,
  body:not(.home) .pc-primary-nav { border-color: rgba(255,255,255,.09); }
  body:not(.home) .pc-search input[type="search"] {
    color: #fff;
    background: #202226;
    border-color: #373a40;
  }
  body:not(.home) .pc-search input[type="search"]::placeholder { color: #bfc3cb; }
  body:not(.home) .pc-menu__link,
  body:not(.home) .pc-header-action--plain { color: #fff; }
  body:not(.home) .pc-header-action:not(.pc-header-action--plain) {
    color: #111;
    background: #fff;
    border-color: #fff;
  }
}

/* Restore the large PIX value without changing the approved product-card shell. */
.woocommerce ul.products li.product .pc-product-payment {
  min-height: 69px;
  padding-top: 5px;
}
.woocommerce ul.products li.product .pc-product-payment__cash {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 3px 5px;
  color: #555e6d;
  line-height: 1.15;
}
.woocommerce ul.products li.product .pc-product-payment__cash strong {
  color: var(--pc-orange);
  font-size: clamp(20px, 1.45vw, 25px);
  font-weight: 950;
  letter-spacing: -.025em;
}
.woocommerce ul.products li.product .pc-product-payment__installment {
  margin-top: 5px;
  color: #626b78;
}

/* Product imagery must visually merge into the white page/card. */
.pc-category-bubble__visual img,
.woocommerce ul.products li.product img,
.single-product .woocommerce-product-gallery img,
.single-product .related.products li.product img,
.woocommerce-cart table.cart img,
.pc-mini-cart .woocommerce-mini-cart-item img {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  object-fit: contain !important;
}

/* The complete-cart total belongs to the flow instead of floating in the corner. */
.woocommerce-cart .cart-collaterals {
  width: 100%;
  margin-top: 22px;
}
.woocommerce-cart .cart_totals {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 26px 28px !important;
  border: 1px solid #eceef2;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(17,23,34,.07);
}
.woocommerce-cart .cart_totals h2 {
  margin: 0 0 16px;
  padding-bottom: 13px;
  border-bottom: 2px solid #f1f2f5;
}
.woocommerce-cart .cart_totals table {
  overflow: hidden;
  border: 1px solid #e4e7ec !important;
  border-radius: 14px;
}
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  color: #111722;
  background: #fff8f3;
  font-size: 17px;
  font-weight: 950;
}
.woocommerce-cart .wc-proceed-to-checkout { padding: 16px 0 0; }

@media (max-width: 720px) {
  .woocommerce ul.products li.product .pc-product-payment { min-height: 64px; }
  .woocommerce ul.products li.product .pc-product-payment__cash strong { font-size: 19px; }
  .woocommerce-cart .cart_totals { padding: 17px !important; }
  .woocommerce-cart .cart_totals table,
  .woocommerce-cart .cart_totals tbody,
  .woocommerce-cart .cart_totals tr,
  .woocommerce-cart .cart_totals td {
    display: block !important;
    width: 100% !important;
  }
  .woocommerce-cart .cart_totals table { overflow: visible; }
  .woocommerce-cart .cart_totals tr {
    padding: 0 !important;
    border-bottom: 1px solid #eceef2;
  }
  .woocommerce-cart .cart_totals tr:last-child { border-bottom: 0; }
  .woocommerce-cart .cart_totals th { display: none !important; }
  .woocommerce-cart .cart_totals td {
    padding: 14px 13px !important;
    text-align: left !important;
    vertical-align: top;
  }
  .woocommerce-cart .cart_totals td::before { display: none !important; }
  .woocommerce-cart .cart_totals ul#shipping_method {
    display: grid;
    gap: 9px;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
  }
  .woocommerce-cart .cart_totals ul#shipping_method li {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 7px;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.35;
  }
  .woocommerce-cart .cart_totals ul#shipping_method input { margin-top: 2px; }
  .woocommerce-cart .cart_totals ul#shipping_method label {
    display: block;
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
  }
  .woocommerce-cart .cart_totals .woocommerce-shipping-destination,
  .woocommerce-cart .cart_totals .woocommerce-shipping-calculator {
    width: 100%;
    margin: 9px 0 0;
  }
  .woocommerce-cart .cart_totals .order-total td {
    border-radius: 0 0 13px 13px;
    font-size: 19px;
  }
}

/* Restore the approved Mercurius-style cart motion: the drawer and its
   contents travel together, without the delayed empty/blurred frame. */
.pc-mini-cart {
  transform-origin: center right !important;
  transition:
    transform .38s cubic-bezier(.22,.8,.25,1),
    opacity .22s ease,
    visibility 0s linear .38s !important;
}
.pc-mini-cart.is-open {
  transition:
    transform .38s cubic-bezier(.22,.8,.25,1),
    opacity .22s ease,
    visibility 0s linear 0s !important;
}
.pc-mini-cart__head,
.pc-mini-cart__content,
.pc-mini-cart__view,
.pc-mini-cart.is-open .pc-mini-cart__head,
.pc-mini-cart.is-open .pc-mini-cart__content,
.pc-mini-cart.is-open .pc-mini-cart__view {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* The three campaign artworks approved on 1 August. These rules live last so
   earlier banner experiments cannot replace them again. */
.pc-hero-slide.pc-hero-slide--all-in-one-campaign,
.pc-hero-slide.pc-hero-slide--latitude-campaign,
.pc-hero-slide.pc-hero-slide--corporate {
  background-color: #020a13 !important;
  background-repeat: no-repeat !important;
  background-position: center bottom !important;
  background-size: 100% auto !important;
}
.pc-hero-slide.pc-hero-slide--all-in-one-campaign {
  background-image: url("assets/hero-all-in-one-classic-safe-v3.webp") !important;
}
.pc-hero-slide.pc-hero-slide--latitude-campaign {
  background-image: url("assets/hero-latitude-7420-safe-v5.webp") !important;
}
.pc-hero-slide.pc-hero-slide--corporate {
  background-color: #06111e !important;
  background-image: url("/wp-content/uploads/2026/08/hero-optiplex-corporate-safe-v3.webp") !important;
}
.pc-hero-slide--all-in-one-campaign .pc-hero-slide__shapes,
.pc-hero-slide--latitude-campaign .pc-hero-slide__shapes,
.pc-hero-slide--corporate .pc-hero-slide__shapes {
  display: none !important;
}

@media (max-width: 820px) {
  .pc-hero-slide.pc-hero-slide--all-in-one-campaign,
  .pc-hero-slide.pc-hero-slide--latitude-campaign,
  .pc-hero-slide.pc-hero-slide--corporate {
    background-position: center 78px !important;
    background-size: auto 310px !important;
  }
  .pc-hero-slide.pc-hero-slide--all-in-one-campaign {
    background-image: url("assets/hero-all-in-one-classic-safe-mobile-v3.webp") !important;
  }
  .pc-hero-slide.pc-hero-slide--latitude-campaign {
    background-image: url("assets/hero-latitude-7420-safe-mobile-v5.webp") !important;
  }
  .pc-hero-slide.pc-hero-slide--corporate {
    background-image: url("/wp-content/uploads/2026/08/hero-optiplex-corporate-safe-mobile-v3.webp") !important;
  }
}
