/* Mobile Edge Buttons (product page) */
:root {
  --edge-theme-blue: #2563eb;
  --edge-bg-gray: #f1f5f9;
  --edge-bg-white: #ffffff;
  --edge-alert-red: #ef4444;
}

@media (max-width: 767px), (max-width: 1024px) and (orientation: portrait) {
  #gstore-edge-buttons.edge-tab-container {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 10020;
    width: 48px;
    display: flex;
    flex-direction: column;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    box-shadow: -4px 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  #gstore-edge-buttons .btn-edge-cart {
    width: 100%;
    height: 52px;
    background-color: var(--edge-bg-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
  }

  #gstore-edge-buttons .icon-ring {
    width: 32px;
    height: 32px;
    border: 2px solid var(--edge-theme-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--edge-theme-blue);
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
  }

  #gstore-edge-buttons .btn-edge-cart:active .icon-ring {
    background-color: #eff6ff;
    transform: scale(0.95);
  }

  #gstore-edge-buttons .btn-edge-cart.is-animating .icon-ring {
    background-color: #eff6ff;
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
  }

  #gstore-edge-buttons .btn-edge-cart.is-animating .icon-ring::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.25);
    border-top-color: rgba(37, 99, 235, 0.9);
    animation: gstore-spin 0.6s linear infinite;
    box-sizing: border-box;
  }

  #gstore-edge-buttons .btn-edge-cart.is-animating svg {
    opacity: 0.2;
  }

  #gstore-edge-buttons .btn-edge-cart.is-animating::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    animation: gstore-pulse 0.9s ease-in-out infinite;
    pointer-events: none;
  }

  #gstore-edge-buttons .btn-edge-buy {
    width: 100%;
    background-color: var(--edge-bg-gray);
    border: none;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 16px 0;
    color: var(--edge-theme-blue);
    font-weight: 800;
    font-family: "TBC Contractica CAPS", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background 0.2s;
  }

  #gstore-edge-buttons .btn-edge-buy:active {
    background-color: #e2e8f0;
  }

  #gstore-edge-buttons .btn-edge-buy.is-animating {
    background-color: #e2e8f0;
    transform: rotate(180deg) scale(0.97);
  }

  @keyframes gstore-spin {
    to { transform: rotate(360deg); }
  }

  @keyframes gstore-pulse {
    0%,100% { opacity: 0.4; }
    50% { opacity: 0.9; }
  }

  #gstore-edge-buttons .cart-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--edge-alert-red);
    color: white;
    font-size: 10px;
    font-weight: bold;
    height: 16px;
    min-width: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
  }

  #gstore-edge-buttons .cart-badge.visible {
    opacity: 1;
    transform: scale(1);
  }
}
