/* Ryan Studios - Nóbrega Cell
   Ajuste final: fotos desktop + botao unico do carrinho mobile */

/* DESKTOP: usa o mesmo corte mais limpo que ficou melhor no celular */
@media (min-width: 769px) {
  .product-card .pimg,
  .promo-card .pimg,
  #productsGrid .product-card .pimg,
  #promoGrid .product-card .pimg,
  .combo-card .combo-icons.combo-photo,
  .combo-card .combo-visual.combo-photo,
  #comboGrid .combo-icons.combo-photo,
  #comboGrid .combo-visual.combo-photo {
    background: #050505 !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  .product-card .pimg img,
  .promo-card .pimg img,
  #productsGrid .product-card .pimg img,
  #promoGrid .product-card .pimg img,
  .product-card .pimg img.rs-product-photo,
  .promo-card .pimg img.rs-product-photo,
  .combo-card .combo-icons.combo-photo img,
  .combo-card .combo-visual.combo-photo img,
  .combo-card img.combo-photo-img,
  #comboGrid .combo-icons.combo-photo img,
  #comboGrid .combo-visual.combo-photo img,
  #comboGrid img.combo-photo-img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    background: #050505 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transform: scale(1.42) !important;
    transform-origin: center center !important;
    clip-path: inset(10% 8% 17% 8%) !important;
  }

  #productModal.open #modalMedia.modal-media,
  #productModal.open .modal-media,
  #productModal.open #modalMedia.modal-media.modal-media-white-clean {
    background: #050505 !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  #productModal.open #modalMedia.modal-media img,
  #productModal.open .modal-media img,
  #productModal.open #modalMedia.modal-media img.rs-product-photo,
  #productModal.open #modalMedia.modal-media img.modal-product-image-clean,
  #productModal.open #modalMedia.modal-media img.ryan-modal-img-cover {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    background: #050505 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transform: scale(1.42) !important;
    transform-origin: center center !important;
    clip-path: inset(10% 8% 18% 8%) !important;
  }
}

/* MOBILE: remove o botao Finalizar da barra fixa e deixa o carrinho mais forte */
@media (max-width: 980px) {
  .mobile-checkout {
    grid-template-columns: minmax(0, 1fr) minmax(156px, 44vw) !important;
    gap: 10px !important;
    height: 74px !important;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom)) !important;
    background: linear-gradient(180deg, rgba(12,12,12,.96), rgba(4,4,4,.98)) !important;
    border-top: 1px solid rgba(255, 91, 0, .34) !important;
    box-shadow: 0 -14px 34px rgba(0,0,0,.52), 0 -4px 22px rgba(255,91,0,.12) !important;
  }

  .mobile-checkout button[onclick*="checkoutWhatsApp"] {
    display: none !important;
  }

  .mobile-checkout button[onclick*="toggleCart"] {
    height: 54px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    background: linear-gradient(135deg, #ff7a00 0%, #ff4b00 55%, #b93100 100%) !important;
    color: #fff !important;
    font-weight: 900 !important;
    font-size: 13px !important;
    letter-spacing: -.01em !important;
    box-shadow: 0 0 0 1px rgba(255,91,0,.18), 0 10px 26px rgba(255,91,0,.32) !important;
  }

  .mobile-checkout button[onclick*="toggleCart"]::before {
    content: "Ver " !important;
  }

  .mobile-checkout button[onclick*="toggleCart"] span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 22px !important;
    height: 22px !important;
    margin-left: 5px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,.30) !important;
    color: #fff !important;
    font-size: 12px !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18) !important;
  }

  .mobile-checkout small {
    color: #bdbdbd !important;
    font-size: 10px !important;
  }

  .mobile-checkout strong {
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1.05 !important;
  }
}

/* Ryan fix desktop only - carrinho PC */
@media (min-width: 981px) {
  body .cart {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    width: 430px !important;
    max-width: 430px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border-left: 1px solid rgba(255,91,0,.28) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transform: translateX(110%) !important;
    z-index: 9999 !important;
  }

  body .cart.open {
    transform: translateX(0) !important;
  }

  body .cart-header {
    flex: 0 0 auto !important;
    position: relative !important;
    top: auto !important;
    padding: 18px 20px !important;
  }

  body .cart-items {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 16px !important;
    gap: 12px !important;
  }

  body .cart-footer {
    flex: 0 0 auto !important;
    max-height: 48vh !important;
    overflow-y: auto !important;
    padding: 16px 18px 20px !important;
    border-top: 1px solid rgba(255,91,0,.22) !important;
  }

  body .cart-row {
    display: grid !important;
    grid-template-columns: 62px minmax(0, 1fr) 82px !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 12px !important;
    min-height: 92px !important;
    overflow: hidden !important;
  }

  body .cart-row .mini {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  body .cart-row .mini img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: scale(1.34) !important;
    display: block !important;
  }

  body .cart-product-info {
    min-width: 0 !important;
    overflow: hidden !important;
    padding-right: 0 !important;
  }

  body .cart-product-info strong {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    font-size: 13.5px !important;
    line-height: 1.18 !important;
    margin-bottom: 4px !important;
  }

  body .cart-product-info small {
    display: block !important;
    font-size: 11.5px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body .cart-row-right {
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  body .cart-row-right .remove-cart,
  body .cart-row .remove-cart {
    position: static !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 999px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }

  body .cart-row-right b {
    position: static !important;
    max-width: 82px !important;
    padding: 6px 7px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  body .cart-footer input,
  body .cart-footer textarea,
  body .cart-footer select {
    min-height: 42px !important;
    height: auto !important;
    padding: 11px 13px !important;
    margin-bottom: 10px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
  }

  body .cart-footer button {
    min-height: 48px !important;
    border-radius: 14px !important;
  }

  body .cart-footer .checkout {
    min-height: 56px !important;
    margin-top: 14px !important;
    border-radius: 18px !important;
  }

  body .cart-footer [class*="delivery"],
  body .cart-footer [class*="frete"],
  body .cart-footer [class*="retirada"] {
    margin-top: 10px !important;
    margin-bottom: 12px !important;
  }
}
