/* PC In Cyprus — storefront experience (pcic_storefront): mobile + accessibility overrides.
   Loaded through the document style list (no theme file edited). Presentation only. */

/* Long unbroken product names (e.g. imported names without spaces) must wrap, never widen the page. */
.pr-page-title h1,
.pr-breadcrumb-item,
.pr-module-item-title,
.pr-product-search-page-text { overflow-wrap: anywhere; }

/* Narrow phones: the 180 px logo block + the header icons were 12-16 px wider than a 375 px screen (the cart
   icon was cut off). The logo scales to at most 150 px there; every header icon keeps its full size. */
@media (max-width: 420px) {
  .pr-header-box > :nth-child(2) { max-width: 150px; flex: 0 1 150px; min-width: 0; }
  .pr-header-box > :nth-child(2) img { max-width: 100%; height: auto; }
}

/* Visible keyboard focus on the main customer controls. */
.pr-header a:focus-visible,
.pr-header button:focus-visible,
.pr-header input:focus-visible,
.pr-module-item a:focus-visible,
.pr-module-item button:focus-visible,
.breadcrumb a:focus-visible { outline: 2px solid #1f2937; outline-offset: 2px; }

/* Product cards: the short description (div.description, added by the short-description module's OCMOD) is clamped —
   3 lines, 2 on phones — so price and Add to Cart sit close to the product name (one 2-column phone card was taller
   than the screen). The full text stays in the page (nothing is hidden or removed); max-height is the fallback for
   descriptions that contain block markup. */
.pr-module-item-bottom > .description {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
  overflow: hidden; overflow-wrap: anywhere; line-height: 1.45; max-height: 4.35em; }
@media (max-width: 767.98px) {
  .pr-module-item-bottom > .description { -webkit-line-clamp: 2; line-clamp: 2; max-height: 2.9em; }
}

/* Phones: form fields of the cart and Smart Checkout at 16 px — iOS Safari zooms the page in on focus of any field
   whose text is smaller (the theme uses 12-14 px, some with !important utilities). Text size only; no field, label,
   validation or layout rule changes. */
@media (max-width: 767.98px) {
  #checkout-checkout input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  #checkout-checkout select,
  #checkout-checkout textarea,
  .pr-cart-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { font-size: 16px !important; }
}

/* Phones: the homepage mini-banner subtitles ("Gaming | Office | Professional") wrap inside their tile instead of being
   cut off (the theme keeps them on one centred line). */
@media (max-width: 767.98px) {
  .pr-slideshow-plus-banners .slide-text { white-space: normal; width: calc(100% - 16px); }
  .pr-slideshow-plus-banners .slide-price { font-size: 14px; line-height: 1.3; }
}

/* Touch screens: the card wishlist / compare / quick-view icons (30 x 28 px) get a 36 px tap area. */
@media (pointer: coarse) {
  .pr-module-item .pr-module-item-button { min-width: 36px; min-height: 36px; }
}

/* Phones: "Filters" — a full-width entry point above the sort row; it is OCFilter's own trigger (data-ocf="mobile"). */
.pcic-filter-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 10px 16px;
  font-size: 15px; font-weight: 600; line-height: 1.2; color: #fff; background: #1f2937; border: 0; border-radius: 8px; cursor: pointer; }
.pcic-filter-btn:focus-visible { outline: 2px solid #1f2937; outline-offset: 2px; }

/* Configurable PCs: "Customise this PC" (pcic_storefront "configure_link") — after the price in the buy box; the
   fragment is hidden unless the PC configurator is on the page. */
.pr-product-actions-info > .pcic-configure { order: 1; }
.pcic-configure:not([hidden]) { display: flex; flex-direction: column; gap: 4px; }
.pcic-configure-link {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; padding: 10px 14px;
  font-size: 15px; font-weight: 600; line-height: 1.2; color: #1f2937; text-decoration: none; border: 1px solid #1f2937; border-radius: 8px; }
.pcic-configure-link:hover { background: #f3f4f6; color: #1f2937; }
.pcic-configure-link:focus-visible { outline: 2px solid #1f2937; outline-offset: 2px; }
.pcic-configure-hint { font-size: 12px; color: #6b7280; }

/* Cart: "You may also need" (pcic_storefront "cart_xsell") — the theme's own product-module markup below the cart. */
.pcic-xsell { margin-top: 1rem; }

/* Phones, product page: the buy decision earlier. The main image is capped (thumbnails stay), the buy box (price,
   availability, Add to Cart) comes right after the product name, the codes / rating block after it; inside the buy
   box the price leads, CGFE availability follows. Order only — nothing is hidden. */
@media (max-width: 767.98px) {
  .pr-product-images-main { aspect-ratio: auto !important; }   /* the template's inline square ratio; the image keeps its own */
  .pr-product-images-main .swiper-wrapper { margin-bottom: 0.5rem !important; }
  .pr-product-images-main .swiper-slide img { max-height: 240px; width: auto; max-width: 100%; margin: 0 auto; }
}
/* Tablets (768-991 px) stack the product page too (the buy box sits beside the gallery only from 992 px): a 681 px
   square image put the price 1,385 px down. Same rule as phones with a taller cap. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .pr-product-images-main { aspect-ratio: auto !important; }
  .pr-product-images-main .swiper-wrapper { margin-bottom: 0.5rem !important; }
  .pr-product-images-main .swiper-slide img { max-height: 420px; width: auto; max-width: 100%; margin: 0 auto; }
}
@media (max-width: 991.98px) {
  .pr-product-main-info > .pr-product-sticky-block { order: 1; }
  .pr-product-main-info > .d-flex.flex-column.flex-sm-row,
  .pr-product-main-info > .pr-product-info { order: 2; }
  .pr-product-actions-info > .pr-product-price { order: -2; }
  .pr-product-actions-info > .cgfe-preview-panel { order: -1; }
}

/* PC configurator (presentation only — no selection / price rule): on phones the "Component availability" toggle kept
   title, summary badge and count on one no-wrap line, 11 px wider than a 390 px screen (horizontal page scroll); the
   summary now takes its own line under the title, the chevron stays at the right. The slot search box could not shrink
   below its intrinsic width and overflowed its toolbar. */
#pc-configurator-wrap .pc-slot-search { min-width: 0; }
@media (max-width: 575.98px) {
  #pc-availability-details .pc-ap-details-toggle { flex-wrap: wrap; row-gap: 6px; }
  #pc-availability-details .pc-ap-chev { order: 1; margin-left: auto; }
  #pc-availability-details .pc-ap-details-summary { order: 2; flex: 1 1 100%; min-width: 0; }
}

/* Phones / tablets header: the menu, theme, search, account and cart icons were 17-19 px to tap. Each gets an invisible
   ~34 px tap area (an absolutely placed ::after, 8 px around the icon): nothing moves — no padding, margin or size of
   the icons changes (the theme switch stays centred, the 16 px gaps keep the areas apart). The cart count badge is
   anchored to its own icon wrapper, so the buttons can be the areas' reference. */
@media (max-width: 991.98px) {
  .pr-header-box > .pr-header-mobile-menu-button,
  .pr-header-buttons > .pr-header-open-mobile-search,
  .pr-header-buttons > .pr-header-open-account,
  .pr-header-buttons > .pr-header-buttons-item-cart { position: relative; }
  .pr-header-box > .pr-header-mobile-menu-button::after,
  .theme-switcher-wrapper > .theme-switcher::after,
  .pr-header-buttons > .pr-header-open-mobile-search::after,
  .pr-header-buttons > .pr-header-open-account::after,
  .pr-header-buttons > .pr-header-buttons-item-cart::after { content: ""; position: absolute; top: -8px; right: -8px; bottom: -8px; left: -8px; }
}

/* Cart rows (drawer, cart page, checkout): a configured PC lists every component, so its row is tall — the thumbnail
   stays next to the name instead of floating to the row's middle; the row's Update / Delete icons get a 34 px tap area. */
#cartSidebar .pr-sidebar-cart-product,
#checkout-cart .pr-sidebar-cart-product,
#checkout-checkout .pr-sidebar-cart-product { align-items: flex-start !important; }
#checkout-cart .pr-sidebar-cart-product-refresh,
#checkout-cart .pr-sidebar-cart-product-delete,
#checkout-checkout .pr-sidebar-cart-product-delete:not(.position-absolute) { position: relative; }
#cartSidebar .pr-sidebar-cart-product-delete::after,
#checkout-cart .pr-sidebar-cart-product-refresh::after,
#checkout-cart .pr-sidebar-cart-product-delete::after,
#checkout-checkout .pr-sidebar-cart-product-delete::after { content: ""; position: absolute; top: -8px; right: -8px; bottom: -8px; left: -8px; }

/* Cart drawer: Checkout stays in view (sticky at the bottom of the scrolling drawer — a configured PC pushed it 500 px
   out of view), and component lines take one line each (the full list stays on the cart page). */
#cartSidebar .pr-sidebar-cart-content > .pr-sidebar-cart-footer {
  position: sticky; bottom: 0; z-index: 2; background: #fff; padding-top: 12px; padding-bottom: 4px; box-shadow: 0 -10px 12px -10px rgba(31, 41, 55, 0.25); }
#cartSidebar .pr-sidebar-cart-product-info { min-width: 0; }
#cartSidebar .pr-sidebar-cart-product-option { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Order fulfilment: CGFE's summary and the configured-PC summary right after it read as ONE card, not two boxes. */
.cgfe-order-summary:has(+ .pcic-configured-summary) { margin-bottom: 0 !important; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.cgfe-order-summary + .pcic-configured-summary { margin-top: 0 !important; border-top: 1px dashed #e2e8f0 !important; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }

/* Cart page, phones and tablets (the totals column stacks under the cart below 1200 px): the items first, then the
   fulfilment summary; in the totals column the total and Checkout come before coupon / shipping estimate / gift card. */
@media (max-width: 1199.98px) {
  #checkout-cart .pr-cart-page { display: flex; flex-direction: column; }
  #checkout-cart .pr-cart-page > .cgfe-order-summary,
  #checkout-cart .pr-cart-page > .pcic-configured-summary { order: 1; }
  #checkout-cart .pr-sticky-column { display: flex; flex-direction: column; }
  #checkout-cart .pr-sticky-column > .pr-cart-column-total { order: -2; }
  #checkout-cart .pr-sticky-column > a.button-primary { order: -1; margin-bottom: 1.5rem; }
}
/* Cart page, phones: the Checkout button itself stays in view above the floating navigation (the page gets room for
   it at the bottom); same link, same label. */
@media (max-width: 767.98px) {
  #checkout-cart .pr-sticky-column > a.button-primary {
    position: fixed; left: 12px; right: 12px; bottom: calc(52px + 1rem + 10px); z-index: 1001; margin-bottom: 0; box-shadow: 0 6px 18px rgba(31, 41, 55, 0.28); }
  #checkout-cart { padding-bottom: 96px; }
}
/* Phones / tablets, product page: while the theme's sticky Add to Cart bar is shown it marks the floating bottom
   navigation "is-lifted" (stacked above the bar: ~120 px of fixed chrome). The navigation steps aside instead and comes
   back as soon as the product area is in view again; the top header (menu, search, account, cart) stays. */
@media (max-width: 991.98px) {
  .pr-mobile-bottom-nav.is-lifted { transform: translateY(calc(100% + 1.5rem)); }
}

/* Desktop header: Search, Account and Cart lead. Viewed / Wishlist / Compare stay (label, count, link) but quieter. */
@media (min-width: 992px) {
  .pr-header-buttons-item-viewed,
  .pr-header-buttons-item-wishlist,
  .pr-header-buttons-item-compare { padding-left: 0.5rem !important; padding-right: 0.5rem !important; opacity: 0.68; transition: opacity 0.15s ease; }
  .pr-header-buttons-item-viewed:hover, .pr-header-buttons-item-viewed:focus-visible,
  .pr-header-buttons-item-wishlist:hover, .pr-header-buttons-item-wishlist:focus-visible,
  .pr-header-buttons-item-compare:hover, .pr-header-buttons-item-compare:focus-visible { opacity: 1; }
  .pr-header-buttons-item-cart { font-weight: 700 !important; }
}

/* Zero-result search help. */
.pcic-search-help { padding: 16px; font-size: 14px; line-height: 1.5; }
.pcic-search-help p { margin: 0 0 6px; }
.pcic-search-help-tips { color: #6b7280; }

/* OCFilter sidebar: "Categories" group (pcic_storefront "facet"). OCFilter's own .ocf-filter / header / value-list markup;
   the values are links WITHOUT .ocf-value (OCFilter's script would turn them into filter parameters), so the row rule of
   .ocf-value is mirrored here. The radio, name and count spans keep OCFilter's own classes and styles. */
.pcic-ocf-value, .pcic-ocf-value:visited, .pcic-ocf-value:hover, .pcic-ocf-value:active, .pcic-ocf-value:focus {
  cursor: pointer; display: flex; flex-wrap: nowrap; align-items: flex-start; width: 100%; padding: 0; margin-bottom: 6px;
  font-size: 13px; font-weight: normal; font-style: normal; line-height: 1.5; color: #353535; text-decoration: none; text-transform: none;
  background: transparent; border: 0; box-shadow: none; overflow-wrap: anywhere; }
.pcic-ocf-value:last-child { margin-bottom: 0; }
.pcic-ocf-value:hover .ocf-value-name { text-decoration: underline; }
.pcic-ocf-value:focus-visible { outline: 2px solid #1f2937; outline-offset: 2px; }
.pcic-ocf-value.ocf-selected .ocf-value-input-radio::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: center; background-size: 8px; }
.pcic-ocf-value.pcic-ocf-child { padding-left: 14px; }
.pcic-ocf-more { margin-top: 6px; }
.pcic-ocf-more summary { cursor: pointer; font-size: 13px; text-decoration: underline; min-height: 32px; padding: 4px 0; }
.pcic-ocf-more summary:focus-visible { outline: 2px solid #1f2937; outline-offset: 2px; }
.pcic-ocf-categories .ocf-value-list-body + .pcic-ocf-more { border-top: 0; }
@media (max-width: 767px) {   /* OCFilter's mobile panel: larger tap targets, like its own values */
  .pcic-ocf-value, .pcic-ocf-value:visited, .pcic-ocf-value:hover, .pcic-ocf-value:active, .pcic-ocf-value:focus { font-size: 16px; margin-bottom: 12px; min-height: 24px; }
  /* OCFilter's mobile drawer sizes EVERY ".ocf-body > .ocf-filter-list" to height: 100% (its scroll box), so the
     Categories group — a sibling list before OCFilter's own — filled the whole drawer and pushed Price / Brand / Stock
     status below the screen.  With the group present the drawer body stacks the two lists: Categories its natural
     height, OCFilter's own list the rest (still its scroll box; its slide-in value panels keep .ocf-body as their
     containing block).  767px = OCFilter's mobileMaxWidth (its own stylesheet uses the same breakpoint). */
  .ocf-body:has(> .pcic-ocf-categories) { display: flex; flex-direction: column; }
  .ocf-body > .ocf-filter-list.pcic-ocf-categories { flex: 0 0 auto; height: auto; overflow: visible; padding-bottom: 0; }
  .ocf-body > .pcic-ocf-categories ~ .ocf-filter-list { flex: 1 1 auto; height: auto; min-height: 0; }
}
/* Standalone "Categories" sidebar block — only where OCFilter renders nothing (e.g. Gaming): OCFilter's stylesheet is
   not on the page then, so the few OCFilter rules the group relies on are mirrored here, scoped to the block. */
.pcic-ocf-standalone { padding: 16px; }
.pcic-ocf-standalone .ocf-filter-header { display: flex; align-items: center; font-weight: 700; font-size: 16px; line-height: 1.3; margin-bottom: 10px; }
.pcic-ocf-standalone .ocf-value-input { position: relative; width: 16px; min-height: 16px; max-height: 16px; flex: 0 0 16px; margin-right: 10px; margin-top: 2px; }
.pcic-ocf-standalone .ocf-value-input::before, .pcic-ocf-standalone .ocf-value-input::after { content: ""; position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; }
.pcic-ocf-standalone .ocf-value-input::before { background-color: #fff; border: 1px solid #adb5bd; border-radius: 50%; }
.pcic-ocf-standalone .ocf-selected .ocf-value-input::before { border-color: #3366d5; background-color: #3366d5; }
.pcic-ocf-standalone .ocf-value-name { margin-right: 5px; word-break: break-word; text-align: left; }
.pcic-ocf-standalone .ocf-value-append { margin-left: auto; min-width: 40px; text-align: right; }
.pcic-ocf-standalone .ocf-value-count { padding: 2px 6px; font-size: 11px; color: #6b7280; }
@media (max-width: 1199.98px) {   /* the left column stacks above the products: one swipeable row of categories */
  .pcic-ocf-standalone { padding: 12px; }
  .pcic-ocf-standalone .ocf-value-list-body { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 4px; }
  .pcic-ocf-standalone .pcic-ocf-value, .pcic-ocf-standalone .pcic-ocf-value:visited, .pcic-ocf-standalone .pcic-ocf-value:hover {
    flex: 0 0 auto; width: auto; max-width: 70vw; margin: 0; padding: 6px 12px; border: 1px solid #d5dbe3; border-radius: 18px; align-items: center; scroll-snap-align: start; font-size: 14px; }
  .pcic-ocf-standalone .ocf-value-append { min-width: 0; }
}

/* Recently viewed (OCTemplates oct_product_views layout module, #pr-pv_N; the controller sets the theme's own
   carousel card type). One horizontal row on every width instead of a wrapping grid: ~5 cards on desktop,
   4 on tablet, swipe with the next card peeking on phones. Scoped to this module only — category, search,
   related and homepage modules are untouched. No script: no arrows to break with 1-3 products. */
.pr-module[id^="pr-pv_"][data-type] { --pcic-rv-card: 54%; }
@media (min-width: 480px) { .pr-module[id^="pr-pv_"][data-type] { --pcic-rv-card: 40%; } }
@media (min-width: 576px) { .pr-module[id^="pr-pv_"][data-type] { --pcic-rv-card: 31%; } }
@media (min-width: 768px) { .pr-module[id^="pr-pv_"][data-type] { --pcic-rv-card: calc(25% - 0.75rem); } }
@media (min-width: 1200px) { .pr-module[id^="pr-pv_"][data-type] { --pcic-rv-card: calc(20% - 0.8rem); } }
.pr-module[id^="pr-pv_"][data-type] > .pr-page-title { margin-bottom: 0.75rem !important; }
.pr-module[id^="pr-pv_"][data-type] .pr-module-items {
  flex-wrap: nowrap; flex-direction: row; align-items: stretch;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; scrollbar-width: thin;
  padding: 3px 3px 10px; margin: -3px -3px 0;   /* room for focus outlines; the scrollbar sits below the cards */
}
.pr-module[id^="pr-pv_"][data-type] .pr-module-items::-webkit-scrollbar { height: 6px; }
.pr-module[id^="pr-pv_"][data-type] .pr-module-items::-webkit-scrollbar-thumb { background: rgba(31, 41, 55, 0.25); border-radius: 3px; }
.pr-module[id^="pr-pv_"][data-type] .pr-module-items:focus-visible { outline: 2px solid #1f2937; outline-offset: 2px; }
.pr-module[id^="pr-pv_"][data-type] .pr-module-item {
  flex: 0 0 var(--pcic-rv-card); max-width: var(--pcic-rv-card); min-width: 0;
  flex-direction: column !important; scroll-snap-align: start; padding: 0.75rem !important;
}
.pr-module[id^="pr-pv_"][data-type] .pr-module-item-image { margin-top: 0.25rem !important; margin-bottom: 0.5rem !important; }
.pr-module[id^="pr-pv_"][data-type] .pr-module-item-image a { width: 100%; max-width: 150px; }
.pr-module[id^="pr-pv_"][data-type] .pr-module-item-image img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.pr-module[id^="pr-pv_"][data-type] .pr-module-item-info-code { font-size: 11px; opacity: 0.8; }
.pr-module[id^="pr-pv_"][data-type] .pr-module-item-bottom { margin-top: 0.5rem !important; gap: 0.5rem !important; }
.pr-module[id^="pr-pv_"][data-type] .pr-module-item-price-box { gap: 0.5rem !important; }
.pr-module[id^="pr-pv_"][data-type] .pr-module-item-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
