/* Apple catalog cards — unified, non-cropping product photography. */
/* Images are pre-framed on a white studio background, so do not rotate or scale them beyond the card bounds. */
.device_block_left_col {
    flex: 0 0 42%;
    min-width: 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.device_block_right_col {
    flex: 1 1 auto;
}
.device_block_left_col img {
    display: block;
    width: 168px !important;
    height: 168px !important;
    max-width: 168px !important;
    max-height: 168px !important;
    object-fit: contain;
    object-position: center center;
    margin: 0 auto;
    transform: none !important;
    transition: none;
}
.device_block:hover .device_block_left_col img,
.device_block:nth-child(even) .device_block_left_col img,
.device_block:nth-child(even):hover .device_block_left_col img {
    transform: none !important;
}

/* Individual Apple model pages: keep the full device visible. */
.sht-apple-model-photo {
    overflow: visible;
}
.sht-apple-model-photo img {
    transform: none !important;
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    height: auto;
}

/* Apple Watch category page: same proportions and safe image bounds. */
.sht-apple-watch-category-grid { margin-left: -15px; margin-right: -15px; }
.sht-apple-watch-card { padding-left: 15px; padding-right: 15px; }
.sht-apple-watch-card .device_block {
    min-height: 135px;
    align-items: flex-start;
}
.sht-apple-watch-card .device_block_left_col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 168px;
}
.sht-apple-watch-card .device_block_left_col img {
    width: 168px !important;
    height: 168px !important;
    max-width: 168px !important;
    max-height: 168px !important;
}
@media (max-width: 767px) {
  .device_block_left_col { flex-basis: 40%; min-width: 40%; }
  .device_block_left_col img {
      width: 128px !important;
      height: 128px !important;
      max-width: 128px !important;
      max-height: 128px !important;
  }
}

/* v8 unified product-photo framing: all selected replacement images are content-fit with safe margins */
.device_block_left_col {
    flex: 0 0 44% !important;
    min-width: 44% !important;
    overflow: visible !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}
.device_block_left_col img {
    display: block !important;
    width: 176px !important;
    height: 176px !important;
    max-width: 176px !important;
    max-height: 176px !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}
.device_block:hover .device_block_left_col img,
.device_block:nth-child(even) .device_block_left_col img,
.device_block:nth-child(even):hover .device_block_left_col img {
    transform: none !important;
}
.sht-apple-model-photo img {
    transform: none !important;
    object-fit: contain !important;
    object-position: center !important;
}
@media (max-width: 767px) {
  .device_block_left_col {
      flex-basis: 42% !important;
      min-width: 42% !important;
  }
  .device_block_left_col img {
      width: 140px !important;
      height: 140px !important;
      max-width: 140px !important;
      max-height: 140px !important;
  }
}

/* V10: replacement photos are reframed to the same visual scale as the unchanged cards. No card dimensions changed. */

/* V13 — Apple main page category cards matched to the supplied reference. */
.sht-apple-main-category-grid {
    margin-left: -9px;
    margin-right: -9px;
    display: flex;
    flex-wrap: wrap;
}
.sht-apple-main-category-col {
    padding-left: 9px;
    padding-right: 9px;
    margin-bottom: 18px;
}
.sht-apple-main-category-card {
    display: block;
    position: relative;
    height: 336px;
    border: 1px solid #d7e8f2;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    color: #17235d;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: box-shadow .15s ease, transform .15s ease;
}
.sht-apple-main-category-card:hover {
    color: #17235d;
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.sht-apple-main-category-image {
    width: 100%;
    height: 215px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}
.sht-apple-main-category-image img {
    display: block !important;
    width: auto !important;
    height: 215px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
    transform: none !important;
}
.sht-apple-main-category-text {
    position: relative;
    padding: 4px 28px 16px 20px;
    min-height: 105px;
    box-sizing: border-box;
}
.sht-apple-main-category-text h3 {
    margin: 0 0 6px !important;
    color: #17235d;
    font-size: 26px !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;
}
.sht-apple-main-category-text p {
    margin: 0 !important;
    color: #6e88a8;
    font-size: 17px !important;
    line-height: 1.38 !important;
    max-width: 92%;
}
.sht-apple-main-category-arrow {
    position: absolute;
    right: 17px;
    bottom: 13px;
    color: #2c8fd4;
    font-size: 35px;
    line-height: 1;
    font-weight: 300;
}
@media (max-width: 991px) {
    .sht-apple-main-category-col { width: 50%; }
}
@media (max-width: 767px) {
    .sht-apple-main-category-col { width: 100%; }
    .sht-apple-main-category-card { height: 330px; }
    .sht-apple-main-category-image,
    .sht-apple-main-category-image img { height: 210px !important; }
}


/* V14 — keep the existing card dimensions, remove the visible rectangular border, and use the new full-device iPad/iMac photos. */
.sht-apple-main-category-card {
    border: 0 !important;
    box-shadow: none !important;
}
.sht-apple-main-category-card:hover {
    box-shadow: none !important;
}


/* V16 — hard cache-busting/inline-safe override for Apple main category cards. */
.sht-apple-main-category-card,
.sht-apple-main-category-card:hover,
.sht-apple-main-category-card:focus,
.sht-apple-main-category-card:active {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}
.sht-apple-main-category-card::before,
.sht-apple-main-category-card::after {
    display: none !important;
    border: 0 !important;
    box-shadow: none !important;
    content: none !important;
}
.sht-apple-main-category-image,
.sht-apple-main-category-image img {
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    box-shadow: none !important;
    outline: none !important;
}


/* V16 — align visible device bottoms on one invisible baseline and keep MacBook fully inside its card. */
.sht-apple-main-category-image {
    align-items: flex-end !important;
    justify-content: center !important;
    overflow: hidden !important;
}
.sht-apple-main-category-image img {
    align-self: flex-end !important;
}

/* V16 — Apple Watch copy is the longest; keep the original text but give it enough room inside the fixed card. */
.sht-apple-main-category-text-watch {
    padding-top: 2px !important;
    padding-bottom: 4px !important;
}
.sht-apple-main-category-text-watch p {
    font-size: 15px !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
}


/* V18 — Apple logo sits ABOVE the feedback form on all Apple pages. */
.sht-apple-sidebar {
    width: 100%;
}
.sht-apple-sidebar-logo {
    width: 100%;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px;
    background: #fff;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible;
}
.sht-apple-sidebar-logo img {
    display: block !important;
    width: 102px !important;
    height: 120px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}
@media (max-width: 991px) {
    .sht-apple-sidebar-logo { height: 105px; }
    .sht-apple-sidebar-logo img { width: 96px !important; height: 112px !important; }
}


/* V19 — clean Apple logo without the source image halo/shadow. */
.sht-apple-sidebar-logo,
.sht-apple-sidebar-logo img {
    background: transparent !important;
    filter: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}


/* V20 — same Apple logo block on the main Apple page (page ID 46) and all Apple subpages. */
body.page-id-46 .sht-apple-sidebar-logo,
body.page-id-46 .sht-apple-sidebar-logo img {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
